builder

package
v0.9.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineProxyOperation added in v0.9.3

func DetermineProxyOperation(ctx *Context) spec.ProxyOp

func HasHetznerNode added in v0.9.1

func HasHetznerNode(k8s *spec.K8Scluster) bool

func HttpProxyUrlAndNoProxyList added in v0.9.3

func HttpProxyUrlAndNoProxyList(k8s *spec.K8Scluster, lbs []*spec.LBcluster, hasHetznerNodeFlag bool) (string, string)

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

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

	// ProxyEnvs holds information about a need to update proxy envs, proxy endpoint, and no proxy list.
	ProxyEnvs *spec.ProxyEnvs

	// Options that were set by the manager service for the task this context was created for.
	Options uint64
}

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

func (*Context) GetClusterName

func (ctx *Context) GetClusterName() string

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

func (*Context) Id added in v0.9.1

func (ctx *Context) Id() string

Id returns Id of the k8s cluster for a given builder context.

func (*Context) PopulateProxy added in v0.9.3

func (ctx *Context) PopulateProxy()

Jump to

Keyboard shortcuts

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