manager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedTaintsEffects = []string{"NoSchedule", "NoExecute", "PreferNoSchedule"}
View Source
var DefaultTaints = map[string][]string{
	variables.ServerRole: {

		"CriticalAddonsOnly=true:NoExecute",
		"node-role.kubernetes.io/control-plane:NoSchedule",
	},
}

Functions

func ComputeTolerationsFromNodes

func ComputeTolerationsFromNodes(nodes map[string]*Node) []map[string]interface{}

Types

type ClusterManager

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

func New

func New(ctx *program.Context, nodes map[string]*Node) *ClusterManager

func (*ClusterManager) ManageTaints

func (m *ClusterManager) ManageTaints(node *Node) error

func (*ClusterManager) Nodes

func (m *ClusterManager) Nodes() map[string]*Node

func (*ClusterManager) Resources

func (m *ClusterManager) Resources() []pulumi.Resource

func (*ClusterManager) Up added in v0.0.12

func (m *ClusterManager) Up(kubeconfig pulumi.AnyOutput, provider *kubernetes.Provider) error

func (*ClusterManager) ValidateNodePatches

func (m *ClusterManager) ValidateNodePatches() error

type Node

type Node struct {
	ID     string
	Taints []string
	Labels []string
}

Node is a representation of kubernetes node. Used for keeping node taints and labels updated.

Jump to

Keyboard shortcuts

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