Skip to content

Commit

Permalink
[release-1.14]: Fixed the podAnnotations issue for the helm chart (#1878
Browse files Browse the repository at this point in the history
)
  • Loading branch information
houshengbo committed Aug 26, 2024
1 parent 62d2d17 commit 0cc04df
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions config/charts/knative-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,15 @@ spec:
metadata:
annotations:
sidecar.istio.io/inject: "false"
{{- if and .Values.knative_operator.operator_webhook.podAnnotations }}
{{ toYaml .Values.knative_operator.operator_webhook.podAnnotations }}
{{- end }}
labels:
app: operator-webhook
role: operator-webhook
app.kubernetes.io/component: operator-webhook
app.kubernetes.io/version: "{{ .Chart.Version }}"
app.kubernetes.io/name: knative-operator
{{- if and .Values.knative_operator.operator_webhook.podAnnotations }}
annotations:
{{ toYaml .Values.knative_operator.operator_webhook.podAnnotations }}
{{- end }}
spec:
# To avoid node becoming SPOF, spread our replicas to different nodes.
affinity:
Expand Down Expand Up @@ -6316,14 +6315,13 @@ spec:
metadata:
annotations:
sidecar.istio.io/inject: "false"
{{- if and .Values.knative_operator.knative_operator.podAnnotations }}
{{ toYaml .Values.knative_operator.knative_operator.podAnnotations }}
{{- end }}
labels:
name: knative-operator
app.kubernetes.io/name: knative-operator
app.kubernetes.io/version: "{{ .Chart.Version }}"
{{- if and .Values.knative_operator.knative_operator.podAnnotations }}
annotations:
{{ toYaml .Values.knative_operator.knative_operator.podAnnotations }}
{{- end }}
spec:
serviceAccountName: knative-operator
{{- if and .Values.knative_operator.knative_operator.securityContext }}
Expand Down

0 comments on commit 0cc04df

Please sign in to comment.