Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common automatic update #110

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
445128d
Adding key to exclude target namespace in operatorgroup
claudiol Oct 13, 2023
0791109
Added target namespace logic to namespace map case
claudiol Oct 13, 2023
709e321
Changed description in schema
claudiol Oct 16, 2023
c0d3e9d
Added example to operatorgroupExcludeTargetNS
claudiol Oct 16, 2023
abb0b2d
Fixing CI tests
claudiol Oct 16, 2023
9ebdf71
Preview a chart based on the current k8s cluster
beekhof Oct 18, 2023
27ffad5
Handle explcit value files
beekhof Oct 19, 2023
e2a836c
Add ability to read overrides
Oct 19, 2023
9fcf9ca
Clean up tests after 7cda9c4
beekhof Oct 19, 2023
3e611d3
Add preview-all and remove some spurious stdout output
Oct 20, 2023
16b99dd
All prototype preview-all and silence some output
Oct 20, 2023
5ff7658
Merge remote-tracking branch 'upstream/main' into preview
Oct 20, 2023
4dc5ff0
Merge branch 'main' into exclude-target-namespace
claudiol Oct 23, 2023
9621a32
- Removed new key operatorgroupExludeTargetNS
claudiol Oct 23, 2023
7d031de
Updates to CI
claudiol Oct 23, 2023
613f84f
Adding option to include/exclude targetNamespaces in OperatorGroup
claudiol Oct 27, 2023
6debf79
Updated CI tests
claudiol Oct 27, 2023
8da6333
- Fix: bug in task TASK [iib_ci : Mirror all the needed images]
claudiol Nov 1, 2023
2eb19f3
- Updated the mirrordest_tag to use the sha256 of the image instead o…
claudiol Nov 1, 2023
dd96c93
Restored mirror template to original implementation
claudiol Nov 1, 2023
0b4c7f4
- Updated structure for supporting OperatorGroup's per suggestion of …
claudiol Nov 1, 2023
4d2da25
Update logic to fix multiple targetNamespaces
claudiol Nov 1, 2023
f13ecf0
Fix ci issues
claudiol Nov 1, 2023
e78cb82
Upgraded ESO to v0.9.8
mbaldessari Nov 7, 2023
d449dbc
Merge pull request #389 from mbaldessari/eso-0.9.8
mbaldessari Nov 7, 2023
744b495
Upgrade vault-helm to v0.26.1
mbaldessari Nov 7, 2023
43bc122
Merge pull request #390 from mbaldessari/vault-0.26.1
mbaldessari Nov 7, 2023
25be406
Parametrize ESO caProvider fields
mbaldessari Nov 7, 2023
ad3353d
Simplify target namespace logic
claudiol Nov 8, 2023
59442c6
Merge pull request #378 from claudiol/exclude-target-namespace
claudiol Nov 8, 2023
7100926
Merge pull request #391 from mbaldessari/ibm-roks
mbaldessari Nov 8, 2023
41083f1
Merge pull request #387 from claudiol/mbp-566-load-iib
beekhof Nov 9, 2023
205999e
Avoid nonhubCluster + hubCluster naming for ESO
mbaldessari Nov 14, 2023
29f7920
Merge pull request #393 from mbaldessari/eso-rename
mbaldessari Nov 14, 2023
57022d4
Update for new configmanagement plugin feature
Nov 3, 2023
59f1305
Remove obsolete comment and update tests
Nov 3, 2023
597aaf9
Update schema
Nov 3, 2023
4b6a8b3
Require plugin.yaml
Nov 3, 2023
342fef9
Add tmpdir to sidecar mounts
Nov 14, 2023
2fa4d6e
True up to test code
Nov 14, 2023
44ac765
Use nindent as appropriate
Nov 14, 2023
25145c4
Remove stray files
Nov 14, 2023
b60d760
Plugin config is plugin.yaml
Nov 14, 2023
34a17d3
Remove now-obsolete kustomize-renderer example
Nov 14, 2023
b703d89
Allow pluginArgs to be set and add schema
Nov 16, 2023
5125aa8
Remove redundancy
Nov 17, 2023
6a2f3bf
Revert "Remove now-obsolete kustomize-renderer example"
Nov 17, 2023
ab9b4f2
Remove legacy configManagementPlugins support
Nov 17, 2023
3c1e392
Add configManagementPlugins to tests for industrial edge
Nov 17, 2023
db42a32
Merge pull request #394 from mhjacks/main
mhjacks Nov 17, 2023
0c93a29
Clustergroup 0.0.5
mbaldessari Nov 20, 2023
17e984e
Merge pull request #396 from mbaldessari/v0.0.5
mbaldessari Nov 20, 2023
3609275
Small whitespace test
mbaldessari Nov 20, 2023
ee9f9d4
Merge pull request #397 from mbaldessari/testme
mbaldessari Nov 20, 2023
6144e86
Stop referencing remote actions via @main. Use a specific commit
mbaldessari Nov 20, 2023
cb0684b
Merge pull request #398 from mbaldessari/use-hashes
mbaldessari Nov 20, 2023
e71c5ef
Updated ESO to v0.9.9
mbaldessari Nov 20, 2023
098dfe2
Merge pull request #399 from mbaldessari/eso-0.9.9
mbaldessari Nov 20, 2023
1500218
Updated vault-helm to v0.27.0
mbaldessari Nov 20, 2023
5e33dfb
Merge pull request #400 from mbaldessari/vault-0.27.0
mbaldessari Nov 20, 2023
73d1804
Prevent ArgoCD from writing ESO CRs to clusters that need full support
beekhof Nov 20, 2023
151bc41
Fix whitespaces
mbaldessari Nov 21, 2023
00974d5
Merge pull request #395 from validatedpatterns/exclude-eso
mbaldessari Nov 21, 2023
6423803
Release clustergroup v0.8.0
mbaldessari Nov 21, 2023
ac31277
Merge pull request #402 from mbaldessari/v0.8.0
mbaldessari Nov 21, 2023
9c1d47b
Document preview limitations
beekhof Nov 28, 2023
6ee0c31
Merge pull request #380 from validatedpatterns/preview
beekhof Nov 28, 2023
50be2fd
Add support for private repos
mbaldessari Nov 29, 2023
e8800f8
Amend tests
mbaldessari Nov 29, 2023
df468d6
Check for rc attribute to exist
mbaldessari Dec 5, 2023
cc56214
Upgrade default imperative image
mbaldessari Dec 5, 2023
c519856
Merge pull request #404 from mbaldessari/cifix
mbaldessari Dec 5, 2023
7b8a07b
Merge pull request #405 from mbaldessari/newimperative-default
mbaldessari Dec 5, 2023
e4867d7
Release clustergroup v0.8.1
mbaldessari Dec 5, 2023
58fe7bc
Merge pull request #406 from mbaldessari/v0.8.1
mbaldessari Dec 5, 2023
9893d1d
Update pattern operator CRD
mbaldessari Dec 5, 2023
96ca3f2
Merge pull request #407 from mbaldessari/update-crd
mbaldessari Dec 5, 2023
2ff8ab1
Update CRD from the operator
mbaldessari Dec 6, 2023
4894723
Merge pull request #410 from mbaldessari/update-crd
mbaldessari Dec 6, 2023
59cd59a
Bump actions/setup-python from 4 to 5
dependabot[bot] Dec 11, 2023
a83e037
Merge pull request #412 from validatedpatterns/dependabot/github_acti…
mbaldessari Dec 12, 2023
1c9c36b
Merge pull request #403 from mbaldessari/private-repo
mbaldessari Dec 12, 2023
82a4afa
Release clustergroup v0.8.2
mbaldessari Dec 12, 2023
3b46d4d
Merge pull request #414 from mbaldessari/v0.8.2
mbaldessari Dec 12, 2023
d27b94f
Update CRD from the operator
mbaldessari Dec 12, 2023
d8e97af
Merge pull request #415 from mbaldessari/update-crd2
mbaldessari Dec 12, 2023
df739e2
Small clarification in IIB
mbaldessari Dec 14, 2023
112aa9a
Merge pull request #416 from mbaldessari/readme-iib
mbaldessari Dec 14, 2023
5e514ab
Switch imageDigestMirrors to AllowContactingSource
mbaldessari Dec 17, 2023
dd01807
Merge pull request #417 from mbaldessari/iib-loading-fix
mbaldessari Dec 17, 2023
a3c2627
Upgrade ESO to v0.9.10
mbaldessari Dec 18, 2023
052467b
Merge pull request #418 from mbaldessari/eso-0.9.10
mbaldessari Dec 18, 2023
2ae187e
Add initial support for deploying private repos via CLI directly
mbaldessari Dec 18, 2023
9ef16ba
Merge pull request #420 from mbaldessari/test-private-common
mbaldessari Dec 18, 2023
9ac57f7
Merge remote-tracking branch 'common-upstream/main' into common-autom…
mbaldessari Dec 18, 2023
66101f9
Update tests after common rebase
mbaldessari Dec 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/.github/workflows/ansible-unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion common/.github/workflows/jsonschema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
7 changes: 7 additions & 0 deletions common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ help: ## This help message
show: ## show the starting template without installing it
helm template common/operator-install/ --name-template $(NAME) $(HELM_OPTS)

preview-all:
@common/scripts/preview-all.sh $(TARGET_REPO) $(TARGET_BRANCH)

preview-%:
CLUSTERGROUP?=$(shell yq ".main.clusterGroupName" values-global.yaml)
@common/scripts/preview.sh $(CLUSTERGROUP) $* $(TARGET_REPO) $(TARGET_BRANCH)

.PHONY: operator-deploy
operator-deploy operator-upgrade: validate-prereq validate-origin validate-cluster ## runs helm install
@set -e -o pipefail
Expand Down
4 changes: 2 additions & 2 deletions common/acm/.github/workflows/update-helm-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ on:

jobs:
helmlint:
uses: validatedpatterns/helm-charts/.github/workflows/helmlint.yml@main
uses: validatedpatterns/helm-charts/.github/workflows/helmlint.yml@985ba37e0eb50b1b35ec194fc999eae2d0ae1486
permissions:
contents: read

update-helm-repo:
needs: [helmlint]
uses: validatedpatterns/helm-charts/.github/workflows/update-helm-repo.yml@main
uses: validatedpatterns/helm-charts/.github/workflows/update-helm-repo.yml@985ba37e0eb50b1b35ec194fc999eae2d0ae1486
permissions: read-all
secrets: inherit
161 changes: 161 additions & 0 deletions common/acm/templates/policies/private-repo-policies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
# We copy the vp-private-repo-credentials from the "openshift-gitops" namespace
# to the "open-cluster-management" via the "private-hub-policy"
#
# Then we copy the secret from the "open-cluster-management" namespace to the
# managed clusters "openshift-gitops" instance
#
# And we also copy the same secret to the namespaced argo's namespace
{{ if $.Values.global.privateRepo }}
{{ if .Values.clusterGroup.isHubCluster }}
---
apiVersion: policy.open-cluster-management.io/v1
kind: Policy
metadata:
name: private-hub-policy
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
argocd.argoproj.io/compare-options: IgnoreExtraneous
spec:
remediationAction: enforce
disabled: false
policy-templates:
- objectDefinition:
apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
name: private-hub-config
spec:
remediationAction: enforce
severity: medium
namespaceSelector:
include:
- default
object-templates:
- complianceType: mustonlyhave
objectDefinition:
kind: Secret
apiVersion: v1
type: Opaque
metadata:
name: vp-private-repo-credentials
namespace: open-cluster-management
labels:
argocd.argoproj.io/secret-type: repository
data: '{{ `{{copySecretData "openshift-gitops" "vp-private-repo-credentials"}}` }}'
---
apiVersion: policy.open-cluster-management.io/v1
kind: PlacementBinding
metadata:
name: private-hub-placement-binding
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
placementRef:
name: private-hub-placement
kind: PlacementRule
apiGroup: apps.open-cluster-management.io
subjects:
- name: private-hub-policy
kind: Policy
apiGroup: policy.open-cluster-management.io
---
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
name: private-hub-placement
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
spec:
clusterConditions:
- status: 'True'
type: ManagedClusterConditionAvailable
clusterSelector:
matchExpressions:
- key: local-cluster
operator: In
values:
- 'true'
---
{{ end }}{{- /* if .Values.clusterGroup.isHubCluster */}}
{{- range .Values.clusterGroup.managedClusterGroups }}
{{- $group := . }}
{{- if not .hostedArgoSites }}
apiVersion: policy.open-cluster-management.io/v1
kind: Policy
metadata:
name: private-{{ .name }}-policy
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
argocd.argoproj.io/compare-options: IgnoreExtraneous
spec:
remediationAction: enforce
disabled: false
policy-templates:
- objectDefinition:
apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
name: private-{{ .name }}-config
spec:
remediationAction: enforce
severity: medium
namespaceSelector:
include:
- default
object-templates:
- complianceType: mustonlyhave
objectDefinition:
kind: Secret
apiVersion: v1
type: Opaque
metadata:
name: vp-private-repo-credentials
namespace: openshift-gitops
labels:
argocd.argoproj.io/secret-type: repository
data: '{{ `{{hub copySecretData "open-cluster-management" "vp-private-repo-credentials" hub}}` }}'
- complianceType: mustonlyhave
objectDefinition:
kind: Secret
apiVersion: v1
type: Opaque
metadata:
name: vp-private-repo-credentials
namespace: {{ $.Values.global.pattern }}-{{ .name }}
labels:
argocd.argoproj.io/secret-type: repository
data: '{{ `{{hub copySecretData "open-cluster-management" "vp-private-repo-credentials" hub}}` }}'
---
apiVersion: policy.open-cluster-management.io/v1
kind: PlacementBinding
metadata:
name: private-{{ .name }}-placement-binding
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
placementRef:
name: private-{{ .name }}-placement
kind: PlacementRule
apiGroup: apps.open-cluster-management.io
subjects:
- name: private-{{ .name }}-policy
kind: Policy
apiGroup: policy.open-cluster-management.io
---
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
name: private-{{ .name }}-placement
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
spec:
clusterConditions:
- status: 'True'
type: ManagedClusterConditionAvailable
clusterSelector:
matchExpressions:
- key: local-cluster
operator: NotIn
values:
- 'true'
{{- end }}{{- /* if not .hostedArgoSites */}}
{{- end }}{{- /* range .Values.clusterGroup.managedClusterGroups */}}
{{- end }}{{- /* if $.Values.global.privateRepo */}}
2 changes: 1 addition & 1 deletion common/ansible/roles/iib_ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export CHANNEL=$(oc get -n openshift-marketplace packagemanifests -l "catalog=ii
make EXTRA_HELM_OPTS="--set main.extraParameters[0].name=clusterGroup.subscriptions.acm.source --set main.extraParameters[0].value=iib-${IIB} --set main.extraParameters[1].name=clusterGroup.subscriptions.acm.channel --set main.extraParameters[1].value=${CHANNEL}" install
```

*Note*: This needs VP operator version >= 0.0.14
*Note*: In this case `acm` is the name of the subscription in `values-hub.yaml`

### OCP 4.13 and onwards

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
image_urls: "{{ image_urls | default({}) | combine({item:
{'mirrordest': mirror_dest + item | basename,
'mirrordest_nosha': (mirror_dest + item | basename) | regex_replace('@.*$', ''),
'mirrordest_tag': iib}}, recursive=true) }}"
'mirrordest_tag': 'tag-' + item | basename | regex_replace('^.*@sha256:', '')}}, recursive=true) }}"
loop: "{{ all_images }}"
when: use_internal_registry

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ spec:
- mirrors:
- {{ item.mirrordest_nosha }}
source: {{ item.source_nosha }}
mirrorSourcePolicy: NeverContactSource
mirrorSourcePolicy: AllowContactingSource
- mirrors:
- {{ item.mirrordest_nosha }}
source: {{ item.image_nosha }}
mirrorSourcePolicy: NeverContactSource
mirrorSourcePolicy: AllowContactingSource
{% endfor %}
4 changes: 3 additions & 1 deletion common/ansible/roles/vault_utils/tasks/push_secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
command:
sh -c "vault list auth/{{ vault_hub }}/role | grep '{{ vault_hub }}-role'"
register: vault_role_cmd
until: vault_role_cmd.rc == 0
until:
- vault_role_cmd.rc is defined
- vault_role_cmd.rc == 0
retries: 20
delay: 45
changed_when: false
Expand Down
5 changes: 3 additions & 2 deletions common/clustergroup/.github/workflows/update-helm-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# - Contents: r/w
# - Deployments: r/w
# - Pages: r/w
#

name: vp-patterns/update-helm-repo
on:
Expand All @@ -18,12 +19,12 @@ on:

jobs:
helmlint:
uses: validatedpatterns/helm-charts/.github/workflows/helmlint.yml@main
uses: validatedpatterns/helm-charts/.github/workflows/helmlint.yml@985ba37e0eb50b1b35ec194fc999eae2d0ae1486
permissions:
contents: read

update-helm-repo:
needs: [helmlint]
uses: validatedpatterns/helm-charts/.github/workflows/update-helm-repo.yml@main
uses: validatedpatterns/helm-charts/.github/workflows/update-helm-repo.yml@985ba37e0eb50b1b35ec194fc999eae2d0ae1486
permissions: read-all
secrets: inherit
2 changes: 1 addition & 1 deletion common/clustergroup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ description: A Helm chart to create per-clustergroup ArgoCD applications and any
keywords:
- pattern
name: clustergroup
version: 0.0.4
version: 0.8.2
2 changes: 2 additions & 0 deletions common/clustergroup/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Default always defined top-level variables for helm charts
value: {{ $.Values.global.hubClusterDomain }}
- name: global.localClusterDomain
value: {{ coalesce $.Values.global.localClusterDomain $.Values.global.hubClusterDomain }}
- name: global.privateRepo
value: {{ $.Values.global.privateRepo | quote }}
{{- end }} {{/* clustergroup.globalvaluesparameters */}}


Expand Down
10 changes: 8 additions & 2 deletions common/clustergroup/templates/core/operatorgroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,23 @@

{{- if kindIs "map" $ns }}
{{- range $k, $v := $ns }}{{- /* We loop here even though the map has always just one key */}}

{{- if $v.operatorGroup }}{{- /* Checks if the user sets operatorGroup: false */}}
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: {{ $k }}-operator-group
namespace: {{ $k }}
spec:
targetNamespaces:
{{- if (hasKey $v "targetNamespaces") }}
{{- range $v.targetNamespaces }}{{- /* We loop through the list of tergetnamespaces */}}
- {{ . }}
{{- end }}{{- /* End range targetNamespaces */}}
{{- else }}
- {{ $k }}
{{- end }}{{- /* End of if operatorGroup */}}
{{- end }}{{- /* range $k, $v := $ns */}}

{{- end }}{{- /* End of if operatorGroup */}}
{{- else if kindIs "string" $ns }}
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
Expand Down
29 changes: 28 additions & 1 deletion common/clustergroup/templates/imperative/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Pseudo-code
# 1. Get the pattern's CR
# 2. If there is a secret called vp-private-repo-credentials in the current namespace, fetch it
# 3. If it is an http secret, generate the correct URL
# 4. If it is an ssh secret, create the private ssh key and make sure the git clone works

{{/* git-init InitContainer */}}
{{- define "imperative.initcontainers.gitinit" }}
- name: git-init
Expand All @@ -9,7 +15,28 @@
command:
- 'sh'
- '-c'
- "mkdir /git/{repo,home};git clone --single-branch --branch {{ $.Values.global.targetRevision }} --depth 1 -- {{ $.Values.global.repoURL }} /git/repo;chmod 0770 /git/{repo,home}"
- >-
if ! oc get secrets -n openshift-gitops vp-private-repo-credentials &> /dev/null; then
URL="{{ $.Values.global.repoURL }}";
else
if ! oc get secrets -n openshift-gitops vp-private-repo-credentials -o go-template='{{ `{{index .data.sshPrivateKey | base64decode}}` }}' &>/dev/null; then
U="$(oc get secret -n openshift-gitops vp-private-repo-credentials -o go-template='{{ `{{index .data.username | base64decode }}` }}')";
P="$(oc get secret -n openshift-gitops vp-private-repo-credentials -o go-template='{{ `{{index .data.password | base64decode }}` }}')";
URL=$(echo {{ $.Values.global.repoURL }} | sed -E "s/(https?:\/\/)/\1${U}:${P}@/");
echo "USER/PASS: ${URL}";
else
S="$(oc get secret -n openshift-gitops vp-private-repo-credentials -o go-template='{{ `{{index .data.sshPrivateKey | base64decode }}` }}')";
mkdir -p --mode 0700 "${HOME}/.ssh";
echo "${S}" > "${HOME}/.ssh/id_rsa";
chmod 0600 "${HOME}/.ssh/id_rsa";
URL=$(echo {{ $.Values.global.repoURL }} | sed -E "s/(https?:\/\/)/\1git@/");
git config --global core.sshCommand "ssh -i "${HOME}/.ssh/id_rsa" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no";
echo "SSH: ${URL}";
fi;
fi;
mkdir /git/{repo,home};
git clone --single-branch --branch {{ $.Values.global.targetRevision }} --depth 1 -- "${URL}" /git/repo;
chmod 0770 /git/{repo,home};
volumeMounts:
- name: git
mountPath: "/git"
Expand Down
12 changes: 12 additions & 0 deletions common/clustergroup/templates/plumbing/argocd-cmp-plugin-cms.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- range $cmp := $.Values.clusterGroup.argoCD.configManagementPlugins }}
{{- if $cmp.pluginConfig }}
---
kind: ConfigMap
apiVersion: v1
metadata:
name: "argocd-cmp-{{ $cmp.name }}"
namespace: {{ $.Values.global.pattern }}-{{ $.Values.clusterGroup.name }}
data:
"plugin.yaml": | {{ tpl $cmp.pluginConfig $ | nindent 4 }}
{{- end }}
{{- end }}
Loading
Loading