planner

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// RolloutStrategy to use
	RolloutStrategy temporaliov1alpha1.RolloutStrategy
}

Config holds the configuration for planning

type Plan

type Plan struct {
	// Which actions to take
	DeleteDeployments      []*appsv1.Deployment
	ScaleDeployments       map[*corev1.ObjectReference]uint32
	UpdateDeployments      []*appsv1.Deployment
	ShouldCreateDeployment bool
	VersionConfig          *VersionConfig
	TestWorkflows          []WorkflowConfig
}

Plan holds the actions to execute during reconciliation

func GeneratePlan

GeneratePlan creates a plan for updating the worker deployment

type VersionConfig

type VersionConfig struct {
	// Token to use for conflict detection
	ConflictToken []byte
	// Version ID for which this config applies
	VersionID string

	// Set this as the build ID for all new executions
	SetCurrent bool
	// Acceptable values [0,100]
	RampPercentage float32
}

VersionConfig defines version configuration for Temporal

type WorkflowConfig

type WorkflowConfig struct {
	WorkflowType string
	WorkflowID   string
	VersionID    string
	TaskQueue    string
}

WorkflowConfig defines a workflow to be started

Jump to

Keyboard shortcuts

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