resource

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigMapSuffix = ""
View Source
const CronJobSuffix = "speed-updates"
View Source
const DeploymentSuffix = ""
View Source
const GatewayConfigVersion = "osrmcluter.itayankri/gatewayConfigHash"
View Source
const GatewaySuffix = ""
View Source
const HorizontalPodAutoscalerSuffix = ""
View Source
const JobSuffix = "map-builder"
View Source
const LastTrafficUpdateTimeAnnotation = "osrmcluster.itayankri/lastTrafficUpdateTime"
View Source
const PersistentVolumeClaimSuffix = ""
View Source
const PodDisruptionBudgetSuffix = ""
View Source
const ServiceSuffix = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterScopedBuilder

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

type ConfigMapBuilder

type ConfigMapBuilder struct {
	ClusterScopedBuilder
	*OSRMResourceBuilder
}

func (*ConfigMapBuilder) Build

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

func (*ConfigMapBuilder) ShouldDeploy

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

func (*ConfigMapBuilder) Update

func (builder *ConfigMapBuilder) Update(object client.Object, siblings []runtime.Object) error

type CronJobBuilder

type CronJobBuilder struct {
	ProfileScopedBuilder
	*OSRMResourceBuilder
}

func (*CronJobBuilder) Build

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

func (*CronJobBuilder) ShouldDeploy

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

func (*CronJobBuilder) Update

func (builder *CronJobBuilder) Update(object client.Object, siblings []runtime.Object) error

type DeploymentBuilder

type DeploymentBuilder struct {
	ProfileScopedBuilder
	*OSRMResourceBuilder
}

func (*DeploymentBuilder) Build

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

func (*DeploymentBuilder) ShouldDeploy

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

func (*DeploymentBuilder) Update

func (builder *DeploymentBuilder) Update(object client.Object, siblings []runtime.Object) error

type GatewayDeploymentBuilder

type GatewayDeploymentBuilder struct {
	ClusterScopedBuilder
	*OSRMResourceBuilder
}

func (*GatewayDeploymentBuilder) Build

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

func (*GatewayDeploymentBuilder) ShouldDeploy

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

func (*GatewayDeploymentBuilder) Update

func (builder *GatewayDeploymentBuilder) Update(object client.Object, siblings []runtime.Object) error

type GatewayServiceBuilder

type GatewayServiceBuilder struct {
	ClusterScopedBuilder
	*OSRMResourceBuilder
}

func (*GatewayServiceBuilder) Build

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

func (*GatewayServiceBuilder) ShouldDeploy

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

func (*GatewayServiceBuilder) Update

func (builder *GatewayServiceBuilder) Update(object client.Object, siblings []runtime.Object) error

type HorizontalPodAutoscalerBuilder

type HorizontalPodAutoscalerBuilder struct {
	ProfileScopedBuilder
	*OSRMResourceBuilder
}

func (*HorizontalPodAutoscalerBuilder) Build

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

func (*HorizontalPodAutoscalerBuilder) ShouldDeploy

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

func (*HorizontalPodAutoscalerBuilder) Update

func (builder *HorizontalPodAutoscalerBuilder) Update(object client.Object, siblings []runtime.Object) error

type JobBuilder

type JobBuilder struct {
	ProfileScopedBuilder
	*OSRMResourceBuilder
}

func (*JobBuilder) Build

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

func (*JobBuilder) ShouldDeploy

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

func (*JobBuilder) Update

func (builder *JobBuilder) Update(object client.Object, siblings []runtime.Object) error

type OSRMResourceBuilder

type OSRMResourceBuilder struct {
	Instance *osrmv1alpha1.OSRMCluster
	Scheme   *runtime.Scheme
}

func (*OSRMResourceBuilder) ConfigMap

func (builder *OSRMResourceBuilder) ConfigMap(profiles []*osrmv1alpha1.ProfileSpec) *ConfigMapBuilder

func (*OSRMResourceBuilder) CronJob

func (builder *OSRMResourceBuilder) CronJob(profile *osrmv1alpha1.ProfileSpec) *CronJobBuilder

func (*OSRMResourceBuilder) Deployment

func (builder *OSRMResourceBuilder) Deployment(profile *osrmv1alpha1.ProfileSpec) *DeploymentBuilder

func (*OSRMResourceBuilder) GatewayDeployment

func (builder *OSRMResourceBuilder) GatewayDeployment(profiles []*osrmv1alpha1.ProfileSpec) *GatewayDeploymentBuilder

func (*OSRMResourceBuilder) GatewayService

func (builder *OSRMResourceBuilder) GatewayService(profiles []*osrmv1alpha1.ProfileSpec) *GatewayServiceBuilder

func (*OSRMResourceBuilder) HorizontalPodAutoscaler

func (builder *OSRMResourceBuilder) HorizontalPodAutoscaler(profile *osrmv1alpha1.ProfileSpec) *HorizontalPodAutoscalerBuilder

func (*OSRMResourceBuilder) Job

func (builder *OSRMResourceBuilder) Job(profile *osrmv1alpha1.ProfileSpec) *JobBuilder

func (*OSRMResourceBuilder) PersistentVolumeClaim

func (builder *OSRMResourceBuilder) PersistentVolumeClaim(profile *osrmv1alpha1.ProfileSpec) *PersistentVolumeClaimBuilder

func (*OSRMResourceBuilder) PodDisruptionBudget

func (builder *OSRMResourceBuilder) PodDisruptionBudget(profile *osrmv1alpha1.ProfileSpec) *PodDisruptionBudgetBuilder

func (*OSRMResourceBuilder) ResourceBuilders

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

func (*OSRMResourceBuilder) Service

func (builder *OSRMResourceBuilder) Service(profile *osrmv1alpha1.ProfileSpec) *ServiceBuilder

type OSRMService

type OSRMService string
const (
	NearestService OSRMService = "nearest"
	RouteService   OSRMService = "route"
	TableService   OSRMService = "table"
	MatchService   OSRMService = "match"
	TripService    OSRMService = "trip"
	TileService    OSRMService = "tile"
)

type PersistentVolumeClaimBuilder

type PersistentVolumeClaimBuilder struct {
	ProfileScopedBuilder
	*OSRMResourceBuilder
}

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, siblings []runtime.Object) error

type PodDisruptionBudgetBuilder

type PodDisruptionBudgetBuilder struct {
	ProfileScopedBuilder
	*OSRMResourceBuilder
}

func (*PodDisruptionBudgetBuilder) Build

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

func (*PodDisruptionBudgetBuilder) ShouldDeploy

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

func (*PodDisruptionBudgetBuilder) Update

func (builder *PodDisruptionBudgetBuilder) Update(object client.Object, siblings []runtime.Object) error

type ProfileScopedBuilder

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

type ResourceBuilder

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

type ServiceBuilder

type ServiceBuilder struct {
	ProfileScopedBuilder
	*OSRMResourceBuilder
}

func (*ServiceBuilder) Build

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

func (*ServiceBuilder) ShouldDeploy

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

func (*ServiceBuilder) Update

func (builder *ServiceBuilder) Update(object client.Object, siblings []runtime.Object) error

Jump to

Keyboard shortcuts

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