Skip to content

Commit

Permalink
helm: Correct spire labels indentation
Browse files Browse the repository at this point in the history
Additionally, the labels are propagated to pod level as well.

Fixes: #28599
Signed-off-by: Tam Mach <tam.mach@cilium.io>
  • Loading branch information
sayboras committed Oct 16, 2023
1 parent a0899b9 commit ad449fe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ metadata:
{{- end }}
labels:
app: spire-agent
{{- with .Values.authentication.mutual.spire.install.server.labels }}
{{- toYaml . | nindent 8 }}
{{- with .Values.authentication.mutual.spire.install.agent.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
Expand All @@ -27,6 +27,9 @@ spec:
namespace: {{ .Values.authentication.mutual.spire.install.namespace }}
labels:
app: spire-agent
{{- with .Values.authentication.mutual.spire.install.agent.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
hostPID: true
hostNetwork: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
labels:
app: spire-server
{{- with .Values.authentication.mutual.spire.install.server.labels }}
{{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
Expand All @@ -28,6 +28,9 @@ spec:
metadata:
labels:
app: spire-server
{{- with .Values.authentication.mutual.spire.install.server.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ .Values.authentication.mutual.spire.install.server.serviceAccount.name }}
shareProcessNamespace: true
Expand Down
4 changes: 2 additions & 2 deletions install/kubernetes/cilium/values.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions install/kubernetes/cilium/values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3255,9 +3255,9 @@ authentication:
create: true
name: spire-agent
# -- SPIRE agent annotations
annotations: { }
annotations: {}
# -- SPIRE agent labels
labels: { }
labels: {}
# -- SPIRE Workload Attestor kubelet verification.
skipKubeletVerification: true
# -- SPIRE agent tolerations configuration
Expand Down

0 comments on commit ad449fe

Please sign in to comment.