Skip to content

Commit

Permalink
Upgrade test has to upgrade from 1.12, nothing older will work in Kub…
Browse files Browse the repository at this point in the history
…e 1.25
  • Loading branch information
burmanm committed Nov 16, 2022
1 parent c713c11 commit 74078e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/upgrade_operator/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ namespace: test-upgrade-operator
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/k8ssandra/cass-operator/config/deployments/default?ref=v1.8.0
- github.com/k8ssandra/cass-operator/config/deployments/default?ref=v1.12.0
8 changes: 3 additions & 5 deletions tests/upgrade_operator/upgrade_operator_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ func TestLifecycle(t *testing.T) {
RunSpecs(t, testName)
}

// InstallOldOperator installs the oldest supported upgrade path (this is the first k8ssandra/cass-operator release)
// InstallOldOperator installs the oldest supported upgrade path (for Kubernetes 1.25)
func InstallOldOperator() {
step := "install cass-operator 1.8.0"
step := "install cass-operator 1.12.0"
By(step)

// kubectl apply -f https://raw.githubusercontent.com/k8ssandra/cass-operator/v1.7.1/docs/user/cass-operator-manifests.yaml
// kubectl apply -k "github.com/k8ssandra/cass-operator/config/deployments/default?ref=v1.8.0"
err := kustomize.DeployDir(namespace, "upgrade_operator")
Expect(err).ToNot(HaveOccurred())
}
Expand Down Expand Up @@ -123,7 +121,7 @@ var _ = Describe(testName, func() {

// Update Cassandra version to ensure we can still do changes
step = "perform cassandra upgrade"
json = "{\"spec\": {\"serverVersion\": \"3.11.12\"}}"
json = "{\"spec\": {\"serverVersion\": \"3.11.14\"}}"
k = kubectl.PatchMerge(dcResource, json)
ns.ExecAndLog(step, k)

Expand Down

0 comments on commit 74078e9

Please sign in to comment.