feat: add $pod.podAnnotations
This commit is contained in:
@ -1054,6 +1054,7 @@ It also uses the following configuration from the `$pod`:
|
|||||||
| Value | Description |
|
| Value | Description |
|
||||||
| ----- | ----------- |
|
| ----- | ----------- |
|
||||||
| `$pod.imagePullSecrets` | Names of secrets containing private registry credentials |
|
| `$pod.imagePullSecrets` | Names of secrets containing private registry credentials |
|
||||||
|
| `$pod.podAnnotations` | Pod annotations |
|
||||||
| `$pod.podSecurityContext` | Security options |
|
| `$pod.podSecurityContext` | Security options |
|
||||||
| `$pod.nodeSelector ` | Node labels for pod assignment |
|
| `$pod.nodeSelector ` | Node labels for pod assignment |
|
||||||
| `$pod.affinity ` | Expressions for affinity |
|
| `$pod.affinity ` | Expressions for affinity |
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
{{- $pod := index . 1 -}}
|
{{- $pod := index . 1 -}}
|
||||||
{{- $serviceAccount := index . 2 -}}
|
{{- $serviceAccount := index . 2 -}}
|
||||||
metadata:
|
metadata:
|
||||||
|
{{- with $pod.podAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "common.selectorLabels" $top | nindent 4 }}
|
{{- include "common.selectorLabels" $top | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
Reference in New Issue
Block a user