-
Notifications
You must be signed in to change notification settings - Fork 462
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
make glooctl check work for kube gateways #9621
Conversation
Issues linked to changelog: |
Visit the preview URL for this PR (updated for commit 3d97e2a): https://gloo-edge--pr9621-glooctl-check-kube-3zxd8mrg.web.app (expires Fri, 28 Jun 2024 19:57:50 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 77c2b86e287749579b7ff9cadb81e099042ef677 |
I have a similar approach and would like feedback on it :
Additionally I think that relying on the presence of the GatewayParameters CR wouldn't be the best way to go about this as users can delete the default CRs and replace them with their own. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some new CRDs:
- https://github.com/solo-io/gloo/blob/main/install/helm/gloo/crds/gateway.solo.io_v1_HttpListenerOption.yaml
- https://github.com/solo-io/gloo/blob/main/install/helm/gloo/crds/gateway.solo.io_v1_ListenerOption.yaml
They don't report statuses, but I think it would make sense to check them still
kick bulldozer |
* glooctl check * cl * codegen * use const * standardize casing * standardize case * update kubegateway check * fix import * scheme * KUBE2E_TESTS not needed by setup-kind * fix test * Adding changelog file to new location * Deleting changelog file from old location * fix typo * add additional check outputs * exclude kube checks * add docs to exclude * ensure kube resources are not checked if not enabled * add exclude options * add todo * update kubegatewayenabled check * fix newline * use constants * return early * update comment * Update error * address comments * rename kube gateway * update message --------- Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> Co-authored-by: changelog-bot <changelog-bot> Co-authored-by: David Jumani <[email protected]>
Will tackle in a followup PR |
Description
Check Kubernetes Gateway API resources during
glooctl check
, as long as we detect that the kube gateway integration is enabled in the given gloo installation. We assume kube gateway integration is enabled if 1) we find Gateway CRDs on the cluster and 2) a default GatewayParameters exists in the install namesapce.Other cleanup:
glooctl check
output and use the actual CRD names, e.g.Checking auth configs... OK
is nowChecking AuthConfigs... OK
Output :
Checklist: