resourcesconfig

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsResourceNotFoundError

func IsResourceNotFoundError(err error) bool

IsResourceNotFoundError checks if an error is a ResourceNotFoundError

func RemoveAnnotations

func RemoveAnnotations(ctx context.Context, kubeClients *client.KubeClients, rc *oblikv1.ResourcesConfig) error

RemoveAnnotations removes all oblik annotations and labels from the target workload

func SyncAnnotations

func SyncAnnotations(ctx context.Context, kubeClients *client.KubeClients, rc *oblikv1.ResourcesConfig) error

SyncAnnotations syncs annotations from ResourcesConfig to the target workload

func UpdateStatus

func UpdateStatus(ctx context.Context, kubeClients *client.KubeClients, rc *oblikv1.ResourcesConfig, success bool, message string)

UpdateStatus updates the status of the ResourcesConfig

Types

type ResourceNotFoundError

type ResourceNotFoundError struct {
	Kind string
	Name string
}

ResourceNotFoundError is a custom error type for when a resource is not found

func (*ResourceNotFoundError) Error

func (e *ResourceNotFoundError) Error() string

Jump to

Keyboard shortcuts

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