Skip to content

Commit

Permalink
Add extraObjects support
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Jackson committed Oct 31, 2024
1 parent 739c824 commit 87fef46
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/core/extraObjects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{- range $obj := .Values.clusterGroup.extraObjects }}
---
{{ $obj | toYaml }}
{{- end }}{{- /* range $obj */ }}
4 changes: 4 additions & 0 deletions templates/plumbing/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,9 @@ spec:
retry:
limit: {{ default 20 $.Values.global.applicationRetryLimit }}
{{- end }}{{- /* .syncPolicy */}}
{{- range $obj := .extraObjects }}
---
{{ $obj | toYaml }}
{{- end }}{{- /* range .extraObjects */}}
{{- end }}{{- /* if .disabled */}}
{{- end }}{{- /* range .Values.clusterGroup.applications */}}
8 changes: 8 additions & 0 deletions values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@
"imperative": {
"$ref": "#/definitions/Imperative"
},
"extraObjects": {
"type": "array",
"description": "Extra manifests used within the main clustergroup application, primarily ArgoCD Resource Hooks to sequence subscription installs"
},
"managedClusterGroups": {
"anyOf": [
{
Expand Down Expand Up @@ -547,6 +551,10 @@
"type": "array",
"description": "List of extra fields that will be passed to ArgoCD."
},
"extraObjects": {
"type": "array",
"description": "A list of manifests (initially ArcoCD Resource Hooks) to add to the Application object."
},
"overrides": {
"type": "object"
},
Expand Down

0 comments on commit 87fef46

Please sign in to comment.