diff --git a/charts/netbird-operator-config/Chart.yaml b/charts/netbird-operator-config/Chart.yaml index d1781cc..05b11f4 100644 --- a/charts/netbird-operator-config/Chart.yaml +++ b/charts/netbird-operator-config/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: netbird-operator-config description: NetBird Operator Configuration type: application -version: 0.1.0 +version: 0.1.1 appVersion: "0.2.0" diff --git a/charts/netbird-operator-config/templates/kubernetes-nbresource.yaml b/charts/netbird-operator-config/templates/kubernetes-nbresource.yaml index 5241185..7c3acfe 100644 --- a/charts/netbird-operator-config/templates/kubernetes-nbresource.yaml +++ b/charts/netbird-operator-config/templates/kubernetes-nbresource.yaml @@ -24,7 +24,7 @@ spec: spec: initContainers: - name: wait-network-ready - image: "netbirdio/kubectl:latest" + image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }} command: - sh - -c @@ -32,7 +32,7 @@ spec: - kubectl wait --for 'jsonpath={.status.networkID}' -n {{ $routerNS }} nbroutingpeer router; containers: - name: apply-nbresource - image: "netbirdio/kubectl:latest" + image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }} env: - name: NBRESOURCE_VALUE value: | diff --git a/charts/netbird-operator-config/values.yaml b/charts/netbird-operator-config/values.yaml index b9c187a..24e8df6 100644 --- a/charts/netbird-operator-config/values.yaml +++ b/charts/netbird-operator-config/values.yaml @@ -55,3 +55,12 @@ serviceAccount: create: true name: "" annotations: {} + +# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ +image: + # Set operator image registry + registry: docker.io + # Set operator image repository + repository: netbirdio/kubectl + # Overrides the image tag whose default is the chart appVersion. + tag: latest