util

package
v0.1.88 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// y-stream versions supported by e2e in main
	Version51  = semver.MustParse("5.1.0")
	Version50  = semver.MustParse("5.0.0")
	Version423 = semver.MustParse("4.23.0")
	Version422 = semver.MustParse("4.22.0")
	Version421 = semver.MustParse("4.21.0")
	Version420 = semver.MustParse("4.20.0")
	Version419 = semver.MustParse("4.19.0")
	Version418 = semver.MustParse("4.18.0")
	Version417 = semver.MustParse("4.17.0")
	Version416 = semver.MustParse("4.16.0")
	Version415 = semver.MustParse("4.15.0")
	Version414 = semver.MustParse("4.14.0")
)

Functions

func GenerateCASignedCertificate added in v0.1.87

func GenerateCASignedCertificate(dnsNames []string, validity time.Duration) (caPEM, leafChainPEM, leafKeyPEM []byte, err error)

GenerateCASignedCertificate generates a CA key/cert pair and a leaf certificate signed by that CA for the given DNS names. Returns (caPEM, leafChainPEM, leafKeyPEM, error) where leafChainPEM contains the leaf followed by the CA certificate.

func GenerateCustomCertificate

func GenerateCustomCertificate(dnsNames []string, validity time.Duration) ([]byte, []byte, error)

GenerateCustomCertificate generates a self-signed certificate for the given DNS names.

func WaitForNodePoolVersion added in v0.1.87

func WaitForNodePoolVersion(g gomega.Gomega, ctx context.Context, client crclient.Client, key crclient.ObjectKey, want semver.Version, timeout, pollInterval time.Duration)

WaitForNodePoolVersion waits until the NodePool status.version reports the wanted payload version.

On the CAPI path status.version is only written once the MachineDeployment (or the in-place rollout) for the NodePool reports complete, which can lag behind the nodes themselves becoming Ready. Comparing against the exact payload version is race-free: it observes the value it asserts rather than a condition that may have been computed before the spec change. It is also safe for in-place upgrades, where a failed rollout leaves status.version at the old value.

Types

This section is empty.

Directories

Path Synopsis
Package mirrorregistry provisions a disposable container image mirror registry on an OpenShift management cluster for image-mirroring e2e tests.
Package mirrorregistry provisions a disposable container image mirror registry on an OpenShift management cluster for image-mirroring e2e tests.

Jump to

Keyboard shortcuts

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