Skip to content

Commit d30ceff

Browse files
authored
specify labels and annotations in AWX CR template (#21)
1 parent ca111b3 commit d30ceff

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.helm/starter/templates/awx-deploy.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ kind: AWX
55
metadata:
66
name: {{ .name }}
77
namespace: {{ $.Release.Namespace }}
8+
{{- with .labels }}
9+
labels:
10+
{{ . | toYaml }}
11+
{{- end }}
12+
{{- with .annotations }}
13+
labels:
14+
{{ . | toYaml }}
15+
{{- end }}
816
spec:
917
{{- /* Provide custom persistent volumes configs if enabled */}}
1018
{{- include "spec.storageClassNames" $ }}

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ AWX:
252252
|---|---|---|
253253
| `AWX.enabled` | Enable this AWX resource configuration | `false` |
254254
| `AWX.name` | The name of the AWX resource and default prefix for other resources | `"awx"` |
255+
| `AWX.annotations` | add annotations to the AWX resource | `{}` |
256+
| `AWX.labels` | add labels to the AWX resource | `{}` |
255257
| `AWX.spec` | specs to directly configure the AWX resource | `{}` |
256258
| `AWX.postgres` | configurations for the external postgres secret | - |
257259

0 commit comments

Comments
 (0)