Skip to content

forceNamespace seems to disable skipSchemaValidation flag #2549

Description

@ckaipf

Operating system

macOS 26.3.1

Helmfile Version

v1.4.4

Helm Version

v4.1.4

Bug description

When forceNamespace is configured in a Helmfile release, the skipSchemaValidation flag appears to have no effect. Schema validation is still performed even when explicitly disabled.

Example helmfile.yaml

repositories:
- name: cert-manager
  url: https://charts.jetstack.io

releases:

- name: cert-manager-a
  chart: cert-manager/cert-manager
  skipSchemaValidation: true
  values:
  - foo: bar

- name: cert-manager-b
  chart: cert-manager/cert-manager
  skipSchemaValidation: true
  forceNamespace: foo
  values:
  - foo: bar

Error message you've seen (if any)

helmfile template -f helmfile.yaml -l name=cert-manager-a > /dev/null 
Adding repo cert-manager https://charts.jetstack.io
"cert-manager" has been added to your repositories

Templating release=cert-manager-a, chart=cert-manager/cert-manager


helmfile template -f helmfile.yaml -l name=cert-manager-b
Adding repo cert-manager https://charts.jetstack.io
"cert-manager" has been added to your repositories

in ./helmfile.yaml: [exit status 1

COMMAND:
  helm template --debug=false --output-dir=/var/folders/_m/3hb2nf2j1vxcxypmmk9mvl900000gn/T/chartify140511656/cert-manager-b/cert-manager/helmx.1.rendered cert-manager-b /var/folders/_m/3hb2nf2j1vxcxypmmk9mvl900000gn/T/chartify140511656/cert-manager-b/cert-manager -f /var/folders/_m/3hb2nf2j1vxcxypmmk9mvl900000gn/T/chartify140511656/cert-manager-b/cert-manager/values.yaml -f /var/folders/_m/3hb2nf2j1vxcxypmmk9mvl900000gn/T/helmfile473794219/cert-manager-b-values-6c5ff8cbbd

OUTPUT:
  Error: values don't meet the specifications of the schema(s) in the following chart(s):
  cert-manager:
  - at '': additional properties 'foo' not allowed]

Steps to reproduce

https://github.com/ckaipf/force-namespace-issue

Working Helmfile Version

don't know

Relevant discussion

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions