Skip to content

Commit

Permalink
Add helm hooks for ordering spire-agent and spire-server deployment (#…
Browse files Browse the repository at this point in the history
…954)

Make spire-agent always deploy after spire-server to avoid restarts

Signed-off-by: Qi Hu <[email protected]>
  • Loading branch information
BulldromeQ authored May 5, 2024
1 parent c862fbd commit e1f53ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ metadata:
namespace: {{ .Values.global.spire.namespace }}
labels:
app: spire-agent
annotations: {{ .Values.spireAgent.annotations | toYaml | nindent 4 }}
spec:
selector:
matchLabels:
Expand Down
6 changes: 6 additions & 0 deletions helm-charts/0.25.2/charts/spire/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ serviceAccount:

podAnnotations: {}

spireAgent:
annotations:
# Define a helm hook to make spire-agent daemonSet deploy after spire-server statefulSet
"helm.sh/hook": post-install
"helm.sh/hook-delete-policy": hook-succeeded

podSecurityContext: {}
# fsGroup: 2000

Expand Down

0 comments on commit e1f53ae

Please sign in to comment.