-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement prototype overwrites in the envs tree (#110)
Makes configuration at environment group level for multiple apps installed to the same environment possible. Does so, by using the directory structure in the "prototypes" folder to look for helm and ytt configuration at env group level. closes #109
- Loading branch information
1 parent
8b44de6
commit c3e550d
Showing
56 changed files
with
455 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: v0.0.1 | ||
description: Local Helm chart to test rendering. | ||
name: local-renderer | ||
version: 0.0.1 |
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,5 @@ | ||
kind: rendering | ||
metadata: | ||
name: render-test | ||
outputYaml: | ||
{{ toYaml .Values.outputYaml | indent 2 }} |
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,2 @@ | ||
outputYaml: | ||
fromChartDefaultValues: true |
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 @@ | ||
**/.myks/tmp/ |
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,7 @@ | ||
--- | ||
# Sets the number of applications to be processed in parallel. | ||
# The default (0) is no limit. | ||
async: 0 | ||
# One of the zerolog log levels. | ||
# See: https://github.com/rs/zerolog#leveled-logging | ||
log-level: info |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/_apps/helm-installation/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
envGroupValue: true |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/_apps/helm-installation/helm/render-test.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,5 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
outputYaml: | ||
fromEnvGroup: true | ||
fromEnvGroupAppData: #@ data.values.application.envGroupValue |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/_apps/ytt-installation/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
envGroupValue: true |
8 changes: 8 additions & 0 deletions
8
examples/inheritance-test/envs/_apps/ytt-installation/ytt/app.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,8 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
kind: rendering | ||
metadata: | ||
name: env-group | ||
outputYaml: | ||
fromEnvGroup: true | ||
fromEnvGroupAppData: #@ data.values.application.envGroupValue |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/_proto/helm-render-test/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
protoOverwriteValue: true |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/_proto/helm-render-test/helm/render-test.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,5 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
outputYaml: | ||
fromPrototypeOverride: true | ||
fromPrototypeOverrideFromAppData: #@ data.values.application.protoOverwriteValue |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/_proto/ytt-render-test/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
protoOverwriteValue: true |
8 changes: 8 additions & 0 deletions
8
examples/inheritance-test/envs/_proto/ytt-render-test/ytt/proto.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,8 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
kind: rendering | ||
metadata: | ||
name: proto | ||
outputYaml: | ||
fromPrototypeOverride: true | ||
fromPrototypeOverrideFromAppData: #@ data.values.application.protoOverwriteValue |
9 changes: 9 additions & 0 deletions
9
examples/inheritance-test/envs/dev/_apps/helm-installation/.myks/helm/render-test.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,9 @@ | ||
outputYaml: | ||
fromPrototype: true | ||
fromPrototypeAppData: true | ||
fromPrototypeOverride: true | ||
fromPrototypeOverrideFromAppData: true | ||
fromEnvGroup: true | ||
fromEnvGroupAppData: true | ||
fromAppConfig: true | ||
fromAppConfigAppData: true |
7 changes: 7 additions & 0 deletions
7
examples/inheritance-test/envs/dev/_apps/helm-installation/.myks/vendir.lock.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,7 @@ | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
directories: | ||
- contents: | ||
- directory: {} | ||
path: . | ||
path: charts/render-test | ||
kind: LockConfig |
1 change: 1 addition & 0 deletions
1
examples/inheritance-test/envs/dev/_apps/helm-installation/.myks/vendir.sync.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 @@ | ||
charts/render-test: f6e95b613adfa1959faef2c0d661b198dcfa7b9058d89dd76418ed58d67b5f95 |
9 changes: 9 additions & 0 deletions
9
examples/inheritance-test/envs/dev/_apps/helm-installation/.myks/vendir.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,9 @@ | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
kind: Config | ||
directories: | ||
- path: charts/render-test | ||
contents: | ||
- path: . | ||
directory: | ||
name: render-test | ||
path: ../../../../../../charts/render-test-chart |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/dev/_apps/helm-installation/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
appValue: true |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/dev/_apps/helm-installation/helm/render-test.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,5 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
outputYaml: | ||
fromAppConfig: true | ||
fromAppConfigAppData: #@ data.values.application.appValue |
5 changes: 5 additions & 0 deletions
5
...es/inheritance-test/envs/dev/_apps/helm-installation/vendor/charts/render-test/Chart.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,5 @@ | ||
apiVersion: v1 | ||
appVersion: v0.0.1 | ||
description: Local Helm chart to test rendering. | ||
name: local-renderer | ||
version: 0.0.1 |
5 changes: 5 additions & 0 deletions
5
...nce-test/envs/dev/_apps/helm-installation/vendor/charts/render-test/templates/output.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,5 @@ | ||
kind: rendering | ||
metadata: | ||
name: render-test | ||
outputYaml: | ||
{{ toYaml .Values.outputYaml | indent 2 }} |
2 changes: 2 additions & 0 deletions
2
...s/inheritance-test/envs/dev/_apps/helm-installation/vendor/charts/render-test/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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
outputYaml: | ||
fromChartDefaultValues: true |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/dev/_apps/ytt-installation/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
appValue: true |
8 changes: 8 additions & 0 deletions
8
examples/inheritance-test/envs/dev/_apps/ytt-installation/ytt/app.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,8 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
kind: rendering | ||
metadata: | ||
name: app | ||
outputYaml: | ||
fromAppConfig: true | ||
fromAppConfigAppData: #@ data.values.application.appValue |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/dev/_proto/helm-render-test/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
protoOverwriteValue: true |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/dev/_proto/helm-render-test/helm/render-test.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,5 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
outputYaml: | ||
fromPrototypeOverride: true | ||
fromPrototypeOverrideFromAppData: #@ data.values.application.protoOverwriteValue |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/envs/dev/_proto/ytt-render-test/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
protoOverwriteValue: true |
8 changes: 8 additions & 0 deletions
8
examples/inheritance-test/envs/dev/_proto/ytt-render-test/ytt/proto.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,8 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
kind: rendering | ||
metadata: | ||
name: proto | ||
outputYaml: | ||
fromPrototypeOverride: true | ||
fromPrototypeOverrideFromAppData: #@ data.values.application.protoOverwriteValue |
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,11 @@ | ||
#@data/values | ||
--- | ||
environment: | ||
id: mykso-dev | ||
#! applications: # already defined one level above | ||
#! - proto: httpbingo # already defined one level above | ||
applications: | ||
- proto: helm-render-test | ||
name: helm-installation | ||
- proto: ytt-render-test | ||
name: ytt-installation |
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,28 @@ | ||
#! This is an example of a data values file for the root environment. | ||
#! All nested environments inherit these values. The values can be overridden in nested environments. | ||
#! This file is a good place to define default values for all environments. | ||
#! | ||
#! To change the schema of the data values, use `data/values-schema` annotation instead of `data/values`. | ||
#! Refer to the documentation of ytt overlays and data values for more information. | ||
|
||
#@data/values | ||
--- | ||
argocd: | ||
namespace: system-argocd | ||
app: | ||
prefix: app- | ||
#! Disable finalizers to preserve resources after deleting the ArgoCD application. | ||
finalizers: [] | ||
source: | ||
plugin: | ||
name: argocd-vault-plugin-v1.0.0 | ||
#! Fixed config to run tests successfull in pipeline | ||
targetRevision: main | ||
repoURL: [email protected]:mykso/myks.git | ||
project: | ||
prefix: env- | ||
|
||
#! Fixed git config to run tests successfull in pipeline. | ||
myks: | ||
gitRepoBranch: "main" | ||
gitRepoUrl: "[email protected]:mykso/myks.git" |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/prototypes/helm-render-test/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
baseValue: true |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/prototypes/helm-render-test/helm/render-test.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,5 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
outputYaml: | ||
fromPrototype: true | ||
fromPrototypeAppData: #@ data.values.application.baseValue |
13 changes: 13 additions & 0 deletions
13
examples/inheritance-test/prototypes/helm-render-test/vendir/base.ytt.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,13 @@ | ||
#@ load("@ytt:data", "data") | ||
|
||
#@ app = data.values.application | ||
--- | ||
apiVersion: vendir.k14s.io/v1alpha1 | ||
kind: Config | ||
directories: | ||
- path: #@ "charts/" + app.name | ||
contents: | ||
- path: . | ||
directory: | ||
name: #@ app.name | ||
path: ../../../../../../charts/render-test-chart |
9 changes: 9 additions & 0 deletions
9
examples/inheritance-test/prototypes/helm-render-test/vendir/vendir-data.ytt.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,9 @@ | ||
#@data/values-schema | ||
--- | ||
#@overlay/match-child-defaults missing_ok=True | ||
application: | ||
#! WARNING: The order of the keys (alphabetical) is important for renovate. | ||
#! When changed, renovate won't be able to detect the new version. | ||
#! See renovate.json for more details. | ||
#! renovate: datasource=helm | ||
name: render-test |
5 changes: 5 additions & 0 deletions
5
examples/inheritance-test/prototypes/ytt-render-test/app-data.ytt.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,5 @@ | ||
#@data/values-schema | ||
#@overlay/match-child-defaults missing_ok=True | ||
--- | ||
application: | ||
baseValue: true |
8 changes: 8 additions & 0 deletions
8
examples/inheritance-test/prototypes/ytt-render-test/ytt/base.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,8 @@ | ||
#@ load("@ytt:data", "data") | ||
--- | ||
kind: rendering | ||
metadata: | ||
name: base | ||
outputYaml: | ||
fromPrototype: true | ||
fromPrototypeAppData: #@ data.values.application.baseValue |
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,9 @@ | ||
# Inheritance test | ||
|
||
This examples tests the full power of myks inheritance for helm and ytt rendering leveraging: | ||
|
||
- config from the base app | ||
- config from environment group level | ||
- config from application level | ||
|
||
Both environment group level and application level are rendering with prototype override config as well as appliction specific config. |
25 changes: 25 additions & 0 deletions
25
examples/inheritance-test/rendered/argocd/mykso-dev/app-helm-installation.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,25 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: app-mykso-dev-helm-installation | ||
namespace: system-argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: env-mykso-dev | ||
destination: | ||
name: mykso-dev | ||
namespace: helm-installation | ||
source: | ||
path: examples/inheritance-test/rendered/envs/mykso-dev/helm-installation | ||
plugin: | ||
name: argocd-vault-plugin-v1.0.0 | ||
repoURL: [email protected]:mykso/myks.git | ||
targetRevision: main | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
- ServerSideApply=true |
25 changes: 25 additions & 0 deletions
25
examples/inheritance-test/rendered/argocd/mykso-dev/app-ytt-installation.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,25 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: app-mykso-dev-ytt-installation | ||
namespace: system-argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: env-mykso-dev | ||
destination: | ||
name: mykso-dev | ||
namespace: ytt-installation | ||
source: | ||
path: examples/inheritance-test/rendered/envs/mykso-dev/ytt-installation | ||
plugin: | ||
name: argocd-vault-plugin-v1.0.0 | ||
repoURL: [email protected]:mykso/myks.git | ||
targetRevision: main | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
- ServerSideApply=true |
33 changes: 33 additions & 0 deletions
33
examples/inheritance-test/rendered/argocd/mykso-dev/env-mykso-dev.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,33 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: env-mykso-dev | ||
namespace: system-argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
description: Project for "mykso-dev" environment | ||
clusterResourceWhitelist: | ||
- group: '*' | ||
kind: '*' | ||
destinations: | ||
- namespace: '*' | ||
name: mykso-dev | ||
namespaceResourceWhitelist: | ||
- group: '*' | ||
kind: '*' | ||
sourceRepos: | ||
- '*' | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
labels: | ||
argocd.argoproj.io/secret-type: cluster | ||
name: mykso-dev | ||
namespace: system-argocd | ||
stringData: | ||
config: ARGOCD_CLUSTER_CONNECT_CONFIG | ||
name: mykso-dev | ||
project: env-mykso-dev | ||
server: ARGOCD_CLUSTER_SERVER_URL |
13 changes: 13 additions & 0 deletions
13
...les/inheritance-test/rendered/envs/mykso-dev/helm-installation/rendering-render-test.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,13 @@ | ||
kind: rendering | ||
metadata: | ||
name: render-test | ||
outputYaml: | ||
fromAppConfig: true | ||
fromAppConfigAppData: true | ||
fromChartDefaultValues: true | ||
fromEnvGroup: true | ||
fromEnvGroupAppData: true | ||
fromPrototype: true | ||
fromPrototypeAppData: true | ||
fromPrototypeOverride: true | ||
fromPrototypeOverrideFromAppData: true |
6 changes: 6 additions & 0 deletions
6
examples/inheritance-test/rendered/envs/mykso-dev/ytt-installation/rendering-app.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,6 @@ | ||
kind: rendering | ||
metadata: | ||
name: app | ||
outputYaml: | ||
fromAppConfig: true | ||
fromAppConfigAppData: true |
6 changes: 6 additions & 0 deletions
6
examples/inheritance-test/rendered/envs/mykso-dev/ytt-installation/rendering-base.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,6 @@ | ||
kind: rendering | ||
metadata: | ||
name: base | ||
outputYaml: | ||
fromPrototype: true | ||
fromPrototypeAppData: true |
Oops, something went wrong.