You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a CRD installed with for kind "Deployment", Krane will be unable to deploy those resources if the scoping is different on the CRD. It will check the state of the wrong resource and in the wrong scope, cluster instead of namespace.
Expected behavior: deployment to succeed.
Actual behavior: Krane constantly checks if deployment is succeeded but eventually times out.
Version(s) affected: probably all versions.
Steps to Reproduce
Start a new KinD cluster.
Deploy the CRD in the collapsible below.
kubectl create ns example.
DEBUG=1 bundle exec exe/krane deploy example kind-krane -f krane-manifest.yaml --global-timeout=1m.
Krane does deploy the resource but will be unable to check the status.
In debug mode you can see that it uses the wrong command to get the resource status:
kubectl get Deployment --chunk-size=0 --context=kind-kind-krane --output=json --request-timeout=30
I'm facing this now with Role, defined by upbound.io.
In one of our clusters where we're testing crossplane, krane now can't deploy anything due to roles.rbac.authorization.k8s.io/v1 getting skipped entirely, because it overrides the built-in Role with the one defined in the iam.aws.upbound.io/v1beta1 apiVersion because the hash is keyed on kind, which is not unique.
Bug report
When a CRD installed with for kind "Deployment", Krane will be unable to deploy those resources if the scoping is different on the CRD. It will check the state of the wrong resource and in the wrong scope, cluster instead of namespace.
Expected behavior: deployment to succeed.
Actual behavior: Krane constantly checks if deployment is succeeded but eventually times out.
Version(s) affected: probably all versions.
Steps to Reproduce
kubectl create ns example
.DEBUG=1 bundle exec exe/krane deploy example kind-krane -f krane-manifest.yaml --global-timeout=1m
.In debug mode you can see that it uses the wrong command to get the resource status:
CRD Deployment
Deployment
Related to:
The text was updated successfully, but these errors were encountered: