Skip to content

Commit

Permalink
Use Kubernetes defaults for imagePullPolicy (#352)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
  • Loading branch information
dgn authored Sep 23, 2024
1 parent c5e8021 commit bd6e048
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 1 addition & 3 deletions bundle/manifests/sailoperator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ metadata:
capabilities: Seamless Upgrades
categories: OpenShift Optional, Integration & Delivery, Networking, Security
containerImage: quay.io/maistra-dev/sail-operator:0.2-latest
createdAt: "2024-09-19T14:41:31Z"
createdAt: "2024-09-22T10:00:56Z"
description: Experimental operator for installing Istio service mesh
features.operators.openshift.io/cnf: "false"
features.operators.openshift.io/cni: "true"
Expand Down Expand Up @@ -643,7 +643,6 @@ spec:
- --logtostderr=true
- --v=0
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.16.0
imagePullPolicy: Always
name: kube-rbac-proxy
ports:
- containerPort: 8443
Expand All @@ -668,7 +667,6 @@ spec:
command:
- /manager
image: quay.io/maistra-dev/sail-operator:0.2-latest
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /healthz
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ spec:
- --logtostderr=true
- --v=0
image: {{ .Values.proxy.image }}
{{- if .Values.proxy.imagePullPolicy }}
imagePullPolicy: {{ .Values.proxy.imagePullPolicy }}
{{- end }}
name: kube-rbac-proxy
ports:
- containerPort: 8443
Expand All @@ -81,7 +83,9 @@ spec:
command:
- /manager
image: {{ .Values.image }}
{{- if .Values.proxy.imagePullPolicy }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
{{- end }}
livenessProbe:
httpGet:
path: /healthz
Expand Down
6 changes: 4 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ csv:
features.operators.openshift.io/cni: "true"
features.operators.openshift.io/csi: "false"
image: quay.io/maistra-dev/sail-operator:0.2-latest
imagePullPolicy: Always
# We're commenting out the imagePullPolicy to use k8s defaults
# imagePullPolicy: Always
proxy:
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.16.0
imagePullPolicy: Always
# We're commenting out the imagePullPolicy to use k8s defaults
# imagePullPolicy: IfNotPresent

# setting this to true will add resources required to generate the bundle using operator-sdk
bundleGeneration: false
Expand Down

0 comments on commit bd6e048

Please sign in to comment.