utils

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CASSANDRA   = "Cassandra.contrail.juniper.net"
	ZOOKEEPER   = "Zookeeper.contrail.juniper.net"
	RABBITMQ    = "Rabbitmq.contrail.juniper.net"
	CONFIG      = "Config.contrail.juniper.net"
	CONTROL     = "Control.contrail.juniper.net"
	WEBUI       = "Webui.contrail.juniper.net"
	VROUTER     = "Vrouter.contrail.juniper.net"
	KUBEMANAGER = "Kubemanager.contrail.juniper.net"
	MANAGER     = "Manager.contrail.juniper.net"
	REPLICASET  = "ReplicaSet.apps"
	DEPLOYMENT  = "Deployment.apps"
)

const defines the Group constants.

Variables

This section is empty.

Functions

func CassandraActiveChange

func CassandraActiveChange() predicate.Funcs

CassandraActiveChange returns predicate function based on group kind.

func CassandraGroupKind

func CassandraGroupKind() schema.GroupKind

CassandraGroupKind returns group kind.

func ConfigActiveChange

func ConfigActiveChange() predicate.Funcs

ConfigActiveChange returns predicate function based on group kind.

func ConfigGroupKind

func ConfigGroupKind() schema.GroupKind

ConfigGroupKind returns group kind.

func ControlActiveChange

func ControlActiveChange() predicate.Funcs

ControlActiveChange returns predicate function based on group kind.

func ControlGroupKind

func ControlGroupKind() schema.GroupKind

ControlGroupKind returns group kind.

func DSStatusChange

func DSStatusChange(appGroupKind schema.GroupKind) predicate.Funcs

DSStatusChange monitors per application size change.

func DeploymentGroupKind

func DeploymentGroupKind() schema.GroupKind

DeploymentGroupKind returns group kind.

func DeploymentStatusChange

func DeploymentStatusChange(appGroupKind schema.GroupKind) predicate.Funcs

DeploymentStatusChange monitors per application size change.

func GetGroupKindFromObject

func GetGroupKindFromObject(object runtime.Object) schema.GroupKind

GetGroupKindFromObject return GK.

func GetObjectAndGroupKindFromRequest

func GetObjectAndGroupKindFromRequest(request *reconcile.Request, client client.Client) (runtime.Object, *schema.GroupKind, error)

GetObjectAndGroupKindFromRequest returns Object and Kind.

func KubemanagerGroupKind

func KubemanagerGroupKind() schema.GroupKind

KubemanagerGroupKind returns group kind.

func ManagerGroupKind

func ManagerGroupKind() schema.GroupKind

ManagerGroupKind returns group kind.

func ManagerSizeChange

func ManagerSizeChange(appGroupKind schema.GroupKind) predicate.Funcs

ManagerSizeChange monitors per application size change.

func MergeCommonConfiguration

func MergeCommonConfiguration(manager v1alpha1.CommonConfiguration,
	instance v1alpha1.CommonConfiguration) v1alpha1.CommonConfiguration

MergeCommonConfiguration combines common configuration of manager and service.

func PodIPChange

func PodIPChange(appLabel map[string]string) predicate.Funcs

PodIPChange returns predicate function based on group kind.

func PodInitRunning

func PodInitRunning(appLabel map[string]string) predicate.Funcs

PodInitRunning returns predicate function based on group kind.

func PodInitStatusChange

func PodInitStatusChange(appLabel map[string]string) predicate.Funcs

PodInitStatusChange returns predicate function based on group kind.

func PodStatusChange

func PodStatusChange(appGroupKind schema.GroupKind) predicate.Funcs

PodStatusChange monitors per application size change.

func RabbitmqActiveChange

func RabbitmqActiveChange() predicate.Funcs

RabbitmqActiveChange returns predicate function based on group kind.

func RabbitmqGroupKind

func RabbitmqGroupKind() schema.GroupKind

RabbitmqGroupKind returns group kind.

func RemoveIndex

func RemoveIndex(s []corev1.Container, index int) []corev1.Container

func ReplicaSetGroupKind

func ReplicaSetGroupKind() schema.GroupKind

ReplicaSetGroupKind returns group kind.

func STSStatusChange

func STSStatusChange(appGroupKind schema.GroupKind) predicate.Funcs

STSStatusChange monitors per application size change.

func VrouterActiveChange

func VrouterActiveChange() predicate.Funcs

VrouterActiveChange returns predicate function based on group kind.

func VrouterGroupKind

func VrouterGroupKind() schema.GroupKind

VrouterGroupKind returns group kind.

func WebuiGroupKind

func WebuiGroupKind() schema.GroupKind

WebuiGroupKind returns group kind.

func ZookeeperActiveChange

func ZookeeperActiveChange() predicate.Funcs

ZookeeperActiveChange returns predicate function based on group kind.

func ZookeeperGroupKind

func ZookeeperGroupKind() schema.GroupKind

ZookeeperGroupKind returns group kind.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL