Skip to content

Commit

Permalink
test git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Opulski committed Mar 10, 2022
1 parent 424fa5a commit cc4c26b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 44 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/helm-chart-lint.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/helm-chart-release.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
-
Expand Down
3 changes: 3 additions & 0 deletions cmd/nfs-subdir-external-provisioner/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ func (p *nfsProvisioner) Provision(ctx context.Context, options controller.Provi

func (p *nfsProvisioner) Delete(ctx context.Context, volume *v1.PersistentVolume) error {
path := volume.Spec.PersistentVolumeSource.NFS.Path
//basePath still needed later
basePath := filepath.Base(path)
//replace NFS Server Path with mountPath in Container
oldPath := strings.Replace(path, p.path, mountPath, 1)

if _, err := os.Stat(oldPath); os.IsNotExist(err) {
Expand All @@ -162,6 +164,7 @@ func (p *nfsProvisioner) Delete(ctx context.Context, volume *v1.PersistentVolume

case "delete":
return os.RemoveAll(oldPath)
//TODO: Remove empty folders

case "retain":
return nil
Expand Down

0 comments on commit cc4c26b

Please sign in to comment.