manager

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedTaintsEffects = []string{"NoSchedule", "NoExecute", "PreferNoSchedule"}

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) ManageNodes

func (m *ClusterManager) ManageNodes(provider *kubernetes.Provider) error

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) 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