Documentation
¶
Index ¶
- Variables
- func ConvertWorkload(component, collection workload.Workload) (*nodesv1alpha1.PocketValidator, *nodesv1alpha1.PocketSet, error)
- func CreateConfigMapCollectionNameParentNameConfig(parent *nodesv1alpha1.PocketValidator, collection *nodesv1alpha1.PocketSet, ...) ([]client.Object, error)
- func CreateServiceCollectionNameParentName(parent *nodesv1alpha1.PocketValidator, collection *nodesv1alpha1.PocketSet, ...) ([]client.Object, error)
- func CreateStatefulSetCollectionNameParentName(parent *nodesv1alpha1.PocketValidator, collection *nodesv1alpha1.PocketSet, ...) ([]client.Object, error)
- func Generate(workloadObj nodesv1alpha1.PocketValidator, ...) ([]client.Object, error)
- func GenerateForCLI(workloadFile []byte, collectionFile []byte) ([]client.Object, error)
- func Sample(requiredOnly bool) string
Constants ¶
This section is empty.
Variables ¶
var CreateFuncs = []func( *nodesv1alpha1.PocketValidator, *nodesv1alpha1.PocketSet, workload.Reconciler, *workload.Request, ) ([]client.Object, error){ CreateStatefulSetCollectionNameParentName, CreateServiceCollectionNameParentName, CreateConfigMapCollectionNameParentNameConfig, }
CreateFuncs is an array of functions that are called to create the child resources for the controller in memory during the reconciliation loop prior to persisting the changes or updates to the Kubernetes database.
var InitFuncs = []func( *nodesv1alpha1.PocketValidator, *nodesv1alpha1.PocketSet, workload.Reconciler, *workload.Request, ) ([]client.Object, error){}
InitFuncs is an array of functions that are called prior to starting the controller manager. This is necessary in instances which the controller needs to "own" objects which depend on resources to pre-exist in the cluster. A common use case for this is the need to own a custom resource. If the controller needs to own a custom resource type, the CRD that defines it must first exist. In this case, the InitFunc will create the CRD so that the controller can own custom resources of that type. Without the InitFunc the controller will crash loop because when it tries to own a non-existent resource type during manager setup, it will fail.
Functions ¶
func ConvertWorkload ¶
func ConvertWorkload(component, collection workload.Workload) ( *nodesv1alpha1.PocketValidator, *nodesv1alpha1.PocketSet, error, )
func CreateConfigMapCollectionNameParentNameConfig ¶
func CreateConfigMapCollectionNameParentNameConfig( parent *nodesv1alpha1.PocketValidator, collection *nodesv1alpha1.PocketSet, reconciler workload.Reconciler, req *workload.Request, ) ([]client.Object, error)
CreateConfigMapCollectionNameParentNameConfig creates the ConfigMap resource with name parent.name + -config.
func CreateServiceCollectionNameParentName ¶
func CreateServiceCollectionNameParentName( parent *nodesv1alpha1.PocketValidator, collection *nodesv1alpha1.PocketSet, reconciler workload.Reconciler, req *workload.Request, ) ([]client.Object, error)
CreateServiceCollectionNameParentName creates the Service resource with name parent.Name.
func CreateStatefulSetCollectionNameParentName ¶
func CreateStatefulSetCollectionNameParentName( parent *nodesv1alpha1.PocketValidator, collection *nodesv1alpha1.PocketSet, reconciler workload.Reconciler, req *workload.Request, ) ([]client.Object, error)
CreateStatefulSetCollectionNameParentName creates the StatefulSet resource with name parent.Name.
func Generate ¶
func Generate( workloadObj nodesv1alpha1.PocketValidator, collectionObj nodesv1alpha1.PocketSet, reconciler workload.Reconciler, req *workload.Request, ) ([]client.Object, error)
Generate returns the child resources that are associated with this workload given appropriate structured inputs.
func GenerateForCLI ¶
GenerateForCLI returns the child resources that are associated with this workload given appropriate YAML manifest files.
Types ¶
This section is empty.