Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart JSON schema validation prevents it being used as a sub-chart #389

Closed
wallrj opened this issue Mar 1, 2024 · 2 comments · Fixed by cert-manager/helm-tool#29 or cert-manager/helm-tool#30

Comments

@wallrj
Copy link
Member

wallrj commented Mar 1, 2024

JSON schema validation was added to the Helm chart in #340

After releasing https://github.com/cert-manager/approver-policy/releases/tag/v0.13.0-alpha.1 to test this I discovered that it prevents me using the chart as a sub-chart in my approver-policy plugin.

The problem is that the schema validation in the approver-policy chart rejects the global chart values that are added by Helm.

The problem has been reported to the Helm maintainers by @howardjohn in helm/helm#10392 but they have dismissed it.

A work around has been suggested by @ogarciacar in helm/helm#10392 (comment):

I am adding global to my sub chart json validation schema and keeping additionalProperties=false. WDYT?

      "additionalProperties": false,
      "properties": {
       "global": {
            "type": "object",
            "description": "Define global in subchart json schema",
            "default": {}
        },

Istio used this fix in istio/istio#36896

@wallrj
Copy link
Member Author

wallrj commented Mar 1, 2024

Not fixed yet.

@wallrj wallrj reopened this Mar 1, 2024
@wallrj
Copy link
Member Author

wallrj commented Mar 1, 2024

Fixed in #391

@wallrj wallrj closed this as completed Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant