Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMulticlusterControllerReference ¶
func SetMulticlusterControllerReference(o metav1.Object, ref *MulticlusterOwnerReference) error
Types ¶
type MulticlusterOwnerReference ¶
type MulticlusterOwnerReference struct {
APIVersion string `json:"apiVersion" protobuf:"bytes,5,opt,name=apiVersion"`
Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"`
Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
UID types.UID `json:"uid" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
// +optional
Controller *bool `json:"controller,omitempty" protobuf:"varint,6,opt,name=controller"`
// +optional
BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty" protobuf:"varint,7,opt,name=blockOwnerDeletion"`
ClusterName string `json:"clusterName" protobuf:"bytes,9,opt,name=clusterName"`
Namespace string `json:"namespace" protobuf:"bytes,8,opt,name=namespace"`
}
func GetMulticlusterControllerOf ¶
func GetMulticlusterControllerOf(o metav1.Object) *MulticlusterOwnerReference
func NewMulticlusterOwnerReference ¶
func NewMulticlusterOwnerReference(owner metav1.Object, gvk schema.GroupVersionKind, clusterName string) *MulticlusterOwnerReference
Click to show internal directories.
Click to hide internal directories.