Documentation
¶
Index ¶
- Variables
- func GenerateCASignedCertificate(dnsNames []string, validity time.Duration) (caPEM, leafChainPEM, leafKeyPEM []byte, err error)
- func GenerateCustomCertificate(dnsNames []string, validity time.Duration) ([]byte, []byte, error)
- func WaitForNodePoolVersion(g gomega.Gomega, ctx context.Context, client crclient.Client, ...)
Constants ¶
This section is empty.
Variables ¶
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 ¶
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. |