diff --git a/pkg/apis/crd/v1alpha1/types.go b/pkg/apis/crd/v1alpha1/types.go index 8aa641950cd..8b408c5ff10 100644 --- a/pkg/apis/crd/v1alpha1/types.go +++ b/pkg/apis/crd/v1alpha1/types.go @@ -23,7 +23,7 @@ import ( type TraceflowPhase string const ( - // Pending is not used anymore + // Deprecated: Pending is not used anymore Pending TraceflowPhase = "Pending" Running TraceflowPhase = "Running" Succeeded TraceflowPhase = "Succeeded" diff --git a/pkg/controller/traceflow/controller.go b/pkg/controller/traceflow/controller.go index 57e8d7751c6..e08862ff51b 100644 --- a/pkg/controller/traceflow/controller.go +++ b/pkg/controller/traceflow/controller.go @@ -237,6 +237,8 @@ func (c *Controller) syncTraceflow(traceflowName string) error { return err } switch tf.Status.Phase { + //lint:ignore SA1019 Allow existing use. + //nolint:staticcheck case "", crdv1alpha1.Pending: err = c.startTraceflow(tf) case crdv1alpha1.Running: