-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE-1045] Fake Attach Feature for Non-LVM-Block-Mode Volumes (#1046)
* fix pr validation startup failure Signed-off-by: Shi, Crane <[email protected]> * directly use generated file for fake attach block mode Signed-off-by: Shi, Crane <[email protected]> * still use loopback device wrap Signed-off-by: Shi, Crane <[email protected]> * refine code for creating fake device Signed-off-by: Shi, Crane <[email protected]> * fix go lint error Signed-off-by: Shi, Crane <[email protected]> * add mock func implementation Signed-off-by: Shi, Crane <[email protected]> * fix go lint Signed-off-by: Shi, Crane <[email protected]> * fix UT Signed-off-by: Shi, Crane <[email protected]> * refine func Signed-off-by: Shi, Crane <[email protected]> * support fake attach block mode with fake device, add removeLoopDevice, Signed-off-by: Shi, Crane <[email protected]> * fix go lint Signed-off-by: Shi, Crane <[email protected]> * refine Signed-off-by: Shi, Crane <[email protected]> * support clean fake device in fake-attach block-mode Signed-off-by: Shi, Crane <[email protected]> * support non-existing current fake device case Signed-off-by: Shi, Crane <[email protected]> * change fake device dir on host Signed-off-by: Shi, Crane <[email protected]> * refine log Signed-off-by: Shi, Crane <[email protected]> * support the case of get fake device info failure Signed-off-by: Shi, Crane <[email protected]> * clean fake device also in removal of fake-attach block-mode vol Signed-off-by: Shi, Crane <[email protected]> * if fake-device ann is invalid, re-create the fake device and update ann Signed-off-by: Shi, Crane <[email protected]> * fix Signed-off-by: Shi, Crane <[email protected]> * enhance Signed-off-by: Shi, Crane <[email protected]> * refine Signed-off-by: Shi, Crane <[email protected]> * refine Signed-off-by: Shi, Crane <[email protected]> * add comment Signed-off-by: Shi, Crane <[email protected]> * add UT Signed-off-by: Shi, Crane <[email protected]> * add UT Signed-off-by: Shi, Crane <[email protected]> * add UT Signed-off-by: Shi, Crane <[email protected]> * add UT Signed-off-by: Shi, Crane <[email protected]> * check loop device err shouldn't block subsequent op; clean fake device should also check loop device first Signed-off-by: Shi, Crane <[email protected]> * update fake-attach doc accordingly Signed-off-by: Shi, Crane <[email protected]> * fix typo Signed-off-by: Shi, Crane <[email protected]> * refine doc Signed-off-by: Shi, Crane <[email protected]> --------- Signed-off-by: Shi, Crane <[email protected]>
- Loading branch information
1 parent
8085a0a
commit 4c3fd07
Showing
11 changed files
with
634 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,21 +107,23 @@ jobs: | |
make install-controller-gen | ||
make generate-deepcopy | ||
- name: Verify Changed files | ||
uses: tj-actions/[email protected] | ||
id: changed_files | ||
with: | ||
files: | | ||
api/generated/v1/*.go | ||
api/v1/*/*.go | ||
'.(go)$' | ||
- name: Display changed files | ||
if: steps.changed_files.outputs.files_changed == 'true' | ||
run: | | ||
echo "Changed files: ${{ steps.changed_files.outputs.changed_files }}" | ||
- name: Perform action when files change. | ||
if: steps.changed_files.outputs.files_changed == 'true' | ||
run: | | ||
exit 1 | ||
# Temporarily comment out the forbidden 3rd-party action script from our github PR validation workflow | ||
# to fix our github PR validation startup failure. | ||
# - name: Verify Changed files | ||
# uses: tj-actions/[email protected] | ||
# id: changed_files | ||
# with: | ||
# files: | | ||
# api/generated/v1/*.go | ||
# api/v1/*/*.go | ||
# '.(go)$' | ||
# | ||
# - name: Display changed files | ||
# if: steps.changed_files.outputs.files_changed == 'true' | ||
# run: | | ||
# echo "Changed files: ${{ steps.changed_files.outputs.changed_files }}" | ||
# | ||
# - name: Perform action when files change. | ||
# if: steps.changed_files.outputs.files_changed == 'true' | ||
# run: | | ||
# exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.