v1alpha1

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubeclient

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

Kubeclient enables kubernetes API operations on upgrade result instance

func KubeClient

func KubeClient(opts ...KubeclientBuildOption) *Kubeclient

KubeClient returns a new instance of kubeclient meant for admission webhook related operations

func (*Kubeclient) Create

Create create validatingWebhookConfiguration, and returns the corresponding validatingWebhookConfiguration object, and an error if there is any.

func (*Kubeclient) Delete

func (k *Kubeclient) Delete(name string, options *metav1.DeleteOptions) error

Delete deletes validatingWebhookConfiguration object for given name

func (*Kubeclient) Get

Get takes name of the validatingWebhookConfiguration, and returns the corresponding validatingWebhookConfiguration object, and an error if there is any.

func (*Kubeclient) List

List takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors.

func (*Kubeclient) Update

Update updates validatingWebhookConfiguration, and returns the updated corresponding validatingWebhookConfiguration object, and an error if there is any.

type KubeclientBuildOption

type KubeclientBuildOption func(*Kubeclient)

KubeclientBuildOption defines the abstraction to build a kubeclient instance

func WithClientset

func WithClientset(c *kubernetes.Clientset) KubeclientBuildOption

WithClientset sets the kubernetes clientset against the kubeclient instance

func WithNamespace

func WithNamespace(namespace string) KubeclientBuildOption

WithNamespace sets namespace that should be used during kuberenets API calls against namespaced resource

Jump to

Keyboard shortcuts

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