Skip to content

Move bootstrap constants into bootstrappolicy - #19839

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
simo5:bootpol_constants
May 24, 2018
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
simo5:bootpol_constants

Conversation

@simo5

@simo5 simo5 commented May 24, 2018

Copy link
Copy Markdown

Also eliminates unused constants.
This allows us to drop some authorizationapi dependencies as well.

Fixes #15937

Also eliminates unused constants.
This allows us to drop some authorizationapi dependencies as well.

Signed-off-by: Simo Sorce <[email protected]>
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 24, 2018
@simo5

simo5 commented May 24, 2018

Copy link
Copy Markdown
Author

@mrogers950 @enj PTAL

@mrogers950

Copy link
Copy Markdown

/retest

@simo5

simo5 commented May 24, 2018

Copy link
Copy Markdown
Author

/assign @smarterclayton

@simo5

simo5 commented May 24, 2018

Copy link
Copy Markdown
Author

@smarterclayton please approve

@smarterclayton

smarterclayton commented May 24, 2018 via email

Copy link
Copy Markdown
Contributor

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 24, 2018
NodeSpecSubresource = "spec"
NodeLogSubresource = "log"

RestrictedEndpointsResource = "endpoints/restricted"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add this back and use it in the endpoint controller.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

it was not used, what's the point of holding onto it ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Because the string itself is still being used, meaning it still has meaning.

)

// Resources and Subresources
const (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Put in a synthetic.go file so we know these are used for virtual SARs

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I can add a comment if really needed, I see no reason to add a new file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add a comment then.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

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 ...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@mrogers950

Copy link
Copy Markdown

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 24, 2018
@openshift-ci-robot

Copy link
Copy Markdown

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot
openshift-merge-robot merged commit 74e0c42 into openshift:master May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants