# Functions
AddFinalizerFn returns a func that immediately updates the instance with the given finalizer.
DeleteConnectionSecretFn deletes the connection secret of the PostgreSQL instance.
DeleteHelmReleaseFn removes the Helm Release from the cluster.
DeleteK8upScheduleFn deletes the K8up schedule associated to the instance.
DeleteNamespaceFn deletes the namespace where the instance is deployed.
DeletePvcFn deletes the corev1.PersistentVolumeClaim from the deployment namespace.
EnrichStatusWithHelmChartMetaFn returns a function that updates the instance's status with metadata.
EnsureConnectionSecretFn creates the connection secret in the instance's namespace.
EnsureCredentialsSecretFn creates the secret that contains the PostgreSQL secret.
EnsureHelmReleaseFn creates or updates the Helm release object.
EnsureK8upScheduleFn creates the K8up schedule object.
EnsureNamespace creates the namespace with given name and labels.
EnsurePvcFn ensures that the PVC is created.
EnsureResticRepositorySecretFn returns a function that creates the restic repository secret required by K8up.
FetchNamespaceFn fetches the namespace of the given name and stores it in the context with given key.
FetchOperatorConfigFn fetches a matching v1alpha1.PostgresqlStandaloneOperatorConfig from the OperatorNamespace.
FetchS3BucketSecretFn fetches a secret that contains the bucket configuration.
FetchServiceFn returns a function that gets the service object and puts it into the context.
FindCrossplaneCondition finds the conditionType in conditions.
GetClientFromContext returns the client from the context.
GetConfigFromContext returns the config from the context.
GetInstanceFromContext returns the instance from the context.
IsBackupEnabledP returns a predicate that returns true if backups are enabled in the spec.
IsHelmReleaseReadyP returns a predicate that returns true if the HelmRelease has the ready condition.
MarkInstanceAsProgressingFn marks an instance as progressing by updating the status conditions.
MarkInstanceAsReadyFn marks an instance as ready by updating the status conditions.
RemoveFinalizerFn removes the finalizer from the PostgresqlStandalone instance and updates it if there was a finalizer present.
SetClientInContext sets the given client in the context.
SetInstanceInContext sets the given instance in the context.
# Constants
AppuioOrganizationLabelKey is the label key required for setting ownership of a namespace.
# Structs
BucketSecretKey identifies the S3 bucket for Backup in the context.
ClientKey identifies the Kubernetes client in the context.
ConfigKey identifies the v1alpha1.PostgresqlStandaloneOperatorConfig in the context.
ConnectionSecretKey identifies the connection secret in the context.
CredentialSecretKey identifies the credential secret for PostgreSQL in the context.
DeploymentNamespaceKey identifies the deployment Namespace in the context.
HelmReleaseKey identifies the HelmRelease in the context.
InstanceKey identifies the v1alpha1.PostgresqlStandalone in the context.
InstanceNamespaceKey identifies the namespace resource of the instance in the context.
ServiceKey identifies the PostgreSQL service in the context.