Skip to content

Conversation

@prachirp
Copy link
Contributor

cc @phanimarupaka @frankfarzan
Increase line width to 120 as a workaround for kptdev/kpt#685

@phanimarupaka
Copy link
Contributor

@prachirp is there any way to unit test this ?

// only skip 'undefined'.
skipInvalid: true,
// increase lineWidth from default of 80 to avoid reformatting
lineWidth: 120,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this what kpt CLI uses? Any follow up for other styling consistency between the two?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phanimarupaka checked kpt and found that it doesn't have any line width limit so we agreed on 120.

I found another inconsistency where kpt keeps single quotes while sdk removes them but there is no clear way to tell DumpOptions to do this.

@prachirp prachirp requested a review from frankfarzan June 25, 2020 23:16
@prachirp prachirp changed the title Increase line width to avoid reformatting yaml Unset line width to allow arbitrarily long lines Jun 26, 2020
@frankfarzan frankfarzan merged commit 96b9b49 into kptdev:master Jun 26, 2020
@prachirp prachirp deleted the line-width branch June 26, 2020 17:46
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

Successfully merging this pull request may close these issues.

3 participants