builder

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// ProjectName name of the config from which the cluster is.
	ProjectName string
	// TaskId from which this process was spawned from.
	TaskId string
	// CurrentCluster is the current state of the cluster
	// properties may change during processing.
	CurrentCluster *spec.K8Scluster
	// DesiredCluster is the desired state of the cluster
	// properties may change during processing.
	DesiredCluster *spec.K8Scluster

	// CurrentLoadbalancers are the current loadbalancers of the cluster
	// properties may change during processing.
	CurrentLoadbalancers []*spec.LBcluster
	// DesiredLoadbalancers are the current loadbalancers of the cluster
	// properties may change during processing.
	DesiredLoadbalancers []*spec.LBcluster

	// DeletedLoadBalancers are the deleted loadbalancers for the cluster.
	DeletedLoadBalancers []*spec.LBcluster

	// Workflow is the current state of processing of the cluster.
	Workflow *spec.Workflow
}

Context provides context for the Claudie workflow for a particular cluster.

func (*Context) GetClusterID

func (ctx *Context) GetClusterID() string

GetClusterID returns ID of the k8s cluster for a given builder context.

func (*Context) GetClusterName

func (ctx *Context) GetClusterName() string

GetClusterName returns name of the k8s cluster for a given builder context.

Jump to

Keyboard shortcuts

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