File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 51
51
- name : sh-playground-dns-perm
52
52
secret :
53
53
secretName : sh-playground-dns-perm
54
+ - name : self-hosted-github-oauth
55
+ secret :
56
+ secretName : self-hosted-github-oauth
54
57
containers :
55
58
- name : nightly-test
56
59
image : eu.gcr.io/gitpod-core-dev/dev/dev-environment:pd-dev-upgrade.0
61
64
mountPath : /mnt/secrets/sh-playground-sa-perm
62
65
- name : sh-playground-dns-perm # this sa is used for the DNS management
63
66
mountPath : /mnt/secrets/sh-playground-dns-perm
67
+ - name : self-hosted-github-oauth
68
+ mountPath : " /mnt/secrets/github-oauth"
64
69
env :
65
70
- name : GOOGLE_APPLICATION_CREDENTIALS
66
71
value : " /mnt/secrets/sh-playground-sa-perm/sh-sa.json"
67
72
- name : TF_VAR_sa_creds
68
73
value : " /mnt/secrets/sh-playground-sa-perm/sh-sa.json"
69
74
- name : TF_VAR_dns_sa_creds
70
75
value : " /mnt/secrets/sh-playground-dns-perm/sh-dns-sa.json"
76
+ - name : GITHUB_SCM_OAUTH
77
+ value : " /mnt/secrets/github-oauth/provider"
71
78
- name : NODENAME
72
79
valueFrom :
73
80
fieldRef :
117
124
export domain="{{ .Annotations.subdomain }}"
118
125
119
126
if [[ "$domain" == "<no value>" ]]; then
120
- export TF_VAR_TEST_ID="$(echo $RANDOM | md5sum | head -c 5; echo)-k3s"
127
+ export TF_VAR_TEST_ID="p $(echo $RANDOM | md5sum | head -c 5; echo)-k3s"
121
128
else
122
129
export TF_VAR_TEST_ID="$domain"
123
130
fi
Original file line number Diff line number Diff line change @@ -162,8 +162,8 @@ get-kubeconfig: ${cloud}-kubeconfig
162
162
get-github-config :
163
163
ifneq ($(GITHUB_SCM_OAUTH ) ,)
164
164
export SCM_OAUTH=./manifests/github-oauth.yaml && \
165
- cat $$GITHUB_SCM_OAUTH/provider > $$SCM_OAUTH && \
166
- yq w -i $$SCM_OAUTH 'oauth.callBackUrl' http://${TF_VAR_TEST_ID}.${DOMAIN} /auth/github.com/callback && \
165
+ cat $$GITHUB_SCM_OAUTH > $$SCM_OAUTH && \
166
+ yq w -i $$SCM_OAUTH 'oauth.callBackUrl' http://sh-preview.gitpod-dev.com /auth/github.com/callback/${TF_VAR_TEST_ID} && \
167
167
kubectl --kubeconfig=${KUBECONFIG} create namespace gitpod || echo "Gitpod namespace already exist" && \
168
168
kubectl --kubeconfig=${KUBECONFIG} delete secret github-oauth -n gitpod || echo "gitpod-oauth secret needs to be created" && \
169
169
kubectl --kubeconfig=${KUBECONFIG} create secret generic "github-oauth" --namespace gitpod --from-literal=provider="$$(cat $$SCM_OAUTH)" && \
You can’t perform that action at this time.
0 commit comments