-
Notifications
You must be signed in to change notification settings - Fork 27
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
ILS-233 Add additional check to prevent adding terminating namespace to OperatorGroup #946
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Alicja Niewiadomska <[email protected]>
Signed-off-by: Alicja Niewiadomska <[email protected]>
Signed-off-by: Alicja Niewiadomska <[email protected]>
Signed-off-by: Alicja Niewiadomska <[email protected]>
Signed-off-by: Alicja Niewiadomska <[email protected]>
just for the context, this is not really a real scenario as the normal scenario would be:
In such scenario I assume LS will not crash (at least immediately) as the bindings were already created. Anyway, this is not a regression, so this does not need to be included in SC2 4.6.8. |
Signed-off-by: Alicja Niewiadomska <[email protected]>
Signed-off-by: Alicja Niewiadomska <[email protected]>
Test scenarios
LS operator image:
|
controllers/operatorgroup_cleaner.go
Outdated
if err != nil { | ||
if client.IgnoreNotFound(err) != nil { | ||
return true, err | ||
return false, err | ||
} | ||
return false, 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.
Shouldn't this just be like so now?
if err != nil {
return false, err
}
Signed-off-by: Alicja Niewiadomska <[email protected]>
Signed-off-by: Alicja Niewiadomska <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alicenoknow, kflorianski-ibm, ljeda The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Alicja Niewiadomska <[email protected]>
Follow-up to: #945
Currently terminating namespace can be added by our
operandrequests-discovery
feature to the OpertorGroup. In such case operator cannot create bindings in that namespace and crashes.