kube

package
v0.1.0-alpha.5 Latest Latest
Warning

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

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

Documentation

Overview

Package kube implements important interfaces like the Kube.

Index

Constants

View Source
const (
	// DeploymentKind is the Deployment object.
	DeploymentKind = "Deployment"

	// ReplicaSetKind is the ReplicaSet object.
	ReplicaSetKind = "ReplicaSet"

	// StatefulSetKind is the StatefulSet object.
	StatefulSetKind = "StatefulSet"

	// DaemonSetKind is the DaemonSet object.
	DaemonSetKind = "DaemonSet"

	// IngressKind is the Ingress object.
	IngressKind = "Ingress"

	// JobKind is the Job object.
	JobKind = "Job"

	// PodKind is the Pod object.
	PodKind = "Pod"

	// ObjectLabelKeyOwned is the label for objects.
	ObjectLabelKeyOwned = "clusterstack.x-k8s.io/instance"

	// ObjectLabelValueOwned is the object owned.
	ObjectLabelValueOwned = "owned"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Apply(ctx context.Context, template []byte, oldResources []*csov1alpha1.Resource) (newResources []*csov1alpha1.Resource, shouldRequeue bool, err error)
	Delete(template []byte) error
}

Client has all the meathod for helm chart kube operation.

type Factory

type Factory interface {
	NewClient(namespace string, resCfg *rest.Config) Client
}

Factory creates new fake kube client factories.

func NewFactory

func NewFactory() Factory

NewFactory has method to create a new factory for kube clients.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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