Versions in this module Expand all Collapse all v0 v0.3.0 Jan 19, 2021 Changes in this version + func BoolPointer(b bool) *bool + func ContainsString(slice []string, s string) bool + func EmptyTypedFloatSlice(f ...float64) []interface + func EmptyTypedStrSlice(s ...string) []interface + func GetAPIServerCertSANs(c *devopsv1.Cluster) []string + func GetIndexedIP(subnet string, index int) (net.IP, error) + func GetNodeCIDRMaskSize(clusterCIDR string, maxNodePodNum int32) (int32, error) + func GetServiceCIDRAndNodeCIDRMaskSize(clusterCIDR string, maxClusterServiceNum int32, maxNodePodNum int32) (string, int32, error) + func GroupVersionKindsHasKind(gvks []schema.GroupVersionKind, kind string) bool + func Int64Pointer(i int64) *int64 + func IntPointer(i int32) *int32 + func IntstrPointer(i int) *intstr.IntOrString + func IsObjectChanged(oldObj, newObj runtime.Object, ignoreStatusChange bool) (bool, error) + func LoadObjs(f io.Reader) ([]client.Object, error) + func MarshalToYaml(obj runtime.Object, gv schema.GroupVersion) ([]byte, error) + func MarshalToYamlForCodecs(obj runtime.Object, gv schema.GroupVersion, codecs serializer.CodecFactory) ([]byte, error) + func MergeMultipleStringMaps(stringMaps ...map[string]string) map[string]string + func MergeStringMaps(l map[string]string, l2 map[string]string) map[string]string + func ObjectMeta(name string, labels map[string]string, obj runtime.Object) metav1.ObjectMeta + func PointerToBool(flag *bool) bool + func PointerToInt32(i *int32) int32 + func PointerToString(s *string) string + func Reconcile(log logr.Logger, cli client.Client, desired client.Object, ...) error + func ReconcileCRDs(cfg *rest.Config, crds []*apiextensionsv1.CustomResourceDefinition) error + func ReconcileNamespaceLabelsIgnoreNotFound(log logr.Logger, cli client.Client, namespace string, labels map[string]string, ...) error + func RemoveNonYAMLLines(yms string) string + func RemoveString(slice []string, s string) (result []string) + func StrPointer(s string) *string + func UnmarshalFromYaml(buffer []byte, gv schema.GroupVersion) (runtime.Object, error) + func UnmarshalFromYamlForCodecs(buffer []byte, gv schema.GroupVersion, codecs serializer.CodecFactory) (runtime.Object, error) + type DesiredState string + const DesiredStateAbsent + const DesiredStatePresent