apply

package
v0.0.0-...-c5c5b8b Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyObject

func ApplyObject(ctx context.Context, client cnoclient.Client, obj Object, subcontroller string, subresources ...string) error

ApplyObject submits a server-side apply patch for the given object. This causes fields we own to be updated, and fields we don't own to be preserved. For more information, see https://kubernetes.io/docs/reference/using-api/server-side-apply/ The subcontroller, if set, is used to assign field ownership.

func GetClusterName

func GetClusterName(obj Object) string

GetClusterName returns the names.ClusterNameAnnotation annotation for the specified object. If the annotation does not exist it will return an empty string.

Types

type Object

type Object interface {
	metav1.Object
	runtime.Object
}

Jump to

Keyboard shortcuts

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