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 ¶
func GeneratePlan( l logr.Logger, k8sState *k8s.DeploymentState, status *temporaliov1alpha1.TemporalWorkerDeploymentStatus, spec *temporaliov1alpha1.TemporalWorkerDeploymentSpec, temporalState *temporal.TemporalWorkerState, connection temporaliov1alpha1.TemporalConnectionSpec, config *Config, ) (*Plan, error)
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
Click to show internal directories.
Click to hide internal directories.