Skip to content

Commit

Permalink
specify labels and annotations in AWX CR template (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-w-3 authored Nov 13, 2024
1 parent ca111b3 commit d30ceff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .helm/starter/templates/awx-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ kind: AWX
metadata:
name: {{ .name }}
namespace: {{ $.Release.Namespace }}
{{- with .labels }}
labels:
{{ . | toYaml }}
{{- end }}
{{- with .annotations }}
labels:
{{ . | toYaml }}
{{- end }}
spec:
{{- /* Provide custom persistent volumes configs if enabled */}}
{{- include "spec.storageClassNames" $ }}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ AWX:
|---|---|---|
| `AWX.enabled` | Enable this AWX resource configuration | `false` |
| `AWX.name` | The name of the AWX resource and default prefix for other resources | `"awx"` |
| `AWX.annotations` | add annotations to the AWX resource | `{}` |
| `AWX.labels` | add labels to the AWX resource | `{}` |
| `AWX.spec` | specs to directly configure the AWX resource | `{}` |
| `AWX.postgres` | configurations for the external postgres secret | - |

Expand Down

0 comments on commit d30ceff

Please sign in to comment.