package
0.0.0-20240421174845-c52bf705b6c9
Repository: https://github.com/teocns/redis-operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddFinalizer add finalizer for graceful deletion.
AddOwnerRefToObject adds the owner references to object.
Add redis cluster node would add a node to the existing redis cluster using redis-cli.
No description provided by the author
CheckRedisClusterState will check the redis cluster state.
CheckRedisNodeCount will check the count of redis nodes.
No description provided by the author
No description provided by the author
CreateMultipleLeaderRedisCommand will create command for single leader cluster creation.
CreateOrUpdateService method will create or update Redis service.
CreateOrUpdateService method will create or update Redis service.
CreateOrUpdateStateFul method will create or update Redis service.
CreateRedisFollower will create a follower redis setup.
CreateRedisFollowerService method will create service for Redis Follower.
CreateRedisLeader will create a leader redis setup.
CreateRedisLeaderService method will create service for Redis Leader.
Redis Sentinel Create the Redis Sentinel Setup.
Create RedisSentinel Service.
CreateReplicationRedis will create a replication redis setup.
CreateReplicationService method will create replication service for Redis.
CreateSingleLeaderRedisCommand will create command for single leader cluster creation.
CreateStandaloneRedis will create a standalone redis setup.
CreateStandaloneService method will create standalone service for Redis.
ExecuteFailoverOperation will execute redis failover operations.
ExecuteRedisClusterCommand will execute redis cluster creation command.
ExecuteRedisReplicationCommand will execute the replication command.
GenerateK8sClient create client for kubernetes.
GenerateK8sConfig will load the kube config file.
GenerateK8sClient create Dynamic client for kubernetes.
No description provided by the author
GetPodDisruptionBudget is a method to get PodDisruptionBudgets in Kubernetes.
Get Redis nodes by it's role i.e.
No description provided by the author
GetStateFulSet is a method to get statefulset in Kubernetes.
HandleRedisClusterFinalizer finalize resource if instance is marked to be deleted.
HandleRedisFinalizer finalize resource if instance is marked to be deleted.
Handle RedisReplicationFinalizer finalize resource if instance is marked to be deleted.
HandleRedisSentinelFinalizer finalize resource if instance is marked to be deleted.
No description provided by the author
LabelSelectors generates object for label selection.
Rebalance Redis Cluster Would Rebalance the Redis Cluster without using the empty masters.
Rebalance the Redis CLuster using the Empty Master Nodes.
CreateRedisLeaderPodDisruptionBudget check and create a PodDisruptionBudget for Leaders.
No description provided by the author
RedisClusterStatusHealth use `redis-cli --cluster check 127.0.0.1:6379`.
Remove redis follower node would remove all follower nodes of last leader node using redis-cli.
Remove redis cluster node would remove last node to the existing redis cluster using redis-cli.
ReshardRedisCluster transfer the slots from the last node to the first node.
UpdateRedisClusterStatus will update the status of the RedisCluster.
verifyLeaderPod return true if the pod is leader/master.

# Constants

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

# Structs

RedisClusterService is a interface to call Redis Service function.
RedisClusterSTS is a interface to call Redis Statefulset function.
RedisDetails will hold the information for Redis Pod.
No description provided by the author
RedisSentinelService is a interface to call Redis Service function.
RedisSentinelSTS is a interface to call Redis Statefulset function.

# Type aliases

No description provided by the author