Skip to content

Commit 462fde1

Browse files
add with statements around project templates for source/destinations (argoproj#1678)
Signed-off-by: lukepatrick <[email protected]> Signed-off-by: lukepatrick <[email protected]> Co-authored-by: Petr Drastil <[email protected]>
1 parent 48e16ab commit 462fde1

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
run: |
7171
helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
7272
helm dependency build charts/argo-cd/
73-
helm template charts/argo-cd/ -s templates/crds/* | kubectl apply -f -
73+
helm template charts/argo-cd/ --set server.extensions.enabled=true -s templates/crds/* | kubectl apply -f -
7474
7575
- name: Skip HPA tests of ArgoCD
7676
if: contains(steps.list-changed.outputs.changed_charts, 'argo-cd')

charts/argocd-apps/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: argocd-apps
33
description: A Helm chart for managing additional Argo CD Applications and Projects
44
type: application
5-
version: 0.0.3
5+
version: 0.0.4
66
home: https://github.com/argoproj/argo-helm
77
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
88
keywords:
@@ -14,4 +14,4 @@ maintainers:
1414
url: https://argoproj.github.io/
1515
annotations:
1616
artifacthub.io/changes: |
17-
- "[Added]: Add Extensions"
17+
- "[Changed]: Projects templates"

charts/argocd-apps/templates/projects.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ metadata:
2323
{{- end }}
2424
spec:
2525
description: {{ .description }}
26+
{{- with .sourceRepos }}
2627
sourceRepos:
27-
{{- toYaml .sourceRepos | nindent 4 }}
28+
{{- toYaml . | nindent 4 }}
29+
{{- end }}
30+
{{- with .destinations }}
2831
destinations:
29-
{{- toYaml .destinations | nindent 4 }}
32+
{{- toYaml . | nindent 4 }}
33+
{{- end }}
3034
{{- with .clusterResourceWhitelist }}
3135
clusterResourceWhitelist:
3236
{{- toYaml . | nindent 4 }}

0 commit comments

Comments
 (0)