forked from argoproj/argo-helm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(argocd-image-updater): Support extra K8s manifests (argoproj#2429)
* feat(argocd-image-updater): Support extra K8s manifests Signed-off-by: yu-croco <[email protected]> * chore(argocd-image-updater): add CI for extraObjects Signed-off-by: yu-croco <[email protected]> --------- Signed-off-by: yu-croco <[email protected]>
- Loading branch information
Showing
5 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
charts/argocd-image-updater/ci/enable-extra-objects-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Test with extraObjects enabled | ||
# Do not deploy the CRDs as they are already present from the previous test | ||
installCRDs: false | ||
|
||
extraObjects: | ||
- apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: datadog | ||
type: Opaque | ||
data: | ||
address: aHR0cHM6Ly9hcGkuZGF0YWRvZ2hxLmNvbQo= # https://api.datadoghq.com | ||
api-key: dGVzdC1hcGkta2V5Cg== # test-api-key | ||
app-key: dGVzdC1hcHAta2V5Cg== # test-app-key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{ range .Values.extraObjects }} | ||
--- | ||
{{ if typeIs "string" . }} | ||
{{- tpl . $ }} | ||
{{- else }} | ||
{{- tpl (toYaml .) $ }} | ||
{{- end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters