MCPcopy Create free account

hub / github.com/cloudnative-pg/plugin-barman-cloud / functions

Functions281 in github.com/cloudnative-pg/plugin-barman-cloud

↓ 1 callersFunctionInjectPluginVolumePodSpec
TODO: move to machinery once the logic is finalized InjectPluginVolumePodSpec injects the plugin volume into a CNPG Pod spec.
internal/cnpgi/operator/lifecycle.go:484
↓ 1 callersFunctionInstall
Install installs cert-manager using kubectl.
test/e2e/internal/certmanager/certmanager.go:64
↓ 1 callersFunctionInstall
Install installs CloudNativePG using kubectl.
test/e2e/internal/cloudnativepg/cloudnativepg.go:93
↓ 1 callersFunctionIsWALFile
IsWALFile check if the passed file name is a regular WAL file. It supports either a full file path or a simple file name.
internal/cnpgi/common/wal_import.go:99
↓ 1 callersMethodLifecycleHook
LifecycleHook is called when creating Kubernetes services
internal/cnpgi/operator/lifecycle.go:88
↓ 1 callersFunctionNewCmd
NewCmd creates the "restore" subcommand
internal/cmd/restore/main.go:33
↓ 1 callersFunctionNewCmd
NewCmd returns the healthcheck command
internal/cmd/healthcheck/main.go:37
↓ 1 callersFunctionNewCmd
NewCmd creates a new operator command
internal/cmd/operator/main.go:33
↓ 1 callersFunctionNewCmd
NewCmd creates a new instance command
internal/cmd/instance/main.go:33
↓ 1 callersFunctionNewConfigurationError
NewConfigurationError creates a new empty configuration error
internal/cnpgi/operator/config/config.go:44
↓ 1 callersFunctionNewExtendedClient
NewExtendedClient returns an extended client capable of caching secrets on the 'Get' operation
internal/cnpgi/instance/internal/client/client.go:57
↓ 1 callersFunctionNewPlugin
NewPlugin creates a new Plugin instance for the given cluster and plugin name.
internal/cnpgi/operator/config/config.go:282
↓ 1 callersMethodNextSegments
NextSegments generate the list of all possible segment names starting from `segment`, until the specified size is reached. This function will not ever
internal/cnpgi/common/wal_import.go:170
↓ 1 callersMethodPost
Post implements the reconciler interface
internal/cnpgi/operator/reconciler.go:129
↓ 1 callersMethodRestore
Restore restores the cluster from a backup
internal/cnpgi/restore/restore.go:89
↓ 1 callersFunctionSetup
Setup sets up the test environment for the e2e tests, starting kind and installing the necessary components. nolint:ireturn
test/e2e/internal/e2etestenv/main.go:109
↓ 1 callersMethodSetupWithManager
SetupWithManager sets up the controller with the Manager.
internal/controller/objectstore_controller.go:136
↓ 1 callersFunctionStart
Start starts the sidecar informers and CNPG-i server
internal/cnpgi/restore/manager.go:36
↓ 1 callersFunctionStart
Start starts the manager
internal/cnpgi/operator/manager.go:55
↓ 1 callersFunctionStart
Start starts the sidecar informers and CNPG-i server
internal/cnpgi/instance/manager.go:40
↓ 1 callersMethodStart
Start starts the GRPC server of the operator plugin
internal/cnpgi/operator/start.go:44
↓ 1 callersMethodStart
Start starts the GRPC service
internal/cnpgi/instance/start.go:47
↓ 1 callersMethodValidate
Validate checks if the barmanObjectName is set
internal/cnpgi/operator/config/config.go:263
↓ 1 callersFunctionWithIgnoreExistingResources
WithIgnoreExistingResources sets whether to ignore existing resources.
test/e2e/internal/certmanager/certmanager.go:52
↓ 1 callersFunctionWithIgnoreExistingResources
WithIgnoreExistingResources sets whether to ignore existing resources.
test/e2e/internal/cloudnativepg/cloudnativepg.go:86
↓ 1 callersFunctionWithImageName
WithImageName sets the name for the CloudNativePG image.
test/e2e/internal/cloudnativepg/cloudnativepg.go:51
↓ 1 callersFunctionWithImageTag
WithImageTag sets the tag for the CloudNativePG image.
test/e2e/internal/cloudnativepg/cloudnativepg.go:58
↓ 1 callersFunctionWithKustomizationRef
WithKustomizationRef sets the ref for the CloudNativePG kustomization.
test/e2e/internal/cloudnativepg/cloudnativepg.go:72
↓ 1 callersFunctionWithKustomizationResourceURL
WithKustomizationResourceURL sets the URL for the CloudNativePG kustomization.
test/e2e/internal/cloudnativepg/cloudnativepg.go:65
↓ 1 callersFunctionWithKustomizationTimeout
WithKustomizationTimeout sets the timeout for the kustomization resources.
test/e2e/internal/cloudnativepg/cloudnativepg.go:79
↓ 1 callersMethodWithMessage
WithMessage adds a new error message to a potentially empty ConfigurationError
internal/cnpgi/operator/config/config.go:50
↓ 1 callersFunctionWithVersion
WithVersion sets the version of cert-manager to install.
test/e2e/internal/certmanager/certmanager.go:45
↓ 1 callersFunctionaddScheme
(cl client.Client)
test/e2e/internal/client/client.go:74
↓ 1 callersFunctionapplyResource
(ctx context.Context, cl client.Client, obj *unstructured.Unstructured)
test/e2e/internal/kustomize/kustomize.go:116
↓ 1 callersFunctionapplyResourceMap
(ctx context.Context, cl client.Client, resourceMap resmap.ResMap)
test/e2e/internal/kustomize/kustomize.go:88
↓ 1 callersFunctionbuildScheme
()
internal/cnpgi/instance/internal/client/client_test.go:39
↓ 1 callersMethodcheckBackupDestination
( ctx context.Context, cluster *cnpgv1.Cluster, barmanConfiguration *cnpgv1.BarmanObjectStoreConfiguration,
internal/cnpgi/restore/restore.go:248
↓ 1 callersFunctioncheckEndOfWALStreamFlag
checkEndOfWALStreamFlag returns ErrEndOfWALStreamReached if the flag is set in the restorer.
internal/cnpgi/common/wal.go:480
↓ 1 callersMethodcollectObjectStoreCertificates
( ctx context.Context, barmanObjectKey types.NamespacedName, )
internal/cnpgi/operator/lifecycle_certificates.go:55
↓ 1 callersMethodcollectSidecarResourcesForPod
( ctx context.Context, configuration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle_resources.go:47
↓ 1 callersMethodcollectSidecarResourcesForRecoveryJob
( ctx context.Context, configuration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle_resources.go:31
↓ 1 callersMethodcreateBackupRestoreTestResources
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:51
↓ 1 callersMethodcreateReplicaClusterTestResources
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:33
↓ 1 callersMethodcycle
cycle enforces the retention policies. On success, it returns the amount of time to wait to the next check.
internal/cnpgi/instance/retention.go:83
↓ 1 callersFunctiondefaultSetupOptions
()
test/e2e/internal/e2etestenv/main.go:99
↓ 1 callersFunctiondeleteBackupsNotInCatalog
deleteBackupsNotInCatalog deletes all Backup objects pointing to the given cluster that are not present in the backup anymore
internal/cnpgi/instance/retention.go:193
↓ 1 callersMethodensureArchiveContainsLastCheckpointRedoWAL
( ctx context.Context, env []string, backup *cnpgv1.Backup, barmanConfiguration *cnpgv1.BarmanObjectStoreC
internal/cnpgi/restore/restore.go:211
↓ 1 callersFunctionensureRoleExists
ensureRoleExists creates the Role if it does not exist. Returns nil on success and nil on AlreadyExists (another writer created it concurrently). The
internal/cnpgi/operator/rbac/ensure.go:231
↓ 1 callersFunctiongatherWALFilesToRestore
gatherWALFilesToRestore files a list of possible WAL files to restore, always including as the first one the requested WAL file.
internal/cnpgi/common/wal.go:457
↓ 1 callersFunctiongetCNPGJobRole
getCNPGJobRole gets the role associated to a CNPG job
internal/cnpgi/operator/lifecycle.go:618
↓ 1 callersMethodgetCachedObject
( ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption, )
internal/cnpgi/instance/internal/client/client.go:92
↓ 1 callersFunctiongetOrCreateRoleBinding
getOrCreateRoleBinding returns the existing RoleBinding when it is already present on the API server, or nil after a successful Create when the just-c
internal/cnpgi/operator/rbac/ensure.go:133
↓ 1 callersFunctiongetRecoveryParameters
(cluster *cnpgv1.Cluster)
internal/cnpgi/operator/config/config.go:193
↓ 1 callersFunctiongetRecoverySourcePlugin
getRecoverySourcePlugin returns the configuration of the plugin being the recovery source of the cluster. If no such plugin have been configured, nil
internal/cnpgi/operator/config/config.go:222
↓ 1 callersFunctiongetReplicaSourceParameters
(cluster *cnpgv1.Cluster)
internal/cnpgi/operator/config/config.go:206
↓ 1 callersFunctiongetReplicaSourcePlugin
getRecoverySourcePlugin returns the configuration of the plugin being the recovery source of the cluster. If no such plugin have been configured, nil
internal/cnpgi/operator/config/config.go:247
↓ 1 callersFunctiongetRestoreWalConfig
getRestoreWalConfig obtains the content to append to `custom.conf` allowing PostgreSQL to complete the WAL recovery from the object storage and then s
internal/cnpgi/restore/restore.go:336
↓ 1 callersMethodhandleBackupError
(ctx context.Context, cfg *config.PluginConfiguration)
internal/cnpgi/instance/backup.go:197
↓ 1 callersFunctioninjectPluginSidecarPodSpec
injectPluginSidecarPodSpec injects a plugin sidecar into a CNPG Pod spec.
internal/cnpgi/operator/lifecycle.go:522
↓ 1 callersFunctioninstallCNPG
(ctx context.Context, cl client.Client, options SetupOptions)
test/e2e/internal/e2etestenv/main.go:126
↓ 1 callersFunctioninstallCertManager
(ctx context.Context, cl client.Client, options SetupOptions)
test/e2e/internal/e2etestenv/main.go:157
↓ 1 callersFunctionisEndOfWALStream
isEndOfWALStream returns true if one of the downloads has returned a file-not-found error.
internal/cnpgi/common/wal.go:499
↓ 1 callersMethodisExpired
()
internal/cnpgi/instance/internal/client/client.go:45
↓ 1 callersFunctionloadBackupObjectFromExternalCluster
loadBackupObjectFromExternalCluster generates an in-memory Backup structure given a reference to an external cluster, loading the required information
internal/cnpgi/restore/restore.go:351
↓ 1 callersMethodmaintenance
maintenance executes a collection of operations: - applies the retention policy to the object. - store and deletes the stale Kubernetes backup objec
internal/cnpgi/instance/retention.go:124
↓ 1 callersFunctionmergeSubjects
mergeSubjects appends desired Subjects that are not already present in existing. This is intentionally asymmetric to mergeLabels: labels are metadata
internal/cnpgi/operator/rbac/ensure.go:348
↓ 1 callersFunctionnewAzuriteDeployment
(namespace, name string)
test/e2e/internal/objectstore/azurite.go:47
↓ 1 callersFunctionnewAzuritePVC
(namespace, name string)
test/e2e/internal/objectstore/azurite.go:165
↓ 1 callersFunctionnewAzuriteSecret
(namespace, name string)
test/e2e/internal/objectstore/azurite.go:150
↓ 1 callersFunctionnewAzuriteService
(namespace, name string)
test/e2e/internal/objectstore/azurite.go:125
↓ 1 callersFunctionnewBackupResultMetadata
(clusterUID types.UID, timeline int)
internal/cnpgi/instance/types.go:50
↓ 1 callersFunctionnewBackupResultMetadataFromMap
(m map[string]string)
internal/cnpgi/instance/types.go:62
↓ 1 callersFunctionnewCluster
(namespace string)
test/e2e/internal/tests/credentialrotation/credential_rotation.go:131
↓ 1 callersFunctionnewDstClusterInTreeAzure
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:520
↓ 1 callersFunctionnewDstClusterInTreeGCS
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:617
↓ 1 callersFunctionnewDstClusterInTreeS3
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:417
↓ 1 callersFunctionnewFakeScheme
()
internal/controller/objectstore_controller_test.go:46
↓ 1 callersFunctionnewGCSDeployment
(namespace, name string)
test/e2e/internal/objectstore/fakegcsserver.go:47
↓ 1 callersFunctionnewGCSPVC
(namespace, name string)
test/e2e/internal/objectstore/fakegcsserver.go:152
↓ 1 callersFunctionnewGCSSecret
(namespace, name string)
test/e2e/internal/objectstore/fakegcsserver.go:140
↓ 1 callersFunctionnewGCSService
(namespace, name string)
test/e2e/internal/objectstore/fakegcsserver.go:115
↓ 1 callersFunctionnewInternalWALRestoreError
newInternalWALRestoreError reports that downloading the WAL file failed for an unclassified reason. Emits codes.Internal: we have no positive signal t
internal/cnpgi/common/errors.go:103
↓ 1 callersFunctionnewInvalidWALNameError
newInvalidWALNameError reports that the requested WAL name is not a valid name. Emits codes.InvalidArgument: this is a terminal condition (the same na
internal/cnpgi/common/errors.go:90
↓ 1 callersFunctionnewMinioDeployment
(namespace, name string)
test/e2e/internal/objectstore/minio.go:47
↓ 1 callersFunctionnewMinioPVC
(namespace, name string)
test/e2e/internal/objectstore/minio.go:174
↓ 1 callersFunctionnewMinioSecret
(namespace, name string)
test/e2e/internal/objectstore/minio.go:157
↓ 1 callersFunctionnewMinioService
(namespace, name string)
test/e2e/internal/objectstore/minio.go:132
↓ 1 callersFunctionnewSrcClusterInTreeAzure
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:483
↓ 1 callersFunctionnewSrcClusterInTreeGCS
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:574
↓ 1 callersFunctionnewSrcClusterInTreeS3
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:368
↓ 1 callersFunctionnewUnavailableError
newUnavailableError reports that downloading the WAL file failed for a reason expected to be transient (a barman-cloud connectivity blip, or a generic
internal/cnpgi/common/errors.go:78
↓ 1 callersFunctionnewWALNotFoundError
newWALNotFoundError reports that the requested WAL file is not present in the object store. Emits codes.NotFound: this is a terminal condition (the fi
internal/cnpgi/common/errors.go:69
↓ 1 callersMethodreconcileJob
( ctx context.Context, cluster *cnpgv1.Cluster, request *lifecycle.OperatorLifecycleRequest, pluginConfigu
internal/cnpgi/operator/lifecycle.go:132
↓ 1 callersMethodreconcilePod
( ctx context.Context, cluster *cnpgv1.Cluster, request *lifecycle.OperatorLifecycleRequest, pluginConfigu
internal/cnpgi/operator/lifecycle.go:225
↓ 1 callersFunctionreconcileRoleBinding
reconcileRoleBinding brings an existing RoleBinding's labels and Subjects into alignment with desired. It re-Gets the object on conflict-retry so each
internal/cnpgi/operator/rbac/ensure.go:180
↓ 1 callersMethodreconcileRoleRules
reconcileRoleRules fetches the ObjectStores referenced by the Role and patches its rules to match the current specs.
internal/controller/objectstore_controller.go:108
↓ 1 callersMethodrestoreCustomWalDir
restoreCustomWalDir moves the current pg_wal data to the specified custom wal dir and applies the symlink returns indicating if any changes were made
internal/cnpgi/restore/restore.go:301
↓ 1 callersMethodrestoreDataDir
restoreDataDir restores PGDATA from an existing backup
internal/cnpgi/restore/restore.go:168
↓ 1 callersMethodrestoreFromBarmanObjectStore
( ctx context.Context, cluster *cnpgv1.Cluster, objectStore *barmancloudv1.ObjectStore, serverName string,
internal/cnpgi/common/wal.go:287
↓ 1 callersFunctionroleBindingNeedsUpdate
roleBindingNeedsUpdate returns true if a Patch is required to bring existing into alignment with desired — any desired Subject missing (see mergeSubje
internal/cnpgi/operator/rbac/ensure.go:361
← previousnext →101–200 of 281, ranked by callers