Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SSAManager is the default numaplane manager name used by server-side apply syncs SSAManager = "numaplane-controller" // EnvLogLevel log level that is defined by `--loglevel` option EnvLogLevel = "NUMAPLANE_LOG_LEVEL" // NumaflowAPIGroup is the group of the Numaflow API NumaflowAPIGroup = "numaflow.numaproj.io" // NumaflowAPIVersion is the version of the Numaflow API NumaflowAPIVersion = "v1alpha1" // NumaflowPipelineKind is the kind of the Numaflow Pipeline NumaflowPipelineKind = "Pipeline" // NumaflowMonoVertexKind is the kind of the Numaflow MonoVertex NumaflowMonoVertexKind = "MonoVertex" // NumaflowISBServiceKind is the kind of the Numaflow ISB Service NumaflowISBServiceKind = "InterStepBufferService" FinalizerName = "numaplane.numaproj.io/numaplane-controller" // LabelKeyNumaplaneInstance Resource metadata labels (keys and values) used for tracking LabelKeyNumaplaneInstance = "numaplane.numaproj.io/tracking-id" // LabelKeyNumaplaneControllerConfig is the label key used to identify additional Numaplane ConfigMaps (ex: Numaflow Controller definitions, USDE, etc.) LabelKeyNumaplaneControllerConfig = "numaplane.numaproj.io/config" // LabelValueNumaflowControllerDefinitions is the label value used to identify the Numaplane ConfigMap for the Numaflow Controller definitions LabelValueNumaflowControllerDefinitions = "numaflow-controller-definitions" // LabelValueUSDEConfig is the label value used to identify the USDE ConfigMap LabelValueUSDEConfig = "usde-config" // LabelValueNamespaceConfig is the label value used to identify the user's namespace-level ConfigMap LabelValueNamespaceConfig = "namespace-level-config" // LabelKeyISBServiceRONameForPipeline is the label key used to identify the ISBServiceRollout that a Pipeline is associated with LabelKeyISBServiceRONameForPipeline = "numaplane.numaproj.io/isbsvc-name" // TODO: this is still named "isbsvc-name" instead of "isbsvc-rollout-name" - consider deprecating this and creating a separate label for isbsvc-rollout-name? // LabelKeyISBServiceChildNameForPipeline is the label key used to identify the InterstepBufferService that a Pipeline is associated with LabelKeyISBServiceChildNameForPipeline = "numaplane.numaproj.io/isbsvc-child-name" // LabelKeyParentRollout is the label key used to identify the Rollout that a child Resource is managed by // This is useful as a Label to quickly locate all children of a given Rollout LabelKeyParentRollout = "numaplane.numaproj.io/parent-rollout-name" // LabelKeyAllowDataLoss is the label key on a Pipeline to indicate that PPND strategy can skip the usual pausing required // this includes both the case of pausing for Pipeline updating as well as for NumaflowController and isbsvc updating LabelKeyAllowDataLoss = "numaplane.numaproj.io/allow-data-loss" // LabelKeyUpgradeState is the label key used to identify the upgrade state of a resource that is managed by // a NumaRollout. LabelKeyUpgradeState = "numaplane.numaproj.io/upgrade-state" // LabelKeyUpgradeStateReason is an optional label to provide more information on top of the LabelKeyUpgradeState LabelKeyUpgradeStateReason = "numaplane.numaproj.io/upgrade-state-reason" // LabelValueUpgradePromoted is the label value indicating that the resource managed by a NumaRollout is promoted // after an upgrade. LabelValueUpgradePromoted UpgradeState = "promoted" // LabelValueUpgradeInProgress is the label value indicating that the resource managed by a NumaRollout is in progress // of upgrade. LabelValueUpgradeInProgress UpgradeState = "in-progress" // LabelValueUpgradeRecyclable is the label value indicating that the resource managed by a NumaRollout is recyclable // after an upgrade. LabelValueUpgradeRecyclable UpgradeState = "recyclable" // LabelValueProgressiveSuccess is the value used for the Label `LabelKeyUpgradeStateReason` when `LabelKeyUpgradeState`="recyclable" due to Progressive child succeeding LabelValueProgressiveSuccess UpgradeStateReason = "progressive-success" // LabelValueProgressiveFailure is the value used for the Label `LabelKeyUpgradeStateReason` when `LabelKeyUpgradeState`="recyclable" due to Progressive child failing LabelValueProgressiveFailure UpgradeStateReason = "progressive-failure" // LabelValueDeleteRecreateChild is the value used for the Label `LabelKeyUpgradeStateReason` when `LabelKeyUpgradeState`="recyclable" due to a child being deleted and recreated LabelValueDeleteRecreateChild UpgradeStateReason = "delete-recreate" // LabelValuePurgeOld is the value used for the Label `LabelKeyUpgradeStateReason` when `LabelKeyUpgradeState`="recyclable" if there's a strange case in which there are multiple of a given // child and there should only be one // TODO: reevaluate if we really need that LabelValuePurgeOld UpgradeStateReason = "purge" // LabelKeyNumaflowPodPipelineName is the label key used to identify the pod associated to a specific pipeline LabelKeyNumaflowPodPipelineName = "numaflow.numaproj.io/pipeline-name" // LabelKeyNumaflowPodMonoVertexName is the label key used to identify the pod associated to a specific monovertex LabelKeyNumaflowPodMonoVertexName = "app.kubernetes.io/name" // LabelKeyNumaflowPodPipelineVertexName is the label key used to identify the pod associated to a specific pipeline vertex LabelKeyNumaflowPodPipelineVertexName = "numaflow.numaproj.io/vertex-name" // LabelKeyNumaflowPodMonoVertexVertexName is the label key used to identify the pod associated to a specific monovertex vertex LabelKeyNumaflowPodMonoVertexVertexName = "numaflow.numaproj.io/mono-vertex-name" // AnnotationKeyNumaflowInstanceID is the annotation passed to Numaflow Controller so it knows whether it should reconcile the resource AnnotationKeyNumaflowInstanceID = "numaflow.numaproj.io/instance" // NumaplaneSystemNamespace is the namespace where the Numaplane Controller is deployed NumaplaneSystemNamespace = "numaplane-system" )
Variables ¶
View Source
var ( NumaflowGroupVersion = fmt.Sprintf("%s/%s", NumaflowAPIGroup, NumaflowAPIVersion) PipelineGVR = schema.GroupVersionResource{ Group: NumaflowAPIGroup, Version: NumaflowAPIVersion, Resource: "pipelines", } // DefaultRequeueDelay indicates the default requeue time (in seconds) used by Reconcilers DefaultRequeueDelay = 20 * time.Second )
Functions ¶
This section is empty.
Types ¶
type UpgradeState ¶ added in v0.6.0
type UpgradeState string
UpgradeState is the enum to track the possible state of a resource upgrade: it can be `promoted`, `in-progress`, or `recyclable`.
type UpgradeStateReason ¶ added in v0.13.0
type UpgradeStateReason string
UpgradeStateReason is the enum to track reasons for UpgradeState, to provide additional information when useful
Click to show internal directories.
Click to hide internal directories.