mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-08-31 08:39:24 +00:00
feat(chart): apply commonLabels to all rendered resources (#739)
Applies commonLabels to every rendered resource, wires up the likewise-unused dashboard.persistence.labels, and adds the missing README rows. Closes #730 Co-authored-by: ashutoshbhardwaj007 <ashutosh.bhardwaj@poppulo.com>
This commit is contained in:
@@ -68,6 +68,7 @@ The following table lists the configurable parameters of the chart and their def
|
||||
| `service.port ` | Kubernetes service port | `8080` |
|
||||
| `serviceAccount.create` | Creates a service account | `true` |
|
||||
| `serviceAccount.name` | Optional name for the service account | `{RELEASE_FULLNAME}` |
|
||||
| `commonLabels` | Labels to add to all resources managed by this chart | `{}` |
|
||||
| `nodeSelector` | Node labels for pod assignment | |
|
||||
| `affinity` | Affinity settings for pod assignment | |
|
||||
| `tolerations` | Tolerations for pod assignment | |
|
||||
@@ -75,6 +76,8 @@ The following table lists the configurable parameters of the chart and their def
|
||||
| `dashboard.persistence.accessModes` | Persistent Volume access modes | `["ReadWriteOnce"]` |
|
||||
| `dashboard.persistence.storageClass` | Persistent Volume storage class | `""` |
|
||||
| `dashboard.persistence.size` | Persistent Volume size | `100M` |
|
||||
| `dashboard.persistence.labels` | Extra labels for the Persistent Volume Claim | `{}` |
|
||||
| `dashboard.persistence.annotations` | Annotations for the Persistent Volume Claim | `{}` |
|
||||
| `dashboard.persistence.finalizers` | Finalizers for the Persistent Volume Claim | `[kubernetes.io/pvc-protection]` |
|
||||
| `dashboard.persistence.lookupVolumeName` | Lookup volume name for the Persistent Volume Claim | `true` |
|
||||
| `updateStrategy.type` | Set up update strategy for helm-dashboard installation. | `RollingUpdate` |
|
||||
|
||||
@@ -33,6 +33,9 @@ helm.sh/chart: {{ include "helm-dashboard.chart" . }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- with .Values.commonLabels }}
|
||||
{{ toYaml . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
|
||||
@@ -20,6 +20,9 @@ spec:
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "helm-dashboard.selectorLabels" . | nindent 8 }}
|
||||
{{- with .Values.commonLabels }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- include "helm-dashboard.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "helm-dashboard.serviceAccountName" . }}
|
||||
|
||||
@@ -6,6 +6,9 @@ metadata:
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
labels:
|
||||
{{- include "helm-dashboard.labels" . | nindent 4 }}
|
||||
{{- with .Values.dashboard.persistence.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.dashboard.persistence.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
|
||||
@@ -14,6 +14,8 @@ kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ include "helm-dashboard.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "helm-dashboard.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: ["*"]
|
||||
resources: ["*"]
|
||||
@@ -28,6 +30,8 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ include "helm-dashboard.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "helm-dashboard.labels" . | nindent 4 }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
|
||||
@@ -39,6 +39,10 @@ resources:
|
||||
cpu: 1
|
||||
memory: 1Gi
|
||||
|
||||
## Labels to add to all resources managed by this chart
|
||||
##
|
||||
commonLabels: {}
|
||||
|
||||
dashboard:
|
||||
allowWriteActions: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user