From c4e2cbee5607128caa47f4843e5d08d47a2e8536 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Thu, 4 Jun 2026 19:32:47 -0700 Subject: [PATCH] test(operator): sync operator-install version tripwires to v0.2.0 The 0.2.0 release (#87) bumped charts/yacd/Chart.yaml appVersion to v0.2.0 but left the six operator-install version tripwire assertions in cli/internal/ operator/ssa at v0.1.1, turning master CI red. These tripwires are designed to be bumped alongside an operator release re-sync; resync them to v0.2.0. Co-Authored-By: Claude Opus 4.8 (1M context) --- cli/internal/operator/ssa/apply_test.go | 2 +- cli/internal/operator/ssa/install_envtest_test.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cli/internal/operator/ssa/apply_test.go b/cli/internal/operator/ssa/apply_test.go index aa13522..856ae04 100644 --- a/cli/internal/operator/ssa/apply_test.go +++ b/cli/internal/operator/ssa/apply_test.go @@ -53,7 +53,7 @@ func TestVersionFromEmbeddedChartMatchesChartAppVersion(t *testing.T) { // Tracks charts/yacd/Chart.yaml appVersion; bump alongside an operator // release re-sync. This is the tripwire that the embedded chart copy is in // sync with the pinned release. - assert.Equal(t, "v0.1.1", version) + assert.Equal(t, "v0.2.0", version) assert.True(t, semver.IsValid(version), "embedded version must be valid semver") } diff --git a/cli/internal/operator/ssa/install_envtest_test.go b/cli/internal/operator/ssa/install_envtest_test.go index 4d2b884..2c61bb5 100644 --- a/cli/internal/operator/ssa/install_envtest_test.go +++ b/cli/internal/operator/ssa/install_envtest_test.go @@ -51,7 +51,7 @@ func TestEnsureOperatorInstallsFromEmbeddedChart(t *testing.T) { require.NoError(t, err) assert.True(t, state.Installed, "manager Deployment should exist") - assert.Equal(t, "v0.1.1", state.Version, "version read from the manager Deployment label") + assert.Equal(t, "v0.2.0", state.Version, "version read from the manager Deployment label") // envtest has no kube-controller-manager, so the Deployment never becomes // Available; live readiness is proven by the P6 k3d e2e, not here. assert.False(t, state.Ready, "envtest cannot make a Deployment Available") @@ -86,7 +86,7 @@ func TestEnsureOperatorIsIdempotent(t *testing.T) { state, err := inst.EnsureOperator(ctx, operator.InstallSpec{}) require.NoError(t, err, "re-apply of an equal version must be a no-op") assert.True(t, state.Installed) - assert.Equal(t, "v0.1.1", state.Version) + assert.Equal(t, "v0.2.0", state.Version) } func TestEnsureOperatorPrunesStrayManagedObject(t *testing.T) { @@ -144,7 +144,7 @@ func TestPlanOnEmptyClusterReportsInstallAndMutatesNothing(t *testing.T) { decision, err := inst.Plan(ctx, operator.InstallSpec{}) require.NoError(t, err) assert.Equal(t, operator.ActionInstall, decision.Action) - assert.Equal(t, "v0.1.1", decision.TargetVersion) + assert.Equal(t, "v0.2.0", decision.TargetVersion) assert.Empty(t, decision.InstalledVersion, "nothing is installed yet") // And it applied nothing: no manager Deployment and no CRD exist afterward. @@ -173,7 +173,7 @@ func TestPlanRefusesNewerInstalledVersionWithoutMutating(t *testing.T) { require.ErrorIs(t, err, operator.ErrNewerOperator) assert.Equal(t, operator.ActionRefuse, decision.Action) assert.Equal(t, "v0.9.9", decision.InstalledVersion) - assert.Equal(t, "v0.1.1", decision.TargetVersion) + assert.Equal(t, "v0.2.0", decision.TargetVersion) // Plan did not touch the seeded Deployment: its version label still reads the // newer value, proving Plan never re-applied the embedded manifest set. @@ -227,7 +227,7 @@ func TestEnsureOperatorNamespaceFlexibility(t *testing.T) { state, err := inst.EnsureOperator(ctx, operator.InstallSpec{Namespace: ns}) require.NoError(t, err) assert.True(t, state.Installed) - assert.Equal(t, "v0.1.1", state.Version) + assert.Equal(t, "v0.2.0", state.Version) // Namespaced objects land in the requested namespace. deployment := &appsv1.Deployment{}