From f3f29c474543698b39da2af8427855fea8de9aeb Mon Sep 17 00:00:00 2001 From: Moritz Clasmeier Date: Wed, 17 Dec 2025 13:19:26 +0100 Subject: [PATCH] Make --early-readiness the default --- cmd/main.go | 2 +- tests/e2e/e2e_test.go | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 096ff9f0..9759912a 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -43,7 +43,7 @@ Red Hat Advanced Cluster Security (ACS) on any Kubernetes/OpenShift cluster.`, func init() { rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Enable verbose output (show CRs and Helm values)") - rootCmd.PersistentFlags().BoolVar(&earlyReadiness, "early-readiness", false, "Only wait for essential workloads (central/sensor), not all workloads") + rootCmd.PersistentFlags().BoolVar(&earlyReadiness, "early-readiness", true, "Only wait for essential workloads (central/sensor) to be ready") rootCmd.AddCommand(newDeployCmd()) rootCmd.AddCommand(newTeardownCmd()) rootCmd.AddCommand(newVersionCmd()) diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index b438ad29..a5c75c54 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -23,9 +23,10 @@ const ( ) var ( - commonDeployArgs = []string{"--port-forwarding", "--exposure=none", "--resources=small", "--early-readiness"} - commonDeployArgsNoPortForward = []string{"--exposure=loadbalancer", "--resources=small", "--early-readiness"} - roxieBinary string + commonDeployArgs = []string{"--port-forwarding", "--exposure=none", "--resources=small"} + commonDeployArgsNoPortForward = []string{"--exposure=loadbalancer", "--resources=small"} + + roxieBinary string ) func TestMain(m *testing.M) { @@ -293,7 +294,7 @@ func TestDeployBothComponentsTogether(t *testing.T) { t.Log("=== Deploying both components ===") // We also test --pause-reconciliation flag here. - args := append([]string{roxieBinary, "deploy", "both", "--early-readiness", "--pause-reconciliation", "--envrc", envrcPath}, commonDeployArgsNoPortForward...) + args := append([]string{roxieBinary, "deploy", "both", "--pause-reconciliation", "--envrc", envrcPath}, commonDeployArgsNoPortForward...) runCommand(t, deployTimeout*2, nil, args...) t.Log("Verifying namespace: acs-central")