-
Notifications
You must be signed in to change notification settings - Fork 26
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
Multi-line description on helm chart causes formatting issues after synth #1850
Comments
This is an issue with flagger as well. If CRDs are included, the single quotes of properties:
apiVersion:
description: APIVersion defines the versioned schema of this representatio
of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string As you can see, the single quote before "APIVersion" is missing. The closing single quote after "resources" is there. I would expect the whole string to be formatted correctly. With just In the current state, we are not able to use cdk8s to deploy CRDs. |
This is becoming a bigger issue for us, we are having to manually edit before imports which is making us reevaluate the CDK8s as a valid option |
It looks like the helm chart linked here is not a valid YAML. After running properties:
message:
description: 'message is a string detailing the encountered error
during snapshot creation if specified. NOTE: message may be
logged, and it should not contain sensitive information.'
type: string This, according to both yamllint and the VSCode YAML (by RedHat) extension, is invalid.
This corruption exists in the original chart: https://github.com/openebs/lvm-localpv/blob/609b0d5226d58ce733845902c3ce3dcb4694d8cb/deploy/helm/charts/charts/crds/templates/csi-volume-snapshot-content.yaml#L206-L211 I'm not sure why our YAML parser doesn't panic when it encounters this, I suspect it is a bug on their end. The reason But regardless, if indeed this is invalid YAML - not much we can do... @BoatPartyJesus you mention that with helm it works as expected, did you try to deploy the chart as helm produces it? I would think you'll see a kubernetes error at that point. Given this information, I am removing the |
This issue has not received a response in a while and will be closed soon. If you want to keep it open, please leave a comment below @mentioning a maintainer. |
Description of the bug:
I have found, when using the OpenEBS helm chart and enabling LVM, that something to do with multiline descriptions and single quotes formatting is causing the synth'd chart to be malformed. I've not been able to pin it down the cause, though.
Reproduction Steps:
cdk.json
chart:
pnpm run synth
Notice in synth'd output, the multi-line hasn't been parsed correctly, example:
Error Log:
Environment:
Other Info:
Here is the search against the OpenEBS chart's GitHub highlighting the relavent areas: https://github.com/search?q=repo%3Aopenebs%2Flvm-localpv+sensitive+information.%27&type=code
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: