-
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.
fix: make components & checkPaths optional, update examples
- Loading branch information
nxcc
committed
Feb 3, 2023
1 parent
9d51734
commit 3abb710
Showing
14 changed files
with
73 additions
and
30 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 @@ | ||
cuegen: objectsPath: "objects" |
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
examples/control-repository/control/dev-cluster/wekan-dev/cuegen.cue
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,12 @@ | ||
cuegen: { | ||
objectsPath: "objects" | ||
secretDataPath: "secret.*.data" | ||
checkPaths: [ | ||
"values", | ||
"global", | ||
] | ||
components: [ | ||
"../../../charts/mongodb", | ||
"../../../charts/wekan", | ||
] | ||
} |
8 changes: 0 additions & 8 deletions
8
examples/control-repository/control/dev-cluster/wekan-dev/cuegen.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
examples/control-repository/control/prod-cluster/wekan-prod/cuegen.cue
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,12 @@ | ||
cuegen: { | ||
objectsPath: "objects" | ||
secretDataPath: "secret.*.data" | ||
checkPaths: [ | ||
"values", | ||
"global", | ||
] | ||
components: [ | ||
"https://github.com/nxcc/cuegen-example-mongodb?ref=v1.2.0", | ||
"https://github.com/nxcc/cuegen-example-wekan?ref=v1.2.0", | ||
] | ||
} |
8 changes: 0 additions & 8 deletions
8
examples/control-repository/control/prod-cluster/wekan-prod/cuegen.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
examples/control-repository/control/prod-cluster/wekan-qa/cuegen.cue
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,12 @@ | ||
cuegen: { | ||
objectsPath: "objects" | ||
secretDataPath: "secret.*.data" | ||
checkPaths: [ | ||
"values", | ||
"global", | ||
] | ||
components: [ | ||
"https://github.com/nxcc/cuegen-example-mongodb?ref=v1.2.0", | ||
"https://github.com/nxcc/cuegen-example-wekan?ref=v1.2.0", | ||
] | ||
} |
8 changes: 0 additions & 8 deletions
8
examples/control-repository/control/prod-cluster/wekan-qa/cuegen.yaml
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
cuegen: { | ||
objectsPath: "objects" | ||
secretDataPath: "secret.*.data" | ||
} |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
cuegen: objectsPath: "objects" | ||
components: [] |
This file was deleted.
Oops, something went wrong.
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,8 +1,8 @@ | ||
cuegen: close({ | ||
objectsPath: string | ||
checkPath: *"" | string | ||
checkPaths: [ ...string] | ||
checkPaths?: [ ...string] | ||
secretDataPath: *"" | string | ||
debug: *false | bool | ||
components: [string, ...] | ||
components?: [string, ...] | ||
}) |
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 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cd "$(dirname "$0")/../examples" | ||
|
||
trap "echo ' FAILED'" EXIT | ||
|
||
echo configmap... | ||
cuegen configmap | grep -q "2023-01-10T12:00:00Z" | ||
echo " OK" | ||
|
||
echo values... | ||
cuegen values | grep -q "7 replicas configured" | ||
echo " OK" | ||
|
||
echo encrypted... | ||
SOPS_AGE_KEY=AGE-SECRET-KEY-14QUHLE5A6UNSKNYXLF5ZA26P3NCFX8P68JQ066T7VJ6JW5G8FHWQN4HAUQ \ | ||
cuegen encrypted | grep -q IEtFWS0tLS0tCk1JSUV2Z0paTXF | ||
echo " OK" | ||
|
||
echo control-repository | ||
cuegen control-repository/control/dev-cluster/wekan-dev/ | grep -q "namespace: cuegen-demo-dev" | ||
cuegen control-repository/control/prod-cluster/wekan-prod/ | grep -q "namespace: cuegen-demo-prod" | ||
cuegen control-repository/control/prod-cluster/wekan-qa/ | grep -q "namespace: cuegen-demo-qa" | ||
echo " OK" | ||
|
||
trap "" EXIT | ||
echo "all tests successful" |