-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the team should not need to set a unique appName, so we need to prefi…
…x the team name. also add some example values to explain it better Signed-off-by: Johannes Kleinlercher <[email protected]>
- Loading branch information
1 parent
77700fc
commit ba84f4a
Showing
3 changed files
with
28 additions
and
3 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
24 changes: 24 additions & 0 deletions
24
team-apps/onboarding-apps-charts/multi-stage-app-with-kargo-pipeline/values-example.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,24 @@ | ||
teamName: team1 | ||
appProject: "{{ .Values.teamName }}-project" | ||
appName: multi-stage-app | ||
repoUrl: https://github.com/suxess-it/sx-cnp-oss-demo-app | ||
# since a kargo project is a cluster-scoped resource it needs a unique name | ||
# however, in a app-in-any-namespace feature the appName doesn't need to be unique in the cluster | ||
# so we add the team as an extra prefix to get a unique name | ||
kargoProject: "{{ .Values.teamName }}-{{ .Values.appName }}-kargo-project" | ||
createAppNamespace: true | ||
stages: | ||
- name: "test" | ||
subscriptions: | ||
# be aware that you MUST currently name the warehouse "warehouse-{{ .Values.appName }}" | ||
# because it gets created with this name implicitly. | ||
# todo: give the user the option to define the warehouse as he likes it | ||
warehouse: "warehouse-{{ .Values.appName }}" | ||
- name: "qa" | ||
subscriptions: | ||
upstreamStages: | ||
- name: test | ||
- name: "prod" | ||
subscriptions: | ||
upstreamStages: | ||
- name: qa |
5 changes: 3 additions & 2 deletions
5
team-apps/onboarding-apps-charts/multi-stage-app-with-kargo-pipeline/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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
appProject: ~ | ||
teamName: ~ | ||
appProject: "{{ .Values.teamName }}-project" | ||
appName: ~ | ||
repoUrl: ~ | ||
# maybe also the kargo project is something implicit which we don't need to specify here | ||
# it depends if some apps need to share a kargoProject or not, | ||
# but currently it seems to be a 1:1 relation between appName and kargoProject | ||
kargoProject: "{{ .Values.appName }}-kargo-project" | ||
kargoProject: "{{ .Values.teamName }}-{{ .Values.appName }}-kargo-project" | ||
createAppNamespace: true | ||
stages: [] |