File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -912,17 +912,6 @@ addons:
912912 [ -n "${cluster_id}" ] || exit 4
913913 kubectl create ns gitlab-managed-apps
914914 kubectl create configmap gitlab-configuration --from-literal cluster_url="${cluster_url}" --from-literal cluster_id="${cluster_id}" --from-literal cluster_env="${settings.envlist}" -n gitlab-managed-apps
915- - cmd[${nodes.k8sm.master.id}]: kubectl get configmaps -n gitlab-managed-apps gitlab-configuration -o jsonpath='{.data.cluster_url}'
916- - set:
917- gitlab_cluster_url: ${response.out}
918- - cmd[${nodes.k8sm.master.id}]: |-
919- # Runner
920- page_content=$(curl -sk -b gitlab-jar.txt -c gitlab-jar.txt "${this.gitlab_cluster_url}")
921- csrf_token=$(echo ${page_content} | perl -ne 'print "$1\n" if /csrf-param.*?csrf-token"[[:blank:]]content="(.+?)"/' | sed -n 1p)
922- echo "Runner CSRF token: ${csrf_token}"
923- [ -n "${csrf_token}" ] || exit 5
924- curl -X POST -sk -b gitlab-jar.txt -c gitlab-jar.txt -f -H "X-CSRF-Token: ${csrf_token}" "${this.gitlab_cluster_url}/applications/runner" || exit 5
925- wait-deployment.sh runner-gitlab-runner gitlab-managed-apps 1 720
926915 - cmd[${nodes.k8sm.master.id}]: |-
927916 # Integration
928917 echo '${this.gitlab_ca_instance}' | base64 -d > /var/lib/kubelet/worker-data/gitlab-cacert.crt
You can’t perform that action at this time.
0 commit comments