k8s

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DestinationRuleCrdName defines the CRD name for DestinationRule as in Istio.
	DestinationRuleCrdName string = "destinationrules.networking.istio.io"
	// DestinationRuleKind defines the Kind name for DestinationRule as in Istio.
	DestinationRuleKind string = "DestinationRule"
	// DestinationRuleAPIVersion defines the API version for DestinationRule as in Istio.
	DestinationRuleAPIVersion string = "networking.istio.io/v1alpha3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

func NewKubeClient

func NewKubeClient(client client.Client, clientset k8sclientset.Interface, fieldManager string) Client

type KubeClient

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

func (*KubeClient) Delete

func (c *KubeClient) Delete(ctx context.Context, object *unstructured.Unstructured) error

func (*KubeClient) DeletePVCsWithLabel

func (c *KubeClient) DeletePVCsWithLabel(ctx context.Context, labelSelector string,
	mustHaveNamePrefix, namespace string) error

func (*KubeClient) DestinationRuleCRDExists

func (c *KubeClient) DestinationRuleCRDExists(ctx context.Context) (bool, error)

func (*KubeClient) GetCRD

func (*KubeClient) GetSecret

func (c *KubeClient) GetSecret(ctx context.Context, name, namespace string) (*apiv1.Secret, error)

func (*KubeClient) GetStatefulSet

func (c *KubeClient) GetStatefulSet(ctx context.Context, name, namespace string) (*appsv1.StatefulSet, error)

func (*KubeClient) PatchApply

func (c *KubeClient) PatchApply(ctx context.Context, object *unstructured.Unstructured) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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