MCPcopy Index your code

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

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

↓ 70 callersMethodGet
Get behaves like the original Get method, but uses a cache for secrets
internal/cnpgi/instance/internal/client/client.go:79
↓ 33 callersMethodError
Error implements the error interface
internal/cnpgi/common/wal.go:57
↓ 31 callersMethodCreate
Create creates the object store resources.
test/e2e/internal/objectstore/objectstore.go:45
↓ 16 callersFunctionnewScheme
()
internal/cnpgi/operator/rbac/ensure_test.go:82
↓ 14 callersMethodError
Error implements the error interface
internal/cnpgi/operator/config/config.go:39
↓ 13 callersMethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStore.
api/v1/zz_generated.deepcopy.go:69
↓ 12 callersFunctionEnsureRole
EnsureRole ensures the RBAC Role for the given Cluster matches the desired state derived from the given ObjectStores. On creation, the Cluster is set
internal/cnpgi/operator/rbac/ensure.go:52
↓ 11 callersFunctionCollectSecretNamesFromCredentials
CollectSecretNamesFromCredentials collects the names of the secrets
internal/cnpgi/operator/specs/secrets.go:28
↓ 11 callersFunctionExecuteInContainer
ExecuteInContainer executes a command in a container. If timeout is not nil, the command will be executed with the specified timeout. The function ret
test/e2e/internal/command/command.go:44
↓ 10 callersFunctionEnsureRoleBinding
EnsureRoleBinding ensures the RoleBinding for the given Cluster is present and carries the recommended labels. This function is called from the Pre h
internal/cnpgi/operator/rbac/ensure.go:108
↓ 10 callersMethodGetBarmanObjectKey
GetBarmanObjectKey gets the namespaced name of the barman object
internal/cnpgi/operator/config/config.go:82
↓ 9 callersFunctionObjectStoreNamesFromRole
ObjectStoreNamesFromRole extracts the ObjectStore names referenced by a plugin-managed Role. It finds the objectstores rule semantically (by APIGroup
internal/cnpgi/operator/specs/role.go:112
↓ 9 callersMethodReconcile
+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=create;patch;update;get;list;watch +kubebuilder:rbac:groups=rbac.autho
internal/controller/objectstore_controller.go:62
↓ 9 callersFunctionnewDstPluginBackup
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:257
↓ 8 callersFunctionBuildRoleRules
BuildRoleRules builds the RBAC PolicyRules for the given ObjectStores. nolint:goconst
internal/cnpgi/operator/specs/role.go:52
↓ 8 callersMethodGetRecoveryBarmanObjectKey
GetRecoveryBarmanObjectKey gets the namespaced name of the recovery barman object
internal/cnpgi/operator/config/config.go:90
↓ 8 callersMethodcollectAdditionalInstanceArgs
( ctx context.Context, pluginConfiguration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle.go:259
↓ 8 callersFunctionensureVolumeMount
ensureVolumeMount makes sure the passed volume mounts are present in the list of volume mounts. If a volume mount is already present, it is updated.
internal/cnpgi/operator/lifecycle.go:577
↓ 8 callersFunctionnewTestObjectStore
(name, namespace, secretName string)
internal/controller/objectstore_controller_test.go:53
↓ 7 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:60
↓ 7 callersFunctionnewLabeledRole
(clusterName, namespace string, objectStores []barmancloudv1.ObjectStore)
internal/controller/objectstore_controller_test.go:77
↓ 6 callersFunctionBuildCertificateFilePath
BuildCertificateFilePath builds the path to the barman objectStore certificate
internal/cnpgi/common/common.go:97
↓ 6 callersFunctionGetRBACName
GetRBACName returns the name of the RBAC entities for the barman cloud plugin
internal/cnpgi/operator/specs/role.go:153
↓ 6 callersFunctionNewMinioObjectStore
NewMinioObjectStore creates a new Minio object store.
test/e2e/internal/objectstore/minio.go:198
↓ 6 callersFunctionNewMinioObjectStoreResources
NewMinioObjectStoreResources creates the resources required to create a Minio object store.
test/e2e/internal/objectstore/minio.go:38
↓ 6 callersFunctionSetControllerReference
SetControllerReference sets an owner reference on controlled pointing to owner, reading the GVK from the owner object's metadata rather than from a sc
internal/cnpgi/operator/specs/ownership.go:41
↓ 6 callersFunctionexpectRequiredLabels
(labels map[string]string, clusterName string)
internal/cnpgi/operator/rbac/ensure_test.go:46
↓ 6 callersFunctionnewDstClusterWithPlugin
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:315
↓ 6 callersFunctionnewSrcClusterWithPlugin
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:279
↓ 6 callersFunctionnewSrcPluginBackup
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:216
↓ 6 callersFunctionnewTestObjectStore
(name, secretName string)
internal/cnpgi/operator/specs/role_test.go:35
↓ 5 callersFunctionAddCNPGToScheme
AddCNPGToScheme registers CNPG types into the given scheme using the API group configured via CUSTOM_CNPG_GROUP/CUSTOM_CNPG_VERSION environment variab
internal/scheme/cnpg.go:37
↓ 5 callersFunctionBuildLabels
BuildLabels returns the Kubernetes recommended labels applied to every object managed by this plugin for the given Cluster. See https://github.com/clo
internal/cnpgi/operator/specs/labels.go:32
↓ 5 callersFunctionEnsureRoleRules
EnsureRoleRules updates the rules of an existing Role to match the desired state derived from the given ObjectStores. Unlike EnsureRole, this function
internal/cnpgi/operator/rbac/ensure.go:75
↓ 5 callersFunctionNewAzuriteObjectStore
NewAzuriteObjectStore creates a new ObjectStore object for Azurite.
test/e2e/internal/objectstore/azurite.go:189
↓ 5 callersFunctionNewAzuriteObjectStoreResources
NewAzuriteObjectStoreResources creates the resources required to create an Azurite object store.
test/e2e/internal/objectstore/azurite.go:38
↓ 5 callersFunctionNewFromCluster
NewFromCluster extracts the configuration from the cluster
internal/cnpgi/operator/config/config.go:142
↓ 5 callersFunctionNewFromClusterJSON
NewFromClusterJSON decodes a JSON representation of a cluster.
internal/cnpgi/operator/config/config.go:131
↓ 5 callersMethodPatch
Patch behaves like the original Patch method, but on secrets it removes the secret from the cache
internal/cnpgi/instance/internal/client/client.go:199
↓ 5 callersFunctionreconcileJob
( ctx context.Context, cluster *cnpgv1.Cluster, request *lifecycle.OperatorLifecycleRequest, config sideca
internal/cnpgi/operator/lifecycle.go:167
↓ 4 callersMethodDelete
Delete behaves like the original Delete method, but on secrets it removes the secret from the cache
internal/cnpgi/instance/internal/client/client.go:186
↓ 4 callersFunctionNewGCSObjectStore
NewGCSObjectStore creates a new GCS object store.
test/e2e/internal/objectstore/fakegcsserver.go:176
↓ 4 callersFunctionNewGCSObjectStoreResources
NewGCSObjectStoreResources creates the resources required to create a GCS object store.
test/e2e/internal/objectstore/fakegcsserver.go:38
↓ 4 callersMethodUpdate
Update behaves like the original Update method, but on secrets it removes the secret from the cache
internal/cnpgi/instance/internal/client/client.go:173
↓ 4 callersFunctionaddToCache
(c *ExtendedClient, obj client.Object, fetchUnixTime int64)
internal/cnpgi/instance/internal/client/client_test.go:47
↓ 4 callersFunctionclassifyWALRestoreError
classifyWALRestoreError maps an error returned by the WAL restorer to a gRPC-coded error so the caller can tell terminal failures apart from transient
internal/cnpgi/common/errors.go:33
↓ 4 callersFunctionensureVolume
ensureVolume makes sure the passed volume is present in the list of volumes. If the volume is already present, it is updated.
internal/cnpgi/operator/lifecycle.go:559
↓ 4 callersMethodisObjectCached
(obj client.Object)
internal/cnpgi/instance/internal/client/client.go:66
↓ 4 callersFunctionnewCluster
(name, namespace string)
internal/cnpgi/operator/rbac/ensure_test.go:90
↓ 4 callersFunctionnewObjectStore
(name, namespace, secretName string)
internal/cnpgi/operator/rbac/ensure_test.go:103
↓ 4 callersFunctionremoveVolumeMount
(mounts []corev1.VolumeMount, name string)
internal/cnpgi/operator/lifecycle.go:607
↓ 3 callersFunctionApplyKustomization
ApplyKustomization builds the kustomization and creates the resources.
test/e2e/internal/kustomize/kustomize.go:48
↓ 3 callersMethodGetReferredBarmanObjectsKey
GetReferredBarmanObjectsKey gets the list of barman objects referred by this plugin configuration
internal/cnpgi/operator/config/config.go:107
↓ 3 callersFunctionbuildFqName
(name string)
internal/cnpgi/instance/metrics.go:45
↓ 3 callersMethodcollectObjectStoreEnvs
( ctx context.Context, barmanObjectKey types.NamespacedName, )
internal/cnpgi/operator/lifecycle_envs.go:87
↓ 3 callersFunctionnewPatchCountingClient
newPatchCountingClient returns a fake client plus a pointer to a counter incremented on every Patch call. Useful for asserting that a "no-op" reconcil
internal/cnpgi/operator/rbac/ensure_test.go:61
↓ 3 callersFunctionnewReplicaBackup
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:207
↓ 3 callersFunctionnewReplicaCluster
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:229
↓ 3 callersFunctionnewSrcBackup
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:184
↓ 3 callersFunctionnewSrcCluster
(namespace string)
test/e2e/internal/tests/replicacluster/fixtures.go:122
↓ 3 callersFunctionnewSrcInTreeBackup
(namespace string)
test/e2e/internal/tests/backup/fixtures.go:238
↓ 3 callersFunctionreconcileInstancePod
( ctx context.Context, cluster *cnpgv1.Cluster, request *lifecycle.OperatorLifecycleRequest, pluginConfigu
internal/cnpgi/operator/lifecycle.go:309
↓ 3 callersMethodremoveObject
removeObject ensures that a object is not present in the cache
internal/cnpgi/instance/internal/client/client.go:158
↓ 3 callersFunctionremoveVolume
removeVolume removes a volume with a known name from a list of volumes.
internal/cnpgi/operator/lifecycle.go:597
↓ 3 callersFunctionsecretNamesFromRole
(role *rbacv1.Role)
test/e2e/internal/tests/credentialrotation/credential_rotation.go:160
↓ 2 callersFunctionAddHealthCheck
AddHealthCheck adds a health check service to the gRPC server with the tag 'plugin-barman-cloud'
internal/cnpgi/common/health.go:31
↓ 2 callersFunctionBuildRole
BuildRole builds the Role object for this cluster
internal/cnpgi/operator/specs/role.go:35
↓ 2 callersFunctionCheckBackupDestination
CheckBackupDestination checks if the backup destination is suitable to archive WALs
internal/cnpgi/common/check.go:32
↓ 2 callersMethodCollect
( ctx context.Context, req *metrics.CollectMetricsRequest, )
internal/cnpgi/instance/metrics.go:104
↓ 2 callersMethodDeepCopyObject
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
api/v1/zz_generated.deepcopy.go:79
↓ 2 callersFunctionGenerateScheme
GenerateScheme creates a runtime.Scheme object with all the definition needed to support the sidecar. This allows the plugin to be used in every CNPG-
internal/cnpgi/common/scheme.go:40
↓ 2 callersMethodGetReplicaSourceBarmanObjectKey
GetReplicaSourceBarmanObjectKey gets the namespaced name of the replica source barman object
internal/cnpgi/operator/config/config.go:98
↓ 2 callersFunctionGetRestoreCABundleEnv
GetRestoreCABundleEnv gets the enveronment variables to be used when custom Object Store CA is present
internal/cnpgi/common/common.go:59
↓ 2 callersFunctionIsReady
IsReady checks if the deployment is ready.
test/e2e/internal/deployment/deployment.go:34
↓ 2 callersFunctionMergeEnv
MergeEnv merges all the values inside incomingEnv into env.
internal/cnpgi/common/common.go:71
↓ 2 callersMethodName
Name gets the name of the segment.
internal/cnpgi/common/wal_import.go:153
↓ 2 callersMethodRun
Run runs the E2E tests on a Kubernetes cluster. It returns the output of the tests. We expect a kubeconfig file that allows access to the cluster, and
dagger/e2e/main.go:34
↓ 2 callersFunctionSegmentFromName
SegmentFromName retrieves the timeline, log ID and segment ID from the name of a xlog segment, and can also handle a full path or a simple file name.
internal/cnpgi/common/wal_import.go:107
↓ 2 callersMethodStart
Start starts the GRPC service
internal/cnpgi/restore/start.go:46
↓ 2 callersMethodStatus
Status implements the WALService interface
internal/cnpgi/common/wal.go:404
↓ 2 callersFunctionWaitForDeploymentReady
WaitForDeploymentReady waits for the deployment to be ready. ctx should have a timeout set.
test/e2e/internal/deployment/deployment.go:57
↓ 2 callersFunctionWalSegmentsPerFile
WalSegmentsPerFile is the number of WAL Segments in a WAL File.
internal/cnpgi/common/wal_import.go:158
↓ 2 callersMethodcollectAdditionalCertificates
( ctx context.Context, pluginConfiguration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle_certificates.go:38
↓ 2 callersMethodcollectAdditionalEnvs
( ctx context.Context, namespace string, pluginConfiguration *config.PluginConfiguration, )
internal/cnpgi/operator/lifecycle_envs.go:32
↓ 2 callersFunctioncontainsSubject
containsSubject reports whether subjects contains an element that is semantically equal to subject.
internal/cnpgi/operator/rbac/ensure.go:330
↓ 2 callersFunctionisStreamingAvailable
isStreamingAvailable checks if this pod can replicate via streaming connection.
internal/cnpgi/common/wal.go:422
↓ 2 callersFunctionlabelsNeedUpdate
labelsNeedUpdate returns true if a Patch is required to bring existing labels into the state mergeLabels would produce, i.e. any desired key is missin
internal/cnpgi/operator/rbac/ensure.go:319
↓ 2 callersFunctionmergeLabels
mergeLabels writes the desired labels onto existing per-key. Keys in desired overwrite the existing value; keys not in desired (any unrelated label a
internal/cnpgi/operator/rbac/ensure.go:303
↓ 2 callersFunctionpatchRole
patchRole patches the Role's rules and optionally its labels to match the desired state. When desiredLabels is nil, labels are not modified. Uses retr
internal/cnpgi/operator/rbac/ensure.go:267
↓ 2 callersFunctionreconcilePodSpec
( cluster *cnpgv1.Cluster, spec *corev1.PodSpec, mainContainerName string, sidecarTemplate corev1.Containe
internal/cnpgi/operator/lifecycle.go:354
↓ 2 callersFunctionupdateRecoveryWindow
updateRecoveryWindow updates the recovery window inside the object store status subresource
internal/cnpgi/instance/recovery_window.go:37
↓ 1 callersFunctionBuildRoleBinding
BuildRoleBinding builds the role binding object for this cluster
internal/cnpgi/operator/specs/role.go:126
↓ 1 callersMethodCheck
Check is the response handle for the healthcheck request
internal/cnpgi/common/health.go:40
↓ 1 callersMethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStoreList.
api/v1/zz_generated.deepcopy.go:101
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:32
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:87
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:119
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:136
↓ 1 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1/zz_generated.deepcopy.go:158
↓ 1 callersMethodGetCapabilities
GetCapabilities exposes the lifecycle capabilities nolint:goconst
internal/cnpgi/operator/lifecycle.go:56
next →1–100 of 281, ranked by callers