Skip to content

Commit d608559

Browse files
adrientheboroboquat
authored andcommitted
[install/tests] Document integration test scm setup steps
1 parent aad63f4 commit d608559

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

install/tests/Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,32 @@ aws-kubeconfig:
200200
aws eks update-kubeconfig --name gp-${TF_VAR_TEST_ID} --region eu-west-1 --kubeconfig ${KUBECONFIG} || echo "No cluster present"
201201
@echo -e "\033[0;33mAWS service account credentials fetched, run 'source $$(pwd)/$${TF_VAR_TEST_ID}-creds' to load them into your environment\033[0;m"
202202

203+
# GitHub SCM integration can configured prior to install. To enable the integration,
204+
# set the `GITHUB_SCM_OAUTH` variable to a path containing the following contents:
205+
#
206+
# ```yaml
207+
# description: ""
208+
# host: github.com
209+
# icon: ""
210+
# id: Public-GitHub
211+
# oauth:
212+
# clientId: <client-id>
213+
# clientSecret: <client-secret>
214+
# settingsUrl: https://github.com/settings/apps/new
215+
# type: GitHub
216+
# ```
217+
#
218+
# Credentials can be fetched with the following:
219+
#
220+
# ```
221+
# export GITHUB_SCM_OAUTH="/workspace/gitpod/install/tests/github.yaml"
222+
# kubectl -n werft get secret self-hosted-github-oauth -ojson | jq -r '.data.provider | @base64d' > $GITHUB_SCM_OAUTH
223+
# make get-github-config
224+
# ```
225+
#
226+
# Note: The credentials needed to interact with werft may differ from the credentials used to interact
227+
# with cloud resources created by the CI pipelines. Care may be necessary to switch kubectl credentials
228+
# depending on the context.
203229
get-github-config: check-var-DOMAIN check-var-TF_VAR_TEST_ID
204230
ifneq ($(GITHUB_SCM_OAUTH),)
205231
@export SCM_OAUTH=./manifests/github-oauth.yaml && \

0 commit comments

Comments
 (0)