Documentation ¶
Index ¶
- Constants
- func Create(ctx context.Context, cfg *rest.Config, crds []CRD) error
- func Objects(crds []CRD) (result []runtime.Object, err error)
- func Print(out io.Writer, crds []CRD) error
- func WriteFile(filename string, crds []CRD) error
- type CRD
- func (c CRD) ToCustomResourceDefinition() (runtime.Object, error)
- func (c CRD) ToCustomResourceDefinitionV1Beta1() (*apiextv1beta1.CustomResourceDefinition, error)
- func (c CRD) WithCategories(categories ...string) CRD
- func (c CRD) WithColumn(name, path string) CRD
- func (c CRD) WithColumnsFromStruct(obj interface{}) CRD
- func (c CRD) WithCustomColumn(columns ...apiextv1.CustomResourceColumnDefinition) CRD
- func (c CRD) WithGroup(group string) CRD
- func (c CRD) WithScale() CRD
- func (c CRD) WithSchema(schema *apiextv1.JSONSchemaProps) CRD
- func (c CRD) WithSchemaFromStruct(obj interface{}) CRD
- func (c CRD) WithShortNames(shortNames ...string) CRD
- func (c CRD) WithStatus() CRD
- type Factory
Constants ¶
View Source
const CRDKind = "CustomResourceDefinition"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CRD ¶
type CRD struct { GVK schema.GroupVersionKind PluralName string SingularName string NonNamespace bool Schema *apiextv1.JSONSchemaProps SchemaObject interface{} Columns []apiextv1.CustomResourceColumnDefinition Status bool Scale bool Categories []string ShortNames []string Labels map[string]string Annotations map[string]string Override runtime.Object }
func NamespacedType ¶
func NamespacedTypes ¶
func NonNamespacedType ¶
func NonNamespacedTypes ¶
func (CRD) ToCustomResourceDefinition ¶
func (CRD) ToCustomResourceDefinitionV1Beta1 ¶ added in v0.8.5
func (c CRD) ToCustomResourceDefinitionV1Beta1() (*apiextv1beta1.CustomResourceDefinition, error)
func (CRD) WithCategories ¶ added in v0.3.1
func (CRD) WithColumn ¶ added in v0.6.0
func (CRD) WithColumnsFromStruct ¶ added in v0.6.0
func (CRD) WithCustomColumn ¶ added in v0.3.0
func (c CRD) WithCustomColumn(columns ...apiextv1.CustomResourceColumnDefinition) CRD
func (CRD) WithSchema ¶ added in v0.3.0
func (c CRD) WithSchema(schema *apiextv1.JSONSchemaProps) CRD
func (CRD) WithSchemaFromStruct ¶ added in v0.5.0
func (CRD) WithShortNames ¶ added in v0.3.1
func (CRD) WithStatus ¶ added in v0.3.0
type Factory ¶
func (*Factory) BatchCreateCRDs ¶
func (*Factory) CreateCRDs ¶
func (f *Factory) CreateCRDs(ctx context.Context, crds ...CRD) (map[schema.GroupVersionKind]*apiextv1.CustomResourceDefinition, error)
Click to show internal directories.
Click to hide internal directories.