apply

package
v0.0.0-...-7736bfe Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 7

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