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(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 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 ResolveClusterProperties ¶
func ResolveClusterProperties(props ...v1.LinstorControllerProperty) map[string]string
func ResolveNodeProperties ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.