Merge ~hopem/stsstack-bundles:add-bundle-trusts into stsstack-bundles:master

Proposed by Edward Hope-Morley
Status: Merged
Merged at revision: a7abeaa02f6a6bef540764bad28c41a71d982ff6
Proposed branch: ~hopem/stsstack-bundles:add-bundle-trusts
Merge into: stsstack-bundles:master
Diff against target: 37 lines (+9/-0)
3 files modified
common/helpers (+2/-0)
kubernetes/pipeline/02configure (+4/-0)
overlays/k8s-openstack-integrator-trust.yaml (+3/-0)
Reviewer Review Type Date Requested Status
Felipe Reyes Approve
Jorge Niedbalski (community) Approve
Review via email: mp+374433@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

LGTM

review: Approve
Revision history for this message
Felipe Reyes (freyes) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/common/helpers b/common/helpers
2index 58057b2..7543a1b 100644
3--- a/common/helpers
4+++ b/common/helpers
5@@ -3,6 +3,8 @@ export CACHED_STDIN=( $@ )
6 ((${#CACHED_STDIN[@]})) || CACHED_STDIN=( "" )
7 DEFAULT_SERIES=bionic
8
9+JUJU_VERSION="`juju --version 2>/dev/null| sed -r 's/^([[:digit:]\.]+).*/\1/g'`"
10+
11 . $LIB_COMMON/openstack_release_info
12
13 _usage () {
14diff --git a/kubernetes/pipeline/02configure b/kubernetes/pipeline/02configure
15index 24b7caa..83d6f81 100644
16--- a/kubernetes/pipeline/02configure
17+++ b/kubernetes/pipeline/02configure
18@@ -49,6 +49,10 @@ if ! `has_opt '--vault*'`; then
19 MOD_OVERLAYS+=( "k8s-easyrsa.yaml" )
20 fi
21
22+if ! `has_opt --no-trust` && [[ "$JUJU_VERSION" > "2.6.3" ]]; then
23+ MOD_OVERLAYS+=( "k8s-openstack-integrator-trust.yaml" )
24+fi
25+
26 while (($# > 0))
27 do
28 case "$1" in
29diff --git a/overlays/k8s-openstack-integrator-trust.yaml b/overlays/k8s-openstack-integrator-trust.yaml
30new file mode 100644
31index 0000000..6bd06a7
32--- /dev/null
33+++ b/overlays/k8s-openstack-integrator-trust.yaml
34@@ -0,0 +1,3 @@
35+applications:
36+ openstack-integrator:
37+ trust: true

Subscribers

People subscribed via source and target branches