Documentation
¶
Index ¶
- func IsResourceNotFoundError(err error) bool
- func RemoveAnnotations(ctx context.Context, kubeClients *client.KubeClients, ...) error
- func SyncAnnotations(ctx context.Context, kubeClients *client.KubeClients, ...) error
- func UpdateStatus(ctx context.Context, kubeClients *client.KubeClients, ...)
- type ResourceNotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsResourceNotFoundError ¶
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 ¶
ResourceNotFoundError is a custom error type for when a resource is not found
func (*ResourceNotFoundError) Error ¶
func (e *ResourceNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.