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
I'm trying to target a deployment's pod for deletion when using the ArgoCD CLI. It works in the UI but when I use argocd app delete-resource foo --kind Pod --resource-name foo-pod-12345 I get a no matching resource found error from the command.
That said, if I swap the action from delete-resource to get-resource I can see the pod spec and fields, so the ArgoCD CLI can pull the information from the pod. If I run argocd app resources against the app, I only see the highest level object that manages these pods, like the Deployment object or Statefulset and not its underlying resource like Pods or ReplicaSets.
Is the delete-resource command able to target objects that aren't directly defined in code and managed by ArgoCD like Pods created via StatefulSet or ReplicaSets?
So just to sum it up:
This doesn't work and tells me no matching resources found
argocd app delete-resource foo --kind Pod --resource-name foo-pod-12345
This works and returns the info
argocd app get-resource foo --kind Pod --resource-name foo-pod-12345
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to target a deployment's pod for deletion when using the ArgoCD CLI. It works in the UI but when I use
argocd app delete-resource foo --kind Pod --resource-name foo-pod-12345I get ano matching resource founderror from the command.That said, if I swap the action from
delete-resourcetoget-resourceI can see the pod spec and fields, so the ArgoCD CLI can pull the information from the pod. If I runargocd app resourcesagainst the app, I only see the highest level object that manages these pods, like the Deployment object or Statefulset and not its underlying resource like Pods or ReplicaSets.Is the
delete-resourcecommand able to target objects that aren't directly defined in code and managed by ArgoCD like Pods created via StatefulSet or ReplicaSets?So just to sum it up:
This doesn't work and tells me
no matching resources foundThis works and returns the info
Beta Was this translation helpful? Give feedback.
All reactions