-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pipeline(depls): rework ops-files and vars-files support
Script manifest-lifecycle-generation handle copy of operators-file. It is not possible to use the spruce --go-patch option, because we don't know which template to associate to the ops-file. In this version, it is not possible to ops-file to directly patch credentials (use variable as workaround) Readme extract : #### ops-files By convention, all files in template dir matching ```*-operators.yml``` are used by ```bosh-deployment``` as ```ops-files``` inputs. Theses files **are not processed by spruce**. #### vars-files By convention, all files in template dir matching ```*-vars-tpl.yml``` are processed by spruce and generate ```*-vars.yml``` files. Then files are used by ```bosh-deployment``` as ```vars-files``` inputs. close #33
- Loading branch information
Showing
6 changed files
with
66 additions
and
29 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
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
6 changes: 6 additions & 0 deletions
6
spec/tasks/generate_manifest/additional-resource/template/an-operators.yml
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,6 @@ | ||
--- | ||
- type: replace | ||
path: /releases/- | ||
value: | ||
name: a-new-release | ||
version: 1.0.0 |
5 changes: 5 additions & 0 deletions
5
spec/tasks/generate_manifest/additional-resource/template/my-vars-tpl.yml
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,5 @@ | ||
iaas: | ||
consul: | ||
domain: custom.internal.paas | ||
container: (( concat "backup-" secrets.site )) | ||
|
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,2 +1,3 @@ | ||
secrets: | ||
bosh_uuid: 1234-4567-7898-7654-3210 | ||
bosh_uuid: 1234-4567-7898-7654-3210 | ||
site: hidden |
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