updater

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShootRecorderNamespaceRewriter

func ShootRecorderNamespaceRewriter(shootRecorder record.EventRecorder) func(f *firewallv2.Firewall, eventtype, reason, message string)

ShootRecorderNamespaceRewriter returns a function to record an event in the shoot cluster for a firewall v2 resource. Before recording the event we rewrite the firewall resource's namespace because the firewall v2 resource resides in the seed namespace which does not exist in the shoot, so we need to alter it to the firewall namespace in the shoot.

Types

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

func New

func New(log logr.Logger, shootRecorder record.EventRecorder) *Updater

func (*Updater) Run

func (u *Updater) Run(ctx context.Context, f *firewallv2.Firewall) error

Jump to

Keyboard shortcuts

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