remove ValidatingWebhookConfiguration for new ingress controller
* some of the pipelines which are now using the new ingress controller
show errors like:
Error: Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": dial tcp 10.96.34.207:443: connect: connection refused
* these errors seem to be related to either a misconfiguration or a
malfunctioning ingress-nginx admission webhook
* there is a lot of discussion online about this issue, but the
solution seems to be largely dependent on the k8s version and the
nginx-ingress installed and it might not be worth investigating a
proper solution for the EOL kind version currently used
https://stackoverflow.com/questions/61616203/nginx-ingress-controller-failed-calling-webhook
* the simple workaround for now is to just remove the validation webhook
and defer the fix to the time when we upgrade and start using a
maintained k8s and ingress-nginx version
Add a change in jjb/ to trigger a jenkins verification pipeline
Signed-off-by: Jan Klare <jan.klare@bisdn.de>
Change-Id: I5477597766f1b879e841f5e943a34684282cef1c
diff --git a/jjb/pipeline/voltha/physical-build.groovy b/jjb/pipeline/voltha/physical-build.groovy
index 8745ef5..69537b3 100755
--- a/jjb/pipeline/voltha/physical-build.groovy
+++ b/jjb/pipeline/voltha/physical-build.groovy
@@ -16,6 +16,7 @@
// NOTE we are importing the library even if it's global so that it's
// easier to change the keywords during a replay
+
library identifier: 'cord-jenkins-libraries@master',
retriever: modernSCM([
$class: 'GitSCMSource',
diff --git a/vars/createKubernetesCluster.groovy b/vars/createKubernetesCluster.groovy
index 9229d69..b84c5b7 100644
--- a/vars/createKubernetesCluster.groovy
+++ b/vars/createKubernetesCluster.groovy
@@ -124,6 +124,16 @@
# install ingress-nginx to allow usage of ingress to expose voltha
# endpoints (etcd and voltha-api)
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/helm-chart-4.2.5/deploy/static/provider/kind/deploy.yaml
+ # remove validating webhook for now, since some of the pipelines seem to
+ # fail with errors related to calling this hook and although there is a
+ # lot of talk in the internet about this issue, the solution very much
+ # depends on your exact setup (and it might not be worth investigating the
+ # details for a k8s version which has been EOL since some time now)
+ # https://stackoverflow.com/questions/61616203/nginx-ingress-controller-failed-calling-webhook
+ # This should be removed and properly fixed once we upgrade to a recent
+ # k8s version and a fitting ingress-nginx deployment
+ kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
+
""")
sh(label : 'Normalize config permissions',