stewardlabels

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLabelledAsIgnore added in v0.18.1

func IsLabelledAsIgnore(obj metav1.Object) bool

IsLabelledAsIgnore return whether the given resource object is labelled as to be ignored by Steward.

func LabelAsIgnore added in v0.18.1

func LabelAsIgnore(obj metav1.Object)

LabelAsIgnore sets label `steward.sap.com/ignore` at the given object.

func LabelAsOwnedByPipelineRun

func LabelAsOwnedByPipelineRun(obj metav1.Object, owner *stewardv1alpha1.PipelineRun) error

LabelAsOwnedByPipelineRun sets some labels on `obj` that identify it as owned by the given Steward pipeline run. Fails if there's a conflict with existing labels, e.g. `obj` is labelled as owned by another pipeline run.

func LabelAsSystemManaged

func LabelAsSystemManaged(obj metav1.Object)

LabelAsSystemManaged sets label `steward.sap.com/system-managed` at the given object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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