Skip to content

specifying configData in the policy-controller helm chart gives a values validation error #888

@steinwelberg

Description

@steinwelberg

Description

When upgrading the policy-controller Helm chart (from version 0.8.0 to 0.8.1) with the following values:

webhook:
  replicaCount: 3
  securityContext:
    enabled: true
    runAsUser: 1000
  configData:
    no-match-policy: warn
serviceMonitor:
  enabled: true

this will result in the following error:

  Warning  UpgradeFailed  30s  helm-controller  Helm upgrade failed for release infra-cosign/policy-controller with chart [email protected]: values don't meet the specifications of the schema(s) in the following chart(s):
policy-controller:
- webhook.configData: Additional property no-match-policy is not allowed

Most likely this is caused by the upated helm values schema which is quite restrictive as it specifies the "additionalProperties": false, property. Not only on the configData object, but also on the securityContext, customLabels, env, extraArgs all specify this which prevent a user to specify custom properties.

Version
policy controller helm chart version 0.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions