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

BUG: ct lint fails with type: unexpected element #267

Closed
Knappek opened this issue Sep 4, 2020 · 2 comments
Closed

BUG: ct lint fails with type: unexpected element #267

Knappek opened this issue Sep 4, 2020 · 2 comments

Comments

@Knappek
Copy link

Knappek commented Sep 4, 2020

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

BUG REPORT

Version of Helm and Kubernetes:

 ↪  helm version
version.BuildInfo{Version:"v3.2.4", GitCommit:"0ad800ef43d3b826f31a5ad8dfbb4fe05d143688", GitTreeState:"clean", GoVersion:"go1.13.12"}
 ↪  kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.5", GitCommit:"e6503f8d8f769ace2f338794c914a96fc335df0f", GitTreeState:"clean", BuildDate:"2020-06-26T03:47:41Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6+k3s1", GitCommit:"6f56fa1d68a5a48b8b6fdefa8eb7ead2015a4b3a", GitTreeState:"clean", BuildDate:"2020-07-16T20:44:01Z", GoVersion:"go1.13.11", Compiler:"gc", Platform:"linux/arm"}
 ↪  ct version
Version:         3.0.0
Git commit:      50db473a1e68c605b18d82f019d83ea401542213
Date:            2020-07-28
License:         Apache 2.0

What happened:

My Chart.yaml includes the following element:

[...]
type: application
[...]

which is a valid element according to the Helm docs.

Though, ct lint fails with

Validating /path/to/my/chart/Chart.yaml...
Validation failed!
Error validating data '/path/to/my/chart/Chart.yaml' with schema '/usr/local/etc/ct/chart_schema.yaml'
        type: Unexpected element

What you expected to happen:

ct should not fail validating Chart.yaml as type is a valid field.

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

Add type: application to Chart.yaml and run ct lint.

@smlx
Copy link
Contributor

smlx commented Sep 4, 2020

Duplicate of #251 and already fixed in master.

@Knappek
Copy link
Author

Knappek commented Sep 5, 2020

oh I'm sorry, haven't found it. Thanks.

@Knappek Knappek closed this as completed Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants