Layout, build and templates follow deckhouse/modules-template; dmt lint passes with no findings (Go files are excluded from the Flant-only license-header rule, see .dmtlint.yaml). - module.yaml, openapi schemas with Russian docs, lib-helm templates: https modes, ingress class, publicDomainTemplate, node placement, priority class, PSS-restricted security context, VPA, PDB, Ingress plus Gateway API ListenerSet/HTTPRoute, DexAuthenticator. - module-sdk hooks: hubble CA from d8-cni-cilium (public certificate only), external_auth, copy_custom_certificate. - The app moves to images/cluster-map/src and is split into packages; traffic mode Continuous/OnDemand/Disabled and retention are module settings; graceful shutdown; Prometheus metrics and two alerts; frontend embedded, English and Russian, strict CSP. - Built with werf on Deckhouse's published base images; Makefile publishes the registry layout modules-actions uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.7 KiB
YAML
39 lines
1.7 KiB
YAML
{{- $moduleGateway := dict }}
|
|
{{- include "helm_lib_module_gateway" (list . $moduleGateway) }}
|
|
{{- $ingressEnabled := eq (include "helm_lib_module_ingress_enabled" .) "true" }}
|
|
{{- $gatewayEnabled := eq (include "helm_lib_module_gateway_enabled" .) "true" }}
|
|
{{- if and .Values.clusterMap.internal.deployDexAuthenticator (or $ingressEnabled $gatewayEnabled) }}
|
|
---
|
|
apiVersion: deckhouse.io/v1
|
|
kind: DexAuthenticator
|
|
metadata:
|
|
name: cluster-map
|
|
namespace: d8-cluster-map
|
|
{{- include "helm_lib_module_labels" (list . (dict "app" "dex-authenticator" "name" "cluster-map")) | nindent 2 }}
|
|
spec:
|
|
applicationDomain: {{ include "helm_lib_module_public_domain" (list . "cluster-map") }}
|
|
{{- if and $ingressEnabled (include "helm_lib_module_https_ingress_tls_enabled" .) }}
|
|
applicationIngressCertificateSecretName: {{ include "helm_lib_module_https_secret_name" (list . "ingress-tls") }}
|
|
{{- end }}
|
|
{{- if and $gatewayEnabled (include "helm_lib_module_https_route_tls_enabled" .) }}
|
|
gatewayAPI:
|
|
applicationHTTPRouteListenerSetName: cluster-map
|
|
{{- end }}
|
|
applicationIngressClassName: {{ include "helm_lib_module_ingress_class" . | quote }}
|
|
{{- with .Values.clusterMap.auth.allowedUserEmails }}
|
|
allowedEmails:
|
|
{{- . | toYaml | nindent 2 }}
|
|
{{- end }}
|
|
{{- with .Values.clusterMap.auth.allowedUserGroups }}
|
|
allowedGroups:
|
|
{{- . | toYaml | nindent 2 }}
|
|
{{- end }}
|
|
{{- with .Values.clusterMap.auth.whitelistSourceRanges }}
|
|
whitelistSourceRanges:
|
|
{{- . | toYaml | nindent 2 }}
|
|
{{- end }}
|
|
{{- include "helm_lib_node_selector" (tuple . "system") | nindent 2 }}
|
|
{{- include "helm_lib_tolerations" (tuple . "system") | nindent 2 }}
|
|
highAvailability: false
|
|
{{- end }}
|