-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
9f40c31
to
0336493
Compare
26af505
to
767f86c
Compare
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.
Looking good, some questions/comments that we don't need to address, but I wanted to bring up.
"image": { | ||
"image": "docker.io/openpolicyagent/gatekeeper:v3.5.2", | ||
"imagePullPolicy": "Always" | ||
}, |
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.
I'm unsure if we want this in the example, since it's a deprecated part of the CR spec. Do the scorecard tests require every possible field in the CR to be in the examples? If not, I think it would be more useful if the example was closer to what we are encouraging users to create.
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.
I'm happy to remove it from here as well as docs. Perhaps next release we remove it also from the console UI. The release after that we remove completely, including code?
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.
Where is it in the console UI?
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.
This wasn't released yet, so it shouldn't exist in the console UI yet.
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.
Separate PR for removing image
#180
"image": { | ||
"image": "docker.io/openpolicyagent/gatekeeper:v3.5.2", | ||
"imagePullPolicy": "Always" | ||
}, |
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.
This wasn't released yet, so it shouldn't exist in the console UI yet.
"spec": { | ||
"affinity": { | ||
"podAffinity": { | ||
"requiredDuringSchedulingIgnoredDuringExecution": [ |
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.
Should we curate this a little more closely? I imagine users may consider taking the example exactly as-is. I wonder if it would be best to provide a good default sample config that we feel comfortable with if users use it as-is. WDYT?
disabledBuiltins: | ||
- http.send | ||
nodeSelector: | ||
region: "EMEA" |
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.
I like using this default config for something that will be known to work for deploying Gatekeeper. If used as-is, it will prevent Gatekeeper from being deployed until the node is labeled accordingly. For example, we do this during the e2e tests:
gatekeeper-operator/test/e2e/e2e.go
Line 120 in 1d7c4f1
func labelNode(node *corev1.Node) error { |
Do you think we should maintain a separate, good and sane, default config for use during testing and to document the CR options for operatorhub and the console UI? See comment above.
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.
Yes, since this file is used for to populate alm-examples
it would be good to have a well-formed and useful set of defaults here. (It is also pasted exactly into the docs.)
You'll note that i did a bit of config/samples shuffling to keep the tests sorted. We could make this yaml have defaults and then re-run the minimal test with it and confirm it passes?
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.
SGTM. I think we probably want up to 3 configs:
- A sane default config that is used for testing and for the CR documentation in
alm-examples
and we can use this file name for it. - Then we may want to have an empty config that allows the operator to set the defaults Gatekeeper ships with as you're providing in this PR.
- Then optionally another one that allows us to test all options if not all of the options were added to default config from 1. above.
Thoughts?
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.
Let's follow up in new PR #209
nodeSelector: | ||
region: "EMEA" | ||
affinity: | ||
podAffinity: |
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.
Same comment as above. If used as-is, it will prevent Gatekeeper from being deployed until the podAffinity
requirement is met. We do this in e2e tests here:
gatekeeper-operator/test/e2e/e2e.go
Line 134 in 1d7c4f1
func createAffinityPod() { |
767f86c
to
2308743
Compare
2308743
to
077ec29
Compare
@font @JustinKuli This should be ready to go.
|
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.
Awesome @thomasmckay !
No description provided.