Documentation ¶
Index ¶
- func AnyError(errs ...error) error
- func MakeKustPatches(patches ...piraeusiov1.Patch) []kusttypes.Patch
- func PruneResources(ctx context.Context, cl client.Client, controller client.Object, ...) error
- func RenderPatches(params map[string]any, patches ...kusttypes.Patch) ([]kusttypes.Patch, error)
- func ResolveClusterProperties(defaults map[string]string, props ...v1.LinstorControllerProperty) map[string]string
- func ResolveNodeProperties(node *corev1.Node, props ...v1.LinstorNodeProperty) (map[string]string, error)
- func ToEncodedPatch(target *kusttypes.Selector, patch any) (*kusttypes.Patch, error)
- type APIVersion
- type JsonPatch
- type Op
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeKustPatches ¶
func MakeKustPatches(patches ...piraeusiov1.Patch) []kusttypes.Patch
func PruneResources ¶
func PruneResources(ctx context.Context, cl client.Client, controller client.Object, namespace string, toKeep resmap.ResMap, kindsToPrune ...client.Object) error
PruneResources removes all resources that are controlled by the given controller, but that should (no longer) exist.
func RenderPatches ¶
func ResolveNodeProperties ¶
Types ¶
type APIVersion ¶ added in v2.4.1
func NewAPIVersionFromConfigWithFallback ¶ added in v2.4.1
func NewAPIVersionFromConfigWithFallback(conf *rest.Config, fallback *APIVersion) *APIVersion
func (*APIVersion) Compare ¶ added in v2.4.1
func (a *APIVersion) Compare(b *APIVersion) int
func (*APIVersion) String ¶ added in v2.4.1
func (a *APIVersion) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.