k8s

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FormatYAML string = "yaml"
	FormatJSON string = "json"
)

Variables

This section is empty.

Functions

func CreatePatch

func CreatePatch(original, updated interface{}) ([]byte, error)

func MergeAnnotations

func MergeAnnotations(a1, a2 map[string]string) map[string]string

func SetLastAppliedCfg

func SetLastAppliedCfg(obj Annotatable) error

Types

type Annotatable

type Annotatable interface {
	GetAnnotations() map[string]string
	SetAnnotations(annotations map[string]string)
	runtime.Object
}

type ClientSet

type ClientSet struct {
	KpackClient   versioned.Interface
	K8sClient     k8s.Interface
	DynamicClient dynamic.Interface
	Namespace     string
}

type ClientSetProvider

type ClientSetProvider interface {
	GetClientSet(namespace string) (ClientSet, error)
}

type DefaultClientSetProvider

type DefaultClientSetProvider struct {
	// contains filtered or unexported fields
}

func (DefaultClientSetProvider) GetClientSet

func (d DefaultClientSetProvider) GetClientSet(namespace string) (ClientSet, error)

type JSONObjectPrinter

type JSONObjectPrinter struct{}

func (JSONObjectPrinter) PrintObject

func (j JSONObjectPrinter) PrintObject(objs []runtime.Object, w io.Writer) error

type ObjectPrinter

type ObjectPrinter interface {
	PrintObject(obj []runtime.Object, w io.Writer) error
}

func NewObjectPrinter

func NewObjectPrinter(format string) (ObjectPrinter, error)

type YAMLObjectPrinter

type YAMLObjectPrinter struct {
	// contains filtered or unexported fields
}

func (*YAMLObjectPrinter) PrintObject

func (y *YAMLObjectPrinter) PrintObject(objs []runtime.Object, w io.Writer) error

Jump to

Keyboard shortcuts

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