e2e

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 45 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// For tests that use just one Numaflow Controller Version:
	PrimaryNumaflowControllerVersion = "1.9.0"

	// For tests that transition from one Numaflow Controller Version to another:
	// (generally these are consecutive versions, but not always)
	InitialNumaflowControllerVersion = "1.8.4"
	UpdatedNumaflowControllerVersion = "1.9.0"

	InitialJetstreamVersion = "2.10.17"
	UpdatedJetstreamVersion = "2.10.11"

	Namespace = "numaplane-system"

	ControllerOutputPath = "../output/controllers"

	ResourceChangesPipelineOutputPath           = "../output/resources/pipelinerollouts"
	ResourceChangesISBServiceOutputPath         = "../output/resources/isbservicerollouts"
	ResourceChangesMonoVertexOutputPath         = "../output/resources/monovertexrollouts"
	ResourceChangesNumaflowControllerOutputPath = "../output/resources/numaflowcontrollerrollouts"

	PodLogsPipelineOutputPath            = "../output/logs/pipelinerollouts"
	PodLogsISBServiceOutputPath          = "../output/logs/isbservicerollouts"
	PodLogsMonoVertexOutputPath          = "../output/logs/monovertexrollouts"
	PodLogsNumaflowControllerOutputPath  = "../output/logs/numaflowcontrollerrollouts"
	PodLogsNumaplaneControllerOutputPath = "../output/logs/numaplanecontroller"

	NumaplaneAPIVersion    = "numaplane.numaproj.io/v1alpha1"
	NumaflowAPIVersion     = "numaflow.numaproj.io/v1alpha1"
	ArgoRolloutsAPIVersion = "argoproj.io/v1alpha1"

	NumaplaneLabel = "app.kubernetes.io/part-of=numaplane"
	NumaflowLabel  = "app.kubernetes.io/part-of=numaflow"

	ParentRolloutLabel        = "numaplane.numaproj.io/parent-rollout-name"
	UpgradeStateLabelSelector = "numaplane.numaproj.io/upgrade-state=promoted"

	LogSpacer = "================================"
)
View Source
const (
	// BrokenNumaflowControllerVersion is installed by tests/manifests/default/controller_def_0.0.0.yaml.
	// The definition exists, and its controller image does not.
	BrokenNumaflowControllerVersion = "0.0.0"
	// BrokenJetstreamVersion is a JetStream version whose image does not exist.
	BrokenJetstreamVersion = "0.0.0"

	// A healthy controller succeeds on the first healthy observation. The end window only fails a
	// controller that never becomes healthy, so it stays long enough for an image pull.
	ControllerSuccessSchedule = "0,300,0,5"
	// A broken image never becomes healthy, so the assessment fails when this window ends.
	ControllerFailureSchedule = "0,45,0,5"

	// FastWorkloadSchedule succeeds after a short consecutive healthy period.
	FastWorkloadSchedule = "5,180,15,5"
	// FailureWorkloadSchedule gives a bad image about a minute before the workload fails.
	FailureWorkloadSchedule = "5,60,15,5"
	// RecoverWorkloadSchedule is for a healthy workload moving onto a controller that just started.
	// A one-minute window can close while the daemon is still rolling out, and that Failure is kept.
	RecoverWorkloadSchedule = "5,300,15,5"
	// SlowWorkloadSchedule delays assessment so a sibling can finish its own assessment first.
	SlowWorkloadSchedule = "240,360,15,5"
	// ISBSchedule succeeds on the first healthy observation.
	ISBSchedule = "0,180,0,5"
)

Variables

View Source
var (

	// Note: this timeout needs to be large enough for:
	//  - progressive child resource healthiness assessment (2 minutes until assessment start time + 1 minute until end time)
	//  - time for isbsvc to be created plus pipeline to become healthy afterward
	DefaultTestTimeout            = 10 * time.Minute
	DefaultConsistentCheckTimeout = 15 * time.Second // the default time for checks using "Consistently"
	TestPollingInterval           = 10 * time.Millisecond

	UpgradeStrategy config.USDEUserStrategy
)

Functions

func BeforeSuiteSetup added in v0.13.0

func BeforeSuiteSetup()

func CheckConsistently added in v0.15.0

func CheckConsistently(testDescription string, actualOrCtx interface{}) AsyncAssertion

CheckConsistently is wrappers around Ginkgo's Consistently You can override the default timeout and polling interval by using WithTimeout and WithPolling methods

func CheckEventually added in v0.15.0

func CheckEventually(testDescription string, actualOrCtx interface{}) AsyncAssertion

CheckEventually is wrappers around Ginkgo's Eventually You can override the default timeout and polling interval by using WithTimeout and WithPolling methods

func CleanUpPipelineISBJobs added in v1.0.0

func CleanUpPipelineISBJobs()

CleanUpPipelineISBJobs makes sure that no Numaflow Job which creates or deletes a Pipeline's ISB buffers and buckets is still able to run.

Numaflow runs these as Jobs named "<pipeline>-cre-<hash>" (create buffers and buckets), "<pipeline>-del-<hash>" (delete the ones no longer in the spec), and "<pipeline>-cln-<hash>" (delete all of them when the Pipeline is deleted). A Job left over from a deleted Pipeline will happily delete the buffers and watermark buckets of a new Pipeline that reuses the same name, which leaves the new Pipeline's Pods crashing on a missing JetStream bucket.

We first give the Jobs a chance to finish on their own, rather than cutting short a clean up that is still deleting streams. Any Job still left after that is deleted, because a clean up Job cannot always succeed: it is created while its Pipeline is being deleted and mounts the secret of the Pipeline's InterStepBufferService, so if that InterStepBufferService has already been replaced, the Job's Pod is stuck on the missing secret until the Job hits its own deadline several minutes later.

func ControllerInstanceIDOf added in v1.0.0

func ControllerInstanceIDOf(obj *unstructured.Unstructured) string

ControllerInstanceIDOf reads the Numaflow controller instance a Pipeline, ISBService, or MonoVertex is bound to.

func CreateAnalysisTemplate added in v0.24.0

func CreateAnalysisTemplate(name, namespace string, spec argov1alpha1.AnalysisTemplateSpec)

func CreateISBServiceRollout added in v0.13.0

func CreateISBServiceRollout(name string, isbServiceSpec numaflowv1.InterStepBufferServiceSpec)

create an ISBServiceRollout of a given version and name and make sure it's running

func CreateISBServiceRolloutObject added in v1.0.0

func CreateISBServiceRolloutObject(name string, spec numaflowv1.InterStepBufferServiceSpec)

CreateISBServiceRolloutObject creates an ISBServiceRollout and does not wait for an ISBService child.

func CreateInitialMonoVertexRollout added in v0.24.0

func CreateInitialMonoVertexRollout(monoVertexRolloutName string, initialMonoVertexSpec numaflowv1.MonoVertexSpec, strategy *apiv1.PipelineTypeRolloutStrategy, monoVertexMetadata apiv1.Metadata)

func CreateInitialPipelineRollout added in v0.24.0

func CreateInitialPipelineRollout(pipelineRolloutName, currentPromotedISBService string, initialPipelineSpec numaflowv1.PipelineSpec, defaultStrategy apiv1.PipelineStrategy, pipelineMetadata apiv1.Metadata)

func CreateMonoVertexRollout added in v0.13.0

func CreateMonoVertexRollout(name, namespace string, spec numaflowv1.MonoVertexSpec, strategy *apiv1.PipelineTypeRolloutStrategy, metadata apiv1.Metadata)

creates MonoVertexRollout of a given spec/name and makes sure it's running

func CreateMonoVertexRolloutObject added in v1.0.0

func CreateMonoVertexRolloutObject(name string, spec numaflowv1.MonoVertexSpec, strategy *apiv1.PipelineTypeRolloutStrategy)

CreateMonoVertexRolloutObject creates a MonoVertexRollout and does not wait for a MonoVertex child.

func CreateNumaflowControllerRollout added in v0.13.0

func CreateNumaflowControllerRollout(version string)

create NumaflowControllerRollout of any given version and be sure it's running

func CreatePipelineRollout added in v0.13.0

func CreatePipelineRollout(name, namespace string, spec numaflowv1.PipelineSpec, failed bool, strategy *apiv1.PipelineStrategy, metadata apiv1.Metadata)

create a PipelineRollout of a given spec/name and make sure it's running

func CreatePipelineRolloutObject added in v1.0.0

func CreatePipelineRolloutObject(name string, spec numaflowv1.PipelineSpec, strategy *apiv1.PipelineStrategy)

CreatePipelineRolloutObject creates a PipelineRollout and does not wait for a Pipeline child. A new Pipeline stays Pending while a controller chain is failed, so the usual create helper would time out.

func DeleteAnalysisTemplate added in v0.24.0

func DeleteAnalysisTemplate(name string)

DeleteAnalysisTemplate will delete and verify deletion of the Analysis Template with the given name.

func DeleteISBServiceRollout added in v0.13.0

func DeleteISBServiceRollout(name string)

delete ISBServiceRollout and verify deletion

func DeleteMonoVertexRollout added in v0.13.0

func DeleteMonoVertexRollout(name string)

delete MonoVertexRollout and verify deletion

func DeleteNumaflowControllerRollout added in v0.13.0

func DeleteNumaflowControllerRollout()

delete NumaflowControllerRollout and verify deletion

func DeletePipelineRollout added in v0.13.0

func DeletePipelineRollout(name string)

delete a PipelineRollout and verify deletion

func DeleteProgressiveControllerStack added in v1.0.0

func DeleteProgressiveControllerStack(pipelineNames, monoVertexNames, isbNames []string)

DeleteProgressiveControllerStack deletes the workloads and then the NumaflowControllerRollout.

func GetAnnotation added in v0.29.0

func GetAnnotation(namespace, pipelineName, annotationKey string) (string, error)

GetAnnotation retrieves a specific annotation from a Pipeline by namespace and name

func GetChildren added in v0.14.0

func GetChildren(gvr schema.GroupVersionResource, namespace, rolloutName string) (*unstructured.UnstructuredList, error)

func GetChildrenOfUpgradeStrategy added in v0.21.0

func GetChildrenOfUpgradeStrategy(gvr schema.GroupVersionResource, namespace, rolloutName string, upgradeState common.UpgradeState) (*unstructured.UnstructuredList, error)

func GetCurrentPipelineCount added in v0.21.0

func GetCurrentPipelineCount(pipelineRolloutName string) int

func GetGVRForISBService added in v0.14.0

func GetGVRForISBService() schema.GroupVersionResource

func GetGVRForMonoVertex added in v0.14.0

func GetGVRForMonoVertex() schema.GroupVersionResource

func GetGVRForPipeline added in v0.14.0

func GetGVRForPipeline() schema.GroupVersionResource

func GetGVRForVertex added in v0.14.0

func GetGVRForVertex() schema.GroupVersionResource

func GetISBServiceRolloutProgressiveStatus added in v0.23.0

func GetISBServiceRolloutProgressiveStatus(isbSvcRolloutName string) apiv1.ISBServiceProgressiveStatus

func GetISBServiceSpec added in v0.14.0

Get ISBServiceSpec from Unstructured type

func GetISBServiceStatus added in v0.24.0

func GetInstanceName added in v0.19.0

func GetInstanceName(rolloutName string, idx int) string

func GetMonoVertex added in v0.14.0

func GetMonoVertex(namespace, monoVertexName string) (*numaflowv1.MonoVertex, error)

GetMonoVertex retrieves a MonoVertex by namespace and name

func GetMonoVertexMetadata added in v0.28.0

func GetMonoVertexMetadata(u *unstructured.Unstructured) (apiv1.Metadata, error)

GetMonoVertexMetadata from Unstructured type

func GetMonoVertexRolloutMonoVertexSpec added in v1.0.0

func GetMonoVertexRolloutMonoVertexSpec(monoVertexRolloutName string) (numaflowv1.MonoVertexSpec, error)

Get MonoVertexSpec from Unstructured type

func GetMonoVertexRolloutProgressiveStatus added in v0.19.0

func GetMonoVertexRolloutProgressiveStatus(monoVertexRolloutName string) apiv1.MonoVertexProgressiveStatus

func GetMonoVertexStatus added in v0.14.0

func GetMonoVertexStatus(u *unstructured.Unstructured) (numaflowv1.MonoVertexStatus, error)

func GetNumaflowControllerRolloutProgressiveStatus added in v1.0.0

func GetNumaflowControllerRolloutProgressiveStatus() apiv1.NumaflowControllerProgressiveStatus

GetNumaflowControllerRolloutProgressiveStatus returns the controller rollout's progressive status.

func GetNumberOfChildren added in v0.14.0

func GetNumberOfChildren(gvr schema.GroupVersionResource, namespace, rolloutName string) int

func GetNumberOfNonRecyclableChildren added in v0.29.0

func GetNumberOfNonRecyclableChildren(gvr schema.GroupVersionResource, namespace, rolloutName string) int

func GetPipelineByName added in v0.21.0

func GetPipelineByName(namespace, pipelineName string) (*unstructured.Unstructured, error)

func GetPipelineMetadata added in v0.28.0

func GetPipelineMetadata(u *unstructured.Unstructured) (apiv1.Metadata, error)

GetPipelineMetadata from Unstructured type

func GetPipelineRolloutPipelineSpec added in v0.33.0

func GetPipelineRolloutPipelineSpec(pipelineRolloutName string) (numaflowv1.PipelineSpec, error)

func GetPipelineRolloutProgressiveStatus added in v0.19.0

func GetPipelineRolloutProgressiveStatus(pipelineRolloutName string) apiv1.PipelineProgressiveStatus

func GetPipelineRolloutStatus added in v0.33.0

func GetPipelineRolloutStatus(pipelineRolloutName string) (apiv1.PipelineRolloutStatus, error)

func GetPipelineSpec added in v0.14.0

func GetPipelineSpec(u *unstructured.Unstructured) (numaflowv1.PipelineSpec, error)

GetPipelineSpec from Unstructured type

func GetPipelineSpecAndStatus added in v0.14.0

func GetPipelineSpecAndStatus(namespace, pipelineName string) (*unstructured.Unstructured, numaflowv1.PipelineSpec, numaflowv1.PipelineStatus, error)

GetPipelineSpecAndStatus retrieves a pipeline by name and returns its spec and status

func GetPipelineStatus added in v0.14.0

func GetPipelineStatus(u *unstructured.Unstructured) (numaflowv1.PipelineStatus, error)

func GetPromotedISBService added in v0.14.0

func GetPromotedISBService(namespace, isbServiceRolloutName string) (*unstructured.Unstructured, error)

func GetPromotedISBServiceName added in v0.23.0

func GetPromotedISBServiceName(namespace, isbServiceRolloutName string) (string, error)

func GetPromotedISBServiceSpecAndStatus added in v0.24.0

func GetPromotedISBServiceSpecAndStatus(namespace string, isbsvcRolloutName string) (*unstructured.Unstructured, numaflowv1.InterStepBufferServiceSpec, numaflowv1.InterStepBufferServiceStatus, error)

func GetPromotedMonoVertex added in v0.21.0

func GetPromotedMonoVertex(namespace, monoVertexRolloutName string) (*unstructured.Unstructured, error)

func GetPromotedMonoVertexFromK8S added in v0.23.0

func GetPromotedMonoVertexFromK8S(namespace string, monoVertexRolloutName string) (*unstructured.Unstructured, numaflowv1.MonoVertexSpec, numaflowv1.MonoVertexStatus, error)

func GetPromotedMonoVertexName added in v0.25.0

func GetPromotedMonoVertexName(namespace, monoVertexRolloutName string) (string, error)

func GetPromotedMonoVertexSpecAndStatus added in v0.26.0

func GetPromotedMonoVertexSpecAndStatus(namespace string, monoVertexRolloutName string) (*unstructured.Unstructured, numaflowv1.MonoVertexSpec, numaflowv1.MonoVertexStatus, error)

func GetPromotedPipeline added in v0.21.0

func GetPromotedPipeline(namespace, pipelineRolloutName string) (*unstructured.Unstructured, error)

func GetPromotedPipelineName added in v0.23.0

func GetPromotedPipelineName(namespace, pipelineRolloutName string) (string, error)

func GetPromotedPipelineSpecAndStatus added in v0.23.0

func GetPromotedPipelineSpecAndStatus(namespace string, pipelineRolloutName string) (*unstructured.Unstructured, numaflowv1.PipelineSpec, numaflowv1.PipelineStatus, error)

func GetResource added in v0.22.1

func GetResource(gvr schema.GroupVersionResource, namespace, name string) (*unstructured.Unstructured, error)

func GetUpgradingISBServices added in v0.21.0

func GetUpgradingISBServices(namespace, isbServiceRolloutName string) (*unstructured.UnstructuredList, error)

func GetUpgradingMonoVertices added in v0.21.0

func GetUpgradingMonoVertices(namespace, monoVertexRolloutName string) (*unstructured.UnstructuredList, error)

func GetUpgradingPipelines added in v0.21.0

func GetUpgradingPipelines(namespace, pipelineRolloutName string) (*unstructured.UnstructuredList, error)

func GetVertex added in v0.26.0

func GetVertex(namespace string, vertexName string) (*unstructured.Unstructured, error)

func GetVertexByName added in v0.26.0

func GetVertexByName(namespace, name string) (*unstructured.Unstructured, error)

func GetVertexSpec added in v0.26.0

func GetVertexStatus added in v0.26.0

func GetVertexStatus(u *unstructured.Unstructured) (numaflowv1.VertexStatus, error)

func MakeExpectedPipelineTypeProgressiveStatus added in v0.19.0

func MakeExpectedPipelineTypeProgressiveStatus(
	promotedName, upgradingName, sourceVertexName string,
	scaleTo int64,
	originalScaleMinMax string,
	assessmentResultInProgress, assessmentResultOnDone apiv1.AssessmentResult,
) (ExpectedPipelineTypeProgressiveStatus, ExpectedPipelineTypeProgressiveStatus)

func MonoVertexStrategyForSchedule added in v1.0.0

func MonoVertexStrategyForSchedule(schedule string) *apiv1.PipelineTypeRolloutStrategy

MonoVertexStrategyForSchedule returns a MonoVertex progressive strategy with the given assessment schedule.

func PipelineFinalProgressiveChecks added in v0.21.0

func PipelineFinalProgressiveChecks(pipelineRolloutName string, expectedPromotedPipelineName string, expectedUpgradingPipelineName string, expectedSuccess bool,
	newPipelineSpec numaflowv1.PipelineSpec)

Verify promoted pipeline and upgrading pipeline after Progressive Rollout

func PipelineInterStepBufferServiceName added in v1.0.0

func PipelineInterStepBufferServiceName(pipeline *unstructured.Unstructured) string

PipelineInterStepBufferServiceName reads the ISBService name from a Pipeline.

func PipelineStrategyForSchedule added in v1.0.0

func PipelineStrategyForSchedule(schedule string) apiv1.PipelineStrategy

PipelineStrategyForSchedule returns a Pipeline progressive strategy with the given assessment schedule.

func PipelineTransientProgressiveChecks added in v0.21.0

func PipelineTransientProgressiveChecks(pipelineRolloutName string, expectedPromotedPipelineName string, expectedUpgradingPipelineName string)

Verify promoted pipeline and upgrading pipeline during Progressive Rollout

func ProgressiveISBSpec added in v1.0.0

func ProgressiveISBSpec(version string) numaflowv1.InterStepBufferServiceSpec

ProgressiveISBSpec is a small JetStream InterStepBufferService.

func ProgressiveMonoVertexSpec added in v1.0.0

func ProgressiveMonoVertexSpec() numaflowv1.MonoVertexSpec

ProgressiveMonoVertexSpec is a one-pod MonoVertex that reads a source and drops the result.

func ProgressiveMonoVertexSpecWithBadImage added in v1.0.0

func ProgressiveMonoVertexSpecWithBadImage() numaflowv1.MonoVertexSpec

ProgressiveMonoVertexSpecWithBadImage is ProgressiveMonoVertexSpec with a source image that cannot be pulled.

func ProgressiveMonoVertexSpecWithEnv added in v1.0.0

func ProgressiveMonoVertexSpecWithEnv(value string) numaflowv1.MonoVertexSpec

ProgressiveMonoVertexSpecWithEnv is ProgressiveMonoVertexSpec plus an env var that forces a new MonoVertex child.

func ProgressivePipelineSpec added in v1.0.0

func ProgressivePipelineSpec(isbRolloutName string) numaflowv1.PipelineSpec

ProgressivePipelineSpec is a small generator pipeline used by the controller progressive suites.

func ProgressivePipelineSpecWithBadImage added in v1.0.0

func ProgressivePipelineSpecWithBadImage(isbRolloutName string) numaflowv1.PipelineSpec

ProgressivePipelineSpecWithBadImage is ProgressivePipelineSpec with a UDF image that cannot be pulled.

func ProgressivePipelineSpecWithEnv added in v1.0.0

func ProgressivePipelineSpecWithEnv(isbRolloutName, value string) numaflowv1.PipelineSpec

ProgressivePipelineSpecWithEnv is ProgressivePipelineSpec plus an env var that forces a new Pipeline child.

func PromotedNumaflowController added in v1.0.0

func PromotedNumaflowController() apiv1.NumaflowController

PromotedNumaflowController returns the current promoted NumaflowController.

func RecyclablePipelineDrainAttemptsMatch added in v0.33.0

func RecyclablePipelineDrainAttemptsMatch(
	status apiv1.PipelineRolloutStatus,
	recyclablePipelineName string,
	expected []ExpectedDrainAttempt,
) bool

RecyclablePipelineDrainAttemptsMatch reports whether the given recyclable pipeline has drain attempts matching all expected entries (by sourcePipelineSpec).

func SetISBServiceAssessmentSchedule added in v1.0.0

func SetISBServiceAssessmentSchedule(name, schedule string)

SetISBServiceAssessmentSchedule sets the progressive assessment schedule on an ISBServiceRollout.

func SetMonoVertexAssessmentSchedule added in v1.0.0

func SetMonoVertexAssessmentSchedule(name, schedule string)

SetMonoVertexAssessmentSchedule sets the progressive assessment schedule on a MonoVertexRollout.

func SetNumaflowControllerVersion added in v1.0.0

func SetNumaflowControllerVersion(version, schedule string)

SetNumaflowControllerVersion sets the NumaflowControllerRollout version and assessment schedule.

func SetObjectLabel added in v1.0.0

func SetObjectLabel(obj metav1.Object, key, value string)

SetObjectLabel sets one label on a Kubernetes object.

func SetPipelineAssessmentSchedule added in v1.0.0

func SetPipelineAssessmentSchedule(name, schedule string)

SetPipelineAssessmentSchedule sets the progressive assessment schedule on a PipelineRollout.

func SetupProgressiveControllerStack added in v1.0.0

func SetupProgressiveControllerStack(version, isbName, pipelineName, monoVertexName, workloadSchedule string)

SetupProgressiveControllerStack creates a controller, ISBService, Pipeline, and MonoVertex and waits until they are running.

func SnapshotControllerResources added in v1.0.0

func SnapshotControllerResources(controllerName string) map[string]string

SnapshotControllerResources records Deployment, ConfigMap, and Role UIDs owned by a NumaflowController child.

func TrialNumaflowControllerName added in v1.0.0

func TrialNumaflowControllerName(version string) (string, bool)

TrialNumaflowControllerName returns the trial controller name when one of version is present.

func UpdateISBService added in v0.25.0

func UpdateISBService(isbServiceRolloutName string, spec numaflowv1.InterStepBufferServiceSpec)

func UpdateISBServiceInK8S added in v0.23.0

func UpdateISBServiceInK8S(name string, f func(*unstructured.Unstructured) (*unstructured.Unstructured, error))

func UpdateISBServiceRollout added in v0.13.0

func UpdateISBServiceRollout(
	isbServiceRolloutName string,
	pipelineRollouts []PipelineRolloutInfo,
	newSpec numaflowv1.InterStepBufferServiceSpec,
	verifySpecFunc func(numaflowv1.InterStepBufferServiceSpec) bool,
	dataLossFieldChanged bool,
	recreateFieldChanged bool,
	progressiveFieldChanged bool,
)

pipelineRolloutNames is an array of pipelinerollout names that are checked to see if it is pausing or not after update newSpec is the updated spec of the ISBService defined in the rollout verifySpecFunc is passed to the verifyISBServiceSpec func which verifies the ISBService spec defined in the updated rollout matches what we expect dataLossFieldChanged determines if the change of spec incurs a potential data loss or not, as defined in the USDE config: https://github.com/numaproj/numaplane/blob/main/config/manager/usde-config.yaml recreateFieldChanged determines if the change of spec should result in a recreation of InterstepBufferService and its underlying pipelines - also defined in the USDE config pipelineIsFailed informs us if any dependent pipelines are currently failed and to not check if they are running

func UpdateISBServiceRolloutInK8S added in v0.13.0

func UpdateISBServiceRolloutInK8S(name string, f func(apiv1.ISBServiceRollout) (apiv1.ISBServiceRollout, error))

func UpdateMonoVertexInK8S added in v0.23.0

func UpdateMonoVertexInK8S(name string, f func(*unstructured.Unstructured) (*unstructured.Unstructured, error))

func UpdateMonoVertexRollout added in v0.13.0

func UpdateMonoVertexRollout(name string, origSpec numaflowv1.MonoVertexSpec, newSpec numaflowv1.MonoVertexSpec, expectedFinalPhase numaflowv1.MonoVertexPhase, verifySpecFunc func(numaflowv1.MonoVertexSpec) bool,
	verifyMetadataFunc func(apiv1.Metadata) bool, progressiveFieldChanged bool, currentMonoVertexRolloutIndex int, monoVertexMetadata apiv1.Metadata,
)

func UpdateMonoVertexRolloutForFailure added in v0.24.0

func UpdateMonoVertexRolloutForFailure(monoVertexRolloutName, invalidUDTransformerImage string, initialMonoVertexSpec numaflowv1.MonoVertexSpec, udTransformer numaflowv1.UDTransformer) *numaflowv1.MonoVertexSpec

func UpdateMonoVertexRolloutForSuccess added in v0.24.0

func UpdateMonoVertexRolloutForSuccess(monoVertexRolloutName, validUDTransformerImage string, initialMonoVertexSpec numaflowv1.MonoVertexSpec, udTransformer numaflowv1.UDTransformer) *numaflowv1.MonoVertexSpec

func UpdateMonoVertexRolloutInK8S added in v0.14.0

func UpdateMonoVertexRolloutInK8S(name string, f func(apiv1.MonoVertexRollout) (apiv1.MonoVertexRollout, error))

func UpdateMonoVertexSpec added in v1.0.0

func UpdateMonoVertexSpec(name string, spec numaflowv1.MonoVertexSpec)

UpdateMonoVertexSpec replaces the MonoVertex spec on the rollout.

func UpdateNumaflowControllerInK8S added in v1.0.0

func UpdateNumaflowControllerInK8S(name string, f func(*apiv1.NumaflowController) error)

UpdateNumaflowControllerInK8S updates a NumaflowController child, retrying on conflict.

func UpdateNumaflowControllerRollout added in v0.13.0

func UpdateNumaflowControllerRollout(originalVersion, newVersion string, pipelineRollouts []PipelineRolloutInfo, valid bool)

UpdateNumaflowControllerRollout updates the NumaflowControllerRollout and its dependent PipelineRollouts. originalVersion is the original version of the current NumaflowController defined in the rollout newVersion is the new version the updated NumaflowController should have if it is a valid version pipelineRolloutNames is an array of PipelineRollout names we check to be sure that they are pausing during an update valid boolean indicates if newVersion is a valid version or not (which will change the check we make) pipelineIsFailed informs us if any dependent pipelines are currently failed and to not check if they are running originalVersion is the original version of the current NumaflowController defined in the rollout newVersion is the new version the updated NumaflowController should have if it is a valid version pipelineRolloutNames is an array of PipelineRollout names we check to be sure that they are pausing during an update valid boolean indicates if newVersion is a valid version or not (which will change the check we make) pipelineIsFailed informs us if any dependent pipelines are currently failed and to not check if they are running

func UpdateNumaflowControllerRolloutInK8S added in v0.13.0

func UpdateNumaflowControllerRolloutInK8S(f func(apiv1.NumaflowControllerRollout) (apiv1.NumaflowControllerRollout, error))

func UpdateNumaplaneControllerConfig added in v0.29.0

func UpdateNumaplaneControllerConfig(configUpdates map[string]string)

UpdateNumaplaneControllerConfig updates the numaplane controller ConfigMap with the provided key-value pairs

func UpdatePipeline added in v0.24.0

func UpdatePipeline(pipelineRolloutName string, spec numaflowv1.PipelineSpec)

func UpdatePipelineInK8S added in v0.23.0

func UpdatePipelineInK8S(name string, f func(*unstructured.Unstructured) (*unstructured.Unstructured, error))

func UpdatePipelineRollout added in v0.13.0

func UpdatePipelineRollout(name string, newSpec numaflowv1.PipelineSpec, expectedFinalPhase numaflowv1.PipelinePhase, verifySpecFunc func(numaflowv1.PipelineSpec) bool, verifyMetadataFunc func(apiv1.Metadata) bool, dataLoss bool,
	progressiveFieldChanged bool, expectedSuccess bool, pipelineMetadata apiv1.Metadata,
)

update PipelineRollout and verify correct process name - name of PipelineRollout to update newSpec - new child Pipeline spec that will be updated in the rollout expectedFinalPhase - after updating the Rollout what phase we expect the child Pipeline to be in verifySpecFunc - boolean function to verify that updated PipelineRollout has correct spec verifyMetadataFunc - boolean function to verify that updated PipelineRollout has correct metadata dataLoss - informs us if the update to the PipelineRollout will cause data loss or not

func UpdatePipelineRolloutInK8S added in v0.13.0

func UpdatePipelineRolloutInK8S(namespace string, name string, f func(apiv1.PipelineRollout) (apiv1.PipelineRollout, error))

func UpdatePipelineSpec added in v0.14.0

Take a Pipeline Unstructured type and update the PipelineSpec in some way

func UpdatePipelineSpecInK8S added in v0.13.0

func UpdatePipelineSpecInK8S(namespace string, pipelineRolloutName string, f func(numaflowv1.PipelineSpec) (numaflowv1.PipelineSpec, error))

func UpdateVertexInK8S added in v0.26.0

func UpdateVertexInK8S(name string, f func(*unstructured.Unstructured) (*unstructured.Unstructured, error))

func VerifyAnalysisRunStatus added in v0.24.0

func VerifyAnalysisRunStatus(metricName, name string, expectedStatus argov1alpha1.AnalysisPhase)

func VerifyControllerResourceNamesDisjoint added in v1.0.0

func VerifyControllerResourceNamesDisjoint(leftName, rightName string)

VerifyControllerResourceNamesDisjoint checks that two controllers own different Deployments, ConfigMaps, and Roles.

func VerifyControllerResourcesUnchanged added in v1.0.0

func VerifyControllerResourcesUnchanged(controllerName string, before map[string]string)

VerifyControllerResourcesUnchanged checks that a controller's Deployments, ConfigMaps, and Roles keep their UIDs.

func VerifyFirstChildOnInstance added in v1.0.0

func VerifyFirstChildOnInstance(gvr schema.GroupVersionResource, rolloutName, instanceID string)

VerifyFirstChildOnInstance waits until the rollout's first child exists on instanceID. A rollout held Pending must not consume a name, so that child is <name>-0.

func VerifyISBResourceAssessment added in v1.0.0

func VerifyISBResourceAssessment(isbRolloutName string, expected apiv1.AssessmentResult)

VerifyISBResourceAssessment waits until an ISBService's own resource assessment equals expected.

func VerifyISBResourceAssessmentUnresolved added in v1.0.0

func VerifyISBResourceAssessmentUnresolved(isbRolloutName string)

VerifyISBResourceAssessmentUnresolved waits until the ISBService has a trial whose own assessment is not Success.

func VerifyISBServiceDeletion added in v0.23.0

func VerifyISBServiceDeletion(isbsvcName string)

func VerifyISBServiceProgressiveFailure added in v0.25.0

func VerifyISBServiceProgressiveFailure(isbsvcRolloutName string, promotedISBSvcName string, upgradingISBSvcName string)

func VerifyISBServiceProgressiveSuccess added in v0.25.0

func VerifyISBServiceProgressiveSuccess(isbsvcRolloutName string, promotedISBSvcName string, upgradingISBSvcName string)

func VerifyISBServiceRolloutHeldPending added in v1.0.0

func VerifyISBServiceRolloutHeldPending(name string)

VerifyISBServiceRolloutHeldPending waits until a new ISBServiceRollout stays Pending, with no child and no child name used.

func VerifyISBServiceRolloutInProgressStrategy added in v0.19.0

func VerifyISBServiceRolloutInProgressStrategy(isbServiceRolloutName string, inProgressStrategy apiv1.UpgradeStrategy)

func VerifyISBServiceRolloutInProgressStrategyConsistently added in v0.24.0

func VerifyISBServiceRolloutInProgressStrategyConsistently(isbsvcRolloutName string, inProgressStrategy apiv1.UpgradeStrategy)

func VerifyISBServiceRolloutProgressiveCondition added in v0.25.0

func VerifyISBServiceRolloutProgressiveCondition(isbsvcRolloutName string, success metav1.ConditionStatus)

func VerifyISBServiceRolloutProgressiveStatus added in v0.23.0

func VerifyISBServiceRolloutProgressiveStatus(
	isbServiceRolloutName string,
	expectedPromotedName string,
	expectedUpgradingName string,
	expectedAssessmentResult apiv1.AssessmentResult,
)

func VerifyISBServiceUpgradeState added in v0.32.7

func VerifyISBServiceUpgradeState(namespace, isbsvcName, upgradeState string, upgradeStateReason *string)

VerifyISBServiceUpgradeState verifies that an InterstepBufferService has the expected upgrade state label and optionally the upgrade state reason label

func VerifyISBSvcRolloutDeployed added in v0.25.0

func VerifyISBSvcRolloutDeployed(isbServiceRolloutName string)

func VerifyISBSvcRolloutHealthy added in v0.25.0

func VerifyISBSvcRolloutHealthy(isbServiceRolloutName string)

func VerifyISBSvcRolloutReady added in v0.14.0

func VerifyISBSvcRolloutReady(isbServiceRolloutName string)

func VerifyMonoVertexDeletion added in v0.19.0

func VerifyMonoVertexDeletion(name string)

func VerifyMonoVertexProgressiveFailure added in v0.24.0

func VerifyMonoVertexProgressiveFailure(monoVertexRolloutName, monoVertexScaleMinMaxJSONString string, updatedMonoVertexSpec *numaflowv1.MonoVertexSpec, monoVertexScaleTo int64, forcePromote bool)

func VerifyMonoVertexProgressiveSuccess added in v0.24.0

func VerifyMonoVertexProgressiveSuccess(monoVertexRolloutName, monoVertexScaleMinMaxJSONString string, monoVertexScaleTo int64,
	updatedMonoVertexSpec *numaflowv1.MonoVertexSpec, promotedMonoVertexIndex, updatedMonoVertexIndex int,
	forcedSuccess, checkRunningVertices bool)

func VerifyMonoVertexPromotedScale added in v0.19.0

func VerifyMonoVertexPromotedScale(namespace, monoVertexRolloutName string, expectedMonoVertexScaleMap map[string]numaflowv1.Scale)

func VerifyMonoVertexRolloutDeployed added in v0.14.0

func VerifyMonoVertexRolloutDeployed(monoVertexRolloutName string)

func VerifyMonoVertexRolloutHealthy added in v0.14.0

func VerifyMonoVertexRolloutHealthy(monoVertexRolloutName string)

func VerifyMonoVertexRolloutHeldPending added in v1.0.0

func VerifyMonoVertexRolloutHeldPending(name string)

VerifyMonoVertexRolloutHeldPending waits until a new MonoVertexRollout stays Pending, with no child and no child name used.

func VerifyMonoVertexRolloutInProgressStrategy added in v0.19.0

func VerifyMonoVertexRolloutInProgressStrategy(monoVertexRolloutName string, inProgressStrategy apiv1.UpgradeStrategy)

func VerifyMonoVertexRolloutInProgressStrategyConsistently added in v0.24.0

func VerifyMonoVertexRolloutInProgressStrategyConsistently(monoVertexRolloutName string, inProgressStrategy apiv1.UpgradeStrategy)

func VerifyMonoVertexRolloutProgressiveCondition added in v0.25.0

func VerifyMonoVertexRolloutProgressiveCondition(monoVertexRolloutName string, success metav1.ConditionStatus)

func VerifyMonoVertexRolloutProgressiveStatus added in v0.19.0

func VerifyMonoVertexRolloutProgressiveStatus(
	monoVertexRolloutName string,
	expectedPromotedName string,
	expectedUpgradingName string,
	expectedScaleValuesRestoredToOriginal bool,
	expectedAssessmentResult apiv1.AssessmentResult,
	forcedPromotion bool,
)

func VerifyMonoVertexRolloutReady added in v0.14.0

func VerifyMonoVertexRolloutReady(monoVertexRolloutName string)

func VerifyMonoVertexRolloutScaledDownForProgressive added in v0.19.0

func VerifyMonoVertexRolloutScaledDownForProgressive(
	monoVertexRolloutName string,
	expectedPromotedName string,
	expectedOriginalScaleMinMaxAsJSONString string,
	expectedScaleTo int64,
)

func VerifyMonoVertexRolloutStatusEventually added in v0.29.0

func VerifyMonoVertexRolloutStatusEventually(monoVertexRolloutName string, f func(apiv1.MonoVertexRolloutStatus) bool)

func VerifyMonoVertexSpec added in v0.13.0

func VerifyMonoVertexSpec(namespace, monoVertexName string, f func(numaflowv1.MonoVertexSpec) bool)

func VerifyNoLiveChildOnInstance added in v1.0.0

func VerifyNoLiveChildOnInstance(gvr schema.GroupVersionResource, rolloutName, instanceID string)

VerifyNoLiveChildOnInstance waits until no live child of the rollout is bound to instanceID.

func VerifyNumaflowControllerAssessment added in v1.0.0

func VerifyNumaflowControllerAssessment(expected apiv1.AssessmentResult)

VerifyNumaflowControllerAssessment waits until the controller's own assessment, its chain assessment, and the promotion decision all equal expected, with basicAssessmentEndTime set. Use this when the controller itself is healthy or itself failed. A chain that fails because a dependent failed keeps the controller's own resourceAssessmentResult as Success.

func VerifyNumaflowControllerAssessmentForVersion added in v1.0.0

func VerifyNumaflowControllerAssessmentForVersion(expected apiv1.AssessmentResult, version string)

VerifyNumaflowControllerAssessmentForVersion waits until the assessment is for version.

func VerifyNumaflowControllerAssessmentStays added in v1.0.0

func VerifyNumaflowControllerAssessmentStays(expected apiv1.AssessmentResult)

VerifyNumaflowControllerAssessmentStays checks the assessment again for a few seconds. A later status update must not clear a completed result.

func VerifyNumaflowControllerAssessmentStaysForVersion added in v1.0.0

func VerifyNumaflowControllerAssessmentStaysForVersion(expected apiv1.AssessmentResult, version string)

VerifyNumaflowControllerAssessmentStaysForVersion checks the assessment of version again for a few seconds.

func VerifyNumaflowControllerChainFailed added in v1.0.0

func VerifyNumaflowControllerChainFailed()

VerifyNumaflowControllerChainFailed waits until the current trial's chain assessment and promotion decision are Failure.

func VerifyNumaflowControllerDeleted added in v1.0.0

func VerifyNumaflowControllerDeleted(name, instanceID string)

VerifyNumaflowControllerDeleted waits until the named NumaflowController and its Deployment are gone.

func VerifyNumaflowControllerDeployment added in v0.13.0

func VerifyNumaflowControllerDeployment(namespace string, f func(appsv1.Deployment) bool)

verify that the promoted NumaflowController's Deployment matches some criteria

func VerifyNumaflowControllerDiscontinued added in v1.0.0

func VerifyNumaflowControllerDiscontinued(version string)

VerifyNumaflowControllerDiscontinued waits until reverting version has recycled the trial and left version promoted.

func VerifyNumaflowControllerExists added in v0.14.0

func VerifyNumaflowControllerExists(namespace string)

func VerifyNumaflowControllerFailureIncludes added in v1.0.0

func VerifyNumaflowControllerFailureIncludes(reason string)

VerifyNumaflowControllerFailureIncludes waits until the controller failure reasons contain reason.

func VerifyNumaflowControllerForcePromoted added in v1.0.0

func VerifyNumaflowControllerForcePromoted(version string)

VerifyNumaflowControllerForcePromoted waits until force-promote-chain has promoted version.

func VerifyNumaflowControllerRollout added in v0.14.0

func VerifyNumaflowControllerRollout(namespace string, f func(apiv1.NumaflowControllerRollout) bool)

verify that the NumaflowControllerRollout matches some criteria

func VerifyNumaflowControllerRolloutReady added in v0.14.0

func VerifyNumaflowControllerRolloutReady()

func VerifyNumaflowControllerRolloutUpgradeStrategy added in v1.0.0

func VerifyNumaflowControllerRolloutUpgradeStrategy(strategy apiv1.UpgradeStrategy)

VerifyNumaflowControllerRolloutUpgradeStrategy waits until the controller rollout reports strategy.

func VerifyPDBForISBService added in v0.19.0

func VerifyPDBForISBService(namespace string, isbServiceName string)

func VerifyPipelineChildCountStable added in v1.0.0

func VerifyPipelineChildCountStable(pipelineRolloutName string, count int)

VerifyPipelineChildCountStable checks that a PipelineRollout does not gain or lose children.

func VerifyPipelineDeletion added in v0.19.0

func VerifyPipelineDeletion(pipelineName string)

func VerifyPipelineDesiredPhase added in v0.29.0

func VerifyPipelineDesiredPhase(pipelineName string, desiredPhase numaflowv1.PipelinePhase)

VerifyPipelineDesiredPhase verifies that a Pipeline has the expected desired phase in its lifecycle

func VerifyPipelineDrainedOnPause added in v0.27.0

func VerifyPipelineDrainedOnPause(pipelineName string)

func VerifyPipelineEvent added in v0.28.0

func VerifyPipelineEvent(namespace, pipelineName, eventType string)

func VerifyPipelineExists added in v0.29.0

func VerifyPipelineExists(namespace, pipelineName string)

func VerifyPipelinePassesData added in v1.0.0

func VerifyPipelinePassesData(pipelineName string)

VerifyPipelinePassesData waits until the log sink has written a generator message.

func VerifyPipelinePhase added in v0.29.0

func VerifyPipelinePhase(namespace, pipelineName string, phases []numaflowv1.PipelinePhase)

func VerifyPipelineProgressiveFailure added in v0.25.0

func VerifyPipelineProgressiveFailure(pipelineRolloutName, promotedPipelineName, upgradingPipelineName string, promotedPipelineSpec, upgradingPipelineSpec numaflowv1.PipelineSpec)

func VerifyPipelineProgressiveSuccess added in v0.25.0

func VerifyPipelineProgressiveSuccess(pipelineRolloutName, promotedPipelineName, upgradingPipelineName string, forcedSuccess bool, upgradingPipelineSpec numaflowv1.PipelineSpec)

func VerifyPipelinePromoted added in v0.29.0

func VerifyPipelinePromoted(pipelineName string)

VerifyPipelinePromoted verifies that a specific Pipeline instance has the "promoted" upgrade state

func VerifyPipelineReconciledByInstance added in v1.0.0

func VerifyPipelineReconciledByInstance(pipelineRolloutName, instanceID string)

VerifyPipelineReconciledByInstance waits until the promoted Pipeline is Running and was reconciled by the controller instance named in numaflow.numaproj.io/instance.

func VerifyPipelineResourceAssessment added in v1.0.0

func VerifyPipelineResourceAssessment(pipelineRolloutName string, expected apiv1.AssessmentResult)

VerifyResourceAssessment waits until a rollout's own resource assessment equals expected while its chain may still be open.

func VerifyPipelineResourceAssessmentUnresolved added in v1.0.0

func VerifyPipelineResourceAssessmentUnresolved(pipelineRolloutName string)

VerifyPipelineResourceAssessmentUnresolved waits until the Pipeline has a trial whose own assessment is not Success.

func VerifyPipelineRolloutConditionPausing added in v0.23.0

func VerifyPipelineRolloutConditionPausing(namespace string, pipelineRolloutName string)

func VerifyPipelineRolloutDeployed added in v0.13.0

func VerifyPipelineRolloutDeployed(pipelineRolloutName string)

func VerifyPipelineRolloutHealthy added in v0.13.0

func VerifyPipelineRolloutHealthy(pipelineRolloutName string)

func VerifyPipelineRolloutHeldPending added in v1.0.0

func VerifyPipelineRolloutHeldPending(name string)

VerifyPipelineRolloutHeldPending waits until a new PipelineRollout stays Pending, with no child and no child name used.

func VerifyPipelineRolloutInProgressStrategy added in v0.19.0

func VerifyPipelineRolloutInProgressStrategy(pipelineRolloutName string, inProgressStrategy apiv1.UpgradeStrategy)

func VerifyPipelineRolloutInProgressStrategyConsistently added in v0.24.0

func VerifyPipelineRolloutInProgressStrategyConsistently(pipelineRolloutName string, inProgressStrategy apiv1.UpgradeStrategy)

func VerifyPipelineRolloutPendingWithoutChildren added in v1.0.0

func VerifyPipelineRolloutPendingWithoutChildren(name string)

VerifyPipelineRolloutPendingWithoutChildren waits until a new PipelineRollout stays Pending with no Pipeline.

func VerifyPipelineRolloutProgressiveCondition added in v0.25.0

func VerifyPipelineRolloutProgressiveCondition(pipelineRolloutName string, success metav1.ConditionStatus)

func VerifyPipelineRolloutProgressiveStatus added in v0.19.0

func VerifyPipelineRolloutProgressiveStatus(
	pipelineRolloutName string,
	expectedPromotedName string,
	expectedUpgradingName string,
	expectedScaleValuesRestoredToOriginal bool,
	expectedAssessmentResult apiv1.AssessmentResult,
	forcedPromotion bool,
)

func VerifyPipelineRolloutStatusEventually added in v0.29.0

func VerifyPipelineRolloutStatusEventually(pipelineRolloutName string, f func(apiv1.PipelineRolloutStatus) bool)

func VerifyPipelineSpecStatus added in v0.27.0

func VerifyPipelineSpecStatus(namespace string, pipelineName string, f func(numaflowv1.PipelineSpec, numaflowv1.PipelineStatus) bool)

func VerifyPipelineUpgradeState added in v0.29.0

func VerifyPipelineUpgradeState(namespace, pipelineName, upgradeState string, upgradeStateReason *string)

VerifyPipelineUpgradeState verifies that a Pipeline has the expected upgrade state label and optionally the upgrade state reason label

func VerifyPodsRunningForAllVertices added in v0.21.0

func VerifyPodsRunningForAllVertices(pipelineName string, vertexScaleDefinitions []apiv1.VertexScaleDefinition)

func VerifyPromotedISBServiceExists added in v0.29.0

func VerifyPromotedISBServiceExists(namespace, isbServiceRolloutName string)

func VerifyPromotedISBServiceSpec added in v0.23.0

func VerifyPromotedISBServiceSpec(namespace string, isbServiceRolloutName string, f func(numaflowv1.InterStepBufferServiceSpec) bool)

func VerifyPromotedISBSvcReady added in v0.23.0

func VerifyPromotedISBSvcReady(namespace string, isbServiceRolloutName string, nodeSize int)

func VerifyPromotedISBVersion added in v1.0.0

func VerifyPromotedISBVersion(isbRolloutName, version string)

VerifyPromotedISBVersion waits until the promoted ISBService uses version.

func VerifyPromotedMonoVertexConsistently added in v0.24.0

func VerifyPromotedMonoVertexConsistently(namespace string, monoVertexRolloutName string, f func(spec numaflowv1.MonoVertexSpec, status numaflowv1.MonoVertexStatus, labels map[string]string, annotations map[string]string) bool)

func VerifyPromotedMonoVertexEnv added in v1.0.0

func VerifyPromotedMonoVertexEnv(monoVertexRolloutName, value string)

VerifyPromotedMonoVertexEnv waits until the promoted MonoVertex source has the env value from a spec change.

func VerifyPromotedMonoVertexEventually added in v0.23.0

func VerifyPromotedMonoVertexEventually(namespace string, monoVertexRolloutName string, f func(spec numaflowv1.MonoVertexSpec, status numaflowv1.MonoVertexStatus, labels map[string]string, annotations map[string]string) bool)

func VerifyPromotedMonoVertexExists added in v0.29.0

func VerifyPromotedMonoVertexExists(namespace, monoVertexRolloutName string)

func VerifyPromotedMonoVertexMetadata added in v0.28.0

func VerifyPromotedMonoVertexMetadata(namespace string, monoVertexRolloutName string, f func(apiv1.Metadata) bool)

func VerifyPromotedMonoVertexName added in v0.23.0

func VerifyPromotedMonoVertexName(namespace string, monoVertexRolloutName string, monoVertexName string)

func VerifyPromotedMonoVertexPaused added in v0.23.0

func VerifyPromotedMonoVertexPaused(namespace string, monoVertexRolloutName string)

func VerifyPromotedMonoVertexRunning added in v0.23.0

func VerifyPromotedMonoVertexRunning(namespace, monoVertexRolloutName string) error

func VerifyPromotedMonoVertexSpec added in v0.23.0

func VerifyPromotedMonoVertexSpec(namespace, monoVertexRolloutName string, f func(numaflowv1.MonoVertexSpec) bool)

func VerifyPromotedMonoVertexStatus added in v0.23.0

func VerifyPromotedMonoVertexStatus(namespace, monoVertexRolloutName string, f func(numaflowv1.MonoVertexSpec, numaflowv1.MonoVertexStatus) bool) string

func VerifyPromotedMonoVertexStaysPaused added in v0.26.0

func VerifyPromotedMonoVertexStaysPaused(monoVertexRolloutName string)

func VerifyPromotedNumaflowControllerVersion added in v1.0.0

func VerifyPromotedNumaflowControllerVersion(version string)

VerifyPromotedNumaflowControllerVersion waits until the promoted controller runs version.

func VerifyPromotedPipelineEnv added in v1.0.0

func VerifyPromotedPipelineEnv(pipelineRolloutName, value string)

VerifyPromotedPipelineEnv waits until the promoted Pipeline's cat vertex has the env value from a spec change.

func VerifyPromotedPipelineExists added in v0.29.0

func VerifyPromotedPipelineExists(namespace, pipelineRolloutName string)

func VerifyPromotedPipelineFailed added in v0.23.0

func VerifyPromotedPipelineFailed(namespace, pipelineRolloutName string)

func VerifyPromotedPipelineMetadata added in v0.28.0

func VerifyPromotedPipelineMetadata(namespace string, pipelineRolloutName string, f func(apiv1.Metadata) bool)

func VerifyPromotedPipelinePaused added in v0.23.0

func VerifyPromotedPipelinePaused(namespace string, pipelineRolloutName string)

func VerifyPromotedPipelineRunning added in v0.23.0

func VerifyPromotedPipelineRunning(namespace string, pipelineRolloutName string)

func VerifyPromotedPipelineScaledDownForProgressive added in v0.21.0

func VerifyPromotedPipelineScaledDownForProgressive(
	pipelineRolloutName string,
	expectedPromotedPipelineName string,
)

func VerifyPromotedPipelineScaledUpForProgressive added in v0.21.0

func VerifyPromotedPipelineScaledUpForProgressive(
	pipelineRolloutName string,
	expectedPromotedPipelineName string,
	newPipelineSpec numaflowv1.PipelineSpec,
)

func VerifyPromotedPipelineSpec added in v0.23.0

func VerifyPromotedPipelineSpec(namespace string, pipelineRolloutName string, f func(numaflowv1.PipelineSpec) bool)

func VerifyPromotedPipelineStatusConsistently added in v0.23.0

func VerifyPromotedPipelineStatusConsistently(namespace string, pipelineRolloutName string, f func(numaflowv1.PipelineSpec, numaflowv1.PipelineStatus) bool)

func VerifyPromotedPipelineStatusEventually added in v0.23.0

func VerifyPromotedPipelineStatusEventually(namespace string, pipelineRolloutName string, f func(numaflowv1.PipelineSpec, numaflowv1.PipelineStatus) bool)

func VerifyPromotedPipelineStaysPaused added in v0.23.0

func VerifyPromotedPipelineStaysPaused(pipelineRolloutName string)

func VerifyPromotedWorkloadsOnInstance added in v1.0.0

func VerifyPromotedWorkloadsOnInstance(pipelineRolloutName, isbRolloutName, monoVertexRolloutName, instanceID string)

VerifyPromotedWorkloadsOnInstance waits until the promoted workloads are bound to instanceID.

func VerifyRecyclablePipelineDrainAttempts added in v0.33.0

func VerifyRecyclablePipelineDrainAttempts(
	pipelineRolloutName string,
	recyclablePipelineName string,
	expected []ExpectedDrainAttempt,
)

VerifyRecyclablePipelineDrainAttempts polls PipelineRollout status until the given recyclable pipeline has drain attempts matching all expected entries (by sourcePipelineSpec).

func VerifyResourceDoesntExist added in v0.22.1

func VerifyResourceDoesntExist(gvr schema.GroupVersionResource, name string)

func VerifyResourceExists added in v0.22.1

func VerifyResourceExists(gvr schema.GroupVersionResource, name string)

func VerifyResourceFieldMatchesRegex added in v0.28.0

func VerifyResourceFieldMatchesRegex(gvr schema.GroupVersionResource, name string, regexPattern string, fieldsInPath ...string)

VerifyResourceFieldMatchesRegex verifies that a field in a resource eventually matches a regular expression. The fieldsInPath parameter is a variadic list of field names representing the path to the field. The field at the specified path is expected to be a string.

Example usage:

// Verify that a Pipeline's status phase matches "Running" or "Paused"
VerifyResourceFieldMatchesRegex(
    schema.GroupVersionResource{Group: "numaflow.numaproj.io", Version: "v1alpha1", Resource: "pipelines"},
    "my-pipeline",
    "^(Running|Paused)$",
    "status", "phase",
)

func VerifySuccessfulControllerUpgrade added in v1.0.0

func VerifySuccessfulControllerUpgrade(version, pipelineName, isbName, monoVertexName string)

VerifySuccessfulControllerUpgrade waits until version is promoted and the workloads are running on its instance.

func VerifyTrialNumaflowControllerFailed added in v1.0.0

func VerifyTrialNumaflowControllerFailed()

VerifyTrialNumaflowControllerFailed verifies that the trial NumaflowController failed. An unknown version has no controller definition, so the trial's phase becomes Failed immediately.

func VerifyTrialWorkloadsOnInstance added in v1.0.0

func VerifyTrialWorkloadsOnInstance(pipelineRolloutName, isbRolloutName, monoVertexRolloutName, instanceID string)

VerifyTrialWorkloadsOnInstance waits until the trial Pipeline, ISBService, and MonoVertex are bound to instanceID.

func VerifyUpgradingPipelineScaledDownForProgressive added in v0.21.0

func VerifyUpgradingPipelineScaledDownForProgressive(
	pipelineRolloutName string,
	expectedUpgradingPipelineName string,
)

Make sure Upgrading Pipeline has min=max equal to difference between Initial and ScaleTo in promoted status

func VerifyUpgradingPipelineScaledToZeroForProgressive added in v0.21.0

func VerifyUpgradingPipelineScaledToZeroForProgressive(
	pipelineRolloutName string,
	expectedUpgradingPipelineName string,
)

verify that when the upgrading Pipeline fails, its Vertices scale to 0 Pods

func VerifyVertexSpecStatus added in v0.26.0

func VerifyVertexSpecStatus(namespace string, vertexName string, f func(numaflowv1.VertexSpec, numaflowv1.VertexStatus) bool)

func VerifyVerticesPodsRunning added in v0.19.0

func VerifyVerticesPodsRunning(namespace, rolloutChildName string, specVertices []numaflowv1.AbstractVertex, component ComponentType)

func VerifyVerticesScale added in v0.19.0

func VerifyVerticesScale(actualVertexScaleMap map[string]numaflowv1.Scale, expectedVertexScaleMap map[string]numaflowv1.Scale) bool

func VerifyWorkloadsHaveChildOnInstance added in v1.0.0

func VerifyWorkloadsHaveChildOnInstance(pipelineRolloutName, isbRolloutName, monoVertexRolloutName, instanceID string)

VerifyWorkloadsHaveChildOnInstance waits until each rollout has a live child bound to instanceID. The child may already be promoted: a fast workload can finish before the test observes its trial.

func WaitForNewerTrialChildOnInstance added in v1.0.0

func WaitForNewerTrialChildOnInstance(gvr schema.GroupVersionResource, rolloutName, instanceID, previousName string) *unstructured.Unstructured

WaitForNewerTrialChildOnInstance returns a trial child on instanceID other than previousName.

func WaitForTrialChildOnInstance added in v1.0.0

func WaitForTrialChildOnInstance(gvr schema.GroupVersionResource, rolloutName, instanceID string) *unstructured.Unstructured

WaitForTrialChildOnInstance returns the newest trial child bound to instanceID.

func WaitForTrialNumaflowController added in v1.0.0

func WaitForTrialNumaflowController(version string) apiv1.NumaflowController

WaitForTrialNumaflowController waits until a trial NumaflowController of version exists.

Types

type ComponentType added in v0.15.0

type ComponentType = string
const (
	ComponentVertex     ComponentType = "vertex"
	ComponentMonoVertex ComponentType = "mono-vertex"
)

type ExpectedDrainAttempt added in v0.33.0

type ExpectedDrainAttempt struct {
	SourcePipelineSpec   string
	DrainAttemptComplete bool
}

ExpectedDrainAttempt describes expected fields on a single DrainAttempt entry.

type ExpectedPipelineTypeProgressiveStatus added in v0.19.0

type ExpectedPipelineTypeProgressiveStatus struct {
	Promoted                 apiv1.PromotedPipelineTypeStatus
	Upgrading                apiv1.UpgradingChildStatus
	PipelineSourceVertexName string
}

type Output added in v0.7.0

type Output struct {
	APIVersion string            `json:"apiVersion"`
	Kind       string            `json:"kind"`
	Metadata   metav1.ObjectMeta `json:"metadata"`
	Spec       interface{}       `json:"spec"`
	Status     interface{}       `json:"status,omitempty"`
}

type PipelineRolloutInfo added in v0.14.0

type PipelineRolloutInfo struct {
	PipelineRolloutName string
	PipelineIsFailed    bool
}

Jump to

Keyboard shortcuts

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