MCPcopy Create free account

hub / github.com/awslabs/mountpoint-s3-csi-driver / functions

Functions680 in github.com/awslabs/mountpoint-s3-csi-driver

↓ 336 callersFunctionEquals
Equals fails the test if `want` and `got` are not equal.
pkg/util/testutil/assert/assert.go:13
↓ 198 callersFunctionNoError
NoError fails the test if `err` is not nil.
pkg/util/testutil/assert/assert.go:21
↓ 161 callersMethodRun
()
pkg/driver/driver.go:152
↓ 95 callersFunctionwithPVC
withPVC returns a `podModifier` that adds given `pvc` to the Pods volumes.
tests/controller/controller_test.go:1597
↓ 84 callersFunctioncreatePod
createPod creates a new Kubernetes Pod in the control plane with given `modifiers`.
tests/controller/controller_test.go:1660
↓ 75 callersMethodschedule
schedule simulates `testPod` to be scheduled in given node.
tests/controller/controller_test.go:1527
↓ 74 callersFunctioncreateVolume
createVolume creates a new pair of unbounded PV and PVC.
tests/controller/controller_test.go:1743
↓ 73 callersMethodbind
bind bounds PV and PVC to each other.
tests/controller/controller_test.go:1691
↓ 55 callersMethodString
String returns string representation of the argument to pass Mountpoint.
pkg/mountpoint/args.go:45
↓ 54 callersMethodProvide
(ctx context.Context, provideCtx ProvideContext)
pkg/driver/node/credentialprovider/provider.go:62
↓ 52 callersFunctiondefaultExpectedFields
defaultExpectedFields return default test expected fields for MountpointS3PodAttachmentSpec matching
tests/controller/controller_test.go:2090
↓ 49 callersFunctionexpectNoS3PodAttachmentWithFields
expectNoS3PodAttachmentWithFields verifies that no MountpointS3PodAttachment matching specified fields exists within a time period
tests/controller/controller_test.go:1825
↓ 38 callersFunctioncreateVolumeResourceWithMountOptions
(ctx context.Context, config *storageframework.PerTestConfig, pattern storageframework.TestPattern, mountOptio
tests/e2e-kubernetes/testsuites/util.go:169
↓ 37 callersMethodMount
(ctx context.Context, bucketName string, target string, credentialCtx credentialprovider.ProvideContext, args
pkg/driver/node/mounter/mounter.go:15
↓ 37 callersFunctionParseArgs
ParseArgs parses given list of unnormalized and returns a normalized [Args].
pkg/mountpoint/args.go:58
↓ 37 callersFunctionwaitAndVerifyS3PodAttachmentAndMountpointPod
waitAndVerifyS3PodAttachmentAndMountpointPod waits and verifies that MountpointS3PodAttachment and Mountpoint Pod are created for given `node`, `vol`
tests/controller/controller_test.go:1862
↓ 33 callersMethodGet
Get returns pod from watcher's cache.
pkg/podmounter/mppod/watcher/watcher.go:69
↓ 32 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
pkg/driver/node/mounter/mocks/mock_mount.go:36
↓ 29 callersFunctionNew
New creates a new [Provider] with given client.
pkg/driver/node/credentialprovider/provider.go:181
↓ 29 callersFunctioncreatePod
(ctx context.Context, client clientset.Interface, namespace string, pod *v1.Pod)
tests/e2e-kubernetes/testsuites/util.go:191
↓ 29 callersFunctionwaitForObjectToDisappear
waitForObjectToDisappear waits until `obj` disappears in the control plane.
tests/controller/controller_test.go:2102
↓ 25 callersMethodIsMountPoint
(target string)
pkg/driver/node/mounter/mounter.go:17
↓ 24 callersFunctionOpenDevNull
OpenDevNull opens `/dev/null` and returns the file handle.
pkg/driver/node/mounter/mountertest/mounter.go:12
↓ 24 callersFunctionwaitForObject
waitForObject waits until `obj` appears in the control plane.
tests/controller/controller_test.go:2013
↓ 23 callersMethodMountpointPod
MountpointPod returns a new Mountpoint Pod spec to schedule for given `node`, `pv` and `priorityClassKind`.
pkg/podmounter/mppod/creator.go:104
↓ 22 callersFunctioninitNodeServerTestEnv
(t *testing.T)
pkg/driver/node/node_test.go:30
↓ 22 callersFunctionwaitAndVerifyMountpointPodFromPodAttachment
waitAndVerifyMountpointPodFromPodAttachment waits and verifies Mountpoint Pod scheduled for given `s3pa`, `pod` and `vol.`
tests/controller/controller_test.go:1907
↓ 21 callersFunctioncheckReadFromPath
(ctx context.Context, f *framework.Framework, pod *v1.Pod, path string, toWrite int, seed int64)
tests/e2e-kubernetes/testsuites/util.go:74
↓ 20 callersMethodExit
Exit makes Wait() return with the given code and stderr.
cmd/aws-s3-csi-daemonset-mounter/process_manager_test.go:45
↓ 19 callersFunctionwaitForS3PodAttachmentWithFields
waitForS3PodAttachmentWithFields waits until a MountpointS3PodAttachment matching specified node and pv appears in the cluster
tests/controller/controller_test.go:2026
↓ 18 callersMethodList
List returns all pods from watcher's cache.
pkg/podmounter/mppod/watcher/watcher.go:74
↓ 18 callersFunctioncheckWriteToPath
(ctx context.Context, f *framework.Framework, pod *v1.Pod, path string, toWrite int, seed int64)
tests/e2e-kubernetes/testsuites/util.go:58
↓ 17 callersMethodCleanup
(cleanupCtx CleanupContext)
pkg/driver/node/credentialprovider/provider.go:63
↓ 17 callersMethodDelete
Delete deletes the environment variable with the specified key.
pkg/driver/node/envprovider/provider.go:106
↓ 17 callersMethodNodePublishVolume
(ctx context.Context, req *csi.NodePublishVolumeRequest)
pkg/driver/node/node.go:82
↓ 17 callersFunctionPathOnHost
PathOnHost returns the full path on the host that refers to `path` inside Mountpoint Pod. This function should be used in the CSI Driver Node Pod whic
pkg/podmounter/mppod/path.go:37
↓ 17 callersFunctionnewHeadroomPod
(workloadPodUID string)
cmd/aws-s3-csi-controller/csicontroller/stale_attachment_cleaner_test.go:256
↓ 16 callersMethodWait
()
cmd/aws-s3-csi-daemonset-mounter/process_runner.go:19
↓ 14 callersMethodRemove
Remove removes given key, it returns the key's value and whether the key was found.
pkg/mountpoint/args.go:126
↓ 14 callersMethodSortedList
SortedList returns ordered list of normalized arguments.
pkg/mountpoint/args.go:135
↓ 14 callersFunctionwithVolumeAttributes
withVolumeAttributes returns a `volumeModifier` that updates volume to have given volume attributes.
tests/controller/controller_test.go:1722
↓ 13 callersMethodHas
Has returns whether given key exists in [Args].
pkg/mountpoint/args.go:120
↓ 13 callersFunctioncreatePodWithServiceAccount
(ctx context.Context, client clientset.Interface, namespace string, pvclaims []*v1.PersistentVolumeClaim, serv
tests/e2e-kubernetes/testsuites/util.go:209
↓ 13 callersFunctionnewS3PA
(name string, attachments map[string][]crdv2.WorkloadAttachment)
cmd/aws-s3-csi-controller/csicontroller/reconciler_recover_test.go:175
↓ 13 callersFunctionserviceAccountTokens
(t *testing.T, tokens tokens)
pkg/driver/node/credentialprovider/provider_test.go:1381
↓ 13 callersFunctionwaitForHeadroomPodForWorkload
waitForHeadroomPodForWorkload waits and returns the Headroom Pod for the given workload.
tests/controller/controller_test.go:1795
↓ 12 callersMethodPrepareTest
(ctx context.Context, f *f.Framework)
tests/e2e-kubernetes/testdriver.go:73
↓ 12 callersFunctionfindMountpointPodNameForWorkload
findMountpointPodNameForWorkload tries to found Mountpoint Pod name that `workloadUID` is assigned to in given `s3pa`, it returns an empty string if n
tests/controller/controller_test.go:1933
↓ 12 callersFunctionsetup
(t *testing.T)
pkg/driver/node/mounter/pod_mounter_test.go:68
↓ 12 callersFunctionverifyHeadroomPodFor
verifyHeadroomPodFor verifies given `headroomPood` for given `pod` and `vol`.
tests/controller/controller_test.go:1978
↓ 11 callersMethodStart
(cmd *exec.Cmd)
cmd/aws-s3-csi-daemonset-mounter/process_runner.go:25
↓ 11 callersFunctioncontextWithVolumeAttributes
contextWithVolumeAttributes enhances given context with given volume attributes. This value is used by `s3Volume.CreateVolume` and `s3Volume.GetPersis
tests/e2e-kubernetes/testsuites/credentials.go:1429
↓ 11 callersFunctionnewWorkloadPod
()
cmd/aws-s3-csi-controller/csicontroller/stale_attachment_cleaner_test.go:245
↓ 11 callersMethodsucceed
succeed simulates `testPod` to be succeeded running.
tests/controller/controller_test.go:1544
↓ 11 callersFunctionwithServiceAccount
withServiceAccount returns a `podModifier` that sets ServiceAccountName.
tests/controller/controller_test.go:1631
↓ 10 callersMethodSet
Set sets or replaces value of given key.
pkg/mountpoint/args.go:100
↓ 10 callersFunctionWorkloadHasLabelPodForHeadroomPod
WorkloadHasLabelPodForHeadroomPod returns whether the `workloadPod` is labelled with [LabelHeadroomForWorkload].
pkg/podmounter/mppod/headroom.go:141
↓ 10 callersFunctioncreateMountpointPod
(testCtx *testCtx)
pkg/driver/node/mounter/pod_mounter_test.go:692
↓ 10 callersMethodrun
()
pkg/driver/node/mounter/pod_mounter_test.go:713
↓ 10 callersFunctionserviceAccount
(name, namespace string, annotations map[string]string)
pkg/driver/node/credentialprovider/provider_test.go:1387
↓ 10 callersFunctionwithCSIDriver
withCSIDriver returns a `volumeModifier` that updates volume to use given CSI Driver.
tests/controller/controller_test.go:1715
↓ 10 callersFunctionwithSchedulingGates
withSchedulingGates returns a `podModifier` that sets given scheduling gates.
tests/controller/controller_test.go:1645
↓ 9 callersFunctionGetVersion
GetVersion returns a `VersionInfo`.
pkg/driver/version/version.go:28
↓ 9 callersMethodMerge
Merge adds all key-value pairs from the given environment to the current environment. If a key exists in both environments, the value from the given e
pkg/driver/node/envprovider/provider.go:117
↓ 9 callersFunctionNewProcessManager
(commDir string, runner ProcessRunner)
cmd/aws-s3-csi-daemonset-mounter/process_manager.go:35
↓ 9 callersFunctionRun
Run runs Mountpoint with given options until completion and returns its exit code and its error (if any).
cmd/aws-s3-csi-mounter/csimounter/csimounter.go:38
↓ 9 callersMethodShutdown
Shutdown sends SIGTERM to all processes and waits for them to exit.
cmd/aws-s3-csi-daemonset-mounter/process_manager.go:118
↓ 9 callersFunctionassertWebIdentityTokenFile
(t *testing.T, path string)
pkg/driver/node/credentialprovider/provider_test.go:1360
↓ 9 callersFunctionawsConfig
(ctx context.Context)
tests/e2e-kubernetes/testsuites/util.go:324
↓ 9 callersFunctioncheckListingPathWithEntries
(ctx context.Context, f *framework.Framework, pod *v1.Pod, path string, entries []string)
tests/e2e-kubernetes/testsuites/util.go:87
↓ 9 callersMethodreceiveMountOptions
receiveMountOptions will receive mount options sent to the Mountpoint Pod. This operation will block in place, and ideally should be called from a sep
pkg/driver/node/mounter/pod_mounter_test.go:723
↓ 9 callersMethodwaitUntilSchedulingUngated
waitUntilSchedulingUngated waits until all scheduling gates are removed from `testPod` and its ready to be scheduled.
tests/controller/controller_test.go:1537
↓ 8 callersFunctionCreate
Create creates an AWS Profile with credentials and config files from given credentials. Created credentials and config files can be clean up with [Cle
pkg/driver/node/credentialprovider/awsprofile/aws_profile.go:76
↓ 8 callersMethodHeadroomPod
HeadroomPod returns a new Headroom Pod spec for the given `workloadPod` and `pv`. This Headroom Pod serves as a capacity headroom to allow scheduling
pkg/podmounter/mppod/headroom.go:41
↓ 8 callersMethodLaunch
Launch spawns a Mountpoint process for the given mount and waits for it asynchronously. Takes ownership of options.Fd, caller must not close it after
cmd/aws-s3-csi-daemonset-mounter/process_manager.go:46
↓ 8 callersFunctionPathInsideMountpointPod
PathInsideMountpointPod returns the full path that refers to `path` inside Mountpoint Pod. This function should be used in the Mountpoint Pod.
pkg/podmounter/mppod/path.go:48
↓ 8 callersMethodSet
Set adds or updates the environment variable with the specified key and value.
pkg/driver/node/envprovider/provider.go:111
↓ 8 callersMethodUnmount
(ctx context.Context, target string, credentialCtx credentialprovider.CleanupContext)
pkg/driver/node/mounter/mounter.go:16
↓ 8 callersFunctioncreateRole
(ctx context.Context, f *framework.Framework, assumeRolePolicyDocument string, policyNames ...string)
tests/e2e-kubernetes/testsuites/credentials.go:1066
↓ 8 callersMethodisPending
isPending checks if a resource is marked as pending based on the given field filters. Returns true if the resource is pending, false otherwise.
cmd/aws-s3-csi-controller/csicontroller/expectations.go:32
↓ 7 callersMethodSetIfAbsent
SetIfAbsent sets value of given key only if that key does not exist.
pkg/mountpoint/args.go:107
↓ 7 callersMethodValue
Value extracts value of given key, it returns extracted value and whether the key was found.
pkg/mountpoint/args.go:114
↓ 7 callersMethodhelpMessageForGettingMountpointLogs
helpMessageForGettingMountpointLogs returns a help message to troubleshoot Mountpoint failures.
pkg/driver/node/mounter/pod_mounter.go:519
↓ 7 callersMethodrecoverFromDuplicateS3PodAttachments
recoverFromDuplicateS3PodAttachments is a defense-in-depth handler for duplicate S3PAs sharing the same field-tuple. Deletes duplicates that reference
cmd/aws-s3-csi-controller/csicontroller/reconciler.go:434
↓ 7 callersMethodsetPending
setPending marks a resource as pending based on the given field filters. This is typically used when a create operation is initiated.
cmd/aws-s3-csi-controller/csicontroller/expectations.go:25
↓ 7 callersMethodterminate
terminate simulates `testPod` to be terminating.
tests/controller/controller_test.go:1592
↓ 7 callersFunctionwaitAndVerifyS3PodAttachmentAndMountpointPodWithMinVersionAndExpectedField
waitAndVerifyS3PodAttachmentAndMountpointPodWithMinVersionAndExpectedField waits and verifies that MountpointS3PodAttachment with `minVersion` and Mou
tests/controller/controller_test.go:1882
↓ 6 callersFunctionCleanRegionEnv
CleanRegionEnv ensures that no AWS Region environment variables are set in the test case `t`. The calling process of `go test` may contain environment
pkg/util/testutil/env.go:9
↓ 6 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
pkg/api/v2/zz_generated.deepcopy.go:103
↓ 6 callersFunctionNewCreator
NewCreator creates a new creator with the given `config`.
pkg/podmounter/mppod/creator.go:99
↓ 6 callersFunctionReplaceFile
ReplaceFile safely replaces a file with a new file by copying to a temporary location first then renaming.
pkg/util/file.go:13
↓ 6 callersFunctionassertS3PADeleted
(t *testing.T, c client.Client, name string)
cmd/aws-s3-csi-controller/csicontroller/reconciler_recover_test.go:226
↓ 6 callersFunctioncheckDeletingPath
(ctx context.Context, f *framework.Framework, pod *v1.Pod, path string)
tests/e2e-kubernetes/testsuites/util.go:79
↓ 6 callersFunctioncheckWriteToPathFails
(ctx context.Context, f *framework.Framework, pod *v1.Pod, path string, toWrite int, seed int64)
tests/e2e-kubernetes/testsuites/util.go:68
↓ 6 callersFunctioncreateVolumeResource
(ctx context.Context, config *storageframework.PerTestConfig, pattern storageframework.TestPattern, accessMode
tests/e2e-kubernetes/testsuites/util.go:97
↓ 6 callersFunctioncsiDriverDaemonSet
(ctx context.Context, f *framework.Framework)
tests/e2e-kubernetes/testsuites/util.go:289
↓ 6 callersFunctionfailedToParseQuantityError
failedToParseQuantityError creates an error if provided quantity is not parsable.
pkg/podmounter/mppod/creator.go:417
↓ 6 callersFunctiongetMPPodLock
getMPPodLock retrieves or creates a lock for the specified pod name. It increments the reference count for existing locks. The caller is responsible f
pkg/driver/node/mounter/mppod_lock.go:49
↓ 6 callersFunctionkillCSIDriverPods
In some cases like changing Secret object, it's useful to trigger recreation of our pods.
tests/e2e-kubernetes/testsuites/util.go:241
↓ 6 callersFunctionoverrideServiceAccountRole
overrideServiceAccountRole overrides and updates given Service Account's EKS Role ARN annotation. This causes pod's using this Service Account to assu
tests/e2e-kubernetes/testsuites/credentials.go:1322
next →1–100 of 680, ranked by callers