-
Notifications
You must be signed in to change notification settings - Fork 243
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
odo delete component on podman with --name #6437
odo delete component on podman with --name #6437
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
ccef060
to
86557b6
Compare
if len(podmanResources) > 0 { | ||
log.Printf("The following pods and associated volumes will be deleted from podman:") | ||
for _, pod := range podmanResources { | ||
fmt.Printf("\t- %s\n", pod.GetName()) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you could modify printDevfileComponents
to print podman resources as well so that the output is similar for both devfile and podman resources?
@@ -285,6 +319,7 @@ func (o *ComponentOptions) deleteDevfileComponent(ctx context.Context) error { | |||
log.Warningf("Failed to delete the pod %q from podman: %s\n", pod.GetName(), err) | |||
} | |||
} | |||
log.Infof("The component %q is successfully deleted from podman", o.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.Infof("The component %q is successfully deleted from podman", o.name) | |
log.Infof("The component %q is successfully deleted from podman", componentName) |
componentName, namespace string, | ||
k8sResources []unstructured.Unstructured, | ||
podmanResources []*corev1.Pod, | ||
) { | ||
log.Infof("This will delete %q from the namespace %q.", componentName, namespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix this message to also indicate podman if podmanResources are present?
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/override ci/prow/v4.11-integration-e2e |
@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.11-integration-e2e In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this:
/kind feature
What does this PR do / why we need it:
odo delete component
on podman with--name
Which issue(s) this PR fixes:
Fixes #6296
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: