Documentation ¶
Index ¶
- Constants
- func BecomeLeader(ctx context.Context, cfg *rest.Config, lockName, namespace string) error
- func CompareConfigMap(cm1 *corev1.ConfigMap, cm2 *corev1.ConfigMap) bool
- func CompareVersions(v1, v2, operator string) (bool, error)
- func ContainsString(slice []string, str string) bool
- func ContainsVersion(list []string, version string) bool
- func ControllerReadinessCheck(version string, port int32, authflag bool) []string
- func DeleteAllZnodes(zkUri string, clusterName string) (err error)
- func DownwardAPIEnv() []corev1.EnvVar
- func GenerateJVMOption(k, v string) string
- func GetPodVersion(pod *v1.Pod) string
- func HealthcheckCommand(version string, port int32, restport int32) []string
- func IsOrphan(k8sObjectName string, replicas int32) bool
- func IsPodFaulty(pod *corev1.Pod) (bool, error)
- func IsPodReady(pod *corev1.Pod) bool
- func IsPravegaContainer(container corev1.ContainerStatus) bool
- func IsVersionBelow(v1 string, v2 string) bool
- func ListSubTreeBFS(conn *zk.Conn, root string) (*list.List, error)
- func Min(x, y int32) int32
- func NormalizeVersion(version string) (string, error)
- func OverrideDefaultJVMOptions(defaultOpts []string, customOpts []string) []string
- func PodAntiAffinity(component string, clusterName string) *corev1.Affinity
- func RemoveString(slice []string, str string) (result []string)
- func SegmentStoreReadinessCheck(version string, port int32, restport int32) []string
- func UpdateOneJVMOption(arg string, om *OrderedMap)
- type OrderedMap
Constants ¶
View Source
const ( // Set in https://github.com/pravega/pravega/blob/master/docker/bookkeeper/entrypoint.sh#L21 PravegaPath = "pravega" ZkFinalizer = "cleanUpZookeeper" )
View Source
const (
MajorMinorVersionRegexp string = `^v?(?P<Version>[0-9]+\.[0-9]+\.[0-9]+)`
)
Variables ¶
This section is empty.
Functions ¶
func BecomeLeader ¶ added in v0.5.6
BecomeLeader with pre-check cluster status - is there a previous pod in bad state?
func CompareConfigMap ¶ added in v0.5.2
func CompareVersions ¶
func ContainsString ¶
func ContainsVersion ¶
func ControllerReadinessCheck ¶ added in v0.5.1
func DeleteAllZnodes ¶
Delete all znodes related to a specific Pravega cluster
func DownwardAPIEnv ¶
func GenerateJVMOption ¶ added in v0.4.2
Concatenate the key value pair to be a JVM option string.
func GetPodVersion ¶
func HealthcheckCommand ¶
func IsPodReady ¶
func IsPravegaContainer ¶ added in v0.5.3
func IsPravegaContainer(container corev1.ContainerStatus) bool
func IsVersionBelow ¶ added in v0.5.5
function to check if v1 is below v2 or not
func ListSubTreeBFS ¶
Construct a BFS tree
func NormalizeVersion ¶
func OverrideDefaultJVMOptions ¶ added in v0.4.2
This method will override the default JVM options with user provided custom options
func RemoveString ¶
func SegmentStoreReadinessCheck ¶ added in v0.5.5
func UpdateOneJVMOption ¶ added in v0.4.2
func UpdateOneJVMOption(arg string, om *OrderedMap)
This method will parse the JVM options into a key value pair and store it in the OrderedMap
Types ¶
type OrderedMap ¶ added in v0.4.2
type OrderedMap struct {
// contains filtered or unexported fields
}
OrderedMap is a map that has insertion order when iterating. The iteration of map in GO is in random order by default.
Click to show internal directories.
Click to hide internal directories.