Versions in this module Expand all Collapse all v1 v1.2.3 Apr 27, 2022 v1.2.2 Feb 22, 2022 v1.2.1 Jan 31, 2022 v1.2.0 Jan 26, 2022 Changes in this version + func DeleteSecretsWithName(r ReconcilerCommon, cond *ospdirectorv1beta1.Condition, name string, ...) error + func GetCidrParts(cidr string) (string, int, error) + func GetConfigMap(r ReconcilerCommon, object client.Object, cond *ospdirectorv1beta1.Condition, ...) (*corev1.ConfigMap, ctrl.Result, error) + func GetDataFromSecret(r ReconcilerCommon, object client.Object, cond *ospdirectorv1beta1.Condition, ...) (string, ctrl.Result, error) + func IsJSON(s string) error + func LogErrorForObject(r ReconcilerCommon, err error, msg string, object metav1.Object, ...) + func LogForObject(r ReconcilerCommon, msg string, object metav1.Object, params ...interface{}) + func MergeStringMaps(baseMap map[string]string, extraMaps ...map[string]string) map[string]string + func OpenStackBackupOverridesReconcile(client client.Client, instance InstanceCommon) (bool, error) + func WrapErrorForObject(msg string, object client.Object, err error) error + type InstanceCommon interface + GetName func() string + GetNamespace func() string + IsReady func() bool + type List []Pair + func (p List) Len() int + func (p List) Less(i, j int) bool + func (p List) Swap(i, j int) + type Pair struct + Key string + Value string v1.1.2 Dec 15, 2021 v1.1.1 Dec 1, 2021 v1.1.0 Nov 16, 2021 Changes in this version + const BITSIZE + const FinalizerName + const GroupLabel + const HostRemovalAnnotation + const MustGatherSecret + const OSPHostnameLabelSelector + const OwnerControllerNameLabelSelector + const OwnerLabel + const OwnerNameLabelSelector + const OwnerNameSpaceLabelSelector + const OwnerUIDLabelSelector + const ServiceAccountAnnotationName + const TripleOPacemakerServiceName + const TripleORolesDataFile + const TripleOServicesDefaultKeyName + func AssignIP(assignIPDetails AssignIPDetails) (net.IPNet, []ospdirectorv1beta1.IPReservation, error) + func BigIntToIP(inipint big.Int) net.IP + func CreateOrGetCustomConfigMap(r ReconcilerCommon, configMap *corev1.ConfigMap) (string, error) + func CreateOrGetHostname(hostStore HostnameStore, host *Hostname) error + func CreateOrUpdateNetworkAttachmentDefinition(r ReconcilerCommon, obj metav1.Object, managerRef string, ...) error + func CreateOrUpdateNetworkConfigurationPolicy(r ReconcilerCommon, obj metav1.Object, managerRef string, ...) error + func CreateOrUpdatePvc(r ReconcilerCommon, obj metav1.Object, pv *Pvc) (*corev1.PersistentVolumeClaim, controllerutil.OperationResult, error) + func CreateOrUpdateSecret(r ReconcilerCommon, obj metav1.Object, secret *corev1.Secret) (string, controllerutil.OperationResult, error) + func DeleteJob(job *batchv1.Job, kclient kubernetes.Interface, log logr.Logger) (bool, error) + func DeletePodsWithLabel(r ReconcilerCommon, obj metav1.Object, labelSelectorMap map[string]string) error + func DeleteReplicasetsWithLabel(r ReconcilerCommon, obj metav1.Object, labelSelectorMap map[string]string) error + func DeleteSecretsWithLabel(r ReconcilerCommon, obj metav1.Object, labelSelectorMap map[string]string) error + func DeleteServicesWithLabel(r ReconcilerCommon, obj metav1.Object, labelSelectorMap map[string]string) error + func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) string + func EnsureConfigMaps(r ReconcilerCommon, obj metav1.Object, cms []Template, ...) error + func EnsureSecrets(r ReconcilerCommon, obj metav1.Object, sts []Template, ...) error + func ExecuteTemplate(templateFile string, data interface{}) string + func ExecuteTemplateData(templateData string, data interface{}) string + func ExecuteTemplateFile(filename string, data interface{}) string + func GeneratePasswords() map[string]interface + func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error) + func GeneratePublicKey(privatekey *rsa.PublicKey) (string, error) + func GetAllNetworkAttachmentDefinitions(r ReconcilerCommon, obj metav1.Object) (map[string]networkv1.NetworkAttachmentDefinition, error) + func GetAllNetworkConfigurationPolicies(r ReconcilerCommon, labelSelectorMap map[string]string) (map[string]nmstate.NodeNetworkConfigurationPolicy, error) + func GetAllPodsWithLabel(r ReconcilerCommon, labelSelectorMap map[string]string, namespace string) (*corev1.PodList, error) + func GetAllTemplates(path string, kind string, templateType string, version string) []string + func GetBmhHosts(r ReconcilerCommon, namespace string, labelSelector map[string]string) (*metal3v1alpha1.BareMetalHostList, error) + func GetConfigMapAndHashWithName(r ReconcilerCommon, configMapName string, namespace string) (*corev1.ConfigMap, string, error) + func GetConfigMaps(r ReconcilerCommon, obj runtime.Object, configMaps []string, namespace string, ...) ([]ospdirectorv1beta1.Hash, error) + func GetControlPlane(r ReconcilerCommon, obj metav1.Object) (ospdirectorv1beta1.OpenStackControlPlane, reconcile.Result, error) + func GetCustomFencingRoles(customBinaryData map[string][]byte) ([]string, error) + func GetDeletionAnnotatedBmhHosts(r ReconcilerCommon, namespace string, labelSelector map[string]string) ([]string, error) + func GetFencingRoles() []string + func GetIPRange(ip net.IP, ipnet net.IPNet) (net.IP, net.IP, error) + func GetLabels(obj metav1.Object, controller string, custom map[string]string) map[string]string + func GetOSPVersion(parsedVersion string) (ospdirectorv1beta1.OSPVersion, error) + func GetOSPVersionFromImageURL(r ReconcilerCommon, imageURL string) (ospdirectorv1beta1.OSPVersion, error) + func GetOr(m map[string]interface{}, key, fallback string) interface + func GetSecret(r ReconcilerCommon, secretName string, secretNamespace string) (*corev1.Secret, string, error) + func GetSecrets(r ReconcilerCommon, secretNamespace string, labelSelectorMap map[string]string) (*corev1.SecretList, error) + func GetServicesListWithLabel(r ReconcilerCommon, namespace string, labelSelectorMap map[string]string) (*corev1.ServiceList, error) + func GetTemplateData(t Template) map[string]string + func GetTemplatesPath() string + func GetVirtualMachineInstances(r ReconcilerCommon, namespace string, labelSelectorMap map[string]string) (*virtv1.VirtualMachineInstanceList, error) + func GetVirtualMachines(r ReconcilerCommon, namespace string, labelSelectorMap map[string]string) (*virtv1.VirtualMachineList, error) + func IPToBigInt(IPv6Addr net.IP) *big.Int + func InitMap(m *map[string]string) + func IsIPv4(checkip net.IP) bool + func IsIPv6(checkip net.IP) bool + func IsSet(m map[string]interface{}, key string) interface + func IterateForAssignment(assignIPDetails AssignIPDetails) (net.IP, []ospdirectorv1beta1.IPReservation, error) + func MergeEnvs(envs []corev1.EnvVar, newEnvs EnvSetterMap) []corev1.EnvVar + func MergeMaps(baseMap map[string]interface{}, extraMaps ...map[string]interface{}) map[string]interface + func ObjectHash(i interface{}) (string, error) + func RemoveIndex(s []string, index int) []string + func SSAApply(ctx context.Context, cfg *rest.Config, controller string, ...) error + func SSAApplyYaml(ctx context.Context, cfg *rest.Config, controller string, resource []byte) error + func SSHKeySecret(name string, namespace string, labels map[string]string) (*corev1.Secret, error) + func StringInSlice(a string, list []string) bool + func WaitOnJob(job *batchv1.Job, client client.Client, log logr.Logger) (bool, error) + type AssignIPDetails struct + Deleted bool + ExcludeRanges []string + HostRef string + Hostname string + IPnet net.IPNet + RangeEnd net.IP + RangeStart net.IP + Reservelist []ospdirectorv1beta1.IPReservation + RoleReservelist []ospdirectorv1beta1.IPReservation + VIP bool + type AssignmentError struct + func (a AssignmentError) Error() string + type EnvSetter func(*corev1.EnvVar) + func EnvDownwardAPI(field string) EnvSetter + func EnvValue(value string) EnvSetter + type EnvSetterMap map[string]EnvSetter + type Hostname struct + Basename string + HostRef string + Hostname string + VIP bool + type HostnameList []HostnamePair + func SortMapByValue(inMap map[string]string) HostnameList + func (p HostnameList) Len() int + func (p HostnameList) Less(i, j int) bool + func (p HostnameList) Swap(i, j int) + type HostnamePair struct + HostRef string + Hostname string + type HostnameStore interface + GetHostnames func() map[string]string + type IPSet struct + AddToPredictableIPs bool + HostCount int + HostNameRefs map[string]string + Networks []string + Role string + VIP bool + type NetworkAttachmentDefinition struct + Data map[string]string + Labels map[string]string + Name string + Namespace string + type NetworkConfigurationPolicy struct + Labels map[string]string + Name string + NodeNetworkConfigurationPolicy shared.NodeNetworkConfigurationPolicySpec + type Pvc struct + AccessMode []corev1.PersistentVolumeAccessMode + Labels map[string]string + Name string + Namespace string + Size string + StorageClass string + type ReconcilerCommon interface + GetClient func() client.Client + GetKClient func() kubernetes.Interface + GetLogger func() logr.Logger + GetScheme func() *runtime.Scheme + type TType string + const TemplateTypeConfig + const TemplateTypeCustom + const TemplateTypeNone + const TemplateTypeScripts + type Template struct + AdditionalTemplate map[string]string + Annotations map[string]string + ConfigOptions map[string]interface{} + CustomData map[string]string + InstanceType string + Labels map[string]string + Name string + Namespace string + SecretType corev1.SecretType + SkipSetOwner bool + Type TType + Version ospdirectorv1beta1.OSPVersion