-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
CLA signed |
/assign @linki |
apiVersion: extensions/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
name: {{ template "grafana.fullname" . }} |
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.
Add standard labels.
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.
Done!
/assign |
privileged: false | ||
allowPrivilegeEscalation: false | ||
allowedCapabilities: | ||
- CAP_CHOWN |
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 and the 'RunAsAny' on line 32 are only needed for images prior to 5.1.0. I could condition on the image tag to render the most restrictive PSP. I'm not sure if that's needed/desired.
What's the typical approach, here?
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.
Agreed with @unguiculus . I think we might add kubeVersion
in Chart.yaml file (e.g. kubeVersion: 1.9
) as charts.md suggested.
*/}} | ||
{{- define "grafana.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create -}} | ||
{{ default (include "grafana.fullname" .) .Values.rbac.serviceAccountName }} |
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.
.Values.serviceAccount.name
{{- if .Values.serviceAccount.create -}} | ||
{{ default (include "grafana.fullname" .) .Values.rbac.serviceAccountName }} | ||
{{- else -}} | ||
{{ default "default" .Values.rbac.serviceAccountName }} |
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.
.Values.serviceAccount.name
stable/grafana/Chart.yaml
Outdated
@@ -1,5 +1,5 @@ | |||
name: grafana | |||
version: 1.3.0 | |||
version: 1.3.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.
Bump minor version.
privileged: false | ||
allowPrivilegeEscalation: false | ||
allowedCapabilities: | ||
- CAP_CHOWN |
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.
/ok-to-test |
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
CI is showing this: Any idea what that's about? |
@mikeraimondi It's about the recently update grafana chart RBAC standardization. |
Updated with latest changes and passing CI! Let me know if anything else needs to be fixed up. CC @unguiculus |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikeraimondi, unguiculus, zanhsieh 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 |
* add RBAC to Grafana * bump version * add standard labels * conditionalize PSP role * fix whitespace * fix reference to serviceAccount * update version to not require root or chown * set minimum kubeVersion to earliest version w/ stable RBAC * attempt to fix test failure * blind attempt to fix CI failure * match versions between stable RBAC and possible breaking changes in 2.x * include pre-release versions
* add RBAC to Grafana * bump version * add standard labels * conditionalize PSP role * fix whitespace * fix reference to serviceAccount * update version to not require root or chown * set minimum kubeVersion to earliest version w/ stable RBAC * attempt to fix test failure * blind attempt to fix CI failure * match versions between stable RBAC and possible breaking changes in 2.x * include pre-release versions Signed-off-by: voron <av@arilot.com>
* add RBAC to Grafana * bump version * add standard labels * conditionalize PSP role * fix whitespace * fix reference to serviceAccount * update version to not require root or chown * set minimum kubeVersion to earliest version w/ stable RBAC * attempt to fix test failure * blind attempt to fix CI failure * match versions between stable RBAC and possible breaking changes in 2.x * include pre-release versions
What this PR does / why we need it: