Skip to content
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

Drop template wrapping from bootstrap policy file #19847

Merged

Conversation

mrogers950
Copy link

fixes #19819
This will also need doc updates wherever oc process is invoked to pass a bootstrap file to oc auth reconcile

@mrogers950 mrogers950 requested a review from enj May 25, 2018 14:03
@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 25, 2018
@mrogers950
Copy link
Author

/retest

@enj
Copy link
Contributor

enj commented May 25, 2018

This will also need doc updates wherever oc process is invoked to pass a bootstrap file to oc auth reconcile

It is impossible for any docs to exist. You recently made the bootstrap file have a format that auth reconcile would even look at (RBAC)

}
}

versionedPolicyTemplate, err := legacyscheme.Scheme.ConvertToVersion(policyTemplate, latest.Version)
versionedPolicyList, err := legacyscheme.Scheme.ConvertToVersion(policyList, latest.Version)
Copy link
Contributor

Choose a reason for hiding this comment

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

Confirm that this is still needed.

Copy link
Author

Choose a reason for hiding this comment

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

Yep, without this the file has no List

@enj
Copy link
Contributor

enj commented May 25, 2018

@openshift/sig-security @openshift/cli-review any concerns about changing this to just a list of items instead a template? No template features were used and we just changed the entire encoding of the file in #19756. It allows us to drop a pointless oc process.

@simo5
Copy link
Contributor

simo5 commented May 25, 2018

I have no objections dropping template, it doesn't seem useful for bootstrap roles anyway

@soltysh
Copy link
Contributor

soltysh commented May 25, 2018

👍 for the change

@enj
Copy link
Contributor

enj commented May 29, 2018

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enj, mrogers950

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@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 29, 2018
@mrogers950
Copy link
Author

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@mrogers950
Copy link
Author

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit a861408 into openshift:master May 31, 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. sig/security size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove template wrapper from the bootstrap policy file
7 participants