Skip to content

Helm chart schema generation does not work #5676

@aceeric

Description

@aceeric

What happened:
I'm working on this PR and I wanted to ensure that the schema generation tracked the changes. However, schema generation does not work (for me) on the master branch.

What you expected to happen:
Expect schema to generate.

How to reproduce it (as minimally and precisely as possible):

helm plugin list
NAME  	VERSION	DESCRIPTION                                                              
schema	2.2.0  	Helm plugin for generating values.schema.json from multiple values files.

Then:

cd ~/tmp
git clone https://github.com/kubernetes-sigs/external-dns.git
cd external-dns/
rm charts/external-dns/values.schema.json 
scripts/helm-tools.sh --schema

Output:

Error: parse schema: /image/pullPolicy: parse @schema comments: unknown annotation ""

Then:

ls -l charts/external-dns/values.schema.json

Result:

ls: cannot access 'charts/external-dns/values.schema.json': No such file or directory

Finally: git status shows:

On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	deleted:    charts/external-dns/values.schema.json

no changes added to commit (use "git add" and/or "git commit -a")

Anything else we need to know?:

n/a

Environment:

Ubuntu

  • External-DNS version (use external-dns --version): master branch
  • DNS provider: n/a
  • Others: n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions