k8s

package
v0.0.0-...-15c8f10 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrApplicationNotFound = errors.New("application not found")
	ErrServiceNotFound     = errors.New("service not found")
)

Functions

func ExtractMapFromRawExtension

func ExtractMapFromRawExtension(data *runtime.RawExtension) (map[string]interface{}, error)

func GetApplicationByLabels

func GetApplicationByLabels(clientset *GenericClientset, namespace string, labels map[string]string) (*v1beta1.Application, error)

func GetDeploymentsByLabels

func GetDeploymentsByLabels(clientset *kubernetes.Clientset, namespace string, labels map[string]string) ([]k8sV1.Deployment, error)

func GetServicesByLabels

func GetServicesByLabels(clientset *GenericClientset, namespace string, labels map[string]string) ([]corev1.Service, error)

func GetStatefulSetByLabels

func GetStatefulSetByLabels(clientset *kubernetes.Clientset, namespace string, labels map[string]string) ([]k8sV1.StatefulSet, error)

Types

type GenericClientset

type GenericClientset struct {
	Conure  *oam_conure.Clientset
	K8s     *kubernetes.Clientset
	Vela    *coreOAMDevClientset.Clientset
	Dynamic *dynamic.DynamicClient
	Config  *rest.Config
}

func GetClientset

func GetClientset() (*GenericClientset, error)

Jump to

Keyboard shortcuts

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