kubeclient

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpecOnly      = CommitType("SpecOnly")
	SpecAndStatus = CommitType("SpecAndStatus")
)

Variables

This section is empty.

Functions

func IgnoreNotFound

func IgnoreNotFound(err error) error

func IgnoreNotFoundAndConflict

func IgnoreNotFoundAndConflict(err error) error

func IsNotFoundOrConflict

func IsNotFoundOrConflict(err error) bool

func NewAndIndexer

func NewAndIndexer(indexers ...client.FieldIndexer) client.FieldIndexer

Types

type Client

type Client interface {
	client.Client

	GetObject(ctx context.Context, namespacedName types.NamespacedName, gvk schema.GroupVersionKind) (client.Object, error)
	GetObjectOrDefault(ctx context.Context, namespacedName types.NamespacedName, gvk schema.GroupVersionKind) (client.Object, error)
	CommitObject(ctx context.Context, obj client.Object, commitType CommitType) error
}

func NewClient

func NewClient(client client.Client) Client

type CommitType added in v2.6.0

type CommitType string

Jump to

Keyboard shortcuts

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