Skip to content
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

Improvement to add skipUndeploy flag for undeploy goal #1358

Closed
guiliguili opened this issue Mar 17, 2022 · 13 comments · Fixed by #1522
Closed

Improvement to add skipUndeploy flag for undeploy goal #1358

guiliguili opened this issue Mar 17, 2022 · 13 comments · Fixed by #1522
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@guiliguili
Copy link
Contributor

guiliguili commented Mar 17, 2022

Description

While it is currently supported to skip apply through the skipApply flag, I would like to have the similar flags for undeploy.

Info

  • Eclipse JKube version : 1.5.1
  • Maven version (mvn -v) :
Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739)
Maven home: /usr/local/Cellar/maven/3.8.3/libexec
Java version: 11.0.13, vendor: SAP SE, runtime: /Library/Java/JavaVirtualMachines/sapmachine-11.jdk/Contents/Home
Default locale: en_FR, platform encoding: US-ASCII
OS name: "mac os x", version: "12.2.1", arch: "x86_64", family: "mac"
  • Kubernetes / Red Hat OpenShift setup and version : N/A

  • Use case :
    I am using multi-module project and I would like to apply/undeploy selectively certains modules based on maven configuration. The only way I can workaround is to the use the widder skip flag but I this would also skip build and resource goals which is not I want.

@rohanKanojia rohanKanojia added the enhancement New feature or request label Mar 17, 2022
@rohanKanojia
Copy link
Member

@guiliguili : Thanks for reporting! I think this makes sense.

I do see a skipDeploy flag in DeployMojo:

https://github.com/eclipse/jkube/blob/d5653eeaedfcda146065e1b674040114ff3be1b0/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/DeployMojo.java#L35-L36

But I don't see any skip flag in UnDeployMojo. Maybe we should add it there as well. Similar flags need to be added in equivalent gradle tasks too.

Would it be possible for you to submit a PR for this?

@guiliguili guiliguili changed the title Improvement to add skipIUndeploy flag for undeploy goal Improvement to add skipUndeploy flag for undeploy goal Mar 17, 2022
@guiliguili
Copy link
Contributor Author

guiliguili commented Mar 17, 2022

Good catch on skipDeploy.

I am kind of busy right now but I should hopefully have some time in a few weeks to submit a PR on this.

@rohanKanojia
Copy link
Member

No worries, we will also try to take this up in the next sprint.

@rohanKanojia rohanKanojia added the good first issue Good for newcomers label Mar 22, 2022
@heloise-viegas
Copy link

Hi @rohanKanojia
Can I give this a try? I'm a newbie to Open source so just wanted to start somewhere

@heloise-viegas
Copy link

Thanks @manusa ! This is my first time contributing so could you please guide me along ? Do I just add the skipDeploy flag as above in UnDeployMojo.java ?

Thanks !!

@Devamparikh
Copy link
Contributor

Hey @heloise-viegas Do you mind if we could work on this issue together??
I really need to solve some issues 😅

@heloise-viegas
Copy link

Hi @Devamparikh,
Sure we can work on this together, in any case I needed help!

@Devamparikh
Copy link
Contributor

Let me know if I could do anything to help. ;)

@heloise-viegas
Copy link

@Devamparikh Do I just add the skipDeploy flag as above in UnDeployMojo.java ? I'm really confused since its my first time..
Maybe we can connect via socials so you can guide me along ...
Thanks :)

@Devamparikh
Copy link
Contributor

Yes, You can communicate more efficiently via gitter.
Link is available in readme of this project.

@manusa
Copy link
Member

manusa commented Apr 26, 2022

polite ping, is anyone of you working on this issue?

@heloise-viegas
Copy link

hi sorry , please unassign me ..someone else could probably take this up

@heloise-viegas heloise-viegas removed their assignment Apr 26, 2022
@Prathamkrishna
Copy link
Contributor

Hey, I'd like to pick this up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants