Skip to content

Commit

Permalink
add more labels to pod
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikDK committed Apr 19, 2024
1 parent 21607ab commit 5599462
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
41 changes: 37 additions & 4 deletions charts/heimdall-dashboard/templates/ui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ spec:
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podLabels }}
labels:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "heimdall.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
Expand All @@ -36,10 +39,40 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
- name: APP_MODE
value: "ReadOnly"
- name: NAMESPACE_FILTERS
value: {{ .Values.namespaceFilter }}
{{- if .Values.dashboard.metricsSecretName }}
- name: metrics_user
valueFrom:
secretKeyRef:
name: {{ .Values.dashboard.metricsSecretName }}
key: username
optional: False
- name: metrics_password
valueFrom:
secretKeyRef:
name: {{ .Values.dashboard.metricsSecretName }}
key: password
optional: false
{{- end }}
- name: metrics
value: {{ .Values.dashboard.metrics | quote }}
- name: metrics_type
value: {{ .Values.dashboard.metricsType | quote }}
- name: filters
value: {{ .Values.dashboard.namespaceFilters | quote }}
- name: can_restart_pods
value: {{ .Values.dashboard.canRestartPods | quote }}
- name: can_scale_pods
value: {{ .Values.dashboard.canScalePods | quote }}
- name: cluster_metrics_service
value: {{ .Values.dashboard.clusterMetricsService | quote }}
- name: cluster_metrics_namespace
value: {{ .Values.dashboard.clusterMetricsNamespace | quote }}
- name: cluster_metrics_port
value: {{ .Values.dashboard.clusterMetricsPort | quote }}
- name: external_metrics_url
value: {{ .Values.dashboard.externalMetricsUrl | quote }}
- name: external_metrics_headers
value: {{ .Values.dashboard.externalMetricsHeaders | quote }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/heimdall-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ ingressClass: ""
# Annotations added to the ingress:
ingressAnnotations: {}

# Option to add more labels
podLabels: []

imagePullSecrets: []

podAnnotations: {}
Expand Down

0 comments on commit 5599462

Please sign in to comment.