Documentation ¶
Index ¶
- func ConvertToUnstructured(o metav1.Object, scheme *runtime.Scheme) (*unstructured.Unstructured, error)
- func CreateKubernetesApplication(ctx context.Context, kube client.Client, scheme *runtime.Scheme, ...) error
- func CreateKubernetesCluster(ctx context.Context, kube client.Client, ...) error
- func CreateMySQLInstance(ctx context.Context, kube client.Client, ...) error
- func FillWithDefaults(wp *wordpressv1alpha1.WordpressInstance)
- func GetEndpoint(ctx context.Context, kube client.Client, ...) (string, error)
- func GetLocalResourceSelector(wp v1alpha1.WordpressInstance) map[string]string
- func GetOwnerReference(wp v1alpha1.WordpressInstance) metav1.OwnerReference
- func GetServiceResourceObjectKey(app *workload.KubernetesApplication) (client.ObjectKey, error)
- func ProduceKubernetesApplication(scheme *runtime.Scheme, wp v1alpha1.WordpressInstance, ...) (*workload.KubernetesApplication, error)
- func ProduceKubernetesCluster(wp v1alpha1.WordpressInstance) *compute.KubernetesCluster
- func ProduceMySQLInstance(wp v1alpha1.WordpressInstance) *database.MySQLInstance
- type WordpressInstanceReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToUnstructured ¶
func ConvertToUnstructured(o metav1.Object, scheme *runtime.Scheme) (*unstructured.Unstructured, error)
ConvertToUnstructured takes a Kubernetes object and converts it into *unstructured.Unstructured that can be used as KubernetesApplication template. The reason metav1.Object is used instead of runtime.Object is that *unstructured.Unstructured requires the object to have metadata accessors.
func CreateKubernetesApplication ¶
func CreateKubernetesApplication(ctx context.Context, kube client.Client, scheme *runtime.Scheme, wp *wordpressv1alpha1.WordpressInstance) error
func CreateKubernetesCluster ¶
func CreateKubernetesCluster(ctx context.Context, kube client.Client, wp *wordpressv1alpha1.WordpressInstance) error
func CreateMySQLInstance ¶
func CreateMySQLInstance(ctx context.Context, kube client.Client, wp *wordpressv1alpha1.WordpressInstance) error
func FillWithDefaults ¶
func FillWithDefaults(wp *wordpressv1alpha1.WordpressInstance)
func GetEndpoint ¶
func GetEndpoint(ctx context.Context, kube client.Client, wp wordpressv1alpha1.WordpressInstance) (string, error)
GetEndpoint fetches the endpoint of the service that Wordpress pods use.
func GetLocalResourceSelector ¶
func GetLocalResourceSelector(wp v1alpha1.WordpressInstance) map[string]string
func GetOwnerReference ¶
func GetOwnerReference(wp v1alpha1.WordpressInstance) metav1.OwnerReference
func GetServiceResourceObjectKey ¶
func GetServiceResourceObjectKey(app *workload.KubernetesApplication) (client.ObjectKey, error)
func ProduceKubernetesApplication ¶
func ProduceKubernetesApplication(scheme *runtime.Scheme, wp v1alpha1.WordpressInstance, dbConnectionSecretRef *crossplanecore.LocalSecretReference) (*workload.KubernetesApplication, error)
func ProduceKubernetesCluster ¶
func ProduceKubernetesCluster(wp v1alpha1.WordpressInstance) *compute.KubernetesCluster
func ProduceMySQLInstance ¶
func ProduceMySQLInstance(wp v1alpha1.WordpressInstance) *database.MySQLInstance
Types ¶
type WordpressInstanceReconciler ¶
WordpressInstanceReconciler reconciles a WordpressInstance object
func (*WordpressInstanceReconciler) SetupWithManager ¶
func (r *WordpressInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.