Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRDHandler ¶
type CRDHandler struct {
// contains filtered or unexported fields
}
CRDHandler takes care of ensuring CRD's for a cluster.
func NewCRDHandler ¶
func NewCRDHandler(client crdclient.Interface) *CRDHandler
NewCRDHandler returns a new CRDHandler.
func (*CRDHandler) EnsureCRD ¶
func (h *CRDHandler) EnsureCRD(meta *CRDMeta) (*apiextensionsv1beta1.CustomResourceDefinition, error)
EnsureCRD ensures a CRD in a cluster given the CRD's metadata.
type CRDMeta ¶
type CRDMeta struct {
// contains filtered or unexported fields
}
CRDMeta contains version, validation and API information for a CRD.
func NewCRDMeta ¶
func NewCRDMeta(groupName, version, kind, listKind, singular, plural string, shortNames ...string) *CRDMeta
NewCRDMeta creates a CRDMeta type which can be passed to a CRDHandler in order to create/ensure a CRD.
func (*CRDMeta) AddValidationInfo ¶
func (m *CRDMeta) AddValidationInfo(typeSource string, fn common.GetOpenAPIDefinitions)
AddValidationInfo adds information that is needed to ensure validation is properly added to a CRD when CRDHandler.EnsureCRD is called.
Click to show internal directories.
Click to hide internal directories.