workloads

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyKey      types.NamespacedName = types.NamespacedName{}
	EmptyLabel    map[string]string    = map[string]string{}
	EmptySelector map[string]string    = map[string]string{}
)

Functions

This section is empty.

Types

type DeploymentTemplate

type DeploymentTemplate struct {
	basereconciler_resources.DeploymentTemplate
}

DeploymentTemplate specifies a Deployment resource and its rollout triggers

func (DeploymentTemplate) ApplyMeta

func (DeploymentTemplate) ApplyTrafficSelector

func (dt DeploymentTemplate) ApplyTrafficSelector(tm TrafficManager) DeploymentTemplate

type DeploymentWorkloadWithTraffic

type DeploymentWorkloadWithTraffic interface {
	DeploymentWorkload
	WithTraffic
}

type HorizontalPodAutoscalerTemplate

type HorizontalPodAutoscalerTemplate struct {
	basereconciler_resources.HorizontalPodAutoscalerTemplate
}

HorizontalPodAutoscaler specifies a HorizontalPodAutoscaler resource

func (HorizontalPodAutoscalerTemplate) ApplyMeta

type PodDisruptionBudgetTemplate

type PodDisruptionBudgetTemplate struct {
	basereconciler_resources.PodDisruptionBudgetTemplate
}

PodDisruptionBudget specifies a PodDisruptionBudget resource

func (PodDisruptionBudgetTemplate) ApplyMeta

type PodMonitorTemplate

type PodMonitorTemplate struct {
	basereconciler_resources.PodMonitorTemplate
}

PodMonitor specifies a PodMonitor resource

func NewPodMonitorTemplateFromEndpoints

func NewPodMonitorTemplateFromEndpoints(endpoints ...monitoringv1.PodMetricsEndpoint) PodMonitorTemplate

func (PodMonitorTemplate) ApplyMeta

type ServiceTemplate

type ServiceTemplate struct {
	basereconciler_resources.ServiceTemplate
}

ServicesTemplate specifies a Services resource

func (ServiceTemplate) ApplyMeta

func (ServiceTemplate) ApplyTrafficSelector

func (st ServiceTemplate) ApplyTrafficSelector(tm TrafficManager, w ...WithTraffic) ServiceTemplate

type TrafficManager

type TrafficManager interface {
	WithKey
	WithLabels
	TrafficSelector() map[string]string
	Services() []resources.ServiceTemplate
}

type WithHorizontalPodAutoscaler

type WithHorizontalPodAutoscaler interface {
	HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
}

type WithKey

type WithKey interface {
	GetKey() types.NamespacedName
}

type WithLabels

type WithLabels interface {
	GetLabels() map[string]string
}

type WithMonitoring

type WithMonitoring interface {
	MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
}

type WithPodDisruptionBadget

type WithPodDisruptionBadget interface {
	PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
}

type WithSelector

type WithSelector interface {
	GetSelector() map[string]string
}

type WithTraffic

type WithTraffic interface {
	WithSelector
	SendTraffic() bool
}

type WithWorkloadMeta

type WithWorkloadMeta interface {
	WithKey
	WithLabels
	WithSelector
}

type WorkloadReconciler

type WorkloadReconciler struct {
	basereconciler.Reconciler
}

func NewFromManager

func NewFromManager(mgr manager.Manager, recorderName string, clusterWatchers bool) WorkloadReconciler

NewFromManager constructs a new Reconciler from the given manager

func (*WorkloadReconciler) NewDeploymentWorkload

func (r *WorkloadReconciler) NewDeploymentWorkload(ctx context.Context, owner client.Object,
	scheme *runtime.Scheme, workloads ...DeploymentWorkload) ([]basereconciler.Resource, error)

func (*WorkloadReconciler) NewDeploymentWorkloadWithTraffic

func (r *WorkloadReconciler) NewDeploymentWorkloadWithTraffic(ctx context.Context, owner client.Object,
	scheme *runtime.Scheme, trafficManager TrafficManager, workloads ...DeploymentWorkloadWithTraffic) ([]basereconciler.Resource, error)

Directories

Path Synopsis
api/v1alpha1
Package v1alpha1 is a test API definition +kubebuilder:object:generate=true +groupName=example.com
Package v1alpha1 is a test API definition +kubebuilder:object:generate=true +groupName=example.com

Jump to

Keyboard shortcuts

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