builder

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHttpProxyUrlAndNoProxyList added in v0.9.1

func GetHttpProxyUrlAndNoProxyList(k8sClusterInfo *spec.ClusterInfo, lbs []*spec.LBcluster, hasHetznerNodeFlag bool, k8sInstallationProxy *spec.InstallationProxy) (string, string)

func HasHetznerNode added in v0.9.1

func HasHetznerNode(k8sClusterInfo *spec.ClusterInfo) bool

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

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

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

func (*Context) DetermineProxyUpdate added in v0.9.1

func (ctx *Context) DetermineProxyUpdate() bool

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.

Jump to

Keyboard shortcuts

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