controllers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 FillWithDefaults

func FillWithDefaults(wp *wordpressv1alpha1.WordpressInstance)

func GetEndpoint

GetEndpoint fetches the endpoint of the service that Wordpress pods use.

func GetLocalResourceSelector

func GetLocalResourceSelector(wp v1alpha1.WordpressInstance) map[string]string

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)

Types

type WordpressInstanceReconciler

type WordpressInstanceReconciler struct {
	client.Client
	*runtime.Scheme
	Log logr.Logger
}

WordpressInstanceReconciler reconciles a WordpressInstance object

func (*WordpressInstanceReconciler) Reconcile

func (*WordpressInstanceReconciler) SetupWithManager

func (r *WordpressInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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