You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
helm -n kube-dash template kube-dash kubernetes-dashboard/kubernetes-dashboard --kube-version 1.22 --set app.security.podDisruptionBudget.enabled=true -s templates/security/pdb.yaml
---
# Source: kubernetes-dashboard/templates/security/pdb.yaml
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
labels:
helm.sh/chart: kubernetes-dashboard-7.0.3
app.kubernetes.io/instance: kube-dash
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: kubernetes-dashboard
annotations:
name: kube-dash-kubernetes-dashboard
spec:
selector:
matchLabels:
app.kubernetes.io/instance: kube-dash
app.kubernetes.io/part-of: kubernetes-dashboard
Anything else we need to know?
$ helm version
version.BuildInfo{Version:"v3.12.1", GitCommit:"v3.12.1", GitTreeState:"", GoVersion:"go1.20.5"}
What browsers are you seeing the problem on?
No response
Kubernetes Dashboard version
v3.0.0-alpha0
Kubernetes version
1.22
Dev environment
No response
The text was updated successfully, but these errors were encountered:
What happened?
Helm chart has multiple tempting bugs.
Settings a
app.nodeSelector
causes the API deployment to be rendered incorrectly. I think this is becausenodeSelector
is wrapped in awith
https://github.com/kubernetes/dashboard/blob/cc7a08fb3f0fc4e3c792a830fd8321f68f6cfe1e/charts/helm-chart/kubernetes-dashboard/templates/deployments/api.yaml#L90C28-L90C40, but by default that value is emptydashboard/charts/helm-chart/kubernetes-dashboard/values.yaml
Line 153 in cc7a08f
web.nodeSelector
&api.nodeSelector
.With enabling the PDB, the
apiVersion
ends up on the same line as the license because of the trailing chomping template directivedashboard/charts/helm-chart/kubernetes-dashboard/templates/security/pdb.yaml
Line 15 in cc7a08f
*This is not a exhaustive list, just the issues I've run into.
What did you expect to happen?
Templates to be rendered correctly.
How can we reproduce it (as minimally and precisely as possible)?
helm -n kube-dash template kube-dash kubernetes-dashboard/kubernetes-dashboard --kube-version 1.22 --set app.scheduling.nodeSelector.test=1
Anything else we need to know?
What browsers are you seeing the problem on?
No response
Kubernetes Dashboard version
v3.0.0-alpha0
Kubernetes version
1.22
Dev environment
No response
The text was updated successfully, but these errors were encountered: