Skip to content

Commit

Permalink
Merge pull request #188 from yeshaswiniOpsmx/master
Browse files Browse the repository at this point in the history
Syntax fix
  • Loading branch information
ksrinimba authored Sep 6, 2021
2 parents 9ba73a8 + 26513d4 commit d315593
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charts/oes/templates/configmaps/datasource-creation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ data:
if [[ "$STORAGE_TYPE" == "stash" ]];
then
if [[ "{{ .Values.spinnaker.gitopsHalyard.repo.projectName }}" ]]
then
curl --header "Content-Type: application/json" --header "x-spinnaker-user: admin" --request POST http://oes-platform:8095/platformservice/v2/datasources --data '{"datasourceType": "BITBUCKET", "name": "gitops-bitbucket", "spinEnabled": "false", "configurationFields": {"authType":"bearer","username": "{{ .Values.spinnaker.gitopsHalyard.repo.username }}","token": "{{ .Values.spinnaker.gitopsHalyard.repo.token }}","read":"","write":""} }'
curl --header "Content-Type: application/json" --header "x-spinnaker-user: admin" --request POST http://oes-sapor:8085/oes/accountsConfig/spinnaker --data '{"name": "preview-saas", "url": "{{ .Values.global.spinGate.protocol }}://{{ .Values.global.spinGate.host }}", "authenticationType": "LDAP", "token": "'"${TOKEN}"'", "externalAccountFlag": "true", "halyardConfigurationFlag": "true", "externalAccountConfiguration": {"accountName": "gitops-bitbucket", "endPoint": "https://{{ .Values.spinnaker.gitopsHalyard.repo.baseUrlHostName }}/{{ .Values.spinnaker.gitopsHalyard.repo.organization }}/{{ .Values.spinnaker.gitopsHalyard.repo.projectName }}/{{ .Values.spinnaker.gitopsHalyard.repo.repository }}.git", "provider": "BITBUCKET" }, "halConfiguration": {"accountName": "gitops", "endPoint": "https://{{ .Values.spinnaker.gitopsHalyard.repo.baseUrlHostName }}/{{ .Values.spinnaker.gitopsHalyard.repo.organization }}/{{ .Values.spinnaker.gitopsHalyard.repo.projectName }}/{{ .Values.spinnaker.gitopsHalyard.repo.repository }}.git", "accountName": "gitops-bitbucket" , "provider": "BITBUCKET" } }'
break
Expand Down

0 comments on commit d315593

Please sign in to comment.