Versions in this module Expand all Collapse all v2 v2.3.2 Apr 20, 2021 Changes in this version + func AddLabel(labels map[string]string, labelKey, labelValue string) map[string]string + func AddOwnersLabel(owners, resource, name, namespace string) string + func ApplyClusterRole(kubeClient kubernetes.Interface, clusterRoleName string, ...) error + func ApplyClusterRoleBinding(ctx context.Context, client client.Client, required *rbacv1.ClusterRoleBinding) error + func BuildClusterRoleName(objName, rule string) string + func BuildKubeClient(kubeConfigPath string) (*kubernetes.Clientset, error) + func CloneAndAddLabel(labels map[string]string, labelKey, labelValue string) map[string]string + func ContainsString(slice []string, s string) bool + func ConvertLabels(labelSelector *metav1.LabelSelector) (labels.Selector, error) + func DeleteClusterRole(kubeClient kubernetes.Interface, clusterRoleName string) error + func EncodeCertPEM(cert *x509.Certificate) []byte + func EncodePrivateKeyPEM(key *rsa.PrivateKey) []byte + func EqualSubjects(subjects1, subjects2 []rbacv1.Subject) bool + func FormatQuatityToGi(q resource.Quantity) resource.Quantity + func FormatQuatityToMi(q resource.Quantity) resource.Quantity + func GenerateClusterRoleBindingName(clusterName string) string + func GenerateClusterRoleName(clusterName, role string) string + func GenerateClustersetClusterroleName(clustersetName, role string) string + func GeneratePemFile(dir, certFile, keyFile string) (string, error) + func GetCPUAndMemoryAllocation(pods []*corev1.Pod) (cpuAllocation, memoryAllocation resource.Quantity) + func GetCPUAndMemoryCapacity(nodes []*corev1.Node) (cpuCapacity, memoryCapacity resource.Quantity) + func GetClustersetInRules(rules []rbacv1.PolicyRule) sets.String + func GetComponentNamespace() (string, error) + func GetStorageCapacityAndAllocation(pvs []*corev1.PersistentVolume) (storageCapacity, storageAllocation resource.Quantity) + func MatchLabelForLabelSelector(targetLabels map[string]string, labelSelector *metav1.LabelSelector) bool + func MergeMap(modified *bool, existing map[string]string, required map[string]string) + func Mergesubjects(subjects []rbacv1.Subject, cursubjects []rbacv1.Subject) []rbacv1.Subject + func NewMultiLineAggregate(errList []error) error + func NewPrivateKey() (*rsa.PrivateKey, error) + func NewSignedCert(cfg cert.Config, key crypto.Signer, caCert *x509.Certificate, ...) (*x509.Certificate, error) + func PodRequestsAndLimits(pod *corev1.Pod) (reqs map[corev1.ResourceName]resource.Quantity, ...) + func RemoveString(slice []string, s string) (result []string) + func StringToMap(str string) map[string]string + func WriteKeyCertToFile(certDir string, key, cert []byte) (string, error) v2.3.2-2021-04-20 Apr 21, 2021