resource

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CronJobSuffix = "predicted-traffic"
View Source
const DeploymentSuffix = ""
View Source
const HorizontalPodAutoscalerSuffix = ""
View Source
const JobSuffix = "builder"
View Source
const PersistentVolumeClaimSuffix = ""
View Source
const PodDisruptionBudgetSuffix = ""
View Source
const ServiceSuffix = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type CronJobBuilder added in v1.2.1

type CronJobBuilder struct {
	*ValhallaResourceBuilder
}

func (*CronJobBuilder) Build added in v1.2.1

func (builder *CronJobBuilder) Build() (client.Object, error)

func (*CronJobBuilder) ShouldDeploy added in v1.2.1

func (builder *CronJobBuilder) ShouldDeploy(resources []runtime.Object) bool

func (*CronJobBuilder) Update added in v1.2.1

func (builder *CronJobBuilder) Update(object client.Object) error

type DeploymentBuilder

type DeploymentBuilder struct {
	*ValhallaResourceBuilder
}

func (*DeploymentBuilder) Build

func (builder *DeploymentBuilder) Build() (client.Object, error)

func (*DeploymentBuilder) ShouldDeploy

func (*DeploymentBuilder) ShouldDeploy(resources []runtime.Object) bool

func (*DeploymentBuilder) Update

func (builder *DeploymentBuilder) Update(object client.Object) error

type HorizontalPodAutoscalerBuilder

type HorizontalPodAutoscalerBuilder struct {
	*ValhallaResourceBuilder
}

func (*HorizontalPodAutoscalerBuilder) Build

func (builder *HorizontalPodAutoscalerBuilder) Build() (client.Object, error)

func (*HorizontalPodAutoscalerBuilder) ShouldDeploy

func (*HorizontalPodAutoscalerBuilder) ShouldDeploy(resources []runtime.Object) bool

func (*HorizontalPodAutoscalerBuilder) Update

func (builder *HorizontalPodAutoscalerBuilder) Update(object client.Object) error

type JobBuilder

type JobBuilder struct {
	*ValhallaResourceBuilder
}

func (*JobBuilder) Build

func (builder *JobBuilder) Build() (client.Object, error)

func (*JobBuilder) ShouldDeploy

func (*JobBuilder) ShouldDeploy(resources []runtime.Object) bool

func (*JobBuilder) Update

func (builder *JobBuilder) Update(object client.Object) error

type PersistentVolumeClaimBuilder

type PersistentVolumeClaimBuilder struct {
	*ValhallaResourceBuilder
}

func (*PersistentVolumeClaimBuilder) Build

func (builder *PersistentVolumeClaimBuilder) Build() (client.Object, error)

func (*PersistentVolumeClaimBuilder) ShouldDeploy

func (*PersistentVolumeClaimBuilder) ShouldDeploy(resources []runtime.Object) bool

func (*PersistentVolumeClaimBuilder) Update

func (builder *PersistentVolumeClaimBuilder) Update(object client.Object) error

type PodDisruptionBudgetBuilder

type PodDisruptionBudgetBuilder struct {
	*ValhallaResourceBuilder
}

func (*PodDisruptionBudgetBuilder) Build

func (builder *PodDisruptionBudgetBuilder) Build() (client.Object, error)

func (*PodDisruptionBudgetBuilder) ShouldDeploy

func (*PodDisruptionBudgetBuilder) ShouldDeploy(resources []runtime.Object) bool

func (*PodDisruptionBudgetBuilder) Update

func (builder *PodDisruptionBudgetBuilder) Update(object client.Object) error

type ResourceBuilder

type ResourceBuilder interface {
	Build() (client.Object, error)
	Update(client.Object) error
	ShouldDeploy(resources []runtime.Object) bool
}

type ServiceBuilder

type ServiceBuilder struct {
	*ValhallaResourceBuilder
}

func (*ServiceBuilder) Build

func (builder *ServiceBuilder) Build() (client.Object, error)

func (*ServiceBuilder) ShouldDeploy

func (*ServiceBuilder) ShouldDeploy(resources []runtime.Object) bool

func (*ServiceBuilder) Update

func (builder *ServiceBuilder) Update(object client.Object) error

type ValhallaResourceBuilder

type ValhallaResourceBuilder struct {
	Instance *valhallav1alpha1.Valhalla
	Scheme   *runtime.Scheme
}

func (*ValhallaResourceBuilder) CronJob added in v1.2.1

func (builder *ValhallaResourceBuilder) CronJob() *CronJobBuilder

func (*ValhallaResourceBuilder) Deployment

func (builder *ValhallaResourceBuilder) Deployment() *DeploymentBuilder

func (*ValhallaResourceBuilder) HorizontalPodAutoscaler

func (builder *ValhallaResourceBuilder) HorizontalPodAutoscaler() *HorizontalPodAutoscalerBuilder

func (*ValhallaResourceBuilder) Job

func (builder *ValhallaResourceBuilder) Job() *JobBuilder

func (*ValhallaResourceBuilder) PersistentVolumeClaim

func (builder *ValhallaResourceBuilder) PersistentVolumeClaim() *PersistentVolumeClaimBuilder

func (*ValhallaResourceBuilder) PodDisruptionBudget

func (builder *ValhallaResourceBuilder) PodDisruptionBudget() *PodDisruptionBudgetBuilder

func (*ValhallaResourceBuilder) ResourceBuilders

func (builder *ValhallaResourceBuilder) ResourceBuilders() []ResourceBuilder

func (*ValhallaResourceBuilder) Service

func (builder *ValhallaResourceBuilder) Service() *ServiceBuilder

Jump to

Keyboard shortcuts

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