upgrade

package
v1.17.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Test Overview

  • Internet needed for tests to run
  • All upgrade tests run twice.
    • current minor last patch -> current code (ex: 1.12.3 -> 1.12.4)
    • previous minor latest patch -> current code (ex 1.11.latest -> 1.12.4)
  • Each upgrade test installs gloo, upgrades CRDs and then upgrades gloo
  • Each test runs a data setup and validation on installation of gloo and on upgrade of gloo

Running Tests

  • You will need to generate the _test and _output folders in order to run these tests locally
  • If you are debugging and cancel the test early there may be leftover pods and namespace resources, these commands can help clean things up for you

remove gloo-system namespace resources and crds

kubectl delete ns gloo-system && kubectl delete crd --all

delete old roles and bindings

You may not need to run all of these as some roles are only created for enterprise installations

kubectl delete clusterrolebinding,clusterrole -l app=gloo
kubectl delete clusterrolebinding,clusterrole -l app.kubernetes.io/instance=gloo
kubectl delete clusterrolebinding,clusterrole -l app=glooe-prometheus 
kubectl delete clusterrolebinding,clusterrole -l app.kubernetes.io/instance=gloo-ee

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpgradeVersions

func GetUpgradeVersions(ctx context.Context, repoName string) (*versionutils.Version, *versionutils.Version, error)

GetUpgradeVersions returns two semantic versions of a repository:

  • prevLtsRelease: the latest patch release of v1.m-1.x
  • latestRelease: the latest patch release of v1.m.x

Originally intended for use in upgrade testing, it can return any of:

  • (prevLtsRelease, latestRelease, nil): all release versions computable
  • (prevLtsRelease, nil, nil): only prevLtsRelease computable (ie current branch has never been released)
  • (nil, nil, err): unable to fetch versions for upgrade test

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL