-
Notifications
You must be signed in to change notification settings - Fork 28
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
Adjust Gatekeeper Policy Installation For Improved CLI Installations #414
Conversation
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.
LGTM
- nice, thanks for the constraints move - Chris
@alaincormier-ssc @davelanglois-ssc @fmichaelobrien I made the changes discussed yesterday and wanted to get your input before I start fixing the README and Kptfiles. Created a new solution directory called |
that should work |
That's what I was thinking, might be overkill but I believe having specific task based bundles makes sense. I was using the Anthos Gatekeeper Bundles as by point of reference. |
Hey @cartyc, I really like the concept. If I understand correctly, the constrainttemplate would remain in the existing |
That's correct, the package would just act as a means to load the |
Thanks Chris. I'll review the template changes post last month's discussion - later today after my last deployment meet. Deploying a new lz anyway. |
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.
LGTM
- nice
- dryrun is appreciated - in particular for the cost-center/centre ones
- will reapprove if required after lint commit
Thanks Mike, I was just cracking open an editor to start hacking away at the linting issues. |
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.
LGTM
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.
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.
LGTM
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.
LGTM
- yes lint is soooo particular on CR/LF spaces...
- thanks for taking the heat
solutions/policy-constraint-bundles/std-protectedb-policies/README.md
Outdated
Show resolved
Hide resolved
solutions/policy-constraint-bundles/std-protectedb-policies/README.md
Outdated
Show resolved
Hide resolved
solutions/policy-constraint-bundles/std-protectedb-policies/required-labels/cost-center.yaml
Outdated
Show resolved
Hide resolved
solutions/policy-constraint-bundles/std-unclass-policies/README.md
Outdated
Show resolved
Hide resolved
solutions/policy-constraint-bundles/std-unclass-policies/README.md
Outdated
Show resolved
Hide resolved
solutions/policy-constraint-bundles/std-unclass-policies/required-labels/cost-center.yaml
Outdated
Show resolved
Hide resolved
@davelanglois-ssc should be good for a final review. |
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.
LGTM
the dryrun is appreciated
...s/gatekeeper-policy-constraint-bundles/std-unclass-policies/required-labels/cost-center.yaml
Outdated
Show resolved
Hide resolved
...atekeeper-policy-constraint-bundles/std-protectedb-policies/required-labels/cost-center.yaml
Outdated
Show resolved
Hide resolved
solutions/gatekeeper-policy-constraint-bundles/guardrails-v1/required-labels/cost-center.yaml
Outdated
Show resolved
Hide resolved
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.
LGTM
- last change good
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.
LGTM
closing - keep reference code only |
This PR moves the gatekeeper
constraints
from thegatekeeper-policies
package to thecore-landing-zone
package. This will help resolve issue #409 and allow for easier non-gitops based installation approaches as this allows for theConstraintTemplate
to be installed before the gatekeeperconstraint
file and prevents the issue where one would need to comment out of theconstraint
file first before apply thegatekeeper-policies
package.The overall goal of this PR is to improve the installation process for users of non-gitops based installs,
kpt
in particular. This would also allow us to install moreconstraintTemplates
via thegatekeeper-policies
package into the cluster without needing to enable them right away.