Repository navigation
Move bootstrap constants into bootstrappolicy - #19839
Conversation
Also eliminates unused constants. This allows us to drop some authorizationapi dependencies as well. Signed-off-by: Simo Sorce <[email protected]>
|
@mrogers950 @enj PTAL |
|
/retest |
|
/assign @smarterclayton |
|
@smarterclayton please approve |
|
/approve
…On Thu, May 24, 2018 at 2:42 PM, Simo Sorce ***@***.***> wrote:
@smarterclayton <https://github.com/smarterclayton> please approve
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19839 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG_p_MHJOX4pxWzMGsIUudDpDwwnEAUks5t1v8PgaJpZM4UMswg>
.
|
| NodeSpecSubresource = "spec" | ||
| NodeLogSubresource = "log" | ||
|
|
||
| RestrictedEndpointsResource = "endpoints/restricted" |
There was a problem hiding this comment.
Add this back and use it in the endpoint controller.
There was a problem hiding this comment.
there is no point, they changed how it is dealt with and the constant is not applicable, I looked at the commit that introduced it and current code, before removing
There was a problem hiding this comment.
The string is still used in a cluster role so either the constant needs to exist or we need to move the cluster role to dead.go
There was a problem hiding this comment.
it was not used, what's the point of holding onto it ?
There was a problem hiding this comment.
Because the string itself is still being used, meaning it still has meaning.
| ) | ||
|
|
||
| // Resources and Subresources | ||
| const ( |
There was a problem hiding this comment.
Put in a synthetic.go file so we know these are used for virtual SARs
There was a problem hiding this comment.
I can add a comment if really needed, I see no reason to add a new file
There was a problem hiding this comment.
Ok, let me ask, why do we care for saying these constants are synthetic ?
Is there some fundamental property we need to highlight ?
To me a constant is a constant is a constant ...
There was a problem hiding this comment.
They are special because we made them up or in some way gave them meaning. get pods is obvious because we know what a pod is. This is not true for the synthetic checks because they do not line up with an API resource.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrogers950, simo5, smarterclayton The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Also eliminates unused constants.
This allows us to drop some authorizationapi dependencies as well.
Fixes #15937