rotation

package
v1.61.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAVerifier

type CAVerifier struct {
	*framework.ShootCreationFramework
	// contains filtered or unexported fields
}

CAVerifier verifies the certificate authorities rotation.

func (*CAVerifier) AfterCompleted

func (v *CAVerifier) AfterCompleted(ctx context.Context)

AfterCompleted is called when the Shoot is in Completed status.

func (*CAVerifier) AfterPrepared

func (v *CAVerifier) AfterPrepared(ctx context.Context)

AfterPrepared is called when the Shoot is in Prepared status.

func (*CAVerifier) Before

func (v *CAVerifier) Before(ctx context.Context)

Before is called before the rotation is started.

func (*CAVerifier) ExpectCompletingStatus

func (v *CAVerifier) ExpectCompletingStatus(g Gomega)

ExpectCompletingStatus is called while waiting for the Completing status.

func (*CAVerifier) ExpectPreparingStatus

func (v *CAVerifier) ExpectPreparingStatus(g Gomega)

ExpectPreparingStatus is called while waiting for the Preparing status.

type ETCDEncryptionKeyVerifier

type ETCDEncryptionKeyVerifier struct {
	*framework.ShootCreationFramework
	// contains filtered or unexported fields
}

ETCDEncryptionKeyVerifier verifies the etcd encryption key rotation.

func (*ETCDEncryptionKeyVerifier) AfterCompleted

func (v *ETCDEncryptionKeyVerifier) AfterCompleted(ctx context.Context)

AfterCompleted is called when the Shoot is in Completed status.

func (*ETCDEncryptionKeyVerifier) AfterPrepared

func (v *ETCDEncryptionKeyVerifier) AfterPrepared(ctx context.Context)

AfterPrepared is called when the Shoot is in Prepared status.

func (*ETCDEncryptionKeyVerifier) Before

func (v *ETCDEncryptionKeyVerifier) Before(ctx context.Context)

Before is called before the rotation is started.

func (*ETCDEncryptionKeyVerifier) ExpectCompletingStatus

func (v *ETCDEncryptionKeyVerifier) ExpectCompletingStatus(g Gomega)

ExpectCompletingStatus is called while waiting for the Completing status.

func (*ETCDEncryptionKeyVerifier) ExpectPreparingStatus

func (v *ETCDEncryptionKeyVerifier) ExpectPreparingStatus(g Gomega)

ExpectPreparingStatus is called while waiting for the Preparing status.

type KubeconfigVerifier

type KubeconfigVerifier struct {
	*framework.ShootCreationFramework
	// contains filtered or unexported fields
}

KubeconfigVerifier verifies the kubeconfig credentials rotation.

func (*KubeconfigVerifier) AfterCompleted

func (v *KubeconfigVerifier) AfterCompleted(ctx context.Context)

AfterCompleted is called when the Shoot is in Completed status.

func (*KubeconfigVerifier) AfterPrepared

func (v *KubeconfigVerifier) AfterPrepared(ctx context.Context)

AfterPrepared is called when the Shoot is in Prepared status.

func (*KubeconfigVerifier) Before

func (v *KubeconfigVerifier) Before(ctx context.Context)

Before is called before the rotation is started.

func (*KubeconfigVerifier) ExpectCompletingStatus

func (v *KubeconfigVerifier) ExpectCompletingStatus(g Gomega)

ExpectCompletingStatus is called while waiting for the Completing status.

func (*KubeconfigVerifier) ExpectPreparingStatus

func (v *KubeconfigVerifier) ExpectPreparingStatus(g Gomega)

ExpectPreparingStatus is called while waiting for the Preparing status.

type ObservabilityVerifier

type ObservabilityVerifier struct {
	*framework.ShootCreationFramework
	// contains filtered or unexported fields
}

ObservabilityVerifier verifies the observability credentials rotation.

func (*ObservabilityVerifier) AfterCompleted

func (v *ObservabilityVerifier) AfterCompleted(ctx context.Context)

AfterCompleted is called when the Shoot is in Completed status.

func (*ObservabilityVerifier) AfterPrepared

func (v *ObservabilityVerifier) AfterPrepared(ctx context.Context)

AfterPrepared is called when the Shoot is in Prepared status.

func (*ObservabilityVerifier) Before

func (v *ObservabilityVerifier) Before(ctx context.Context)

Before is called before the rotation is started.

func (*ObservabilityVerifier) ExpectCompletingStatus

func (v *ObservabilityVerifier) ExpectCompletingStatus(g Gomega)

ExpectCompletingStatus is called while waiting for the Completing status.

func (*ObservabilityVerifier) ExpectPreparingStatus

func (v *ObservabilityVerifier) ExpectPreparingStatus(g Gomega)

ExpectPreparingStatus is called while waiting for the Preparing status.

type SSHKeypairVerifier

type SSHKeypairVerifier struct {
	*framework.ShootCreationFramework
	// contains filtered or unexported fields
}

SSHKeypairVerifier verifies the ssh keypair rotation.

func (*SSHKeypairVerifier) AfterCompleted

func (v *SSHKeypairVerifier) AfterCompleted(ctx context.Context)

AfterCompleted is called when the Shoot is in Completed status.

func (*SSHKeypairVerifier) AfterPrepared

func (v *SSHKeypairVerifier) AfterPrepared(ctx context.Context)

AfterPrepared is called when the Shoot is in Prepared status.

func (*SSHKeypairVerifier) Before

func (v *SSHKeypairVerifier) Before(ctx context.Context)

Before is called before the rotation is started.

func (*SSHKeypairVerifier) ExpectCompletingStatus

func (v *SSHKeypairVerifier) ExpectCompletingStatus(g Gomega)

ExpectCompletingStatus is called while waiting for the Completing status.

func (*SSHKeypairVerifier) ExpectPreparingStatus

func (v *SSHKeypairVerifier) ExpectPreparingStatus(g Gomega)

ExpectPreparingStatus is called while waiting for the Preparing status.

type SecretEncryptionVerifier

type SecretEncryptionVerifier struct {
	*framework.ShootCreationFramework
}

SecretEncryptionVerifier creates and reads secrets in the shoot to verify correct configuration of etcd encryption.

func (*SecretEncryptionVerifier) AfterCompleted

func (v *SecretEncryptionVerifier) AfterCompleted(ctx context.Context)

AfterCompleted is called when the Shoot is in Completed status.

func (*SecretEncryptionVerifier) AfterPrepared

func (v *SecretEncryptionVerifier) AfterPrepared(ctx context.Context)

AfterPrepared is called when the Shoot is in Prepared status.

func (*SecretEncryptionVerifier) Before

func (v *SecretEncryptionVerifier) Before(ctx context.Context)

Before is called before the rotation is started.

func (*SecretEncryptionVerifier) ExpectCompletingStatus

func (v *SecretEncryptionVerifier) ExpectCompletingStatus(g Gomega)

ExpectCompletingStatus is called while waiting for the Completing status.

func (*SecretEncryptionVerifier) ExpectPreparingStatus

func (v *SecretEncryptionVerifier) ExpectPreparingStatus(g Gomega)

ExpectPreparingStatus is called while waiting for the Preparing status.

type ServiceAccountKeyVerifier

type ServiceAccountKeyVerifier struct {
	*framework.ShootCreationFramework
	// contains filtered or unexported fields
}

ServiceAccountKeyVerifier verifies the service account key rotation.

func (*ServiceAccountKeyVerifier) AfterCompleted

func (v *ServiceAccountKeyVerifier) AfterCompleted(ctx context.Context)

AfterCompleted is called when the Shoot is in Completed status.

func (*ServiceAccountKeyVerifier) AfterPrepared

func (v *ServiceAccountKeyVerifier) AfterPrepared(ctx context.Context)

AfterPrepared is called when the Shoot is in Prepared status.

func (*ServiceAccountKeyVerifier) Before

func (v *ServiceAccountKeyVerifier) Before(ctx context.Context)

Before is called before the rotation is started.

func (*ServiceAccountKeyVerifier) ExpectCompletingStatus

func (v *ServiceAccountKeyVerifier) ExpectCompletingStatus(g Gomega)

ExpectCompletingStatus is called while waiting for the Completing status.

func (*ServiceAccountKeyVerifier) ExpectPreparingStatus

func (v *ServiceAccountKeyVerifier) ExpectPreparingStatus(g Gomega)

ExpectPreparingStatus is called while waiting for the Preparing status.

type ShootAccessVerifier

type ShootAccessVerifier struct {
	*framework.ShootCreationFramework
	// contains filtered or unexported fields
}

ShootAccessVerifier uses the static token and admin kubeconfig to access the Shoot.

func (*ShootAccessVerifier) AfterCompleted

func (v *ShootAccessVerifier) AfterCompleted(ctx context.Context)

AfterCompleted is called when the Shoot is in Completed status.

func (*ShootAccessVerifier) AfterPrepared

func (v *ShootAccessVerifier) AfterPrepared(ctx context.Context)

AfterPrepared is called when the Shoot is in Prepared status.

func (*ShootAccessVerifier) Before

func (v *ShootAccessVerifier) Before(ctx context.Context)

Before is called before the rotation is started.

func (*ShootAccessVerifier) Cleanup

func (v *ShootAccessVerifier) Cleanup(ctx context.Context)

Cleanup is passed to ginkgo.DeferCleanup.

func (*ShootAccessVerifier) ExpectCompletingStatus

func (v *ShootAccessVerifier) ExpectCompletingStatus(g Gomega)

ExpectCompletingStatus is called while waiting for the Completing status.

func (*ShootAccessVerifier) ExpectPreparingStatus

func (v *ShootAccessVerifier) ExpectPreparingStatus(g Gomega)

ExpectPreparingStatus is called while waiting for the Preparing status.

type Verifier

type Verifier interface {
	// Before is called before the rotation is started.
	Before(ctx context.Context)
	// ExpectPreparingStatus is called while waiting for the Preparing status.
	ExpectPreparingStatus(g Gomega)
	// AfterPrepared is called when the Shoot is in Prepared status.
	AfterPrepared(ctx context.Context)
	// ExpectCompletingStatus is called while waiting for the Completing status.
	ExpectCompletingStatus(g Gomega)
	// AfterCompleted is called when the Shoot is in Completed status.
	AfterCompleted(ctx context.Context)
}

Verifier does some assertions in different phases of the credentials rotation test.

type Verifiers

type Verifiers []Verifier

Verifiers combines multiple Verifier instances and calls them sequentially

func (Verifiers) AfterCompleted

func (v Verifiers) AfterCompleted(ctx context.Context)

AfterCompleted is called when the Shoot is in Completed status.

func (Verifiers) AfterPrepared

func (v Verifiers) AfterPrepared(ctx context.Context)

AfterPrepared is called when the Shoot is in Prepared status.

func (Verifiers) Before

func (v Verifiers) Before(ctx context.Context)

Before is called before the rotation is started.

func (Verifiers) Cleanup

func (v Verifiers) Cleanup(ctx context.Context)

Cleanup is passed to ginkgo.DeferCleanup.

func (Verifiers) ExpectCompletingStatus

func (v Verifiers) ExpectCompletingStatus(g Gomega)

ExpectCompletingStatus is called while waiting for the Completing status.

func (Verifiers) ExpectPreparingStatus

func (v Verifiers) ExpectPreparingStatus(g Gomega)

ExpectPreparingStatus is called while waiting for the Preparing status.

Jump to

Keyboard shortcuts

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