generated from ydataai/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exported.go
16 lines (14 loc) · 977 Bytes
/
exported.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Package kubernetes is an util library to deal with kubernetes.
package kubernetes
// SetOwnerReference sets owner as a Controller OwnerReference on controlled.
// This is used for garbage collection of the controlled object and for
// reconciling the owner object on changes to controlled (with a Watch + EnqueueRequestForOwner).
// Since only one OwnerReference can be a controller, it returns an error if
// there is another OwnerReference with Controller flag set.
var SetOwnerReference = setOwnerReference
// SetCrossNamespaceOwnerReference allows you to set an owner from another namespace
// This is used for garbage collection of the controlled object and for
// reconciling the owner object on changes to controlled (with a Watch + EnqueueRequestForOwner).
// Since only one OwnerReference can be a controller, it returns an error if
// there is another OwnerReference with Controller flag set
var SetCrossNamespaceOwnerReference = setCrossNamespaceOwnerReference