From 636412a5210291594ba81fc3e1ef1469d0f1bfd4 Mon Sep 17 00:00:00 2001 From: Bill Yang <38335771+byang-confluent@users.noreply.github.com> Date: Thu, 15 Feb 2024 10:49:08 -0800 Subject: [PATCH] SCP-1904 create UDF EA-specific LD flag for Flink Artifact CLI (#2621) --- internal/flink/command.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/flink/command.go b/internal/flink/command.go index d50d36b39a..8b265d5405 100644 --- a/internal/flink/command.go +++ b/internal/flink/command.go @@ -7,6 +7,7 @@ import ( pcmd "github.com/confluentinc/cli/v3/pkg/cmd" "github.com/confluentinc/cli/v3/pkg/config" + "github.com/confluentinc/cli/v3/pkg/featureflags" ) type command struct { @@ -22,7 +23,9 @@ func New(cfg *config.Config, prerunner pcmd.PreRunner) *cobra.Command { c := &command{pcmd.NewAuthenticatedCLICommand(cmd, prerunner)} - cmd.AddCommand(c.newArtifactCommand()) + if cfg.IsTest || featureflags.Manager.BoolVariation("cli.flink_artifact.early_access", cfg.Context(), config.CliLaunchDarklyClient, true, false) { + cmd.AddCommand(c.newArtifactCommand()) + } cmd.AddCommand(c.newComputePoolCommand()) cmd.AddCommand(c.newRegionCommand()) cmd.AddCommand(c.newShellCommand(prerunner))