kubernetes

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRD

type CRD interface {
	// EnsurePresentCRD will create the custom resource and wait to be ready
	// if there is not already present.
	EnsurePresentCRD(conf CRDConf) error
}

CRD is the CRD service that knows how to interact with k8s to manage them.

func NewCRD

func NewCRD(aeClient apiextensionscli.Interface, logger log.Logger) CRD

NewCRD returns a new CRD KubeService.

type CRDConf

type CRDConf = koopercrd.Conf

CRDConf is the configuration of the crd.

type Service

type Service interface {
	ServiceLevel
	CRD
}

Service is the service used to interact with the Kubernetes objects.

func New

func New(stdcli kubernetes.Interface, crdcli crdcli.Interface, apiextcli apiextensionscli.Interface, logger log.Logger) Service

New returns a new Kubernetes service.

type ServiceLevel

type ServiceLevel interface {
	// ListServiceLevels will list the service levels.
	ListServiceLevels(namespace string, opts metav1.ListOptions) (*monitoringv1alpha1.ServiceLevelList, error)
	// ListServiceLevels will list the service levels.
	WatchServiceLevels(namespace string, opt metav1.ListOptions) (watch.Interface, error)
}

ServiceLevel knows how to interact with Kubernetes on the ServiceLevel CRs

func NewServiceLevel

func NewServiceLevel(crdcli crdcli.Interface, logger log.Logger) ServiceLevel

NewServiceLevel returns a new service level service.

Jump to

Keyboard shortcuts

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