Skip to content

Commit

Permalink
Merge pull request #201 from ksrinimba/master
Browse files Browse the repository at this point in the history
Change bootstrap from CM to secret
  • Loading branch information
ksrinimba authored Sep 27, 2021
2 parents fa2e311 + 89333e8 commit f831db9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/oes/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: oes
version: 3.9.5
version: 3.9.6
appVersion: 3.9.1.2
description: OES is a non-forked version of OSS spinnaker
icon: https://raw.githubusercontent.com/OpsMx/enterprise-spinnaker/master/img/opsmx.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ data:
ls -lart /home/spinnaker/java-lib/
if [ -d "/tmp/spinnaker/pipeline-promotion/" ]
then
decrypt_key=$(kubectl get cm bootstrap -o yaml -n ${SPINNAKER_NAMESPACE}| grep 'password:' | awk '{ print $2}')
#decrypt_key=$(kubectl get cm bootstrap -o yaml -n ${SPINNAKER_NAMESPACE}| grep 'password:' | awk '{ print $2}')
decrypt_key=$(kubectl get secret bootstrap -o jsonpath='{.data.bootstrap\.yml}' -n ${SPINNAKER_NAMESPACE} | base64 -d | grep 'password:' | awk '{ print $2}')
if [[ $decrypt_key != "" ]];
then
for filename in /tmp/spinnaker/pipeline-promotion/*; do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ rules:
resources:
[
'namespaces',
'configmaps',
'events',
'replicationcontrollers',
'serviceaccounts',
'pods/log',
]
verbs: ['get', 'list']
- apiGroups: ['']
resources: ['pods', 'services', 'secrets']
resources: ['pods', 'services', 'secrets', 'configmaps']
verbs:
[
'create',
Expand Down

0 comments on commit f831db9

Please sign in to comment.