controllers

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Project string
)

Functions

func ConfigMap

func ConfigMap(ctx context.Context, c client.Client, s *runtime.Scheme, app *deploymentv1alpha1.Cluster, ca deploymentv1alpha1.ClusterApp, labels, selectors map[string]string) (requeue time.Duration, err error)

func Deployment

func Deployment(ctx context.Context, c client.Client, s *runtime.Scheme, app *deploymentv1alpha1.Cluster, ca deploymentv1alpha1.ClusterApp, labels, selectors map[string]string) (requeue time.Duration, err error)

func GecBotLabels

func GecBotLabels(app *appv1alpha1.Cluster) map[string]string

func GecBotSelectors

func GecBotSelectors(app *appv1alpha1.Cluster) map[string]string

func GecMetaLabels added in v0.1.9

func GecMetaLabels(app *appv1alpha1.Cluster) map[string]string

func GecMetaSelectors added in v0.1.9

func GecMetaSelectors(app *appv1alpha1.Cluster) map[string]string

func GecProcessorLabels

func GecProcessorLabels(app *appv1alpha1.Cluster) map[string]string

func GecProcessorSelectors

func GecProcessorSelectors(app *appv1alpha1.Cluster) map[string]string

func GecSlackerLabels

func GecSlackerLabels(app *appv1alpha1.Cluster) map[string]string

func GecSlackerSelectors

func GecSlackerSelectors(app *appv1alpha1.Cluster) map[string]string

func PVC

func PVC(ctx context.Context, c client.Client, s *runtime.Scheme, app *deploymentv1alpha1.Cluster, ca deploymentv1alpha1.ClusterApp, labels, selectors map[string]string) (requeue time.Duration, err error)

func ServiceAccount

func ServiceAccount(ctx context.Context, c client.Client, s *runtime.Scheme, app *deploymentv1alpha1.Cluster, ca deploymentv1alpha1.ClusterApp, labels, selectors map[string]string) (requeue time.Duration, err error)

Types

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ClusterReconciler reconciles a Cluster object

func (*ClusterReconciler) Reconcile

func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile

func (*ClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*ClusterReconciler) Upsert

func (r *ClusterReconciler) Upsert(ctx context.Context, upserters []upserter, ca appv1alpha1.ClusterApp, app *appv1alpha1.Cluster, labels, selectors, config map[string]string) (requeue time.Duration, err error)

Jump to

Keyboard shortcuts

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