controllers

package
v0.0.0-...-ba1e60f Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName       = "dtm"
	ConfigMapName = "dtm-conf"
	ServiceName   = "dtm-svc"
)

Variables

View Source
var AppProtocolGRPC = "GRPC"
View Source
var AppProtocolHTTP = "HTTP"

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Store Store `yaml:"Store"`
}

type DtmReconciler

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

DtmReconciler reconciles a Dtm object

func (*DtmReconciler) GetDtmConfigMap

func (r *DtmReconciler) GetDtmConfigMap(dtm *dtmappv1.Dtm) *corev1.ConfigMap

func (*DtmReconciler) GetDtmDeployment

func (r *DtmReconciler) GetDtmDeployment(dtm *dtmappv1.Dtm) *appv1.Deployment

func (*DtmReconciler) GetDtmService

func (r *DtmReconciler) GetDtmService(dtm *dtmappv1.Dtm) *corev1.Service

func (*DtmReconciler) Reconcile

func (r *DtmReconciler) 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. the Dtm object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*DtmReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Store

type Store struct {
	Driver string `yaml:"Driver"`
}

Jump to

Keyboard shortcuts

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