Skip to content

Use a more generic approach to APISERVER calls

Zadjad Rezai requested to merge zadjadr/gitlab-runner:main into main
  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do?

Fixes a certificate SSL error if the certificate created by Kubernetes is not super consistent (the case on my minor Kubernetes provider)

Why was this MR needed?

As some providers (e.g. my Kubernetes provider) has a weird way of creating certificates, it makes sense to make the API call more generic with a sane default.

For the the update to 0.68 resulted in this error:

no alternative certificate subject name matches target host name 'kubernetes.default.svc'

What's the best way to test this MR?

Just deploy this version. It should work in all cases now. Tested it on my cluster.

What are the relevant issue numbers?

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading