controllers

package
v0.0.0-...-e820323 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(o client.Object) bool

func HasFinalizer

func HasFinalizer(o client.Object) bool

func IsDelete

func IsDelete(o client.Object) bool

func IsUpsert

func IsUpsert(o client.Object) bool

func RegisterAndSyncFinalizer

func RegisterAndSyncFinalizer(ctx context.Context, c client.Writer, o client.Object) error

func RemoveAndSyncFinalizer

func RemoveAndSyncFinalizer(ctx context.Context, c client.Writer, o client.Object) error

func RemoveFinalizer

func RemoveFinalizer(o client.Object) bool

Types

type IpPolicyResolver

type IpPolicyResolver struct {
	Client client.Reader
}

func (*IpPolicyResolver) ResolveIPPolicyNamesorIds

func (r *IpPolicyResolver) ResolveIPPolicyNamesorIds(ctx context.Context, namespace string, namesOrIds []string) ([]string, error)

Resolves and IP policy names or IDs to IDs. If the input is not found, it is assumed to be an ID and is returned as is.

func (*IpPolicyResolver) ValidateIPPolicyNames

func (r *IpPolicyResolver) ValidateIPPolicyNames(ctx context.Context, namespace string, namesOrIds []string) error

type SecretResolver

type SecretResolver struct {
	Client client.Reader
}

func (*SecretResolver) GetSecret

func (r *SecretResolver) GetSecret(ctx context.Context, namespace, name, key string) (string, error)

Jump to

Keyboard shortcuts

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