Make seq indent configurable and add retain seq indent functionality

This commit is contained in:
Phani Teja Marupaka
2021-07-07 15:33:09 -07:00
parent e1804cbc76
commit ed38b5fe2b
7 changed files with 509 additions and 6 deletions

View File

@@ -22,6 +22,9 @@ const (
// PathAnnotation records the path to the file the Resource was read from
PathAnnotation AnnotationKey = "config.kubernetes.io/path"
// SeqIndentAnnotation records the path to the file the Resource was read from
SeqIndentAnnotation AnnotationKey = "internal.config.kubernetes.io/seqindent"
)
func GetFileAnnotations(rn *yaml.RNode) (string, string, error) {