File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
integration-tests/scripts Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export GITHUB__APP__WEBHOOK__SECRET=
14
14
#### Gitlab
15
15
# https://docs.redhat.com/en/documentation/red_hat_trusted_application_pipeline/1.2/html-single/installing_red_hat_trusted_application_pipeline/index#optional_integrating_gitlab
16
16
export GITLAB__TOKEN=
17
- # When using gitlab as auth provider(auth_config="github "), you also need to set the following values
17
+ # When using gitlab as auth provider(auth_config="gitlab "), you also need to set the following values
18
18
export GITLAB__APP__ID=
19
19
export GITLAB__APP_SECRET=
20
20
export GITLAB__GROUP=
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export GITHUB__APP__WEBHOOK__SECRET=
20
20
# ### Gitlab
21
21
# https://docs.redhat.com/en/documentation/red_hat_trusted_application_pipeline/1.2/html-single/installing_red_hat_trusted_application_pipeline/index#optional_integrating_gitlab
22
22
export GITLAB__TOKEN =
23
- # When using gitlab as auth provider(auth_config="github "), you also need to set the following values
23
+ # When using gitlab as auth provider(auth_config="gitlab "), you also need to set the following values
24
24
export GITLAB__APP__ID =
25
25
export GITLAB__APP_SECRET =
26
26
export GITLAB__GROUP =
Original file line number Diff line number Diff line change @@ -78,6 +78,14 @@ update_dh_catalog_url() {
78
78
fi
79
79
}
80
80
81
+ update_dh_auth_config () {
82
+ # if SCM is set to Gielab, update auth config, otherwise keep it to default - github
83
+ if [[ " ${scm_config[*]} " =~ " gitlab " ]]; then
84
+ echo " [INFO] Change Developer Hub auth to gitlab"
85
+ yq -i ' .tssc.products[] |= select(.name == "Developer Hub").properties.authProvider = "gitlab"' " ${config_file} "
86
+ fi
87
+ }
88
+
81
89
# Workaround: This function has to be called before tssc import "installer/config.yaml" into cluster.
82
90
# Currently, the tssc `config` subcommand lacks the ability to modify property values stored in config.yaml.
83
91
github_integration () {
@@ -240,6 +248,7 @@ nexus_integration() {
240
248
create_cluster_config () {
241
249
echo " [INFO] Creating the installer's cluster configuration"
242
250
update_dh_catalog_url
251
+ update_dh_auth_config
243
252
disable_acs
244
253
disable_tpa
245
254
You can’t perform that action at this time.
0 commit comments