fix kyaml issue with multiline scalars

This commit is contained in:
Natasha Sarkar
2021-07-14 15:01:53 -07:00
parent b5091a566a
commit 477d8930e0
6 changed files with 36 additions and 21 deletions

View File

@@ -51,8 +51,6 @@ items:
`,
},
// TODO: See issue #https://github.com/kubernetes-sigs/kustomize/issues/4066
// the line breaks in scalar values are lost.
{
name: "round_trip_with_multiline_scalar",
input: `
@@ -87,10 +85,14 @@ spec:
description: CanonicalService is the Schema for the canonicalservices API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation 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'
description: 'APIVersion defines the versioned schema of this representation
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
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
`,
},