Documentation
¶
Index ¶
- func FindHelmCharts(dir string) ([]string, error)
- func NewCreateAppPlatformValuesInput(p params.Params, chartName string) input.Input
- func NewCreateHelmReadmeInput(p params.Params, chartName string) input.Input
- func NewCreatePreCommitActionInput(p params.Params) input.Input
- func NewCreatePreCommitConfigInput(p params.Params) input.Input
- func NewCreateSchemaYamlInput(p params.Params, chartName string) input.Input
- func NewCreateValuesSchemaInput(p params.Params, chartName string) input.Input
- func ReadSchemaRootRef(dir, chartName string) (string, error)
- func ResolveSchemaDependency(dir, chartName, ref string) (*params.SchemaDependency, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindHelmCharts ¶
FindHelmCharts looks for subdirectories in helm/ that contain Chart.yaml
func NewCreateAppPlatformValuesInput ¶ added in v8.38.5
NewCreateAppPlatformValuesInput generates the schema-only values file with the keys the Giant Swarm app platform injects into Apps: the <cluster>-cluster-values ConfigMap, the catalog config and legacy extraConfigs. It is listed before values.yaml in the generated .schema.yaml so the chart's own annotations take precedence.
func NewCreateValuesSchemaInput ¶ added in v8.58.0
NewCreateValuesSchemaInput generates helm/<chart>/values.schema.json itself, in-process, running the same three steps the pre-commit hook used to run as a shell pipeline: generate (from values.yaml, via the helm-values-schema-json library) -> $ref fix (refFixGo) -> normalize (schemalint). devctl now writes the committed file directly; the hook only verifies it is up to date (see pre-commit-config.yaml.template). See giantswarm/devctl#2195.
func ReadSchemaRootRef ¶
ReadSchemaRootRef returns schemaRoot.ref of helm/<chartName>/.schema.yaml under dir, or "" when the file does not exist or sets none.
func ResolveSchemaDependency ¶
func ResolveSchemaDependency(dir, chartName, ref string) (*params.SchemaDependency, error)
ResolveSchemaDependency returns the dependency of helm/<chartName> under dir that ref, the chart's schemaRoot.ref, names: ref is charts/<dependency>/<path>, where <dependency> is the alias or the name of a dependency in Chart.yaml.
When helm/<chartName>/charts/<dependency>/ exists it is used as it is. Otherwise a file:// dependency is read from its directory, and an oci:// or http(s):// one is fetched at the version Chart.lock pins, or the Chart.yaml version when the chart has no Chart.lock. No other dependency is read.
Types ¶
This section is empty.