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 ¶
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.
Click to show internal directories.
Click to hide internal directories.