-
Notifications
You must be signed in to change notification settings - Fork 291
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
[stable/kube-downscaler] Kube-Downscaler does not respect release namespace when templating #601
[stable/kube-downscaler] Kube-Downscaler does not respect release namespace when templating #601
Conversation
The `kube-downscaler` helm chart doesn't honor the namespace passed in to helm. This is because the chart is missing the typical metadata configuration on its kubernetes resources. ie, this problem is the same as this one for another chart: deliveryhero#216 To reproduce this problem: ```bash helm fetch deliveryhero/kube-downscaler --version 0.7.4 --untar=true helm template my-release kube-downscaler --namespace kube-systen > kube-downscaler.yaml ``` The `deployment.yaml` and other files will have no namespace. ie, it is not configured here: https://github.com/deliveryhero/helm-charts/blob/0b420820e3f88d5e7f9f10ddd1c9a029adb9a422/stable/kube-downscaler/templates/deployment.yaml#L3 Fix is as below: ```yaml apiVersion: apps/v1 kind: Deployment metadata: name: "{{ $fullname }}-{{ .name }}" namespace: {{ .Release.Namespace }} ```
@hlascelles there was a checklist of items that are required to make a PR mergeable that you deleted when you opened the PR 😃 https://github.com/deliveryhero/helm-charts/blob/master/.github/pull_request_template.md#checklist |
Nice! Hmm, that doc regenerate wiped out a lot. Is that right? |
Not right, you need to run it from repo root |
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.
Nice, thanks @hlascelles 💜
…espace when templating (deliveryhero#601) * Kube-Downscaler does not respect release namespace when templating The `kube-downscaler` helm chart doesn't honor the namespace passed in to helm. This is because the chart is missing the typical metadata configuration on its kubernetes resources. ie, this problem is the same as this one for another chart: deliveryhero#216 To reproduce this problem: ```bash helm fetch deliveryhero/kube-downscaler --version 0.7.4 --untar=true helm template my-release kube-downscaler --namespace kube-systen > kube-downscaler.yaml ``` The `deployment.yaml` and other files will have no namespace. ie, it is not configured here: https://github.com/deliveryhero/helm-charts/blob/0b420820e3f88d5e7f9f10ddd1c9a029adb9a422/stable/kube-downscaler/templates/deployment.yaml#L3 Fix is as below: ```yaml apiVersion: apps/v1 kind: Deployment metadata: name: "{{ $fullname }}-{{ .name }}" namespace: {{ .Release.Namespace }} ``` * Bump version for change * Regenerate docs * Regenerate docs
The
kube-downscaler
helm chart doesn't honour the namespace passed in to helm. This is because the chart is missing the typical metadata configuration on its kubernetes resources. ie, this problem is the same as this one for another chart: #216To reproduce this problem:
helm fetch deliveryhero/kube-downscaler --version 0.7.4 --untar=true helm template my-release kube-downscaler --namespace kube-system > kube-downscaler.yaml
The
deployment.yaml
and other files will have no namespace. ie, it is not configured here:helm-charts/stable/kube-downscaler/templates/deployment.yaml
Line 3 in 0b42082
Fix is as below for the required resources:
Checklist
[stable/mychartname]
)