Skip to content

Commit

Permalink
Revert "added imagePullPolicy for images in values.yaml (#2310)" (#2415
Browse files Browse the repository at this point in the history
…) (#2417)

This reverts commit 2850962.

Co-authored-by: Ashwin Venkatesh <[email protected]>
  • Loading branch information
1 parent c98a021 commit 36a1843
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 26 deletions.
3 changes: 0 additions & 3 deletions .changelog/2310.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ spec:
containers:
- name: api-gateway-controller
image: {{ .Values.apiGateway.image }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
ports:
- containerPort: 9090
name: sds
Expand Down Expand Up @@ -220,7 +219,6 @@ spec:
{{- if .Values.global.acls.manageSystemACLs }}
- name: copy-consul-bin
image: {{ .Values.global.image | quote }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
command:
- cp
- /bin/consul
Expand Down Expand Up @@ -258,7 +256,6 @@ spec:
{{- end}}
{{- include "consul.consulK8sConsulServerEnvVars" . | nindent 8 }}
image: {{ .Values.global.imageK8S }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
volumeMounts:
- mountPath: /consul/login
name: consul-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ spec:
image:
consulAPIGateway: {{ .Values.apiGateway.image }}
envoy: {{ .Values.apiGateway.imageEnvoy }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
{{- if .Values.apiGateway.managedGatewayClass.nodeSelector }}
nodeSelector:
{{ tpl .Values.apiGateway.managedGatewayClass.nodeSelector . | indent 4 | trim }}
Expand Down
1 change: 0 additions & 1 deletion charts/consul/templates/client-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ spec:
{{- if .Values.global.acls.manageSystemACLs }}
- name: client-acl-init
image: {{ .Values.global.imageK8S }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
env:
- name: NAMESPACE
valueFrom:
Expand Down
1 change: 0 additions & 1 deletion charts/consul/templates/cni-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ spec:
# This container installs the consul CNI binaries and CNI network config file on each node
- name: install-cni
image: {{ .Values.global.imageK8S }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
securityContext:
privileged: true
command:
Expand Down
1 change: 0 additions & 1 deletion charts/consul/templates/enterprise-license-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ spec:
initContainers:
- name: ent-license-acl-init
image: {{ .Values.global.imageK8S }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
command:
- "/bin/sh"
- "-ec"
Expand Down
2 changes: 0 additions & 2 deletions charts/consul/templates/mesh-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ spec:
initContainers:
- name: mesh-gateway-init
image: {{ .Values.global.imageK8S }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
env:
- name: NAMESPACE
valueFrom:
Expand Down Expand Up @@ -180,7 +179,6 @@ spec:
containers:
- name: mesh-gateway
image: {{ .Values.global.imageConsulDataplane | quote }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
{{- if .Values.meshGateway.resources }}
resources:
{{- if eq (typeOf .Values.meshGateway.resources) "string" }}
Expand Down
1 change: 0 additions & 1 deletion charts/consul/templates/partition-init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ spec:
containers:
- name: partition-init-job
image: {{ .Values.global.imageK8S }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
env:
{{- include "consul.consulK8sConsulServerEnvVars" . | nindent 10 }}
{{- if (and .Values.global.acls.bootstrapToken.secretName .Values.global.acls.bootstrapToken.secretKey) }}
Expand Down
1 change: 0 additions & 1 deletion charts/consul/templates/server-acl-init-cleanup-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ spec:
containers:
- name: server-acl-init-cleanup
image: {{ .Values.global.imageK8S }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
command:
- consul-k8s-control-plane
args:
Expand Down
1 change: 0 additions & 1 deletion charts/consul/templates/server-acl-init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ spec:
containers:
- name: server-acl-init-job
image: {{ .Values.global.imageK8S }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
env:
- name: NAMESPACE
valueFrom:
Expand Down
8 changes: 4 additions & 4 deletions charts/consul/templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ spec:
{{- end }}
{{- if .Values.global.cloud.enabled}}
# These are mounted as secrets so that the consul server agent can use them.
# - the hcp-go-sdk in consul agent will already look for HCP_CLIENT_ID, HCP_CLIENT_SECRET, HCP_AUTH_URL,
# - the hcp-go-sdk in consul agent will already look for HCP_CLIENT_ID, HCP_CLIENT_SECRET, HCP_AUTH_URL,
# HCP_SCADA_ADDRESS, and HCP_API_HOST. so nothing more needs to be done.
# - HCP_RESOURCE_ID is created for use in the
# - HCP_RESOURCE_ID is created for use in the
# `-hcl="cloud { resource_id = \"${HCP_RESOURCE_ID}\" }"` logic in the command below.
{{- if .Values.global.cloud.clientId.secretName }}
- name: HCP_CLIENT_ID
Expand Down Expand Up @@ -333,15 +333,15 @@ spec:
valueFrom:
secretKeyRef:
name: {{ .Values.global.cloud.apiHost.secretName }}
key: {{ .Values.global.cloud.apiHost.secretKey }}
key: {{ .Values.global.cloud.apiHost.secretKey }}
{{- end}}
{{- if .Values.global.cloud.scadaAddress.secretName }}
- name: HCP_SCADA_ADDRESS
valueFrom:
secretKeyRef:
name: {{ .Values.global.cloud.scadaAddress.secretName }}
key: {{ .Values.global.cloud.scadaAddress.secretKey }}
{{- end}}
{{- end}}
{{- end }}
{{- if .Values.global.trustedCAs }}
- name: SSL_CERT_DIR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ spec:
-deployment-name={{ template "consul.fullname" . }}-webhook-cert-manager \
-deployment-namespace={{ .Release.Namespace }}
image: {{ .Values.global.imageK8S }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
name: webhook-cert-manager
resources:
limits:
Expand Down
6 changes: 0 additions & 6 deletions charts/consul/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ global:
# Changing the partition name would require an un-install and a re-install with the updated name.
# Must be "default" in the server cluster ie the Kubernetes cluster that the Consul server pods are deployed onto.
name: "default"

# Set imagePullPolicy for all images used. This is applies to all the images being used.
# One of "IfNotPresent", "Always", "Never"
# Refer to https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
# @type: string
imagePullPolicy: ""

# The name (and tag) of the Consul Docker image for clients and servers.
# This can be overridden per component. This should be pinned to a specific
Expand Down

0 comments on commit 36a1843

Please sign in to comment.