File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 55
55
- name : sh-playground-dns-perm
56
56
secret :
57
57
secretName : sh-playground-dns-perm
58
+ - name : self-hosted-github-oauth
59
+ secret :
60
+ secretName : self-hosted-github-oauth
58
61
containers :
59
62
- name : nightly-test
60
63
image : eu.gcr.io/gitpod-core-dev/dev/dev-environment:aa-unset-goflags.0
65
68
mountPath : /mnt/secrets/sh-playground-sa-perm
66
69
- name : sh-playground-dns-perm # this sa is used for the DNS management
67
70
mountPath : /mnt/secrets/sh-playground-dns-perm
71
+ - name : self-hosted-github-oauth
72
+ mountPath : " /mnt/secrets/github-oauth"
68
73
env :
69
74
- name : GOOGLE_APPLICATION_CREDENTIALS
70
75
value : " /mnt/secrets/sh-playground-sa-perm/sh-sa.json"
71
76
- name : TF_VAR_sa_creds
72
77
value : " /mnt/secrets/sh-playground-sa-perm/sh-sa.json"
73
78
- name : TF_VAR_dns_sa_creds
74
79
value : " /mnt/secrets/sh-playground-dns-perm/sh-dns-sa.json"
80
+ - name : GITHUB_SCM_OAUTH
81
+ value : " /mnt/secrets/github-oauth/provider"
75
82
- name : NODENAME
76
83
valueFrom :
77
84
fieldRef :
78
85
fieldPath : spec.nodeName
86
+ - name : ROBOQUAT_TOKEN
87
+ valueFrom :
88
+ secretKeyRef :
89
+ name : github-roboquat-automatic-changelog
90
+ key : token
91
+ - name : USERNAME
92
+ valueFrom :
93
+ secretKeyRef :
94
+ name : integration-test-user
95
+ key : username
79
96
- name : USER_TOKEN # this is for the integration tests
80
97
valueFrom :
81
98
secretKeyRef :
126
143
export domain="{{ .Annotations.subdomain }}"
127
144
128
145
if [[ "$domain" == "<no value>" ]]; then
129
- export TF_VAR_TEST_ID="$(echo $RANDOM | md5sum | head -c 5; echo)-k3s"
146
+ export TF_VAR_TEST_ID="p $(echo $RANDOM | md5sum | head -c 5; echo)-k3s"
130
147
else
131
148
export TF_VAR_TEST_ID="$domain"
132
149
fi
Original file line number Diff line number Diff line change @@ -165,8 +165,8 @@ get-kubeconfig: ${cloud}-kubeconfig
165
165
get-github-config :
166
166
ifneq ($(GITHUB_SCM_OAUTH ) ,)
167
167
export SCM_OAUTH=./manifests/github-oauth.yaml && \
168
- cat $$GITHUB_SCM_OAUTH/provider > $$SCM_OAUTH && \
169
- yq w -i $$SCM_OAUTH 'oauth.callBackUrl' http ://${TF_VAR_TEST_ID} .${DOMAIN}/auth/github.com/callback && \
168
+ cat $$GITHUB_SCM_OAUTH > $$SCM_OAUTH && \
169
+ yq w -i $$SCM_OAUTH 'oauth.callBackUrl' https ://scm .${DOMAIN}/auth/github.com/callback?state=${TF_VAR_TEST_ID} && \
170
170
kubectl --kubeconfig=${KUBECONFIG} create namespace gitpod || echo "Gitpod namespace already exist" && \
171
171
kubectl --kubeconfig=${KUBECONFIG} delete secret github-oauth -n gitpod || echo "gitpod-oauth secret needs to be created" && \
172
172
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