dryrun

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DryRunInstance    = "mongodb.com/dry-run-instance"
	DryRunFinishedMsg = "finished"
	DryRunReason      = "DryRun"
)

Variables

This section is empty.

Functions

func AddTerminationError added in v2.8.0

func AddTerminationError(err error)

func NewDryRunError

func NewDryRunError(messageFmt string, args ...interface{}) error

Types

type DryRunError

type DryRunError struct {
	Msg string
}

func (*DryRunError) Error

func (e *DryRunError) Error() string

type DryRunTransport

type DryRunTransport struct {
	Delegate http.RoundTripper
}

func NewDryRunTransport

func NewDryRunTransport(delegate http.RoundTripper) *DryRunTransport

func (*DryRunTransport) RoundTrip

func (t *DryRunTransport) RoundTrip(req *http.Request) (*http.Response, error)

type Manager added in v2.8.0

type Manager struct {
	cluster.Cluster
	// contains filtered or unexported fields
}

Manager is a controller-runtime runnable that acts similar to controller-runtime's Manager but executing dry-run functionality.

func NewManager added in v2.8.0

func NewManager(c cluster.Cluster, eventsClient corev1client.EventsGetter, logger *zap.Logger, namespaces []string) (*Manager, error)

func (*Manager) SetupReconciler added in v2.8.0

func (m *Manager) SetupReconciler(r reconciler)

func (*Manager) Start added in v2.8.0

func (m *Manager) Start(ctx context.Context) error

Start executes the dry-run and returns immediately. In contrast to controller-runtime's Manager it doesn't periodically reconcile but exits after the dry-run pass.

This method blocks until the dry-run is complete.

Jump to

Keyboard shortcuts

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