types

package
v0.0.0-...-13b5b47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sObjectOverlay

type K8sObjectOverlay struct {
	// Resource API version.
	ApiVersion string `json:"apiVersion,omitempty"`
	// Resource kind.
	Kind string `json:"kind,omitempty"`
	// Name of resource.
	Name string `json:"name,omitempty"`
	// List of patches to apply to resource.
	Patches []*K8sObjectOverlayPatch `json:"patches,omitempty"`
	// Optional marks the overlay as optional. If the resource does not exist, the overlay is ignored.
	Optional bool `json:"optional,omitempty"`
}

type K8sObjectOverlayPatch

type K8sObjectOverlayPatch struct {
	// Path of the form a.[key1:value1].b.[:value2]
	// Where [key1:value1] is a selector for a key-value pair to identify a list element and [:value] is a value
	// selector to identify a list element in a leaf list.
	// All path intermediate nodes must exist.
	Path string `json:"path,omitempty"`
	// Value to add, delete or replace.
	// For add, the path should be a new leaf.
	// For delete, value should be unset.
	// For replace, path should reference an existing node.
	// All values are strings but are converted into appropriate type based on schema.
	Value string `json:"value,omitempty"`
	// Verbatim value to add, delete or replace.
	// Same as Value, however the content is not interpreted as YAML, but treated as literal string instead.
	// At least one of Value and Verbatim must be empty.
	Verbatim string `json:"verbatim,omitempty"`
}

type OverlayObject

type OverlayObject struct {
	Overlays []*K8sObjectOverlay `json:"overlays,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL