Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
package csi
import (
"bytes"
"context"
"fmt"
"github.com/kastenhq/kubestr/pkg/csi/types"
snapv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
"github.com/pkg/errors"
v1 "k8s.io/api/core/v1"
sv1 "k8s.io/api/storage/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/kubernetes"
"os"
"os/signal"
"sync"
"syscall"
)
type FileRestoreRunner struct {
KubeCli kubernetes . Interface
DynCli dynamic . Interface
restoreSteps FileRestoreStepper
restorePVC * v1 . PersistentVolumeClaim
pod * v1 . Pod
snapshot * snapv1 . VolumeSnapshot
}
func ( f * FileRestoreRunner ) RunFileRestore ( ctx context . Context , args * types . FileRestoreArgs ) error {
f . restoreSteps = & fileRestoreSteps {
validateOps : & validateOperations {
kubeCli : f . KubeCli ,
dynCli : f . DynCli ,
} ,
versionFetchOps : & apiVersionFetch {
kubeCli : f . KubeCli ,
} ,
createAppOps : & applicationCreate {
kubeCli : f . KubeCli ,
} ,
portForwardOps : & portforward { } ,
kubeExecutor : & kubeExec {
kubeCli : f . KubeCli ,
} ,
cleanerOps : & cleanse {
kubeCli : f . KubeCli ,
dynCli : f . DynCli ,
} ,
}
return f . RunFileRestoreHelper ( ctx , args )
}
func ( f * FileRestoreRunner ) RunFileRestoreHelper ( ctx context . Context , args * types . FileRestoreArgs ) error {
defer func ( ) {
2024-09-05 23:41:52 +00:00
f . restoreSteps . Cleanup ( ctx , args , f . restorePVC , f . pod )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
} ( )
if f . KubeCli == nil || f . DynCli == nil {
return fmt . Errorf ( "cli uninitialized" )
}
2024-09-05 23:41:52 +00:00
fmt . Println ( "Fetching the snapshot or PVC." )
vs , restorePVC , sourcePVC , sc , err := f . restoreSteps . ValidateArgs ( ctx , args )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
if err != nil {
return errors . Wrap ( err , "Failed to validate arguments." )
}
f . snapshot = vs
2024-09-05 23:41:52 +00:00
fmt . Println ( "Creating the browser pod & mounting the PVCs." )
2024-09-13 18:29:53 +00:00
var restoreMountPath string
f . pod , f . restorePVC , restoreMountPath , err = f . restoreSteps . CreateInspectorApplication ( ctx , args , f . snapshot , restorePVC , sourcePVC , sc )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
if err != nil {
return errors . Wrap ( err , "Failed to create inspector application." )
}
if args . Path != "" {
fmt . Printf ( "Restoring the file %s\n" , args . Path )
2024-09-13 18:29:53 +00:00
_ , err := f . restoreSteps . ExecuteCopyCommand ( ctx , args , f . pod , restoreMountPath )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
if err != nil {
return errors . Wrap ( err , "Failed to execute cp command in pod." )
}
2024-09-13 18:29:53 +00:00
if args . FromSnapshotName != "" {
fmt . Printf ( "File restored from VolumeSnapshot %s to Source PVC %s.\n" , f . snapshot . Name , sourcePVC . Name )
} else {
fmt . Printf ( "File restored from PVC %s to Source PVC %s.\n" , f . restorePVC . Name , sourcePVC . Name )
}
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
return nil
}
fmt . Println ( "Forwarding the port." )
err = f . restoreSteps . PortForwardAPod ( f . pod , args . LocalPort )
if err != nil {
return errors . Wrap ( err , "Failed to port forward Pod." )
}
return nil
}
//go:generate go run github.com/golang/mock/mockgen -destination=mocks/mock_file_restore_stepper.go -package=mocks . FileRestoreStepper
type FileRestoreStepper interface {
2024-09-05 23:41:52 +00:00
ValidateArgs ( ctx context . Context , args * types . FileRestoreArgs ) ( * snapv1 . VolumeSnapshot , * v1 . PersistentVolumeClaim , * v1 . PersistentVolumeClaim , * sv1 . StorageClass , error )
2024-09-13 18:29:53 +00:00
CreateInspectorApplication ( ctx context . Context , args * types . FileRestoreArgs , snapshot * snapv1 . VolumeSnapshot , restorePVC * v1 . PersistentVolumeClaim , sourcePVC * v1 . PersistentVolumeClaim , storageClass * sv1 . StorageClass ) ( * v1 . Pod , * v1 . PersistentVolumeClaim , string , error )
ExecuteCopyCommand ( ctx context . Context , args * types . FileRestoreArgs , pod * v1 . Pod , restoreMountPath string ) ( string , error )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
PortForwardAPod ( pod * v1 . Pod , localPort int ) error
2024-09-05 23:41:52 +00:00
Cleanup ( ctx context . Context , args * types . FileRestoreArgs , restorePVC * v1 . PersistentVolumeClaim , pod * v1 . Pod )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
type fileRestoreSteps struct {
validateOps ArgumentValidator
versionFetchOps ApiVersionFetcher
createAppOps ApplicationCreator
portForwardOps PortForwarder
cleanerOps Cleaner
kubeExecutor KubeExecutor
SnapshotGroupVersion * metav1 . GroupVersionForDiscovery
}
2024-09-05 23:41:52 +00:00
func ( f * fileRestoreSteps ) ValidateArgs ( ctx context . Context , args * types . FileRestoreArgs ) ( * snapv1 . VolumeSnapshot , * v1 . PersistentVolumeClaim , * v1 . PersistentVolumeClaim , * sv1 . StorageClass , error ) {
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
if err := args . Validate ( ) ; err != nil {
2024-09-05 23:41:52 +00:00
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate input arguments" )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
if err := f . validateOps . ValidateNamespace ( ctx , args . Namespace ) ; err != nil {
2024-09-05 23:41:52 +00:00
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate Namespace" )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
groupVersion , err := f . versionFetchOps . GetCSISnapshotGroupVersion ( )
if err != nil {
2024-09-05 23:41:52 +00:00
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to fetch groupVersion" )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
f . SnapshotGroupVersion = groupVersion
2024-09-05 23:41:52 +00:00
var snapshot * snapv1 . VolumeSnapshot
var restorePVC , sourcePVC * v1 . PersistentVolumeClaim
var sc * sv1 . StorageClass
if args . FromSnapshotName != "" {
fmt . Println ( "Fetching the snapshot." )
snapshot , err := f . validateOps . ValidateVolumeSnapshot ( ctx , args . FromSnapshotName , args . Namespace , groupVersion )
if err != nil {
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate VolumeSnapshot" )
}
if args . ToPVCName == "" {
fmt . Println ( "Fetching the source PVC from snapshot." )
if * snapshot . Spec . Source . PersistentVolumeClaimName == "" {
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to fetch source PVC. VolumeSnapshot does not have a PVC as it's source" )
}
sourcePVC , err = f . validateOps . ValidatePVC ( ctx , * snapshot . Spec . Source . PersistentVolumeClaimName , args . Namespace )
if err != nil {
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate source PVC" )
}
} else {
fmt . Println ( "Fetching the source PVC." )
sourcePVC , err = f . validateOps . ValidatePVC ( ctx , args . ToPVCName , args . Namespace )
if err != nil {
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate source PVC" )
}
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
2024-09-05 23:41:52 +00:00
sc , err = f . validateOps . ValidateStorageClass ( ctx , * sourcePVC . Spec . StorageClassName )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
if err != nil {
2024-09-05 23:41:52 +00:00
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate StorageClass for source PVC" )
}
uVSC , err := f . validateOps . ValidateVolumeSnapshotClass ( ctx , * snapshot . Spec . VolumeSnapshotClassName , groupVersion )
if err != nil {
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate VolumeSnapshotClass" )
}
vscDriver := getDriverNameFromUVSC ( * uVSC , groupVersion . GroupVersion )
if sc . Provisioner != vscDriver {
return nil , nil , nil , nil , fmt . Errorf ( "StorageClass provisioner (%s) and VolumeSnapshotClass driver (%s) are different." , sc . Provisioner , vscDriver )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
} else {
2024-09-05 23:41:52 +00:00
fmt . Println ( "Fetching the restore PVC." )
restorePVC , err = f . validateOps . ValidatePVC ( ctx , args . FromPVCName , args . Namespace )
if err != nil {
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate restore PVC" )
}
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
fmt . Println ( "Fetching the source PVC." )
2024-09-05 23:41:52 +00:00
sourcePVC , err = f . validateOps . ValidatePVC ( ctx , args . ToPVCName , args . Namespace )
if err != nil {
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate source PVC" )
}
_ , err = f . validateOps . ValidateStorageClass ( ctx , * restorePVC . Spec . StorageClassName )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
if err != nil {
2024-09-05 23:41:52 +00:00
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate StorageClass for restore PVC" )
}
sc , err = f . validateOps . ValidateStorageClass ( ctx , * sourcePVC . Spec . StorageClassName )
if err != nil {
return nil , nil , nil , nil , errors . Wrap ( err , "Failed to validate StorageClass for source PVC" )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
}
for _ , sourceAccessMode := range sourcePVC . Spec . AccessModes {
if sourceAccessMode == v1 . ReadWriteOncePod {
2024-09-05 23:41:52 +00:00
return nil , nil , nil , nil , fmt . Errorf ( "Unsupported %s AccessMode found in source PVC. Supported AccessModes are ReadOnlyMany & ReadWriteMany" , sourceAccessMode )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
}
2024-09-05 23:41:52 +00:00
return snapshot , restorePVC , sourcePVC , sc , nil
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
2024-09-13 18:29:53 +00:00
func ( f * fileRestoreSteps ) CreateInspectorApplication ( ctx context . Context , args * types . FileRestoreArgs , snapshot * snapv1 . VolumeSnapshot , restorePVC * v1 . PersistentVolumeClaim , sourcePVC * v1 . PersistentVolumeClaim , storageClass * sv1 . StorageClass ) ( * v1 . Pod , * v1 . PersistentVolumeClaim , string , error ) {
restoreMountPath := "/restore-pvc-data"
2024-09-05 23:41:52 +00:00
if args . FromSnapshotName != "" {
snapshotAPIGroup := "snapshot.storage.k8s.io"
snapshotKind := "VolumeSnapshot"
dataSource := & v1 . TypedLocalObjectReference {
APIGroup : & snapshotAPIGroup ,
Kind : snapshotKind ,
Name : snapshot . Name ,
}
pvcArgs := & types . CreatePVCArgs {
GenerateName : clonedPVCGenerateName ,
StorageClass : storageClass . Name ,
Namespace : args . Namespace ,
DataSource : dataSource ,
RestoreSize : snapshot . Status . RestoreSize ,
}
var err error
restorePVC , err = f . createAppOps . CreatePVC ( ctx , pvcArgs )
if err != nil {
2024-09-13 18:29:53 +00:00
return nil , nil , "" , errors . Wrap ( err , "Failed to restore PVC" )
2024-09-05 23:41:52 +00:00
}
2024-09-13 18:29:53 +00:00
restoreMountPath = "/snapshot-data"
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
podArgs := & types . CreatePodArgs {
GenerateName : clonedPodGenerateName ,
Namespace : args . Namespace ,
RunAsUser : args . RunAsUser ,
ContainerImage : "filebrowser/filebrowser:v2" ,
ContainerArgs : [ ] string { "--noauth" } ,
PVCMap : map [ string ] types . VolumePath {
restorePVC . Name : {
2024-09-13 18:29:53 +00:00
MountPath : fmt . Sprintf ( "/srv%s" , restoreMountPath ) ,
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
} ,
sourcePVC . Name : {
MountPath : "/srv/source-data" ,
} ,
} ,
}
if args . Path != "" {
podArgs = & types . CreatePodArgs {
GenerateName : clonedPodGenerateName ,
Namespace : args . Namespace ,
RunAsUser : args . RunAsUser ,
ContainerImage : "alpine:3.19" ,
Command : [ ] string { "/bin/sh" } ,
ContainerArgs : [ ] string { "-c" , "while true; do sleep 3600; done" } ,
PVCMap : map [ string ] types . VolumePath {
restorePVC . Name : {
2024-09-05 23:41:52 +00:00
MountPath : restoreMountPath ,
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
} ,
sourcePVC . Name : {
MountPath : "/source-data" ,
} ,
} ,
}
}
pod , err := f . createAppOps . CreatePod ( ctx , podArgs )
if err != nil {
2024-09-13 18:29:53 +00:00
return nil , restorePVC , "" , errors . Wrap ( err , "Failed to create browse Pod" )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
if err = f . createAppOps . WaitForPodReady ( ctx , args . Namespace , pod . Name ) ; err != nil {
2024-09-13 18:29:53 +00:00
return pod , restorePVC , "" , errors . Wrap ( err , "Pod failed to become ready" )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
2024-09-13 18:29:53 +00:00
return pod , restorePVC , restoreMountPath , nil
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
2024-09-13 18:29:53 +00:00
func ( f * fileRestoreSteps ) ExecuteCopyCommand ( ctx context . Context , args * types . FileRestoreArgs , pod * v1 . Pod , restoreMountPath string ) ( string , error ) {
command := [ ] string { "cp" , "-rf" , fmt . Sprintf ( "%s%s" , restoreMountPath , args . Path ) , fmt . Sprintf ( "/source-data%s" , args . Path ) }
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
stdout , err := f . kubeExecutor . Exec ( ctx , args . Namespace , pod . Name , pod . Spec . Containers [ 0 ] . Name , command )
if err != nil {
return "" , errors . Wrapf ( err , "Error running command:(%v)" , command )
}
return stdout , nil
}
func ( f * fileRestoreSteps ) PortForwardAPod ( pod * v1 . Pod , localPort int ) error {
var wg sync . WaitGroup
wg . Add ( 1 )
stopChan , readyChan , errChan := make ( chan struct { } , 1 ) , make ( chan struct { } , 1 ) , make ( chan string )
out , errOut := new ( bytes . Buffer ) , new ( bytes . Buffer )
cfg , err := f . portForwardOps . FetchRestConfig ( )
if err != nil {
return errors . New ( "Failed to fetch rest config" )
}
sigs := make ( chan os . Signal , 1 )
signal . Notify ( sigs , syscall . SIGINT , syscall . SIGTERM )
go func ( ) {
<- sigs
fmt . Println ( "\nStopping port forward." )
close ( stopChan )
wg . Done ( )
} ( )
go func ( ) {
pfArgs := & types . PortForwardAPodRequest {
RestConfig : cfg ,
Pod : pod ,
LocalPort : localPort ,
PodPort : 80 ,
OutStream : bytes . Buffer ( * out ) ,
ErrOutStream : bytes . Buffer ( * errOut ) ,
StopCh : stopChan ,
ReadyCh : readyChan ,
}
err = f . portForwardOps . PortForwardAPod ( pfArgs )
if err != nil {
errChan <- fmt . Sprintf ( "Failed to port forward (%s)" , err . Error ( ) )
}
} ( )
select {
case <- readyChan :
url := fmt . Sprintf ( "http://localhost:%d/" , localPort )
fmt . Printf ( "Port forwarding is ready to get traffic. visit %s\n" , url )
openbrowser ( url )
wg . Wait ( )
case msg := <- errChan :
return errors . New ( msg )
}
return nil
}
2024-09-05 23:41:52 +00:00
func ( f * fileRestoreSteps ) Cleanup ( ctx context . Context , args * types . FileRestoreArgs , restorePVC * v1 . PersistentVolumeClaim , pod * v1 . Pod ) {
if args . FromSnapshotName != "" {
fmt . Println ( "Cleaning up restore PVC." )
if restorePVC != nil {
err := f . cleanerOps . DeletePVC ( ctx , restorePVC . Name , restorePVC . Namespace )
if err != nil {
fmt . Println ( "Failed to delete restore PVC" , restorePVC )
}
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
}
}
2024-09-05 23:41:52 +00:00
fmt . Println ( "Cleaning up browser pod." )
Adding "./kubestr file-restore" command (#287)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding "./kubestr browse snapshot" command (#277)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing unused snapshot function parameter in cleanup
* Adding mock tests for SnapshotBrowserStepper
* Adding Deprecated msg to the 'browse' command
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Removing storage class flag
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Removing dummy ShowTree arg test
* Adding --show-tree flag to both "./kubestr browse pvc" & "./kubestr browse snapshot" commands (#278)
* Adding the kubestr browse pvc command. Handling kubestr browse support for backward compatibility.
* Adding browse snapshot command. Updating browse command to browse pvc command.
* chore(deps): bump github/codeql-action in the github-actions group (#272)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.25.12 to 3.25.13
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/4fa2a7953630fd2f3fb380f21be14ede0169dd4f...2d790406f505036ef40ecba973cc774a50395aac)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump docker/build-push-action in the docker group (#273)
Bumps the docker group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/build-push-action` from 6.3.0 to 6.4.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1a162644f9a7e87d8f4b053101d1d9a712edc18c...1ca370b3a9802c92e886402e0dd88098a2533b12)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing unused snapshot function parameter in cleanup
* Adding KubeExecutor Exec helper function to execute tree command
* Adding --show-tree logic in pvc_inspector.go
* Adding --show-tree logic in snapshot_inspector.go
* Printing out the tree structure for --show-tree
* Updating mock tests for new code changes
* Updating mount path in container args for creating a browse pod
* Updating the CSITestSuite.TestCreateInspectorApplication for changes in the mount path
* Adding Deprecated msg to the 'browse' command
* Adding mock tests for SnapshotBrowserStepper
* Adding fake tests for snapshot_inspector.go
* Renamed testcase CSITestSuite.TestCreateInspectorApplication to TestCreateInspectorApplicationForPVC
* Adding snapshot_inspector_steps_test.go
* Updating mock tests for new code changes
* Updating the mount paths in CSITestSuite.TestCreateInspectorApplicationForSnapshot
* Updating Deprecated msg for 'browse' command
* Making namespace, runAsUser & localport flags persistent
* Removing namespace, runAsUser & localport flags for browse snapshot because we made those persistent
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Updating namespace flag usage for better understanding
* Removing storage class flag
* Adding --show-tree logic in snapshot_inspector.go
* Updating mock objects for SnapshotBrowserStepper
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Removing storage class flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Adding --show-tree logic in snapshot_inspector.go
* Passing showTree var as function argument
* Making --show-tree a persistent flag
* Removing ShowTree dummy condition
* Removing duplicate browseSnapshotCmd
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
* Adding --show-tree flag for browse snapshot & browse pvc commands
* Making --show-tree a persistent flag
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the github-actions group across 1 directory with 2 updates (#282)
Bumps the github-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact).
Updates `github/codeql-action` from 3.25.13 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2d790406f505036ef40ecba973cc774a50395aac...afb54ba388a7dca6ecae48f608c4ff05ff4cc77a)
Updates `actions/upload-artifact` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/0b2256b8c012f0828dc542b3febcab082c67f72b...89ef406dd8d7e03cfd12d9e0a4a378f454709029)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the docker group across 1 directory with 4 updates (#283)
Bumps the docker group with 4 updates in the / directory: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).
Updates `docker/setup-qemu-action` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/5927c834f5b4fdf503fca6f4c7eccda82949e1ee...49b3bc8e6bdd4a60e6116a5414239cba5943d3cf)
Updates `docker/setup-buildx-action` from 3.4.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/4fd812986e6c8c2a69e18311145f9371337f27d4...988b5a0280414f521da01fcc63a27aeeb4b104db)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/0d4c9c5ea7693da7b068278f7b52bda2a190a446...9780b0c442fbb1117ed29e0efdff1e18412f7567)
Updates `docker/build-push-action` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/1ca370b3a9802c92e886402e0dd88098a2533b12...5176d81f87c23d6fc96624dfdbcd9f3830bbe445)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: docker
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#281)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* K10-23320: Fix function definition for Create and CreateFromSource (#274)
* fix function definition for Create and CreateFromSource
* update go mod
* update go mod
* update fakesnapshotter
* update create and createFromSource method
* change snapshot and content meta struct type
* sync kanister dependency
* Renamed struct
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency
* Sync kanister dependency to merge master commit
* Updating CreatePodArgs to consume PVC args in []string{} format instead of string (#285)
* Updating the PVCName, MountPath, DevicePath signature in CreatePodArgs
* Refactoring PVCName, MountPath, DevicePath variables into a single PVCMap with path definitions
* Removing unused PVCName variable from CreatePodArgs
* Updating DevicePath and MountPath error messages
* Removing placeholder test for browse snapshot and browse pvc
* Removing unused snapshotFetchOps from snapshotBrowserSteps
* Adding File restore command
* Adding mock objects and fake tests for file restore command
* Renaming file_restore_inspector.go
* Removing unused SnapshotFetcher interface
* Adding check for source PVC in Snapshot and supported accessModes in source PVC
* Adding --toPVC flag
* Fixing seg fault occurred because of the invalid error thrown in accessmodes check
* Removing check for ReadWriteOnce accessmode
* Update cmd/rootCmd.go
Co-authored-by: Sirish Bathina <sirish@kasten.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sirish Bathina <sirish@kasten.io>
Co-authored-by: saima sultana <sultanasaima506@gmail.com>
2024-08-20 20:46:05 +00:00
if pod != nil {
err := f . cleanerOps . DeletePod ( ctx , pod . Name , pod . Namespace )
if err != nil {
fmt . Println ( "Failed to delete Pod" , pod )
}
}
}