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

The generated CRD yaml can't pass kubeconform -ignore-missing-schemas -strict #1412

Open
ShuaiShao93 opened this issue May 6, 2024 · 1 comment

Comments

@ShuaiShao93
Copy link

It fails with

CustomResourceDefinition clickhouseinstallations.clickhouse.altinity.com failed validation: error unmarshalling resource: error converting YAML to JSON: yaml: unmarshal errors:
  line 311: key "description" already set in map
  line 384: key "type" already set in map
  line 394: key "description" already set in map
  line 397: key "description" already set in map
  line 400: key "description" already set in map
  line 410: key "description" already set in map
  line 413: key "description" already set in map
  line 416: key "description" already set in map
  line 419: key "description" already set in map
  line 429: key "description" already set in map
  line 528: key "description" already set in map
  line 528: key "description" already set in map
  ...

Probably because TypeStringBool has description and type fields, but we try to override them later, which is not allowed by kubeconform. Can we somehow fix it?

@Slach
Copy link
Collaborator

Slach commented May 7, 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
Development

No branches or pull requests

2 participants