mirror of
https://github.com/siderolabs/kres.git
synced 2026-02-05 09:45:35 +01:00
- Add valuesFiles option to HelmTemplate config for passing additional values files to helm template command - Remove redundant -f values.yaml flag from helm template (chart's default values.yaml is used automatically) - Remove --template-files flag with typo from helm-docs (default README.md.gotmpl is correct) - Add buildx setup step to helm workflow to fix CI hang (was missing remote buildkit driver) - Extract SetupBuildxStep() to avoid code duplication - Add test helm chart to validate helm CI flow - Fix the workdir of helm-docs Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
102 lines
2.3 KiB
YAML
102 lines
2.3 KiB
YAML
# Configuration file for Kres
|
|
#
|
|
# Kres configuration is a multi-document YAML file, each document has same structure:
|
|
#
|
|
# ---
|
|
# kind: <package>.<Type>
|
|
# name: <nodeName> # (optional)
|
|
# spec: # configuration for specific project node
|
|
# field: value
|
|
# ...
|
|
#
|
|
#
|
|
# Any node in the tree might have its configuration overridden via the config.
|
|
---
|
|
kind: common.Image
|
|
name: image-kres
|
|
spec:
|
|
extraEnvironment:
|
|
PLATFORM: linux/amd64,linux/arm64
|
|
entrypointArgs: ['gen']
|
|
---
|
|
kind: common.Release
|
|
spec:
|
|
generateSignatures: true
|
|
---
|
|
kind: golang.Build
|
|
spec:
|
|
outputs:
|
|
linux-amd64:
|
|
GOOS: linux
|
|
GOARCH: amd64
|
|
linux-arm64:
|
|
GOOS: linux
|
|
GOARCH: arm64
|
|
darwin-amd64:
|
|
GOOS: darwin
|
|
GOARCH: amd64
|
|
darwin-arm64:
|
|
GOOS: darwin
|
|
GOARCH: arm64
|
|
---
|
|
kind: service.CodeCov
|
|
spec:
|
|
targetThreshold: 8
|
|
---
|
|
kind: common.Build
|
|
spec:
|
|
ignoredPaths:
|
|
- "_out/example/"
|
|
---
|
|
kind: golang.Generate
|
|
spec:
|
|
versionPackagePath: internal/version
|
|
---
|
|
kind: golang.GolangciLint
|
|
spec:
|
|
depguardExtraRules:
|
|
test_kres_depguard_extra_rule_1:
|
|
list-mode: lax
|
|
files:
|
|
- test_1.go
|
|
deny:
|
|
- pkg: io/ioutil
|
|
desc: Test rule 1
|
|
test_kres_depguard_extra_rule_2:
|
|
list-mode: lax
|
|
files:
|
|
- test_2.go
|
|
deny:
|
|
- pkg: io/ioutil
|
|
desc: Test rule 2
|
|
---
|
|
kind: common.Renovate
|
|
spec:
|
|
customManagers:
|
|
- customType: regex
|
|
managerFilePatterns:
|
|
- internal/config/constants.go
|
|
matchStrings:
|
|
- '\/\/\s+renovate: datasource=(?<datasource>.*?)(?:\s+extractVersion=(?<extractVersion>.+?))?(?:\s+versioning=(?<versioning>.+?))?\s+depName=(?<depName>.+?)?\s.*Version\s+=\s+\"(?<currentValue>.+?)\"(?:\s.*Ref\s+=\s+\"(?<currentDigest>.+?)\")?'
|
|
versioningTemplate: "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
|
|
packageRules:
|
|
- matchPackageNames:
|
|
- golang/go
|
|
versioning: 'regex:^(?<major>\d+)\.(?<minor>\d+)\.?(?<patch>\d+)?$'
|
|
- enabled: false
|
|
matchFileNames:
|
|
- internal/output/dockerfile/dockerfile_test.go
|
|
- matchPackageNames:
|
|
- node
|
|
matchDatasources:
|
|
- docker
|
|
allowedVersions: /^24\.\d+\.\d+-alpine$/
|
|
---
|
|
kind: auto.Helm
|
|
spec:
|
|
enabled: true
|
|
chartDir: test/test-helm-chart
|
|
template:
|
|
valuesFiles:
|
|
- test/test-helm-chart/ci-values.yaml
|