Kops - Use Kubernetes service for SA issuer URLs in gossip clusters #23666
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The GCE and DO jobs started failing their OIDC tests due to kubernetes/kops#12297 changing the default back to the k8s.local domain for gossip clusters which doesn't resolve. This overrides the issuer on those jobs back to the kubernetes service so that the e2e jobs that actually resolve the URL will pass.
ref: https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/e2e-kops-gce-latest/1439723215860535296
2021/09/19 23:11:19 OK: got issuer https://api.internal.e2e-f2dae1cd6d-d3d02.k8s.local 2021/09/19 23:11:19 Full, not-validated claims: openidmetadata.claims{Claims:jwt.Claims{Issuer:"https://api.internal.e2e-f2dae1cd6d-d3d02.k8s.local", Subject:"system:serviceaccount:svcaccounts-3514:default", Audience:jwt.Audience{"oidc-discovery-test"}, Expiry:1632093674, NotBefore:1632093074, IssuedAt:1632093074, ID:""}, Kubernetes:openidmetadata.kubeClaims{Namespace:"svcaccounts-3514", ServiceAccount:openidmetadata.kubeName{Name:"default", UID:"db9542ca-0cae-478d-b1e2-01a3cf4eef23"}}} 2021/09/19 23:11:19 Get "https://api.internal.e2e-f2dae1cd6d-d3d02.k8s.local/.well-known/openid-configuration": dial tcp: lookup api.internal.e2e-f2dae1cd6d-d3d02.k8s.local on 100.64.0.10:53: no such host