ccrd

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ccrd generates CustomResourceDefinitions from Crossplane definitions.

v1beta1.JSONSchemaProps is incompatible with controller-tools (as of 0.2.4) because it is missing JSON tags and uses float64, which is a disallowed type. We thus copy the entire struct as CRDSpecTemplate. See the below issue: https://github.com/kubernetes-sigs/controller-tools/issues/291

Index

Constants

View Source
const (
	CategoryClaim     = "claim"
	CategoryComposite = "composite"
)

Category names for generated claim and composite CRDs.

Variables

This section is empty.

Functions

func BaseProps

func BaseProps() map[string]v1beta1.JSONSchemaProps

BaseProps is a partial OpenAPIV3Schema for the spec fields that Crossplane expects to be present for all CRDs that it creates.

func CompositeResourceClaimPrinterColumns added in v0.13.0

func CompositeResourceClaimPrinterColumns() []v1beta1.CustomResourceColumnDefinition

CompositeResourceClaimPrinterColumns returns the set of default printer columns that should exist in all generated composite resource claim CRDs.

func CompositeResourceClaimSpecProps added in v0.13.0

func CompositeResourceClaimSpecProps() map[string]v1beta1.JSONSchemaProps

CompositeResourceClaimSpecProps is a partial OpenAPIV3Schema for the spec fields that Crossplane expects to be present for all published infrastructure resources.

func CompositeResourcePrinterColumns added in v0.13.0

func CompositeResourcePrinterColumns() []v1beta1.CustomResourceColumnDefinition

CompositeResourcePrinterColumns returns the set of default printer columns that should exist in all generated composite resource CRDs.

func CompositeResourceSpecProps added in v0.13.0

func CompositeResourceSpecProps() map[string]v1beta1.JSONSchemaProps

CompositeResourceSpecProps is a partial OpenAPIV3Schema for the spec fields that Crossplane expects to be present for all defined infrastructure resources.

func CompositeResourceStatusProps added in v0.13.0

func CompositeResourceStatusProps() map[string]v1beta1.JSONSchemaProps

CompositeResourceStatusProps is a partial OpenAPIV3Schema for the status fields that Crossplane expects to be present for all defined or published infrastructure resources.

func IsEstablished

IsEstablished is a helper function to check whether api-server is ready to accept the instances of registered CRD.

func New

New produces a new CustomResourceDefinition.

func NewSpec

NewSpec produces a CustomResourceDefinitionSpec from the supplied template.

Types

type Option

An Option configures the supplied CustomResourceDefinition.

func ForCompositeResource added in v0.13.0

func ForCompositeResource(d *v1alpha1.CompositeResourceDefinition) Option

ForCompositeResource derives the CustomResourceDefinition for a composite resource from the supplied CompositeResourceDefinition.

func ForCompositeResourceClaim added in v0.13.0

func ForCompositeResourceClaim(d *v1alpha1.CompositeResourceDefinition) Option

ForCompositeResourceClaim derives the CustomResourceDefinition for a composite resource claim from the supplied CompositeResourceDefinition.

Jump to

Keyboard shortcuts

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