Documentation
¶
Index ¶
- func BoolAddr(b bool) *bool
- func BoolToString(b bool) string
- func BoolToYesNo(report_stats bool) string
- func CheckResourcePresenceFunc(k8sClient client.Client, ctx context.Context, timeout time.Duration, ...) func(client.Object, types.NamespacedName, metav1.OwnerReference)
- func CheckStatusFunc(k8sClient client.Client, ctx context.Context, timeout time.Duration, ...) func(string, string, types.NamespacedName, client.Object)
- func CheckSubresourceAbsenceFunc(k8sClient client.Client, ctx context.Context, timeout time.Duration, ...) func(types.NamespacedName, ...client.Object)
- func ComputeFQDN(name string, namespace string) string
- func ComputeNamespace(defaultNamespace string, newNamespace string) string
- func Convert(i interface{}) interface{}
- func ConvertStructToMap(in interface{}) (map[string]interface{}, error)
- func DeleteResourceFunc(k8sClient client.Client, ctx context.Context, timeout time.Duration, ...) func(client.Object, types.NamespacedName, bool)
- func GetConfigMapCopy(client client.Client, sourceConfigMapName string, ...) (*corev1.ConfigMap, error)
- func GetSynapseServerName(s synapsev1alpha1.Synapse) (string, error)
- func LoadYAMLFileFromConfigMapData(configMap corev1.ConfigMap, filename string) (map[string]interface{}, error)
- func UpdateConfigMap(ctx context.Context, client client.Client, key types.NamespacedName, ...) error
- func UpdateConfigMapData(cm *corev1.ConfigMap, i interface{}, updateData updateDataFunc, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToString ¶
func BoolToYesNo ¶
func CheckStatusFunc ¶
func ComputeFQDN ¶
func ComputeNamespace ¶
ConfigMap that are created by the user could be living in a different namespace as Synapse. getConfigMapNamespace provides a way to default to the Synapse namespace if none is provided.
func ConvertStructToMap ¶
func DeleteResourceFunc ¶
func GetConfigMapCopy ¶
func GetConfigMapCopy( client client.Client, sourceConfigMapName string, sourceConfigMapNamespace string, copyConfigMapObjectMeta metav1.ObjectMeta, ) (*corev1.ConfigMap, error)
getConfigMapCopy is a generic function which creates a copy of a given source ConfigMap. The resulting copy is a ConfigMap with similar data, and with metadata set by the 'copyConfigMapObjectMeta' argument.
func GetSynapseServerName ¶
func GetSynapseServerName(s synapsev1alpha1.Synapse) (string, error)
func UpdateConfigMap ¶
func UpdateConfigMap( ctx context.Context, client client.Client, key types.NamespacedName, i interface{}, updateData updateDataFunc, filename string, ) error
A generic function to update an existing ConfigMap. It takes as arguments: * The context * The key (name and namespace) of the ConfigMap to update * The Synapse object being reconciled * The function to be called to actually update the ConfigMap's content * The name of the file to update in the ConfigMap
Types ¶
This section is empty.