From 8e4827c53595521fffe0e1abec6dbe05ae664eca Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Fri, 9 Sep 2022 22:52:04 +0200 Subject: [PATCH] set executable flag --- bitwarden-crd-operator.py | 0 .../templates/NOTES.txt | 23 +------------------ .../templates/tests/test-connection.yaml | 15 ------------ chart/bitwarden-crd-operator/values.yaml | 2 +- 4 files changed, 2 insertions(+), 38 deletions(-) mode change 100644 => 100755 bitwarden-crd-operator.py delete mode 100644 chart/bitwarden-crd-operator/templates/tests/test-connection.yaml diff --git a/bitwarden-crd-operator.py b/bitwarden-crd-operator.py old mode 100644 new mode 100755 diff --git a/chart/bitwarden-crd-operator/templates/NOTES.txt b/chart/bitwarden-crd-operator/templates/NOTES.txt index 729bb56..bc9841c 100644 --- a/chart/bitwarden-crd-operator/templates/NOTES.txt +++ b/chart/bitwarden-crd-operator/templates/NOTES.txt @@ -1,22 +1 @@ -1. Get the application URL by running these commands: -{{- if .Values.ingress.enabled }} -{{- range $host := .Values.ingress.hosts }} - {{- range .paths }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} - {{- end }} -{{- end }} -{{- else if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "bitwarden-crd-operator.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "bitwarden-crd-operator.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "bitwarden-crd-operator.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "bitwarden-crd-operator.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT -{{- end }} +Have fun :) \ No newline at end of file diff --git a/chart/bitwarden-crd-operator/templates/tests/test-connection.yaml b/chart/bitwarden-crd-operator/templates/tests/test-connection.yaml deleted file mode 100644 index 0c738e5..0000000 --- a/chart/bitwarden-crd-operator/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "bitwarden-crd-operator.fullname" . }}-test-connection" - labels: - {{- include "bitwarden-crd-operator.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "bitwarden-crd-operator.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/chart/bitwarden-crd-operator/values.yaml b/chart/bitwarden-crd-operator/values.yaml index 03c6189..9b361bf 100644 --- a/chart/bitwarden-crd-operator/values.yaml +++ b/chart/bitwarden-crd-operator/values.yaml @@ -8,7 +8,7 @@ image: repository: lerentis/bitwarden-crd-operator pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "" + tag: "af7b0c53b72d56f10b3637c9f03a4164ed7f4a0d" imagePullSecrets: [] nameOverride: ""