Skip to content

Commit

Permalink
Add pod labels to the SPIRE agent (#273)
Browse files Browse the repository at this point in the history
Follow on from #271.
This will allow the SPIRE agent to also integrate with Azure Workload
Identity.

Signed-off-by: Rory Houlihan <rhoulihan@protonmail.com>
  • Loading branch information
mcrors authored Mar 4, 2024
1 parent 077f152 commit beda725
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/spire/charts/spire-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ A Helm chart to install the SPIRE agent.
| `serviceAccount.name` | The name of the service account to use. | `""` |
| `configMap.annotations` | Annotations to add to the SPIRE Agent ConfigMap | `{}` |
| `podAnnotations` | Annotations to add to pods | `{}` |
| `podLabels` | Labels to add to pods | `{}` |
| `podSecurityContext` | Pod security context | `{}` |
| `securityContext` | Security context | `{}` |
| `resources` | Resource requests and limits | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions charts/spire/charts/spire-agent/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
{{- end }}
labels:
{{- include "spire-agent.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
3 changes: 3 additions & 0 deletions charts/spire/charts/spire-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ configMap:
## @param podAnnotations [object] Annotations to add to pods
podAnnotations: {}

## @param podLabels [object] Labels to add to pods
podLabels: {}

## @param podSecurityContext [object] Pod security context
podSecurityContext: {}
# fsGroup: 2000
Expand Down

0 comments on commit beda725

Please sign in to comment.