-
Notifications
You must be signed in to change notification settings - Fork 334
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
feat: added hostPID capability for linux daemonset #417
Conversation
|
Welcome @jamesalford! |
Hi @jamesalford. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jamesalford The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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
@@ -28,6 +28,9 @@ spec: | |||
{{ .Values.podAnnotations | toYaml | trim | indent 8 }} | |||
{{- end }} | |||
spec: | |||
{{- if .Values.hostPID }} | |||
hostPID: true |
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.
Nit: Maybe this should be:
hostPID: {{ .Values.hostPID }}
The default value in the reference is false
https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podspec-v1-core, also the value set from the chart is false
so I think the above would work.
@@ -231,6 +231,7 @@ provisioner chart and their default values. | |||
| serviceMonitor.namespace | The namespace Prometheus servicemonitor will be installed | str | `.Release.Namespace` | | |||
| serviceMonitor.additionalLabels | Additional labels for the servicemonitor | map | `-` | | |||
| serviceMonitor.relabelings | Additional metrics relabel_config | lists | `-` | | |||
| hostPID | Add `hostPID: true` to the container spec for linux daemonset. | bool | `false` | |
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.
If you consider the comment below then the docs should be updated too.
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
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-sigs/prow repository. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds the ability to add hostPID to the container spec for linux daemonset. This is used to execute scripts in init containers that modify the host storage
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: