Skip to content

Commit

Permalink
Add build image info
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamdy-khader committed Aug 22, 2023
1 parent 19beb8a commit 3c968ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ image: spdkcsi
@if [ -n $(HTTP_PROXY) ]; then \
proxy_opt="--build-arg http_proxy=$(HTTP_PROXY) --build-arg https_proxy=$(HTTP_PROXY)"; \
fi; \
docker login -u hamdykhader -p hamdy123456 \
docker login -u hamdykhader -p hamdy123456 ; \
docker build -t $(CSI_IMAGE) $$proxy_opt \
-f deploy/image/Dockerfile $(OUT_DIR)

Expand Down
9 changes: 9 additions & 0 deletions pkg/util/iscsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ func (node *nodeISCSI) DeleteVolume(lvolID string) error {
return nil
}

func (node *nodeISCSI) DeleteSnapshot(snapshotID string) error {
err := node.client.deleteVolume(snapshotID)
if err != nil {
return err
}
klog.V(5).Infof("snapshot deleted: %s", snapshotID)
return nil
}

// PublishVolume exports a volume through ISCSI target
func (node *nodeISCSI) PublishVolume(lvolID string) error {
exists, err := node.isVolumeCreated(lvolID)
Expand Down

0 comments on commit 3c968ba

Please sign in to comment.