workspaces

package
v0.0.0-...-ed7f98b Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CertClusterIssuerName = "spot-workspace-issuer"

Name of the cert-manager ClusterIssuer CRD that will be used to generate the TLS Certificate for each of the Ingress created for workspaces. This issuer is *required* as the deployment will not include a TLS certificate if this resource does not exist in the cluster. This might become a configurable field in the future.

View Source
const (
	RequeuePeriod = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	client.Client
	record.EventRecorder
}

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, workspace *spot.Workspace) error

func (*Builder) Reconcile

func (b *Builder) Reconcile(ctx context.Context, workspace *spot.Workspace, condition *spot.WorkspaceCondition) (ctrl.Result, error)

Reconcile is a sub-reconcile loop that will manage the reconcilation process for the `spot.WorkspaceconditionBuildingImages`. This function returns the value that the main reconcile loop should use to terminate the current reconciliation for this custom resource. It's an error to try to run this sub reconcile loop with any other as that will break the fundamental rules of reconciliation.

The sub-reconciliation loops are built in this package to help readers reason about the flow and it has no technical purposes.

Reconcile takes the workspace it's operating on as well as the condition. The condition could be implied here but since it's already retrieved it to reach this state (the main reconciliation loop need to lookup the condition before calling this sub-reconcile loop), it makes sense to just pass it here.

type Deployer

type Deployer struct {
	client.Client
	record.EventRecorder
}

func (*Deployer) Reconcile

func (d *Deployer) Reconcile(ctx context.Context, workspace *spot.Workspace, condition *spot.WorkspaceCondition) (ctrl.Result, error)

Reconcile is a sub-reconcile loop that will manage the reconcilation process for the `spot.WorkspaceconditionDeployment`. This function returns the value that the main reconcile loop should use to terminate the current reconciliation for this custom resource. It's an error to try to run this sub reconcile loop with any other as that will break the fundamental rules of reconciliation.

The sub-reconciliation loops are built in this package to help readers reason about the flow and it has no technical purposes.

Reconcile takes the workspace it's operating on as well as the condition. The condition could be implied here but since it's already retrieved it to reach this state (the main reconciliation loop need to lookup the condition before calling this sub-reconcile loop), it makes sense to just pass it here.

type Namespacer

type Namespacer struct {
	client.Client
	record.EventRecorder
}

func (*Namespacer) Reconcile

func (n *Namespacer) Reconcile(ctx context.Context, workspace *spot.Workspace, condition *spot.WorkspaceCondition) (ctrl.Result, error)

Reconcile is a sub-reconcile loop that will manage the reconcilation process for the `spot.WorkspaceconditionNamespace`. This function returns the value that the main reconcile loop should use to terminate the current reconciliation for this custom resource. It's an error to try to run this sub reconcile loop with any other as that will break the fundamental rules of reconciliation.

The sub-reconciliation loops are built in this package to help readers reason about the flow and it has no technical purposes.

Reconcile takes the workspace it's operating on as well as the condition. The condition could be implied here but since it's already retrieved it to reach this state (the main reconciliation loop need to lookup the condition before calling this sub-reconcile loop), it makes sense to just pass it here.

type Networking

type Networking struct {
	client.Client
	record.EventRecorder
}

func (*Networking) Reconcile

func (n *Networking) Reconcile(ctx context.Context, workspace *spot.Workspace, condition *spot.WorkspaceCondition) (ctrl.Result, error)

Reconcile is a sub-reconcile loop that will manage the reconcilation process for the `spot.WorkspaceconditionNetworking`. This function returns the value that the main reconcile loop should use to terminate the current reconciliation for this custom resource. It's an error to try to run this sub reconcile loop with any other as that will break the fundamental rules of reconciliation.

The sub-reconciliation loops are built in this package to help readers reason about the flow and it has no technical purposes.

Reconcile takes the workspace it's operating on as well as the condition. The condition could be implied here but since it's already retrieved it to reach this state (the main reconciliation loop need to lookup the condition before calling this sub-reconcile loop), it makes sense to just pass it here.

Jump to

Keyboard shortcuts

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