-
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.
Show simple pipeline doing helm bake and deploy
- Loading branch information
1 parent
13853ae
commit d904403
Showing
3 changed files
with
139 additions
and
0 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,10 @@ | ||
## Example of using hashicorps helm chart repo to dpeloy helm charts to K8s using spinnaker | ||
|
||
|
||
This is a VERY simplistic example, but does | ||
* Creates the namespace for the vault-secrets-operator | ||
* Bakes the helm manifest INCLUDING CRDs for deployment | ||
* Then deploys it to the target cluster that is set via a simple parameter | ||
|
||
|
||
Requires helm configuration to be setup in artifacts. This enables Spinnaker to list the various helm charts. |
123 changes: 123 additions & 0 deletions
123
applications/example-helm-vault-operator-deploy/pipeline.json
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,123 @@ | ||
{ | ||
"appConfig": {}, | ||
"keepWaitingPipelines": true, | ||
"lastModifiedBy": "mcintoshj@gmail.com", | ||
"limitConcurrent": false, | ||
"maxConcurrentExecutions": 4, | ||
"parameterConfig": [ | ||
{ | ||
"description": "", | ||
"hasOptions": false, | ||
"label": "", | ||
"name": "account_name", | ||
"pinned": true, | ||
"required": true | ||
} | ||
], | ||
"schema": "1", | ||
"spelEvaluator": "v4", | ||
"stages": [ | ||
{ | ||
"expectedArtifacts": [ | ||
{ | ||
"defaultArtifact": { | ||
"customKind": true, | ||
"id": "8f9c10f7-7135-4228-adc7-2d0ec93a30b3" | ||
}, | ||
"displayName": "vault-operator", | ||
"id": "d6d190d5-765f-43ed-a889-5489a77aa011", | ||
"matchArtifact": { | ||
"artifactAccount": "embedded-artifact", | ||
"customKind": false, | ||
"id": "b0fdefbf-8792-4f7c-8b42-f6832d6fff13", | ||
"name": "vault", | ||
"type": "embedded/base64" | ||
}, | ||
"useDefaultArtifact": false, | ||
"usePriorArtifact": false | ||
} | ||
], | ||
"includeCRDs": true, | ||
"inputArtifacts": [ | ||
{ | ||
"account": "helm-hashicorp", | ||
"artifact": { | ||
"artifactAccount": "helm-hashicorp", | ||
"id": "d1600610-1782-4f06-8b63-dff48ae6eed7", | ||
"name": "vault-secrets-operator", | ||
"type": "helm/chart", | ||
"version": "0.1.0" | ||
}, | ||
"id": null | ||
} | ||
], | ||
"name": "Bake (Manifest)", | ||
"namespace": "vault-secrets-operator", | ||
"outputName": "vault", | ||
"overrides": {}, | ||
"refId": "1", | ||
"requisiteStageRefIds": [], | ||
"templateRenderer": "HELM3", | ||
"type": "bakeManifest" | ||
}, | ||
{ | ||
"account": "${parameters.account_name}", | ||
"cloudProvider": "kubernetes", | ||
"manifestArtifactId": "d6d190d5-765f-43ed-a889-5489a77aa011", | ||
"moniker": { | ||
"app": "demo" | ||
}, | ||
"name": "Deploy (Manifest)", | ||
"namespaceOverride": "vault-secrets-operator", | ||
"refId": "2", | ||
"requisiteStageRefIds": [ | ||
"3" | ||
], | ||
"skipExpressionEvaluation": false, | ||
"source": "artifact", | ||
"trafficManagement": { | ||
"enabled": false, | ||
"options": { | ||
"enableTraffic": false | ||
} | ||
}, | ||
"type": "deployManifest" | ||
}, | ||
{ | ||
"account": "${parameters.account_name}", | ||
"cloudProvider": "kubernetes", | ||
"manifests": [ | ||
{ | ||
"apiVersion": "v1", | ||
"kind": "Namespace", | ||
"metadata": { | ||
"labels": { | ||
"name": "vault-secrets-operator" | ||
}, | ||
"name": "vault-secrets-operator" | ||
} | ||
} | ||
], | ||
"moniker": { | ||
"app": "demo" | ||
}, | ||
"name": "Deploy Namespaces", | ||
"refId": "3", | ||
"requisiteStageRefIds": [ | ||
"1" | ||
], | ||
"skipExpressionEvaluation": false, | ||
"source": "text", | ||
"trafficManagement": { | ||
"enabled": false, | ||
"options": { | ||
"enableTraffic": false, | ||
"services": [] | ||
} | ||
}, | ||
"type": "deployManifest" | ||
} | ||
], | ||
"triggers": [], | ||
"updateTs": "1698678797257" | ||
} |
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