Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency update #230

Merged
merged 4 commits into from
Dec 14, 2020
Merged

dependency update #230

merged 4 commits into from
Dec 14, 2020

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Dec 10, 2020

What type of PR is this?
/kind cleanup

What this PR does / why we need it:

The driver was known obsolete code (k/k/pkg/mount). Other packages have updates which potentially fix bugs.

Does this PR introduce a user-facing change?:

update of all dependencies

This is the result of:

release-tools/go-get-kubernetes.sh 1.20.0
sed -i -e 's/v0\.2[01]\.[0-9]-\(alpha\|rc\)\.[0-9]/v0.20.0/' go.mod
go mod tidy
go mod vendor

This brings in a newer golang/protobuf which no longer allows copying
Timestamp (found by "make test-vet"):

pkg/hostpath/controllerserver.go:355:26: assignment copies lock value to snapshot.CreationTime: google.golang.org/protobuf/types/known/timestamppb.Timestamp contains google.golang.org/protobuf/internal/impl.MessageState contains sync.Mutex
k8s.io/kubernetes/pkg/util/mount only exists in ancient Kubernetes
versions and should not be used anymore.
The RemoveLoopDevice was made internal and replaced with the DetachFileDevice
wrapper function which already includes code to look up the device:

func (v VolumePathHandler) DetachFileDevice(path string) error {
       loopPath, err := v.GetLoopDevice(path)
       if err != nil {
               if err.Error() == ErrDeviceNotFound {
                       klog.Warningf("DetachFileDevice: Couldn't find loopback device which takes file descriptor lock. device path: %q", path)
               } else {
                       return err
               }
       } else {
               if len(loopPath) != 0 {
                       err = removeLoopDevice(loopPath)
                       if err != nil {
                               return err
                       }
               }
       }
       return nil
}

The advantage is that the newer function continues when the device is
not found, which is what we want when cleaning up in an idempotent
way.

That it logs a warning in that case is less nice.
This is from `go get -u ./...`. Because CSI 1.3.0 requires
implementing ControllerGetVolume, we have add it.
@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note Denotes a PR that will be considered when it comes time to generate release notes. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 10, 2020
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Dec 10, 2020
@msau42
Copy link
Collaborator

msau42 commented Dec 14, 2020

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 14, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: msau42, pohly

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 14, 2020
@k8s-ci-robot k8s-ci-robot merged commit 7b85ab2 into kubernetes-csi:master Dec 14, 2020
xing-yang added a commit to xing-yang/csi-driver-host-path that referenced this pull request Nov 27, 2023
f8c8cc4 Merge pull request kubernetes-csi#237 from msau42/prow
b36b5bf Merge pull request kubernetes-csi#240 from dannawang0221/upgrade-go-version
adfddcc Merge pull request kubernetes-csi#243 from pohly/git-subtree-pull-fix
c465088 pull-test.sh: avoid "git subtree pull" error
7b175a1 Update csi-test version to v5.2.0
987c90c Update go version to 1.21 to match k/k
2c625d4 Add script to generate patch release notes
f9d5b9c Merge pull request kubernetes-csi#236 from mowangdk/feature/bump_csi-driver-host-path_version
b01fd53 Bump csi-driver-host-path version up to v1.12.0
984feec Merge pull request kubernetes-csi#234 from siddhikhapare/csi-tools
1f7e605 fixed broken links of testgrid dashboard
de2fba8 Merge pull request kubernetes-csi#233 from andyzhangx/andyzhangx-patch-1
cee895e remove windows 20H2 build since it's EOL long time ago
670bb0e Merge pull request kubernetes-csi#229 from marosset/fix-codespell-errors
35d5e78 Merge pull request kubernetes-csi#219 from yashsingh74/update-registry
63473cc Merge pull request kubernetes-csi#231 from coulof/bump-go-version-1.20.5
29a5c76 Merge pull request kubernetes-csi#228 from mowangdk/chore/adopt_kubernetes_recommand_labels
8dd2821 Update cloudbuild image with go 1.20.5
1df23db Merge pull request kubernetes-csi#230 from msau42/prow
1f92b7e Add ginkgo timeout to e2e tests to help catch any stuck tests
2b8b80e fixing some codespell errors
c10b678 Merge pull request kubernetes-csi#227 from coulof/check-sidecar-supported-versions
72984ec chore: adopt kubernetes recommand label
b055535 Header
bd0a10b typo
c39d73c Add comments
f6491af Script to verify EOL sidecar version
901bcb5 Update registry k8s.gcr.io -> registry.k8s.io

git-subtree-dir: release-tools
git-subtree-split: f8c8cc4
@xing-yang xing-yang mentioned this pull request Nov 27, 2023
TerryHowe pushed a commit to TerryHowe/csi-driver-host-path that referenced this pull request Oct 17, 2024
Add ginkgo timeout to e2e tests to help catch any stuck tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants