When placements are deleted and readded back i do not see deployment going to 1/1 from 0/1 in case of shared compute and this does not happen with BYO cluster.
Steps To Reproduce
Login to stable-env
Create a workspace using the command ‘kubectl kcp workspace create kcpqetest1 --enter’
Add shared compute to the workspace using the command below
Now run the command ‘kubectl get deployment’ and make sure that deployment is up and running fine.
Delete the placement by running the command ‘kubectl delete placement default’
Verify that namespace shows ‘No placements available’ by running the command ‘kubectl get ns default -o yaml’ and deployment still shows 1/1 which is expected as the syncer does not see the deployment anymore since the annotations are removed from the ns & deployment
Now add the default placement back by running the command below
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"5e53738b05c16c74fad22e1c1c1c1cc8c0566992", GitTreeState:"clean", BuildDate:"2022-08-24T11:43:24Z", GoVersion:"go1.18.4", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3+kcp-v0.8.2", GitCommit:"7e4e8d8", GitTreeState:"dirty", BuildDate:"2022-09-08T18:45:51Z", GoVersion:"go1.18.6", Compiler:"gc", Platform:"linux/amd64"}
Describe the bug
When placements are deleted and readded back i do not see deployment going to 1/1 from 0/1 in case of shared compute and this does not happen with BYO cluster.
Steps To Reproduce
Login to stable-env
Create a workspace using the command ‘kubectl kcp workspace create kcpqetest1 --enter’
Add shared compute to the workspace using the command below
A placement with the name ‘default’ will be created.
Now create deployment with the command below
kubectl create deployment kuard --image gcr.io/kuar-demo/kuard-amd64:blue --dry-run=client -o yaml > kuard.yaml
Kubectl apply -f kuard.yaml
Now run the command ‘kubectl get deployment’ and make sure that deployment is up and running fine.
Delete the placement by running the command ‘kubectl delete placement default’
Verify that namespace shows ‘No placements available’ by running the command ‘kubectl get ns default -o yaml’ and deployment still shows 1/1 which is expected as the syncer does not see the deployment anymore since the annotations are removed from the ns & deployment
Now add the default placement back by running the command below
Kubectl apply -f /tmp/placement.yaml
Verify that placement is created and annotations are updated on default ns and deployment by running the commands below
Expected Behaviour
Deployment should be in running state i.e 1/1
Additional Context
Version :
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version. Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"5e53738b05c16c74fad22e1c1c1c1cc8c0566992", GitTreeState:"clean", BuildDate:"2022-08-24T11:43:24Z", GoVersion:"go1.18.4", Compiler:"gc", Platform:"linux/amd64"} Kustomize Version: v4.5.4 Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3+kcp-v0.8.2", GitCommit:"7e4e8d8", GitTreeState:"dirty", BuildDate:"2022-09-08T18:45:51Z", GoVersion:"go1.18.6", Compiler:"gc", Platform:"linux/amd64"}