k8s

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInterface

type ClientInterface interface {
	k8sclient.Interface
	tektonv1beta1client.TektonV1beta1Interface
	// Apply replicates the behaviour of the `kubectl apply` command
	Apply(ctx context.Context, obj runtime.Object, namespace string, forceConflicts bool) error
	// RESTMapper returns an instance implementing the `meta.RESTMapper` interface
	RESTMapper() meta.RESTMapper
}

ClientInterface is an interface implemented by our K8s Go clients

func NewTypedClientForConfig

func NewTypedClientForConfig(config *rest.Config, fieldManager string) (ClientInterface, error)

NewTypedClientForConfig returns an implementation of the `ClientInterface` using the provided configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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