Skip to content

Fix namespace for deployment under OCP user account#10267

Merged
dmytro-ndp merged 2 commits intomasterfrom
che-10265
Jul 4, 2018
Merged

Fix namespace for deployment under OCP user account#10267
dmytro-ndp merged 2 commits intomasterfrom
che-10265

Conversation

@dmytro-ndp
Copy link
Copy Markdown
Contributor

@dmytro-ndp dmytro-ndp commented Jul 4, 2018

What does this PR do?

It fixes namespace of Kubernetes client which is used to operate with OCP deployments.

(Fixup was kindly proposed by @sleshchenko.)

What issues does this PR fix or reference?

#10265

Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
@dmytro-ndp dmytro-ndp requested a review from sleshchenko July 4, 2018 13:36
@dmytro-ndp dmytro-ndp requested a review from garagatyi as a code owner July 4, 2018 13:36
@benoitf benoitf added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/bug Outline of a bug - must adhere to the bug report template. labels Jul 4, 2018
Copy link
Copy Markdown
Member

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

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

LGTM


ReplicaSet replicaSet =
clientFactory.create(workspaceId).extensions().replicaSets().withName(replicaSetName).get();
clientFactory.create(workspaceId).extensions().replicaSets().inNamespace(namespace).withName(replicaSetName).get();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This line looks too long. Please make sure that it is well formatted (mvn fmt:format)

Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
Copy link
Copy Markdown

@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!

@dmytro-ndp dmytro-ndp merged commit c989282 into master Jul 4, 2018
@dmytro-ndp dmytro-ndp deleted the che-10265 branch July 4, 2018 15:19
@benoitf benoitf added this to the 6.8.0 milestone Jul 4, 2018
@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 Jul 4, 2018
hbhargav pushed a commit to hbhargav/che that referenced this pull request Dec 5, 2018
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
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