Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- Jenkins master and agent maintenance. Add Rhel9 variant and make it default ([#1361](https://github.com/opendevstack/ods-core/pull/1361))
- Update tailor to 1.4.0 ([#1373](https://github.com/opendevstack/ods-core/pull/1373))
- Update Jenkins java version to jdk 21 ([#1374](https://github.com/opendevstack/ods-core/pull/1374))
- 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))
- 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))

### Fixed

Expand Down
1 change: 1 addition & 0 deletions ods-api-service/chart/templates/tpl/_application_yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ externalservices:
provisioner-actions-base-url: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_PROVISIONER_ACTIONS_BASE_URL}
username: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_USERNAME:}
password: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_PASSWORD:}
obo-scope: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_OBO_SCOPE:}
trust-all-certificates: ${MARKETPLACE_{{ $name | upper | replace "-" "_" }}_TRUST_ALL:false}
{{- end }}
{{- else }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ MARKETPLACE_DEFAULT_INSTANCE: {{ .Values.externalServices.marketplace.defaultIns
MARKETPLACE_{{ $name | upper | replace "-" "_" }}_PROJECT_COMPONENT_BASE_URL: {{ $instance.projectComponentsBaseUrl | quote }}
MARKETPLACE_{{ $name | upper | replace "-" "_" }}_PROVISIONER_ACTIONS_BASE_URL: {{ $instance.provisionerActionsBaseUrl | quote }}
MARKETPLACE_{{ $name | upper | replace "-" "_" }}_TRUST_ALL: {{ $instance.trustAllCertificates | quote }}
MARKETPLACE_{{ $name | upper | replace "-" "_" }}_OBO_SCOPE: {{ $instance.oboScope | quote }}

{{- end }}
{{- end }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions ods-api-service/chart/templates/tpl/_validations.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ Validate Marketplace instances configuration
{{- if or (not $instance.username) (not $instance.password) }}
{{- fail (printf "username+password settings are required for Marketplace instance '%s'" $name) }}
{{- end }}
{{- if not $instance.oboScope }}
{{- fail (printf "oboScope settings are required for Marketplace instance '%s'" $name) }}
{{- end }}
{{- end }}
{{- end -}}

Expand Down
1 change: 1 addition & 0 deletions ods-api-service/chart/values.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ externalServices:
# dev:
# projectComponentsBaseUrl: "$MARKETPLACE_DEV_PROJECT_COMPONENTS_BASE_URL"
# provisionerActionsBaseUrl: "$MARKETPLACE_DEV_PROVISIONER_ACTIONS_BASE_URL"
# oboScope: "$MARKETPLACE_DEV_OBO_SCOPE"
# trustAllCertificates: false
# username: "" # Set in secrets.dev.enc.yaml
# password: "" # Set in secrets.dev.enc.yaml
Expand Down
Loading