Categorygithub.com/Dlimingliang/lml-controller
modulepackage
0.0.0-20230919075128-53ef58b2ba0b
Repository: https://github.com/dlimingliang/lml-controller.git
Documentation: pkg.go.dev

# README

Running

Prerequisite: Since the lml-controller uses apps/v1 deployments, the Kubernetes cluster version should be greater than 1.9.

# assumes you have a working kubeconfig, not required if operating in-cluster
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o lml-controller .
./lml-controller -kubeconfig=$HOME/.kube/config

# create a CustomResourceDefinition
kubectl create -f artifacts/crd-status-subresource.yaml

# create a custom resource of type Foo
kubectl create -f artifacts/lml.yaml

# check deployments created through the custom resource
kubectl get deployments

# Packages

No description provided by the author
No description provided by the author

# Functions

NewController returns a new lml controller.

# Constants

ErrResourceExists is used as part of the Event 'reason' when a Lml fails to sync due to a Deployment of the same name already existing.
MessageResourceExists is the message used for Events when a resource fails to sync due to a Deployment already existing.
MessageResourceSynced is the message used for an Event fired when a Lml is synced successfully.
SuccessSynced is used as part of the Event 'reason' when a Lml is synced.

# Structs

Controller is the controller implementation for Lml resources.