controllers

package
v0.0.0-...-950e6cb Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FinalizerName       = "adminer.db.sealos.io/finalizer"
	HostnameLength      = 8
	KeepaliveAnnotation = "lastUpdateTime"
	LetterBytes         = "abcdefghijklmnopqrstuvwxyz0123456789"
)
View Source
const (
	DefaultDomain          = "cloud.sealos.io"
	DefaultSecretName      = "wildcard-cloud-sealos-io-cert"
	DefaultSecretNamespace = "sealos-system"
	DefaultImage           = "docker.io/labring4docker/adminer:v4.8.1"
)
View Source
const (
	CPURequest    = "0.02"
	MemoryRequest = "32Mi"
	CPULimit      = "0.1"
	MemoryLimit   = "128Mi"
)

request and limit for adminer pod

View Source
const (
	AdminerPartOf = "adminer"
)

Variables

This section is empty.

Functions

func NewCache

func NewCache() cache.NewCacheFunc

Types

type AdminerReconciler

type AdminerReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	Config *rest.Config
	// contains filtered or unexported fields
}

AdminerReconciler reconciles a Adminer object

func (*AdminerReconciler) Reconcile

func (r *AdminerReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the Adminer 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.12.1/pkg/reconcile

func (*AdminerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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