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
make resourcequota and priorityClassName's optional #1425
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.
Thank you for the PR!
A couple comments
cmd/build/helmify/main.go
Outdated
} | ||
|
||
if name == "gatekeeper-controller-manager" && kind == DeploymentKind { | ||
obj = strings.Replace(obj, " priorityClassName: system-cluster-critical", " {{- if .Values.resourceQuota }} \n priorityClassName: {{ .Values.controllerManager.priorityClassName }}\n {{- end }}", 1) |
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 this be gated on values.controllerManager.priortyClassName
, and similar for audit?
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.
thank you so much, it is my bad 🤦🏻♂️ it should be values.audit.priorityClassName
. I fixed it.
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 still seeing a test against resourceQuota
?: if .Values.resourceQuota
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 time, it should be ok @maxsmythe. 🙏
I updated the code according to your reviews @maxsmythe, thanks for helping me to fix the issues. 🙏 |
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
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.
Thanks! LGTM!
@sozercan LGTY?
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
How can we include this PR in the next milestones @sozercan? I just want to know the version when this PR gets released. |
…t#1425) Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com> Signed-off-by: juliankatz <juliankatz@google.com>
Signed-off-by: Batuhan Apaydın batuhan.apaydin@trendyol.com
What this PR does / why we need it:
This PR aims to provide conditional logic for resource
ResourceQuota
and fieldpriorityClassName
for bothaudit
andcontroller-manager
deployment resource for Gatekeeper.Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when the PR gets merged):Fixes #1421
Special notes for your reviewer: