Documentation ¶
Index ¶
- func LabelAsOwnedByClientNamespace(obj metav1.Object, owner *corev1.Namespace) error
- func LabelAsOwnedByPipelineRun(obj metav1.Object, owner *stewardv1alpha1.PipelineRun) error
- func LabelAsOwnedByTenant(obj metav1.Object, owner *stewardv1alpha1.Tenant) error
- func LabelAsSystemManaged(obj metav1.Object)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LabelAsOwnedByClientNamespace ¶
LabelAsOwnedByClientNamespace sets some labels on `obj` that identify it as owned by the Steward client represented by the given namespace. Fails if there's a conflict with existing labels, e.g. `obj` is labelled as owned by another Steward client.
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 Steward client, tenant or pipeline run.
func LabelAsOwnedByTenant ¶
func LabelAsOwnedByTenant(obj metav1.Object, owner *stewardv1alpha1.Tenant) error
LabelAsOwnedByTenant sets some labels on `obj` that identify it as owned by the given Steward tenant. Fails if there's a conflict with existing labels, e.g. `obj` is labelled as owned by another Steward client or tenant.
func LabelAsSystemManaged ¶
LabelAsSystemManaged sets label `steward.sap.com/system-managed` at the given object.
Types ¶
This section is empty.