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

feat: Rework server:delete to remove consoleLinks, namespace or openshift oauthAuthorizations #842

Merged
merged 6 commits into from
Sep 4, 2020

Conversation

flacatus
Copy link
Collaborator

@flacatus flacatus commented Sep 3, 2020

Signed-off-by: Flavius Lacatusu flacatus@redhat.com

What does this PR do?

This PR have:

  • New flag(--delete-namespace) for server:delete which allows users to delete the namespace after remove Che resources from cluster
  • Remove ConsoleLinks from cluster
  • Remove all oauthClientAuthorizations linked to che instance

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-714
eclipse-che/che#17784

Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
@flacatus flacatus changed the title Rework server:delete to remove consoleLinks or namespace feat: Rework server:delete to remove consoleLinks or namespace Sep 3, 2020
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
@flacatus flacatus changed the title feat: Rework server:delete to remove consoleLinks or namespace feat: Rework server:delete to remove consoleLinks, namespace or openshift consoleLink Sep 3, 2020
@tolusha tolusha mentioned this pull request Sep 3, 2020
58 tasks
src/api/kube.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
src/commands/server/delete.ts Outdated Show resolved Hide resolved
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
.vscode/launch.json Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
src/api/kube.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
src/tasks/che.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
src/tasks/che.ts Outdated Show resolved Hide resolved
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
src/api/kube.ts Outdated Show resolved Hide resolved
src/tasks/che.ts Outdated Show resolved Hide resolved
@flacatus flacatus changed the title feat: Rework server:delete to remove consoleLinks, namespace or openshift consoleLink feat: Rework server:delete to remove consoleLinks, namespace or openshift oauthAuthorizations Sep 4, 2020
src/api/kube.ts Outdated Show resolved Hide resolved
src/api/kube.ts Outdated Show resolved Hide resolved
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
@flacatus
Copy link
Collaborator Author

flacatus commented Sep 4, 2020

I've finished to test new changes in minikube and openshift and seems everything is correct:

Openshift:

  1. Install Eclipse Che with OAuth + login into Eclipse Che [I create 2 users to create oauthAuthorizations]
  2. server:delete, check if any resources exist(consoleLink, oauthAuths...)... work fine
  3. Execute again and check if fix Angel issue [Object object] (Executing chectl server:delete twice gives Error: [object Object] eclipse-che/che#17784).. Fixed
  4. Install Eclipse Che without OAuth
  5. server:delete to check if resources are removed... Work fine.

Minikube:
Basically I did the same steps like for openshift but without oauth and seems everything works fine

@flacatus flacatus merged commit 7f092fd into che-incubator:master Sep 4, 2020
@che-bot che-bot added this to the 7.19 milestone Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants