Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveGateInput ¶ added in v1.1.1
func ResolveGateInput(gate *temporaliov1alpha1.GateWorkflowConfig, namespace string, configMapData map[string]string, configMapBinaryData map[string][]byte, secretData map[string][]byte) ([]byte, bool, error)
ResolveGateInput resolves the gate input from inline JSON or from a referenced ConfigMap/Secret Returns the input bytes and a boolean indicating whether the input came from a Secret
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
// Build IDs of versions from which the controller should
// remove IgnoreLastModifierKey from the version metadata
RemoveIgnoreLastModifierBuilds []string
}
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, workerDeploymentName string, maxVersionsIneligibleForDeletion int32, gateInput []byte, isGateInputSecret bool, ) (*Plan, error)
GeneratePlan creates a plan for updating the worker deployment
type VersionConfig ¶
type VersionConfig struct {
// Token to use for conflict detection
ConflictToken []byte
// Build ID for the version
BuildID string
// Set this as the build ID for all new executions
SetCurrent bool
// Acceptable values [0,100]
RampPercentage int32
}
VersionConfig defines version configuration for Temporal
type WorkflowConfig ¶
type WorkflowConfig struct {
WorkflowType string
WorkflowID string
BuildID string
TaskQueue string
GateInput string
// IsInputSecret indicates whether the GateInput came from a Secret reference
// and should be treated as sensitive (not logged)
IsInputSecret bool
}
WorkflowConfig defines a workflow to be started
Click to show internal directories.
Click to hide internal directories.