kubernetes: k8s.io/kubernetes/test/utils/crd Index | Files

package crd

import "k8s.io/kubernetes/test/utils/crd"


Package Files


type CleanCrdFn Uses

type CleanCrdFn func() error

CleanCrdFn declares the clean up function needed to remove the CRD

type Option Uses

type Option func(crd *apiextensionsv1.CustomResourceDefinition)

Option is a modifier for a CRD object used to customize CreateMultiVersionTestCRD and CreateTestCRD.

type TestCrd Uses

type TestCrd struct {
    APIExtensionClient *crdclientset.Clientset
    Crd                *apiextensionsv1.CustomResourceDefinition
    DynamicClients     map[string]dynamic.ResourceInterface
    CleanUp            CleanCrdFn

TestCrd holds all the pieces needed to test with the CRD

func CreateMultiVersionTestCRD Uses

func CreateMultiVersionTestCRD(f *framework.Framework, group string, opts ...Option) (*TestCrd, error)

CreateMultiVersionTestCRD creates a new CRD specifically for the calling test.

func CreateTestCRD Uses

func CreateTestCRD(f *framework.Framework, opts ...Option) (*TestCrd, error)

CreateTestCRD creates a new CRD specifically for the calling test.

Package crd imports 9 packages (graph) and is imported by 57 packages. Updated 2019-09-17. Refresh now. Tools for package owners.