Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanded upgrade test #1652

Merged
merged 2 commits into from
Aug 25, 2020
Merged

Expanded upgrade test #1652

merged 2 commits into from
Aug 25, 2020

Conversation

ANeumann82
Copy link
Member

Signed-off-by: Andreas Neumann aneumann@mesosphere.com

What this PR does / why we need it:

This PR extends the upgrade test. Until now, we would:

  • Install KUDO 0.11.1
  • Upgrade to current KUDO version (from local branch)

With this PR we:

  • Install KUDO 0.11.1
  • Install a simple operator with a version 0.1.0
  • Upgrade KUDO current version
  • Upgrade the operator to a version 0.2.0
  • Uninstall KUDO with kudo init --upgrade --dry-run --output yaml | kubectl delete -f -

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
@@ -80,7 +80,7 @@ lint: ## Run golangci-lint
ifneq (${GOLANGCI_LINT_VER}, "$(shell golangci-lint --version 2>/dev/null | cut -b 27-32)")
./hack/install-golangcilint.sh
endif
golangci-lint --timeout 3m run
golangci-lint --timeout 3m run --allow-parallel-runners
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add this as IntelliJ kept failing on the git commithooks...

Copy link
Member

@nfnt nfnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The kubectl-kudo entry in .gitignore is a bit suspicious. Looks like the binary is supposed to be copied into the test folder, but there isn't any code to do that. Furthermore, existing tests call kubectl kudo for a KUDO binary that's in $PATH, let's keep using this approach here as well.

.gitignore Outdated Show resolved Hide resolved
test/upgrade/upgrade-to-current/01-install-operator.yaml Outdated Show resolved Hide resolved
Copy link
Member

@nfnt nfnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the clarification around CLI usage!

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
@ANeumann82 ANeumann82 merged commit 9e56ebc into main Aug 25, 2020
@ANeumann82 ANeumann82 deleted the an/expanded-upgrade-test branch August 25, 2020 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants