Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/helm_lib/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
type: library
name: deckhouse_lib_helm
version: 1.69.0
version: 1.69.1
description: "Helm utils template definitions for Deckhouse modules."
8 changes: 8 additions & 0 deletions charts/helm_lib/templates/_module_controller.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ memory: 50Mi
- webhooksCertMountPath: mount path for webhook certs (default: "/etc/webhook/certs")
- webhooksCommand: command for webhooks container
- controllerPort: port for controller probes (default: 8081)
- controllerMetricsPort: port for controller metrics (optional, no port exposed if not set)
*/ -}}
{{- define "helm_lib_module_controller_manifests" }}
{{- $context := index . 0 }}
Expand Down Expand Up @@ -68,6 +69,7 @@ memory: 50Mi
{{- $webhooksCertMountPath := $config.webhooksCertMountPath | default "/etc/webhook/certs" }}
{{- $webhooksCommand := $config.webhooksCommand }}
{{- $controllerPort := $config.controllerPort | default 8081 }}
{{- $controllerMetricsPort := $config.controllerMetricsPort }}

{{- /* Get module values */ -}}
{{- $moduleValues := index $context.Values $valuesKey }}
Expand Down Expand Up @@ -195,6 +197,12 @@ spec:
scheme: HTTP
periodSeconds: 1
failureThreshold: 3
{{- if $controllerMetricsPort }}
ports:
- name: metrics
containerPort: {{ $controllerMetricsPort }}
protocol: TCP
{{- end }}
resources:
requests:
{{- include "helm_lib_module_ephemeral_storage_only_logs" $context | nindent 14 }}
Expand Down