Skip to content
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

Helm chart should manage namespace more consistently #621

Closed
TBBle opened this issue Nov 25, 2020 · 5 comments
Closed

Helm chart should manage namespace more consistently #621

TBBle opened this issue Nov 25, 2020 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@TBBle
Copy link

TBBle commented Nov 25, 2020

/kind bug

What happened?

The Helm chart does not honour the --namespace parameter for Helm, all resources hard-code the kube-system namespace, meaning it's possible to install the Helm chart metadata in a different namespace from the actual resources.

What you expected to happen?

Either:

  • The Helm chart honours --namespace and namespaced resources are created in the provided namespace; or
  • The Helm chart rendering fails if --namespace is not passed as kube-system.

How to reproduce it (as minimally and precisely as possible)?

kubectl create namespace aws-ebs-csi-driver
helm upgrade --install aws-ebs-csi-driver \
    --namespace aws-ebs-csi-driver \
    --set enableVolumeScheduling=true \
    --set enableVolumeResizing=true \
    --set enableVolumeSnapshot=true \
    https://github.com/kubernetes-sigs/aws-ebs-csi-driver/releases/download/v0.7.1/helm-chart.tgz
kubectl --namespace aws-ebs-csi-driver get daemonset ebs-csi-node

I would expect to see the AWS EBS CSI driver Daemonset in the output of the last command, or for the helm call to fail.

Anything else we need to know?:

I assume that this project currently depends on being installed in kube-system, as it is system-node-critical. So the obvious resolution to me is to add a check to NOTES.txt that fails rendering if .Release.Namespace is not kube-system.

Either way, it would be a more-consistent-with-common-practice chart if all the hard-coded kube-system references in the chart were replaced with .Release.Namespace.

Environment

  • Kubernetes version (use kubectl version): N/A
  • Driver version: Untested, observed in the Helm chart templates.
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 25, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 23, 2021
@TBBle
Copy link
Author

TBBle commented Feb 23, 2021

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 23, 2021
@krmichel
Copy link
Contributor

@ayberk Looks like this didn't get tied to PR #768 and didn't get closed when that was merged.

@ayberk
Copy link
Contributor

ayberk commented Mar 25, 2021

/close

@k8s-ci-robot
Copy link
Contributor

@ayberk: Closing this issue.

In response to this:

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

5 participants