Documentation ¶
Index ¶
- Constants
- Variables
- func ClearCRDStatusModifier(o runtime.Object) (runtime.Object, error)
- func ClusterScopeNamespaceFixModifier(o runtime.Object) (runtime.Object, error)
- func GetHash(o runtime.Object) string
- func MutatingWebhookConfigurationModifier(o runtime.Object) (runtime.Object, error)
- func ValidatingWebhookConfigurationModifier(o runtime.Object) (runtime.Object, error)
- type GroupVersionKind
- type K8SResourceOverlay
- type K8SResourceOverlayPatch
- type ObjectModifierFunc
- type ObjectParser
- type Objects
- type OverlayPatchType
- type YAMLModifierFuncs
Constants ¶
View Source
const (
// YAMLSeparator is a separator for multi-document YAML files.
YAMLSeparator = "---"
)
Variables ¶
Functions ¶
Types ¶
type GroupVersionKind ¶
type GroupVersionKind struct { Group string `json:"group,omitempty"` Version string `json:"version,omitempty"` Kind string `json:"kind,omitempty"` }
func ConvertGVK ¶
func ConvertGVK(gvk schema.GroupVersionKind) GroupVersionKind
type K8SResourceOverlay ¶
type K8SResourceOverlay struct { GVK *GroupVersionKind `json:"groupVersionKind,omitempty"` ObjectKey types.ObjectKey `json:"objectKey,omitempty"` Patches []K8SResourceOverlayPatch `json:"patches,omitempty"` }
+kubebuilder:object:generate=true
func (*K8SResourceOverlay) DeepCopy ¶
func (in *K8SResourceOverlay) DeepCopy() *K8SResourceOverlay
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8SResourceOverlay.
func (*K8SResourceOverlay) DeepCopyInto ¶
func (in *K8SResourceOverlay) DeepCopyInto(out *K8SResourceOverlay)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K8SResourceOverlayPatch ¶
type K8SResourceOverlayPatch struct { Type OverlayPatchType `json:"type,omitempty"` Path *string `json:"path,omitempty"` Value *string `json:"value,omitempty"` ParseValue bool `json:"parseValue,omitempty"` }
+kubebuilder:object:generate=true
func (*K8SResourceOverlayPatch) DeepCopy ¶
func (in *K8SResourceOverlayPatch) DeepCopy() *K8SResourceOverlayPatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8SResourceOverlayPatch.
func (*K8SResourceOverlayPatch) DeepCopyInto ¶
func (in *K8SResourceOverlayPatch) DeepCopyInto(out *K8SResourceOverlayPatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectModifierFunc ¶
func PatchYAMLModifier ¶
func PatchYAMLModifier(overlay K8SResourceOverlay, parser *ObjectParser) (ObjectModifierFunc, error)
type ObjectParser ¶
type ObjectParser struct {
// contains filtered or unexported fields
}
func NewObjectParser ¶
func NewObjectParser(scheme *runtime.Scheme) *ObjectParser
func (*ObjectParser) ParseYAMLManifest ¶
func (p *ObjectParser) ParseYAMLManifest(manifest string, modifiers ...YAMLModifierFuncs) ([]runtime.Object, error)
func (*ObjectParser) ParseYAMLToK8sObject ¶
func (p *ObjectParser) ParseYAMLToK8sObject(yaml []byte, yamlModifiers ...YAMLModifierFuncs) (runtime.Object, error)
type OverlayPatchType ¶
type OverlayPatchType string
+kubebuilder:object:generate=true
const ( ReplaceOverlayPatchType OverlayPatchType = "replace" DeleteOverlayPatchType OverlayPatchType = "remove" )
type YAMLModifierFuncs ¶
func ReplaceAPIVersionYAMLModifier ¶
func ReplaceAPIVersionYAMLModifier(from, to string) YAMLModifierFuncs
Click to show internal directories.
Click to hide internal directories.