Skip to content

Commit 8fc4865

Browse files
evallespopenshift-merge-bot[bot]
authored andcommitted
[kustomize_deploy] Update kustomize repo version to use pinned version from group_vars
Now we can get the version from group_vars pinned section. We can still override this by passing extra vars or directly defined it from CI jobs. Signed-off-by: Enrique Vallespi Gil <evallesp@redhat.com>
1 parent 9708c56 commit 8fc4865

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

roles/kustomize_deploy/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ with a message.
2121
where the architecture repo is cloned on the controller node.
2222
Defaults to `~/src/github.com/openstack-k8s-operators/architecture`
2323
- `cifmw_kustomize_deploy_architecture_repo_version`: _(string)_ Default branch
24-
of the architecture repo to clone.Defaults to `HEAD`
24+
of the architecture repo to clone. Takes its value from group_vars
25+
cifmw_architecture_repo_version_pin, defaults to `HEAD` if not defined.
2526
- `cifmw_kustomize_deploy_architecture_examples_common_path`: _(string)_
2627
Relative path of the common CRs in the architecture repo. Defaults to
2728
`/examples/common`

roles/kustomize_deploy/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cifmw_kustomize_deploy_architecture_repo_dest_dir: >-
3535
] | path_join )
3636
}}
3737
38-
cifmw_kustomize_deploy_architecture_repo_version: "HEAD"
38+
cifmw_kustomize_deploy_architecture_repo_version: "{{ cifmw_architecture_repo_version_pin | default('HEAD') }}"
3939

4040
cifmw_kustomize_deploy_architecture_examples_common_path: "examples/common/"
4141
cifmw_kustomize_deploy_architecture_examples_path: "examples/va/"

0 commit comments

Comments
 (0)