sentinel

package
v0.0.0-...-0227cab Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandUpdateAccount  actor.Command = &sentinelCommand{typ: "SentinelCommandUpdateAccount"}
	CommandUpdateConfig                 = &sentinelCommand{typ: "SentinelCommandUpdateConfig"}
	CommandEnsureResource               = &sentinelCommand{typ: "SentinelCommandEnsureResource"}
	CommandHealPod                      = &sentinelCommand{typ: "SentinelCommandHealPod"}
	CommandCleanResource                = &sentinelCommand{typ: "SentinelCommandCleanResource"}

	CommandSentinelHeal = &sentinelCommand{typ: "SentinelCommandSentinelHeal"}
	CommandInitMaster   = &sentinelCommand{typ: "SentinelCommandInitMaster"}
	CommandHealMaster   = &sentinelCommand{typ: "SentinelCommandHealMaster"}
	CommandPatchLabels  = &sentinelCommand{typ: "SentinelCommandPatchLabels"}

	CommandRequeue = &sentinelCommand{typ: "SentinelCommandRequeue"}
	CommandAbort   = &sentinelCommand{typ: "SentinelCommandAbort"}
	CommandPaused  = &sentinelCommand{typ: "SentinelCommandPaused"}
)

Functions

This section is empty.

Types

type RuleEngine

type RuleEngine struct {
	// contains filtered or unexported fields
}

func NewRuleEngine

func NewRuleEngine(client kubernetes.ClientSet, eventRecorder record.EventRecorder, logger logr.Logger) (*RuleEngine, error)

func (*RuleEngine) CheckMaster

检测是否只有一个master

func (*RuleEngine) CheckRedisConfig

func (g *RuleEngine) CheckRedisConfig(ctx context.Context, st types.RedisFailoverInstance) *actor.ActorResult

func (*RuleEngine) CheckRedisLabels

func (g *RuleEngine) CheckRedisLabels(ctx context.Context, st types.RedisInstance) *actor.ActorResult

func (*RuleEngine) CheckRedisPasswordChange

func (g *RuleEngine) CheckRedisPasswordChange(ctx context.Context, st types.RedisFailoverInstance) *actor.ActorResult

func (*RuleEngine) CheckSentinel

func (*RuleEngine) FinallyCheck

最后比对数量是否相同

func (*RuleEngine) Inspect

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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