Documentation ¶
Index ¶
- func AddHashAnnotation(r Annotated)
- func AppendValuesToStringArrayIfNotPresent(a []string, values ...string) []string
- func ElementsMatch(a interface{}, b interface{}) bool
- func FilterNodesWithFn(nodes []*corev1.Node, fn func(*corev1.Node) bool) []*corev1.Node
- func FilterNodesWithTaintKeyValueEffect(nodes []*corev1.Node, taintKey, value string, effect corev1.TaintEffect) []*corev1.Node
- func FilterPVCsWithFn(pvcs []*corev1.PersistentVolumeClaim, ...) []*corev1.PersistentVolumeClaim
- func FilterPodsWithAnnotationKey(pods []*corev1.Pod, key string) []*corev1.Pod
- func FilterPodsWithFn(pods []*corev1.Pod, fn func(*corev1.Pod) bool) []*corev1.Pod
- func FilterPodsWithLabel(pods []*corev1.Pod, label, value string) []*corev1.Pod
- func FilterPodsWithNodeInNameSet(pods []*corev1.Pod, nameSet StringSet) []*corev1.Pod
- func GenerateJKS(ca *corev1.Secret, podname, dcname string) (jksblob []byte, err error)
- func GetNewCAandKey(leafdomain, namespace string) (keypem, certpem string, err error)
- func GetPVCSelectedNodeName(pvc *corev1.PersistentVolumeClaim) string
- func IndexOfString(a []string, v string) int
- func IsPSPEnabled() bool
- func IsPodUnschedulable(pod *corev1.Pod) bool
- func MergeMap(destination map[string]string, sources ...map[string]string) map[string]string
- func RangeInt(min, max, step int) []int
- func RemoveValueFromStringArray(a []string, v string) []string
- func ResourcesHaveSameHash(r1, r2 Annotated) bool
- func SearchMap(mapToSearch map[string]interface{}, key string) map[string]interface{}
- type Annotated
- type StringSet
- func GetNodeNameSet(nodes []*corev1.Node) StringSet
- func GetPodNameSet(pods []*corev1.Pod) StringSet
- func GetPodNodeNameSet(pods []*corev1.Pod) StringSet
- func IntersectionStringSet(a, b StringSet) StringSet
- func SubtractStringSet(a, b StringSet) StringSet
- func UnionStringSet(a, b StringSet) StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHashAnnotation ¶ added in v1.5.0
func AddHashAnnotation(r Annotated)
func AppendValuesToStringArrayIfNotPresent ¶ added in v1.3.0
func ElementsMatch ¶ added in v1.5.0
func ElementsMatch(a interface{}, b interface{}) bool
func FilterNodesWithFn ¶ added in v1.5.0
func FilterNodesWithTaintKeyValueEffect ¶ added in v1.5.0
func FilterPVCsWithFn ¶ added in v1.5.0
func FilterPVCsWithFn(pvcs []*corev1.PersistentVolumeClaim, fn func(*corev1.PersistentVolumeClaim) bool) []*corev1.PersistentVolumeClaim
k8s PVC helpers
func FilterPodsWithAnnotationKey ¶ added in v1.5.0
func FilterPodsWithFn ¶ added in v1.5.0
func FilterPodsWithLabel ¶ added in v1.5.0
func FilterPodsWithNodeInNameSet ¶ added in v1.5.0
func GenerateJKS ¶ added in v1.4.0
func GetNewCAandKey ¶ added in v1.4.0
func GetPVCSelectedNodeName ¶ added in v1.5.0
func GetPVCSelectedNodeName(pvc *corev1.PersistentVolumeClaim) string
func IndexOfString ¶ added in v1.3.0
func IsPSPEnabled ¶ added in v1.5.0
func IsPSPEnabled() bool
func IsPodUnschedulable ¶ added in v1.5.0
k8s Pod helper functions
func MergeMap ¶
MergeMap will take two maps, merging the entries of the source map into destination map. If both maps share the same key then destination's value for that key will be overwritten with what's in source.
func RemoveValueFromStringArray ¶ added in v1.3.0
func ResourcesHaveSameHash ¶ added in v1.5.0
Types ¶
type StringSet ¶ added in v1.5.0
StringSet helper functions
func GetNodeNameSet ¶ added in v1.5.0
k8s Node helper functions
func GetPodNameSet ¶ added in v1.5.0
func GetPodNodeNameSet ¶ added in v1.5.0
func IntersectionStringSet ¶ added in v1.5.1
func SubtractStringSet ¶ added in v1.5.0
func UnionStringSet ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.