Skip to content

Commit d6dd69a

Browse files
Merge pull request #49 from kindredgroup/feat/KSBP-101776
KSBP-101776: Add component dependency (dependsOn) and parallel deployment hint logic
2 parents 6705fb6 + 0053052 commit d6dd69a

21 files changed

Lines changed: 2454 additions & 78 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ tmp*
55
.env
66
.idea
77
.DS_Store
8+
.tool-versions

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ testSuites:
141141
name: Talos Certifier Test App
142142
id: talos-certifier-test-app
143143
location:
144-
type: LOCAL # optional, defautls to 'LOCAL'
144+
type: LOCAL # optional, defaults to 'LOCAL'
145145
deploy:
146+
parallel: true # optional, default is false
146147
timeoutSeconds: 120
147148
command: deployment/pit/deploy.sh
148149
params: # Optional command line parameters
@@ -161,6 +162,7 @@ testSuites:
161162
location:
162163
type: LOCAL
163164
deploy:
165+
parallel: true # optional, default is false
164166
command: deployment/pit/deploy.sh
165167
statusCheck:
166168
command: deployment/pit/is-deployment-ready.sh
@@ -173,7 +175,10 @@ testSuites:
173175
# Lets assume Talos Certifier and Replicator (made for testing Talos Certifier) are in the same repository
174176
location:
175177
type: LOCAL
178+
dependsOn:
179+
- talos-certifier # optional, deployment of component will not be attempted until these dependencies are up and healthy
176180
deploy:
181+
parallel: true # optional, default is false
177182
command: deployment/pit/deploy.sh
178183
statusCheck:
179184
command: deployment/pit/is-deployment-ready.sh
@@ -189,6 +194,7 @@ testSuites:
189194
gitRepository: git://127.0.0.1/some-other-component.git
190195
gitRef: # Optional, defaults to "refs/remotes/origin/master"
191196
deploy:
197+
parallel: false # optional
192198
command: deployment/pit/deploy.sh
193199
statusCheck:
194200
command: deployment/pit/is-deployment-ready.sh

k8s-deployer/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules/
22
dist/
33
tmp/
4-
coverage/
4+
coverage/

k8s-deployer/package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

k8s-deployer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"ajv": "^8.12.0",
4141
"express": "^4.19.2",
4242
"express-openapi-validator": "^5.1.6",
43+
"mermaid-ascii": "^1.0.0",
4344
"node-fetch": "^3.3.2",
4445
"swagger-ui-express": "^5.0.0",
4546
"uuid": "^9.0.1",

0 commit comments

Comments
 (0)