reference

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 3

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

Jump to

Keyboard shortcuts

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