Skip to content

Commit 70f7002

Browse files
committed
feat: add helm chart
Signed-off-by: emirot <emirot.nolan@gmail.com>
1 parent 66324d5 commit 70f7002

6 files changed

Lines changed: 45 additions & 3 deletions

.github/workflows/chart-diff.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
env:
1414
KUBEBUILDER_VERSION: v4.11.1
15-
GITOPS_PROMOTER_VERSION: e783f3e7c7bebf393659d5cd7b5f568d96d32efc # latest will be pinned to next release
15+
GITOPS_PROMOTER_VERSION: v0.21.0
1616

1717
jobs:
1818
chart-diff:

.github/workflows/ci.yaml.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
4141
- name: Verify installation
4242
run: |
43-
helm list -n promoter-system
4443
kubectl get pods -n promoter-system
4544
kubectl wait --for=condition=Ready pods --all -n promoter-system --timeout=120s
4645
kubectl get all -n promoter-system

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,21 @@ spec:
135135
is available to escape url query parameters. The template can be configured with options to control the behavior
136136
during execution if a variable is not present.
137137
138+
Example:
139+
140+
{{ "{{- $baseURL := \"https://dev.argocd.local\" -}}" }}
141+
{{- if eq .Environment "environment/development" -}}
142+
{{ "{{- $baseURL = \"https://dev.argocd.local\" -}}" }}
143+
{{- else if eq .Environment "environment/staging" -}}
144+
{{ "{{- $baseURL = \"https://staging.argocd.local\" -}}" }}
145+
{{- else if eq .Environment "environment/production" -}}
146+
{{ "{{- $baseURL = \"https://prod.argocd.local\" -}}" }}
147+
{{- end -}}
148+
{{ "{{- $labels := \"\" -}}" }}
149+
{{- range $key, $value := .ArgoCDCommitStatus.Spec.ApplicationSelector.MatchLabels -}}
150+
{{ "{{- $labels = printf \"%s%s=%s,\" $labels $key $value -}}" }}
151+
{{- end -}}
152+
{{ "{{ printf \"%s/applications?labels=%s\" $baseURL (urlQueryEscape $labels) }}" }}
138153
type: string
139154
type: object
140155
required:

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ spec:
125125
items:
126126
description: ChangeRequestPolicyCommitStatusPhase defines the phase of a commit status in a ChangeTransferPolicy.
127127
properties:
128+
description:
129+
description: Description is the description of the commit status
130+
type: string
128131
key:
129132
description: Key staging hydrated branch
130133
maxLength: 63
@@ -440,6 +443,9 @@ spec:
440443
items:
441444
description: ChangeRequestPolicyCommitStatusPhase defines the phase of a commit status in a ChangeTransferPolicy.
442445
properties:
446+
description:
447+
description: Description is the description of the commit status
448+
type: string
443449
key:
444450
description: Key staging hydrated branch
445451
maxLength: 63
@@ -688,6 +694,9 @@ spec:
688694
items:
689695
description: ChangeRequestPolicyCommitStatusPhase defines the phase of a commit status in a ChangeTransferPolicy.
690696
properties:
697+
description:
698+
description: Description is the description of the commit status
699+
type: string
691700
key:
692701
description: Key staging hydrated branch
693702
maxLength: 63
@@ -836,6 +845,9 @@ spec:
836845
items:
837846
description: ChangeRequestPolicyCommitStatusPhase defines the phase of a commit status in a ChangeTransferPolicy.
838847
properties:
848+
description:
849+
description: Description is the description of the commit status
850+
type: string
839851
key:
840852
description: Key staging hydrated branch
841853
maxLength: 63

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ spec:
5858
description: CommitStatusSpec defines the desired state of CommitStatus
5959
properties:
6060
description:
61-
description: Description is a short description of the commit status.
61+
description: |-
62+
Description is a human-readable description of the commit status.
63+
This is shown in the SCM provider (GitHub, GitLab, etc.) as the commit status description.
64+
Use an action-oriented message to convey that the system is actively working. For example,
65+
"Waiting for approval" instead of "Approval pending."
6266
type: string
6367
gitRepositoryRef:
6468
description: ObjectReference is a reference to an object by name. It is used to refer to objects in the same namespace.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ spec:
247247
items:
248248
description: ChangeRequestPolicyCommitStatusPhase defines the phase of a commit status in a ChangeTransferPolicy.
249249
properties:
250+
description:
251+
description: Description is the description of the commit status
252+
type: string
250253
key:
251254
description: Key staging hydrated branch
252255
maxLength: 63
@@ -507,6 +510,9 @@ spec:
507510
items:
508511
description: ChangeRequestPolicyCommitStatusPhase defines the phase of a commit status in a ChangeTransferPolicy.
509512
properties:
513+
description:
514+
description: Description is the description of the commit status
515+
type: string
510516
key:
511517
description: Key staging hydrated branch
512518
maxLength: 63
@@ -755,6 +761,9 @@ spec:
755761
items:
756762
description: ChangeRequestPolicyCommitStatusPhase defines the phase of a commit status in a ChangeTransferPolicy.
757763
properties:
764+
description:
765+
description: Description is the description of the commit status
766+
type: string
758767
key:
759768
description: Key staging hydrated branch
760769
maxLength: 63
@@ -924,6 +933,9 @@ spec:
924933
items:
925934
description: ChangeRequestPolicyCommitStatusPhase defines the phase of a commit status in a ChangeTransferPolicy.
926935
properties:
936+
description:
937+
description: Description is the description of the commit status
938+
type: string
927939
key:
928940
description: Key staging hydrated branch
929941
maxLength: 63

0 commit comments

Comments
 (0)