Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCRD ¶
func CreateCRD(context Context, resources []CustomResource) error
CreateCRD creates the given custom resources definitions and waits for their init
Types ¶
type Context ¶
type Context struct { Clientset kubernetes.Interface APIExtensionClientset apiextensionsclient.Interface Interval time.Duration Timeout time.Duration }
Context hold the clientsets used for creating and watching custom resources
type CustomResource ¶
type CustomResource struct { // Name of the custom resource Name string // Plural of the custom resource in plural Plural string // Group the custom resource belongs to Group string // Version which should be defined in a const above Version string // Scope of the CRD. Namespaced or cluster Scope apiextensionsv1beta1.ResourceScope // Kind is the serialized interface of the resource. Kind string }
CustomResource is for creating a Kubernetes TPR/CRD
Click to show internal directories.
Click to hide internal directories.