-
Notifications
You must be signed in to change notification settings - Fork 88
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: don't take control over DWO which is not managed by Che #1085
Conversation
b5b6c3e
to
062e859
Compare
/test v7-devworkspace-happy-path |
v7-devworkspace-happy-path and the only failure I see, Che Operator reports:
|
/test v7-devworkspace-happy-path |
062e859
to
dff323b
Compare
dff323b
to
eac4174
Compare
This comment has been minimized.
This comment has been minimized.
ccee98d
to
359ec07
Compare
This comment has been minimized.
This comment has been minimized.
282f7e8
to
1659d59
Compare
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.
Other then Angel's comments it looks good to me
4cdd6ad
to
86a1b34
Compare
pkg/deploy/service_account.go
Outdated
isCreated, err := CreateIfNotExists(deployContext, saSpec) | ||
if err != nil { | ||
return false, err | ||
} | ||
// we're done if SA already exist | ||
return !isCreated, nil |
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.
isCreated, err := CreateIfNotExists(deployContext, saSpec) | |
if err != nil { | |
return false, err | |
} | |
// we're done if SA already exist | |
return !isCreated, nil | |
_, err := CreateIfNotExists(deployContext, saSpec) | |
return err == nil, err |
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.
well, it depends on policy whether we should do reconcile after object is created/modified or not.
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.
let's discuss it
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: amisevsk, JPinkney, mmorhun, sleshchenko, tolusha The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
04eeaea
to
54a66eb
Compare
/retest |
2 similar comments
/retest |
/retest |
What does this PR do?
It's really annoying when you do
make install
from DWO repo, and expect your custom DWO be installed, but then Che operator takes control over DWO.There is a weird way to workaround it - cluster DWO CSV, but I believe the proper solution is not to take control over DWO which is not managed by Che.
Initially, it was supposed to be simple PR, but then I noticed a few bugs and inaccuracies, so it also brings refactoring to the whole devworkspace package.
Screenshot/screencast of this PR
What issues does this PR fix or reference?
N/A
How to test this PR?
unit tests pretty everything, but for manual test you may:
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.