File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 22
33if [ ! -f " /var/lib/worker/gitlab-integration.conf" ]; then
44
5- echo -e " Integration configuration is missing"
5+ echo " $( date ) : Gitlab integration configuration is missing"
66 exit 2
77fi
88
99source /var/lib/worker/gitlab-integration.conf
1010
1111rm -rf " /etc/docker/certs.d/${GITLAB_REGISTRY} " & > /dev/null
1212
13+ echo " $( date) : Gitlab integration configuration removed"
14+
1315exit 0
Original file line number Diff line number Diff line change 22
33if [ ! -f " /var/lib/worker/gitlab-cacert.crt" ]; then
44
5- echo -e " Integration certificate doesn't exist"
5+ echo -e " Gitlab integration certificate doesn't exist"
66 exit 1
77fi
88if [ ! -f " /var/lib/worker/gitlab-integration.conf" ]; then
99
10- echo -e " Integration configuration is missing"
10+ echo -e " Gitlab integration configuration is missing"
1111 exit 2
1212fi
1313
@@ -17,4 +17,6 @@ mkdir -p "/etc/docker/certs.d/${GITLAB_REGISTRY}" &>/dev/null
1717
1818/usr/bin/cp -f /var/lib/worker/gitlab-cacert.crt " /etc/docker/certs.d/${GITLAB_REGISTRY} /ca.crt"
1919
20+ echo -e " Gitlab integration configuration complete"
21+
2022exit 0
Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ addons:
441441 caption: Remote API access is enabled
442442 - type: string
443443 name: ingress-controller
444- inputType: hidden
444+ inputType: hidden
445445 - type: string
446446 name: storage
447447 inputType: hidden
@@ -776,7 +776,7 @@ addons:
776776 - cmd[cp]: |-
777777 wget -nv ${baseUrl}/addons/gitlab/gitlab-integration-remove.sh -O /var/lib/worker/gitlab-integration-remove.sh
778778 chmod +x /var/lib/worker/gitlab-integration-remove.sh
779- /var/lib/worker/gitlab-integration-remove.sh
779+ /var/lib/worker/gitlab-integration-remove.sh | tee -a /var/log/kubernetes/k8s-worker-integration.log
780780 rm -f /var/lib/worker/gitlab-*
781781
782782 - id: certman-k8s-addon
Original file line number Diff line number Diff line change 33
44if [ ! -d " /var/lib/worker" ]; then
55
6- echo -e " Worker integration directory doesn't exist"
6+ echo " $( date ) : worker integration directory doesn't exist"
77 exit 1
88fi
99
You can’t perform that action at this time.
0 commit comments