Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 880 Bytes

gitlab.adoc

File metadata and controls

37 lines (27 loc) · 880 Bytes

Connect Gitlab to OpenShift 4.4+ cluster

oc cluster-info | grep 'Kubernetes master' | awk '/http/ {print $NF}'
https://api.cluster-dynatrac-03ed.dynatrac-03ed.example.opentlc.com:6443
oc get secrets | grep default-token
default-token-prgjf                   kubernetes.io/service-account-token   4      29h
default-token-rzzq6                   kubernetes.io/service-account-token   4      29h
oc get secret default-token-prgjf -o jsonpath="{['data']['ca\.crt']}" | base64 --decode
oc whoami -t
git config --global user.name "<user>t"
git config --global user.email "<email>"

git clone https://gitlab.com/checkelmann/dynatrace-pipeline.git
cd dynatrace-pipeline

git remote add marcorigin https://gitlab.com/marcredhat/dynatrace-pipeline.git
git push -u marcorigin master
oc get all  -n gitlab-managed-apps