Skip to content

Commit f14cf53

Browse files
authored
Add bitbucket-base-url to Marketplace instance configuration for ods-api-service (#1382)
1 parent e872e15 commit f14cf53

5 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- Jenkins master and agent maintenance. Add Rhel9 variant and make it default ([#1361](https://github.com/opendevstack/ods-core/pull/1361))
99
- Update tailor to 1.4.0 ([#1373](https://github.com/opendevstack/ods-core/pull/1373))
1010
- Update Jenkins java version to jdk 21 ([#1374](https://github.com/opendevstack/ods-core/pull/1374))
11-
- Add new configuration for the ODS API Service ([1375](https://github.com/opendevstack/ods-core/pull/1375)) ([1377](https://github.com/opendevstack/ods-core/pull/1377))([1378](https://github.com/opendevstack/ods-core/pull/1378))([1379](https://github.com/opendevstack/ods-core/pull/1379))([1380](https://github.com/opendevstack/ods-core/pull/1380))
11+
- Add new configuration for the ODS API Service ([1375](https://github.com/opendevstack/ods-core/pull/1375)) ([1377](https://github.com/opendevstack/ods-core/pull/1377))([1378](https://github.com/opendevstack/ods-core/pull/1378))([1379](https://github.com/opendevstack/ods-core/pull/1379))([1380](https://github.com/opendevstack/ods-core/pull/1380))([1382](https://github.com/opendevstack/ods-core/pull/1382))
1212
- Change the way the certificates are installed in the container of ods-api-service to update the cacert ([1381](https://github.com/opendevstack/ods-core/pull/1381))
1313

1414
### Fixed

ods-api-service/chart/templates/tpl/_application_yaml.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ externalservices:
186186
{{ $name }}:
187187
project-components-base-url: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_PROJECT_COMPONENTS_BASE_URL}
188188
provisioner-actions-base-url: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_PROVISIONER_ACTIONS_BASE_URL}
189+
bitbucket-base-url: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_BITBUCKET_BASE_URL:}
189190
username: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_USERNAME:}
190191
password: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_PASSWORD:}
191192
obo-scope: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_OBO_SCOPE:}

ods-api-service/chart/templates/tpl/_env_external_services.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ MARKETPLACE_DEFAULT_INSTANCE: {{ .Values.externalServices.marketplace.defaultIns
8484
{{- range $name, $instance := .Values.externalServices.marketplace.instances }}
8585
MARKETPLACE_{{ $name | upper | replace "-" "_" }}_PROJECT_COMPONENTS_BASE_URL: {{ $instance.projectComponentsBaseUrl | quote }}
8686
MARKETPLACE_{{ $name | upper | replace "-" "_" }}_PROVISIONER_ACTIONS_BASE_URL: {{ $instance.provisionerActionsBaseUrl | quote }}
87+
MARKETPLACE_{{ $name | upper | replace "-" "_" }}_BITBUCKET_BASE_URL: {{ $instance.bitbucketBaseUrl | quote }}
8788
MARKETPLACE_{{ $name | upper | replace "-" "_" }}_TRUST_ALL: {{ $instance.trustAllCertificates | quote }}
8889
MARKETPLACE_{{ $name | upper | replace "-" "_" }}_OBO_SCOPE: {{ $instance.oboScope | quote }}
8990

ods-api-service/chart/templates/tpl/_validations.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ Validate Marketplace instances configuration
120120
{{- if not $instance.provisionerActionsBaseUrl }}
121121
{{- fail (printf "provisionerActionsBaseUrl is required for Marketplace instance '%s'" $name) }}
122122
{{- end }}
123+
{{- if not $instance.bitbucketBaseUrl }}
124+
{{- fail (printf "bitbucketBaseUrl is required for Marketplace instance '%s'" $name) }}
125+
{{- end }}
123126
{{- if or (not $instance.username) (not $instance.password) }}
124127
{{- fail (printf "username+password settings are required for Marketplace instance '%s'" $name) }}
125128
{{- end }}

ods-api-service/chart/values.yaml.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ externalServices:
275275
# projectComponentsBaseUrl: "$MARKETPLACE_DEV_PROJECT_COMPONENTS_BASE_URL"
276276
# provisionerActionsBaseUrl: "$MARKETPLACE_DEV_PROVISIONER_ACTIONS_BASE_URL"
277277
# oboScope: "$MARKETPLACE_DEV_OBO_SCOPE"
278+
# bitbucketBaseUrl: "$_BITBUCKET_BASE_URL"
278279
# trustAllCertificates: false
279280
# username: "" # Set in secrets.dev.enc.yaml
280281
# password: "" # Set in secrets.dev.enc.yaml

0 commit comments

Comments
 (0)