Skip to content

Commit 950aae1

Browse files
committed
feat: add helm chart
Signed-off-by: emirot <emirot.nolan@gmail.com>
1 parent 60b14fb commit 950aae1

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/chart-diff.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ jobs:
5555
5656
- name: Remove example blocks from generated CRDs
5757
run: |
58-
sed -i '' 's/{{- if eq \(.Environment\)/{{ `{{- if eq .Environment` }}/g; s/{{- else if eq \(.Environment\)/{{ `{{- else if eq .Environment` }}/g; s/{{- end -}}/{{ `{{- end -}}` }}/g; s/{{- range \$key, \$value := \.ArgoCDCommitStatus/{{ `{{- range $key, $value := .ArgoCDCommitStatus` }}/g' current-repo/chart/templates/crd/argocdcommitstatuses.promoter.argoproj.io.yaml
58+
cat current-repo/chart/templates/crd/argocdcommitstatuses.promoter.argoproj.io.yaml
59+
# sed -i '' 's/{{- if eq \(.Environment\)/{{ `{{- if eq .Environment` }}/g; s/{{- else if eq \(.Environment\)/{{ `{{- else if eq .Environment` }}/g; s/{{- end -}}/{{ `{{- end -}}` }}/g; s/{{- range \$key, \$value := \.ArgoCDCommitStatus/{{ `{{- range $key, $value := .ArgoCDCommitStatus` }}/g' current-repo/chart/templates/crd/argocdcommitstatuses.promoter.argoproj.io.yaml
60+
sed -i 's/{{- if eq \(.Environment\)/{{ `{{- if eq .Environment` }}/g; s/{{- else if eq \(.Environment\)/{{ `{{- else if eq .Environment` }}/g; s/{{- end -}}/{{ `{{- end -}}` }}/g; s/{{- range \$key, \$value := \.ArgoCDCommitStatus/{{ `{{- range $key, $value := .ArgoCDCommitStatus` }}/g' current-repo/chart/templates/crd/argocdcommitstatuses.promoter.argoproj.io.yaml
5961

6062

6163
- name: Diff charts

chart/templates/crd/argocdcommitstatuses.promoter.argoproj.io.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,17 @@ spec:
138138
Example:
139139
140140
{{ "{{- $baseURL := \"https://dev.argocd.local\" -}}" }}
141-
{{- if eq .Environment "environment/development" -}}
141+
{{ `{{- if eq .Environment` }} "environment/development" -}}
142142
{{ "{{- $baseURL = \"https://dev.argocd.local\" -}}" }}
143-
{{- else if eq .Environment "environment/staging" -}}
143+
{{ `{{- else if eq .Environment` }} "environment/staging" -}}
144144
{{ "{{- $baseURL = \"https://staging.argocd.local\" -}}" }}
145-
{{- else if eq .Environment "environment/production" -}}
145+
{{ `{{- else if eq .Environment` }} "environment/production" -}}
146146
{{ "{{- $baseURL = \"https://prod.argocd.local\" -}}" }}
147-
{{- end -}}
147+
{{ `{{- end -}}` }}
148148
{{ "{{- $labels := \"\" -}}" }}
149-
{{- range $key, $value := .ArgoCDCommitStatus.Spec.ApplicationSelector.MatchLabels -}}
149+
{{ `{{- range $key, $value := .ArgoCDCommitStatus` }}.Spec.ApplicationSelector.MatchLabels -}}
150150
{{ "{{- $labels = printf \"%s%s=%s,\" $labels $key $value -}}" }}
151-
{{- end -}}
151+
{{ `{{- end -}}` }}
152152
{{ "{{ printf \"%s/applications?labels=%s\" $baseURL (urlQueryEscape $labels) }}" }}
153153
type: string
154154
type: object

0 commit comments

Comments
 (0)