Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #881: gslbs and/or ingresses require the ingressClassName to be there #882

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

jkremser
Copy link
Member

@jkremser jkremser commented Apr 29, 2022

If the field is empty, the nginx controller simply ignores it:

I0429 12:58:43.255500       8 store.go:390] "Ignoring ingress because of error while validating ingress class" ingress="k8gb-test-split-failover-un3egx/test-gslb" error="ingress does not contain a valid IngressClass"

However, if nginx-controller ignores it, it does not populate the IPs under Ingress' status.loadBalancer field and our k8gb controller won't get the IPs.

There is also a way to say nginx to handle ingresses w/o any class on it (https://github.com/nginxinc/kubernetes-ingress/blob/main/deployments/helm-chart/values.yaml#L158) but it's turned-off by default and I think we should be explicit here. Having the class there also allows for multiple ingress controllers in the cluster.

The change in terratest/test/k8gb_ingress_annotation_rr_test.go was necessary, because the order of things in the map is different now + the name was different. The way how we check the equivalency on the maps is quite bad though.. it's string based. it would require more love, but I wanted to have a quick fix ready, so that the terratests are green again.

Signed-off-by: Jirka Kremser [email protected]

@netlify
Copy link

netlify bot commented Apr 29, 2022

Deploy Preview for k8gb-preview ready!

Name Link
🔨 Latest commit e2177f9
🔍 Latest deploy log https://app.netlify.com/sites/k8gb-preview/deploys/626bfb044a90a1000968148f
😎 Deploy Preview https://deploy-preview-882--k8gb-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jkremser
Copy link
Member Author

terratests:

  ok  	k8gbterratest/test	187.285s

(I will open an issue, because they are green even though there is a failure (that's why we were missing this issue))

@jkremser jkremser merged commit 44410c7 into k8gb-io:master Apr 29, 2022
@jkremser jkremser deleted the ingressClassMissing branch April 29, 2022 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants