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>
30 lines
657 B
YAML
30 lines
657 B
YAML
---
|
|
image: {{ .ModuleName }}/{{ .ImageName }}-build
|
|
fromImage: builder/golang-alpine
|
|
final: false
|
|
git:
|
|
- add: {{ .ModuleDir }}images/{{ .ImageName }}/src
|
|
to: /src
|
|
stageDependencies:
|
|
install:
|
|
- go.mod
|
|
- go.sum
|
|
setup:
|
|
- '**/*'
|
|
shell:
|
|
install:
|
|
- cd /src && go mod download
|
|
setup:
|
|
- cd /src && CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /cluster-map ./cmd/cluster-map
|
|
---
|
|
image: {{ .ModuleName }}/{{ .ImageName }}
|
|
fromImage: base/distroless
|
|
import:
|
|
- image: {{ .ModuleName }}/{{ .ImageName }}-build
|
|
add: /cluster-map
|
|
to: /cluster-map
|
|
before: setup
|
|
imageSpec:
|
|
config:
|
|
entrypoint: ["/cluster-map"]
|