Documentation ¶
Index ¶
- type CRD
- func (c CRD) ToCustomResourceDefinition() (apiext.CustomResourceDefinition, error)
- func (c CRD) WithCategories(categories ...string) CRD
- func (c CRD) WithCustomColumn(columns []v1beta1.CustomResourceColumnDefinition) CRD
- func (c CRD) WithScale() CRD
- func (c CRD) WithSchema(schema *v1beta1.JSONSchemaProps) CRD
- func (c CRD) WithSchemaFromStruct(obj interface{}) CRD
- func (c CRD) WithShortNames(shortNames ...string) CRD
- func (c CRD) WithStatus() CRD
- type Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRD ¶
type CRD struct { GVK schema.GroupVersionKind PluralName string NonNamespace bool Schema *v1beta1.JSONSchemaProps SchemaObject interface{} Columns []v1beta1.CustomResourceColumnDefinition Status bool Scale bool Categories []string ShortNames []string }
func NamespacedType ¶
func NamespacedTypes ¶
func NonNamespacedType ¶
func NonNamespacedTypes ¶
func (CRD) ToCustomResourceDefinition ¶
func (c CRD) ToCustomResourceDefinition() (apiext.CustomResourceDefinition, error)
func (CRD) WithCategories ¶ added in v0.3.1
func (CRD) WithCustomColumn ¶ added in v0.3.0
func (c CRD) WithCustomColumn(columns []v1beta1.CustomResourceColumnDefinition) CRD
func (CRD) WithSchema ¶ added in v0.3.0
func (c CRD) WithSchema(schema *v1beta1.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]*apiext.CustomResourceDefinition, error)
Click to show internal directories.
Click to hide internal directories.