Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.

Commit f4d083c

Browse files
author
András Tóth
committed
feat(questionnaire): include deployment namespace and repository name
1 parent 46dbd5c commit f4d083c

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

Diff for: .banzaicloud/pipeline.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ pipeline:
8888
action: EnsureDeployment
8989
deployment:
9090
name: './spotguide-nodejs-mongodb-1.0.0.tgz'
91+
namespace: default
9192
reuseValues: true
9293
releaseName: '{{ .CICD_REPO_NAME }}'
9394
wait: true

Diff for: .banzaicloud/spotguide.yaml

+25-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
2-
name: 'Node.js with MongoDB database'
3-
description: 'Spotguide for Node.js applications with MongoDB database'
4-
tags: ['Node.js', 'MongoDB', 'application']
2+
name: "Node.js with MongoDB database"
3+
description: "Spotguide for Node.js applications with MongoDB database"
4+
tags: ["Node.js", "MongoDB", "application"]
55
resources:
66
sumCpu: 3
77
sumMem: 4
@@ -11,6 +11,17 @@ resources:
1111
minNodes: 2
1212
maxNodes: 4
1313
questions:
14+
- type: pipeline
15+
dataType: string
16+
label: namespace
17+
group: Deployment
18+
required: true
19+
default: default
20+
targets:
21+
- install_mongodb_user_secret.clusterSecret.namespace
22+
- install_mongodb_root_secret.clusterSecret.namespace
23+
- install_mongodb_replica_set_key_secret.clusterSecret.namespace
24+
- deploy_application.deployment.namespace
1425
- type: secret
1526
dataType: password
1627
name: docker-hub
@@ -25,6 +36,17 @@ questions:
2536
targets:
2637
- build_image.secretFrom.DOCKER_USERNAME.name
2738
- build_image.secretFrom.DOCKER_PASSWORD.name
39+
- type: pipeline
40+
dataType: string
41+
label: repository name
42+
group: Docker Hub (image repository)
43+
required: true
44+
description: Defaults to repository name
45+
default: "{{ .CICD_REPO }}"
46+
order: 2
47+
targets:
48+
- deploy_application.deployment.values.deployment.image.repository
49+
- build_image.repo
2850
- type: secret
2951
dataType: password
3052
name: mongodb

0 commit comments

Comments
 (0)