Skip to content

Commit

Permalink
helm: Make operator imagePullPolicy configurable
Browse files Browse the repository at this point in the history
imagePullPolicy for the operator deployment can be now set in
tetragonOperator.image.pullPolicy value, and defaults to IfNotPresent.
Previously it defaulted to Always and couldn't be changed, what was problematic
for example in local development.

Signed-off-by: Anna Kapuscinska <[email protected]>
  • Loading branch information
lambdanis authored and kkourt committed Oct 5, 2023
1 parent f7e1df3 commit 2af1148
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/en/docs/reference/helm-chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ To use [the values available](#values), with `helm install` or `helm upgrade`, u
| tetragon.prometheus.serviceMonitor.labelsOverride | object | `{}` | The set of labels to place on the 'ServiceMonitor' resource. |
| tetragon.resources | object | `{}` | |
| tetragon.securityContext.privileged | bool | `true` | |
| tetragonOperator.image | object | `{"override":null,"repository":"quay.io/cilium/tetragon-operator","suffix":"","tag":"v0.11.0"}` | tetragon-operator image. |
| tetragonOperator.image | object | `{"override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/tetragon-operator","suffix":"","tag":"v0.11.0"}` | tetragon-operator image. |
| tetragonOperator.podInfo.enabled | bool | `false` | Enables the PodInfo CRD and the controller that reconciles PodInfo custom resources. |
| tetragonOperator.skipCRDCreation | bool | `false` | |
| tolerations[0].operator | string | `"Exists"` | |
Expand Down
2 changes: 1 addition & 1 deletion install/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Helm chart for Tetragon
| tetragon.prometheus.serviceMonitor.labelsOverride | object | `{}` | The set of labels to place on the 'ServiceMonitor' resource. |
| tetragon.resources | object | `{}` | |
| tetragon.securityContext.privileged | bool | `true` | |
| tetragonOperator.image | object | `{"override":null,"repository":"quay.io/cilium/tetragon-operator","suffix":"","tag":"v0.11.0"}` | tetragon-operator image. |
| tetragonOperator.image | object | `{"override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/tetragon-operator","suffix":"","tag":"v0.11.0"}` | tetragon-operator image. |
| tetragonOperator.podInfo.enabled | bool | `false` | Enables the PodInfo CRD and the controller that reconciles PodInfo custom resources. |
| tetragonOperator.skipCRDCreation | bool | `false` | |
| tolerations[0].operator | string | `"Exists"` | |
Expand Down
1 change: 1 addition & 0 deletions install/kubernetes/templates/operator_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
- serve
- --config-dir=/etc/tetragon/operator.conf.d/
image: "{{ if .Values.tetragonOperator.image.override }}{{ .Values.tetragonOperator.image.override }}{{ else }}{{ .Values.tetragonOperator.image.repository }}{{ .Values.tetragonOperator.image.suffix }}:{{ .Values.tetragonOperator.image.tag }}{{ end }}"
imagePullPolicy: {{ .Values.tetragonOperator.image.pullPolicy }}
volumeMounts:
- mountPath: /etc/tetragon/operator.conf.d/
name: tetragon-operator-config
Expand Down
1 change: 1 addition & 0 deletions install/kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ tetragonOperator:
tag: v0.11.0
# tetragon-operator image-digest
suffix: ""
pullPolicy: IfNotPresent
# Skip CRD creation.
skipCRDCreation: false
podInfo:
Expand Down

0 comments on commit 2af1148

Please sign in to comment.