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

[BUG] gke-deploy does not respect the declared ApiVersion #962

Open
TeChn4K opened this issue Oct 17, 2023 · 0 comments
Open

[BUG] gke-deploy does not respect the declared ApiVersion #962

TeChn4K opened this issue Oct 17, 2023 · 0 comments
Labels

Comments

@TeChn4K
Copy link

TeChn4K commented Oct 17, 2023

Affected builder image

gcr.io/cloud-builders/gke-deploy

Expected Behavior

While waiting for deployed objects to be ready, gke-deploy get objects with their declared ApiVersion.

Actual Behavior

While waiting for deployed objects to be ready, gke-deploy get some objects with a wrong ApiVersion and fail.

Error: failed to apply deployment: failed to get configuration of deployed object with kind "IngressRoute" and name "app": failed to get config of deployed object: command to get kubernetes config: Error from server (NotFound): ingressroutes.traefik.containo.us "app" not found

Additional Info

My cluster has Traefik v2.10 installed.

Here are the CRDs used : https://doc.traefik.io/traefik/reference/dynamic-configuration/kubernetes-crd/

You can see that Traefik CRDs declares ingressroutes.traefik.containo.us and ingressroutes.traefik.io

I do not use ingressroutes.traefik.containo.us at all. All my IngressRoute use apiVersion: traefik.io/v1alpha1.
But gke-deploy keeps trying to get object with this not used apiVersion.

After manually removing the troublesome resource with kubectl delete crd ingressroutes.traefik.containo.us, my deployment is now successful :

Deployed object with kind "IngressRoute" and name "app" is ready after 5.9s
@TeChn4K TeChn4K added the bug label Oct 17, 2023
@TeChn4K TeChn4K changed the title [BUG] gke-deploy does not respect the declared Kind object [BUG] gke-deploy does not respect the declared object Kind Oct 17, 2023
@TeChn4K TeChn4K changed the title [BUG] gke-deploy does not respect the declared object Kind [BUG] gke-deploy does not respect the declared ApiVersion Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant