Skip to content

Cannot use mecatl chart as dependency #2287

Closed

Description

@rrey

Kubernetes context

I am experimenting with mecatl and I declared the chart as a deps of my test chart to bundle everything together:

[...]
dependencies:
  - name: mecak8s
    version: 0.0.47
    repository: oci://ghcr.io/stacklok/mecatl/charts
    condition: mecak8s.enabled

Problem or feature request

I ended up facing an error because of the schema of the chart schema:

Error: values don't meet the specifications of the schema(s) in the following chart(s):
mecak8s:
- at '': additional properties 'global' not allowed

This could be avoided by adding the global key in the mecatl chart schema. This sound legit to me as the global key is a mechanism from helm.

Would you accept a contrib on this ? I would add the global key with "type": "object".

Steps to reproduce (for bugs)

helm template x . -n mecatl-ci-agent --set image.tag=t

with a dummy chart having the following dependency:

dependencies:
  - name: mecak8s
    version: 0.0.47
    repository: oci://ghcr.io/stacklok/mecatl/charts
    condition: mecak8s.enabled

Expected behavior

The templating do not complain about the global key.

Actual behavior

Error: additional properties 'global' not allowed

Environment

  • Kubernetes version: v1.35.8
  • mecatl version or commit: chart 0.0.47
  • Deployment method: helm
  • Redis and other relevant dependencies: N/A

Additional context

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions