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: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Protocol            = "https://"
	FinalizerName       = "terminal.sealos.io/finalizer"
	HostnameLength      = 8
	KeepaliveAnnotation = "lastUpdateTime"
	LetterBytes         = "abcdefghijklmnopqrstuvwxyz0123456789"
)
View Source
const (
	DefaultDomain          = "cloud.sealos.io"
	DefaultPort            = ""
	DefaultSecretName      = "wildcard-cert"
	DefaultSecretNamespace = "sealos-system"
)
View Source
const (
	CPURequest    = "0.01"
	MemoryRequest = "16Mi"
	CPULimit      = "0.3"
	MemoryLimit   = "256Mi"
)

request and limit for terminal pod

View Source
const (
	TerminalPartOf = "terminal"
)

Variables

This section is empty.

Functions

func NewCache

func NewCache() cache.NewCacheFunc

Types

type Config

type Config struct {
	config.Global  `yaml:"global"`
	TerminalConfig TerminalConfig `yaml:"terminalController"`
}

type TerminalConfig

type TerminalConfig struct {
	IngressTLSSecretName string `yaml:"ingressTLSSecretName"`
}

type TerminalReconciler

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

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

TerminalReconciler reconciles a Terminal object

func (*TerminalReconciler) Reconcile

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

func (*TerminalReconciler) SetupWithManager

func (r *TerminalReconciler) 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