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

Commit

Permalink
feat(questionnaire): include deployment namespace and repository name
Browse files Browse the repository at this point in the history
  • Loading branch information
András Tóth committed Feb 12, 2020
1 parent 46dbd5c commit f4d083c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
1 change: 1 addition & 0 deletions .banzaicloud/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ pipeline:
action: EnsureDeployment
deployment:
name: './spotguide-nodejs-mongodb-1.0.0.tgz'
namespace: default
reuseValues: true
releaseName: '{{ .CICD_REPO_NAME }}'
wait: true
Expand Down
28 changes: 25 additions & 3 deletions .banzaicloud/spotguide.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: 'Node.js with MongoDB database'
description: 'Spotguide for Node.js applications with MongoDB database'
tags: ['Node.js', 'MongoDB', 'application']
name: "Node.js with MongoDB database"
description: "Spotguide for Node.js applications with MongoDB database"
tags: ["Node.js", "MongoDB", "application"]
resources:
sumCpu: 3
sumMem: 4
Expand All @@ -11,6 +11,17 @@ resources:
minNodes: 2
maxNodes: 4
questions:
- type: pipeline
dataType: string
label: namespace
group: Deployment
required: true
default: default
targets:
- install_mongodb_user_secret.clusterSecret.namespace
- install_mongodb_root_secret.clusterSecret.namespace
- install_mongodb_replica_set_key_secret.clusterSecret.namespace
- deploy_application.deployment.namespace
- type: secret
dataType: password
name: docker-hub
Expand All @@ -25,6 +36,17 @@ questions:
targets:
- build_image.secretFrom.DOCKER_USERNAME.name
- build_image.secretFrom.DOCKER_PASSWORD.name
- type: pipeline
dataType: string
label: repository name
group: Docker Hub (image repository)
required: true
description: Defaults to repository name
default: "{{ .CICD_REPO }}"
order: 2
targets:
- deploy_application.deployment.values.deployment.image.repository
- build_image.repo
- type: secret
dataType: password
name: mongodb
Expand Down

0 comments on commit f4d083c

Please sign in to comment.