Skip to content

Commit 7240338

Browse files
authored
Merge branch 'release-1.8' into cherry-pick-1521-to-release-1.8
2 parents 3875382 + 8c5c789 commit 7240338

File tree

3 files changed

+22
-24
lines changed

3 files changed

+22
-24
lines changed

installer/charts/tssc-dh/templates/app-config-content.yaml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,7 @@ azureDevOps:
4949
auth:
5050
environment: production
5151
providers:
52-
{{- $signInPage := "" }}
53-
{{- if eq .Values.developerHub.authProvider "oidc" }}
54-
{{- $signInPage = "oidc" }}
55-
oidc:
56-
production:
57-
clientId: ${AUTH__OIDC__CLIENT__ID}
58-
clientSecret: ${AUTH__OIDC__CLIENT__SECRET}
59-
metadataUrl: ${AUTH__OIDC__METADATA__URL}
60-
prompt: auto
61-
signIn:
62-
resolvers:
63-
- resolver: preferredUsernameMatchingUserEntityName
64-
session:
65-
secret:
66-
$env: BACKEND_SECRET
67-
{{- end }}
68-
{{- if eq .Values.developerHub.authProvider "github" }}
69-
{{- $signInPage = "github" }}
52+
{{- if $githubSecretObj }}
7053
github:
7154
production:
7255
clientId: ${GITHUB__APP__CLIENT__ID}
@@ -81,10 +64,9 @@ auth:
8164
dangerouslyAllowSignInWithoutUserInCatalog: true
8265
{{- end }}
8366
{{- end }}
84-
{{- if eq .Values.developerHub.authProvider "gitlab" }}
67+
{{- if $gitlabSecretObj }}
8568
{{- $gitlabSecretData := ($gitlabSecretObj.data | default dict) }}
8669
{{- if and $gitlabSecretData.clientId $gitlabSecretData.clientSecret }}
87-
{{- $signInPage = "gitlab" }}
8870
gitlab:
8971
production:
9072
{{- if ne ($gitlabSecretData.host | b64dec) "gitlab.com" }}
@@ -98,6 +80,20 @@ auth:
9880
dangerouslyAllowSignInWithoutUserInCatalog: true
9981
{{- end }}
10082
{{- end }}
83+
{{- if eq .Values.developerHub.authProvider "oidc" }}
84+
oidc:
85+
production:
86+
clientId: ${AUTH__OIDC__CLIENT__ID}
87+
clientSecret: ${AUTH__OIDC__CLIENT__SECRET}
88+
metadataUrl: ${AUTH__OIDC__METADATA__URL}
89+
prompt: auto
90+
signIn:
91+
resolvers:
92+
- resolver: preferredUsernameMatchingUserEntityName
93+
session:
94+
secret:
95+
$env: BACKEND_SECRET
96+
{{- end }}
10197
backend:
10298
auth:
10399
keys:
@@ -272,8 +268,8 @@ proxy:
272268
quay:
273269
uiUrl: ${QUAY__URL}
274270
{{- end }}
275-
{{- if $signInPage }}
276-
signInPage: {{ $signInPage }}
271+
{{- if .Values.developerHub.authProvider }}
272+
signInPage: {{ .Values.developerHub.authProvider }}
277273
{{- end }}
278274
techdocs:
279275
builder: 'local'

installer/charts/tssc-dh/templates/plugins-content.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ plugins:
6565
gridColumn: "1 / -1"
6666
if:
6767
allOf:
68-
- isAzureDevOpsAvailable
68+
- isAzurePipelinesAvailable
6969
{{- end }}
7070
{{- if (lookup "v1" "Secret" $integrationNamespace "tssc-github-integration") }}
7171
- disabled: false

integration-tests/tasks/get-rhads-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ spec:
2828
set -euo pipefail
2929
3030
echo "Downloading rhads-config file:"
31-
GIT_REPO="$(jq -r '.git.repo // empty' <<< $JOB_SPEC)"
31+
# Extract the repository name from the source_repo_url
32+
SOURCE_REPO_URL=$(jq -r '.git.source_repo_url' <<< $JOB_SPEC)
33+
GIT_REPO=$(basename "$SOURCE_REPO_URL" .git)
3234
REPO_ORG=$(jq -r '.git.source_repo_org' <<< $JOB_SPEC)
3335
# Determine the branch name for the curl command.
3436
# If source_repo_branch starts with "refs/heads/", strip that prefix; otherwise, use as is.

0 commit comments

Comments
 (0)