...

Source file src/sigs.k8s.io/kustomize/kyaml/yaml/const.go

Documentation: sigs.k8s.io/kustomize/kyaml/yaml

     1  // Copyright 2019 The Kubernetes Authors.
     2  // SPDX-License-Identifier: Apache-2.0
     3  
     4  package yaml
     5  
     6  const (
     7  	// NodeTagNull is the tag set for a yaml.Document that contains no data;
     8  	// e.g. it isn't a Map, Slice, Document, etc
     9  	NodeTagNull   = "!!null"
    10  	NodeTagFloat  = "!!float"
    11  	NodeTagString = "!!str"
    12  	NodeTagBool   = "!!bool"
    13  	NodeTagInt    = "!!int"
    14  	NodeTagMap    = "!!map"
    15  	NodeTagSeq    = "!!seq"
    16  	NodeTagEmpty  = ""
    17  )
    18  
    19  // Field names
    20  const (
    21  	AnnotationsField = "annotations"
    22  	APIVersionField  = "apiVersion"
    23  	KindField        = "kind"
    24  	MetadataField    = "metadata"
    25  	DataField        = "data"
    26  	BinaryDataField  = "binaryData"
    27  	NameField        = "name"
    28  	NamespaceField   = "namespace"
    29  	LabelsField      = "labels"
    30  )
    31  

View as plain text