kube play --replace doesn't always replace pod #19711
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kube
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
When using
podman kube play
, sometimes--replace
doesn't replace a previously created pod of the same name. It seems to only happen if the yaml is broken in a specific way, and then pods are played again. Also, it only happens when the yaml contains multiple deployments, and the first deployment is the one that is broken.Steps to reproduce the issue
To reproduce the issue, use the yaml below:
deployments.yaml
cat deployments.yaml | podman kube play - --replace
cat deployments.yaml | podman kube play - --replace
cat deployments.yaml | podman kube play - --replace
Describe the results you received
You should see the error:
Error: encountered while bringing up pod busybox-deployment-pod: adding pod to state: name "busybox-deployment-pod" is in use: pod already exists
Describe the results you expected
I expected the pod to be re-created because it shares the same name as the new pod.
podman info output
The text was updated successfully, but these errors were encountered: