factory

package
v1.1.1 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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ENV_OPERATOR_NAME = "OPERATOR_NAME"
View Source
const ENV_REGISTRY_VERSION = "REGISTRY_VERSION"
View Source
const REGISTRY_CONTAINER_NAME = "registry"

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeFactory

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

func NewKubeFactory

func NewKubeFactory(ctx context.LoopContext) *KubeFactory

func (*KubeFactory) CreateDeployment

func (this *KubeFactory) CreateDeployment() *apps.Deployment

func (*KubeFactory) CreateIngress

func (this *KubeFactory) CreateIngress(serviceName string) *networking.Ingress

func (*KubeFactory) CreateNetworkPolicy added in v1.1.0

func (this *KubeFactory) CreateNetworkPolicy(serviceName string) *networking.NetworkPolicy

func (*KubeFactory) CreatePodDisruptionBudgetV1 added in v1.1.0

func (this *KubeFactory) CreatePodDisruptionBudgetV1() *policy_v1.PodDisruptionBudget

func (*KubeFactory) CreatePodDisruptionBudgetV1beta1 added in v1.1.0

func (this *KubeFactory) CreatePodDisruptionBudgetV1beta1() *policy_v1beta1.PodDisruptionBudget

func (*KubeFactory) CreateService

func (this *KubeFactory) CreateService() *core.Service

func (*KubeFactory) GetLabels

func (this *KubeFactory) GetLabels() map[string]string

MUST NOT be used directly as selector labels, because some of them may change.

func (*KubeFactory) GetSelectorLabels

func (this *KubeFactory) GetSelectorLabels() map[string]string

Selector labels MUST be static/constant in the life of the application. Labels that can change during operator/SCV upgrade, such as "apicur.io/version" MUST NOT be used.

type MonitoringFactory

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

func NewMonitoringFactory

func NewMonitoringFactory(ctx context.LoopContext, kubeFactory *KubeFactory) *MonitoringFactory

func (*MonitoringFactory) GetLabels

func (this *MonitoringFactory) GetLabels() map[string]string

func (*MonitoringFactory) GetSelectorLabels

func (this *MonitoringFactory) GetSelectorLabels() map[string]string

func (*MonitoringFactory) NewServiceMonitor

func (this *MonitoringFactory) NewServiceMonitor(service *core.Service) *monitoring.ServiceMonitor

Jump to

Keyboard shortcuts

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