chore: fix function names in comment (#7633)
Signed-off-by: clonefetch <c0217@outlook.com>pull/7609/head^2
parent
63fe9f1f1f
commit
474dc824e7
|
@ -164,7 +164,7 @@ func TestBackupProgressIsUpdated(t *testing.T) {
|
|||
assert.Len(t, req.BackedUpItems, req.Status.Progress.ItemsBackedUp)
|
||||
}
|
||||
|
||||
// TestBackupResourceFiltering runs backups with different combinations
|
||||
// TestBackupOldResourceFiltering runs backups with different combinations
|
||||
// of resource filters (included/excluded resources, included/excluded
|
||||
// namespaces, label selectors, "include cluster resources" flag), and
|
||||
// verifies that the set of items written to the backup tarball are
|
||||
|
@ -1430,7 +1430,7 @@ func TestBackupItemActionsForSkippedPV(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
// TestBackupActionsRunsForCorrectItems runs backups with backup item actions, and
|
||||
// TestBackupActionsRunForCorrectItems runs backups with backup item actions, and
|
||||
// verifies that each backup item action is run for the correct set of resources based on its
|
||||
// AppliesTo() resource selector. Verification is done by using the recordResourcesAction struct,
|
||||
// which records which resources it's executed for.
|
||||
|
|
|
@ -78,7 +78,7 @@ type V1CustomResourceDefinitionConditionBuilder struct {
|
|||
object apiextv1.CustomResourceDefinitionCondition
|
||||
}
|
||||
|
||||
// ForV1V1CustomResourceDefinitionConditionBuilder is the constructor for a V1CustomResourceDefinitionConditionBuilder.
|
||||
// ForV1CustomResourceDefinitionCondition is the constructor for a V1CustomResourceDefinitionConditionBuilder.
|
||||
func ForV1CustomResourceDefinitionCondition() *V1CustomResourceDefinitionConditionBuilder {
|
||||
return &V1CustomResourceDefinitionConditionBuilder{
|
||||
object: apiextv1.CustomResourceDefinitionCondition{},
|
||||
|
|
|
@ -410,7 +410,7 @@ func describeCSISnapshotInSF(details bool, info *volume.VolumeInfo, snapshotDeta
|
|||
snapshotDetails[fmt.Sprintf("%s/%s", info.PVCNamespace, info.PVCName)] = snapshotDetail
|
||||
}
|
||||
|
||||
// describeVSCInSF describes CSI volume snapshot contents in structured format.
|
||||
// describeLocalSnapshotInSF describes CSI volume snapshot contents in structured format.
|
||||
func describeLocalSnapshotInSF(details bool, info *volume.VolumeInfo, snapshotDetail map[string]interface{}) {
|
||||
if !info.PreserveLocalSnapshot {
|
||||
return
|
||||
|
|
|
@ -33,7 +33,7 @@ import (
|
|||
"github.com/vmware-tanzu/velero/pkg/plugin/velero"
|
||||
)
|
||||
|
||||
// TestChangeImageNameActionExecute runs the ChangeImageNameAction's Execute
|
||||
// TestChangeImageRepositoryActionExecute runs the ChangeImageNameAction's Execute
|
||||
// method and validates that the item's image name is modified (or not) as expected.
|
||||
// Validation is done by comparing the result of the Execute method to the test case's
|
||||
// desired result.
|
||||
|
|
|
@ -1491,7 +1491,7 @@ func (a *recordResourcesAction) WithAdditionalItems(items []velero.ResourceIdent
|
|||
return a
|
||||
}
|
||||
|
||||
// TestRestoreActionsRunsForCorrectItems runs restores with restore item actions, and
|
||||
// TestRestoreActionsRunForCorrectItems runs restores with restore item actions, and
|
||||
// verifies that each restore item action is run for the correct set of resources based on its
|
||||
// AppliesTo() resource selector. Verification is done by using the recordResourcesAction struct,
|
||||
// which records which resources it's executed for.
|
||||
|
|
|
@ -39,7 +39,7 @@ func (f *fakeCredentialsFileStore) Path(*corev1api.SecretKeySelector) (string, e
|
|||
return f.path, f.err
|
||||
}
|
||||
|
||||
// NewFakeCredentialFileStore creates a FileStore which will return the given path
|
||||
// NewFakeCredentialsFileStore creates a FileStore which will return the given path
|
||||
// and error when Path is called.
|
||||
func NewFakeCredentialsFileStore(path string, err error) FileStore {
|
||||
return &fakeCredentialsFileStore{
|
||||
|
|
|
@ -95,7 +95,7 @@ func (sr *shimRepository) FindManifests(ctx context.Context, labels map[string]s
|
|||
return GetKopiaManifestEntries(metadata), nil
|
||||
}
|
||||
|
||||
// GetKopiaManifestEntries get metadata from specific ManifestEntryMetadata
|
||||
// GetKopiaManifestEntry get metadata from specific ManifestEntryMetadata
|
||||
func GetKopiaManifestEntry(uMani *udmrepo.ManifestEntryMetadata) *manifest.EntryMetadata {
|
||||
var ret manifest.EntryMetadata
|
||||
|
||||
|
|
Loading…
Reference in New Issue