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

Fixed removing of PVCs when OpenShift project name is predefined #9437

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

sleshchenko
Copy link
Member

@sleshchenko sleshchenko commented Apr 16, 2018

What does this PR do?

The bug appeared on OpenShift infrastructure because of che.infra.kubernetes.namespace configuration property. It is used by few components which are bound for both Kubernetes and OpenShift infrastructure. But OpenShift infrastructure introduces a new property called che.infra.openshift.project and ignore old one. So components used non-configured property, it was a reason why WorkspacePVCCleaner doesn't subscribe to WorkspaceRemoved events.

This PR introduces changes to avoiding injection of che.infra.kubernetes.namespace configuration property. Instead of it, components should use other components like KubernetesNamespaceFactory, KubernetesNamespace, which are overridden by OpenShift infrastructure (OpenShiftProjectFactory, OpenShiftProject).

What issues does this PR fix or reference?

#9431

Release Notes

N/A

Docs PR

N/A

@sleshchenko sleshchenko added kind/bug Outline of a bug - must adhere to the bug report template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Apr 16, 2018
@sleshchenko sleshchenko self-assigned this Apr 16, 2018
Copy link

@garagatyi garagatyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@sleshchenko sleshchenko merged commit 689e123 into eclipse-che:master Apr 16, 2018
@sleshchenko sleshchenko deleted the CHE-9431 branch April 16, 2018 13:49
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Apr 16, 2018
@benoitf benoitf added this to the 6.4.0 milestone Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants