Skip to content

Commit

Permalink
fix: annotations in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronschweig committed Nov 19, 2024
1 parent 376a2c2 commit 45a54c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions charts/account-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ metadata:
{{- if .Values.webhooks.enabled }}
annotations:
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "entity.name" . }}-serving-cert
traffic.sidecar.istio.io/excludeInboundPorts: "9443"
{{- end }}
spec:
revisionHistoryLimit: {{ .Values.deployment.revisionHistoryLimit }}
Expand All @@ -21,12 +20,13 @@ spec:
{{- with .Values.deployment.specTemplate.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{ if .Values.deployment.specTemplate.annotations }}
annotations:
{{- with .Values.deployment.specTemplate.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.webhooks.enabled }}
traffic.sidecar.istio.io/excludeInboundPorts: "9443"
{{- end }}
spec:
serviceAccountName: {{ include "entity.name" . }}
containers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ operator match the snapshot:
service: RELEASE-NAME-account-operator
template:
metadata:
annotations: null
labels:
control-plane: controller-manager
service: RELEASE-NAME-account-operator
Expand Down Expand Up @@ -651,6 +652,7 @@ operator match the snapshot (with kubeconfigSecret):
service: RELEASE-NAME-account-operator
template:
metadata:
annotations: null
labels:
control-plane: controller-manager
service: RELEASE-NAME-account-operator
Expand Down Expand Up @@ -1017,7 +1019,6 @@ operator match the snapshot with webhook enabled:
metadata:
annotations:
cert-manager.io/inject-ca-from: NAMESPACE/RELEASE-NAME-account-operator-serving-cert
traffic.sidecar.istio.io/excludeInboundPorts: "9443"
name: RELEASE-NAME-account-operator
namespace: NAMESPACE
spec:
Expand All @@ -1027,6 +1028,8 @@ operator match the snapshot with webhook enabled:
service: RELEASE-NAME-account-operator
template:
metadata:
annotations:
traffic.sidecar.istio.io/excludeInboundPorts: "9443"
labels:
control-plane: controller-manager
service: RELEASE-NAME-account-operator
Expand Down

0 comments on commit 45a54c7

Please sign in to comment.