Skip to content

Commit 48d49f7

Browse files
Merge pull request kubernetes-sigs#16 from jsafrane/rebase-v1.3.1
Bug 1988373: Rebase v1.3.1 for OCP 4.9
2 parents 5aa8f1d + 8465a19 commit 48d49f7

File tree

358 files changed

+43887
-2567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+43887
-2567
lines changed

CHANGELOG/CHANGELOG-1.2.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# v1.2.2 - Changelog since v1.2.1
2+
3+
## Changes by Kind
4+
5+
### Feature
6+
7+
- Update base image to buster-1.6.0 ([#760](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/760), [@cpanato](https://github.com/cpanato))
8+
9+
- Update base image to buster-1.5.0. ([#755](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/755), [@mattcary](https://github.com/mattcary))
10+
11+
## Dependencies
12+
13+
### Added
14+
_Nothing has changed._
15+
16+
### Changed
17+
_Nothing has changed._
18+
19+
### Removed
20+
_Nothing has changed._
21+
22+
23+
# v1.2.1 - Changelog since v1.2.0
24+
25+
## Tests
26+
27+
- Update kustomize to 3.9.4 ([703](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/703), [@saikat-royc](https://github.com/saikat-royc))
28+
- Fix cluster list parsing for latest gcloud version ([720](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/720), [@verult](https://github.com/verult))
29+
30+
## Other
31+
32+
- Remove Probe logging ([682](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/682), [@Jiawei0227](https://github.com/Jiawei0227))
33+
- Round up pdcsi driver size in CreateVolume ([684](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/684), [@Jiawei0227](https://github.com/Jiawei0227))
34+
- Add gce disk labels support via create volume parameters ([718](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/718), [@mattcary](https://github.com/mattcary))
35+
- Emit GKE PDCSI component version metric ([719](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/719), [@saikat-royc](https://github.com/saikat-royc))
36+
- Add cloudbuild configuration to build the image gcp-compute-persistent-disk-csi-driver ([734](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/734), [@cpanato](https://github.com/cpanato))
37+
- Bump go to the latest 1.13 available in Dockerfile ([734](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/734), [@cpanato](https://github.com/cpanato))
38+
39+
# v1.2.0 - Changelog since v1.1.0
40+
41+
## Features
42+
43+
- Improved Windows Support
44+
- Add Disk online/offline logic in nodeStageVolume/nodeUnstageVolume calls for Windows. This requires the CSI Proxy `disk.v1beta2` group, which is only available in CSI proxy v0.2.2+. ([#661](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/661), [@jingxu97](https://github.com/jingxu97))
45+
46+
## Bugs or Regressions
47+
48+
- Fix "volume is mounted" check during NodePublishVolume for Windows ([#666](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/666), [@jingxu97](https://github.com/jingxu97))
49+
- Add empty string check on returned volumeIds to avoid nil pointer panic ([#673](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/673), [@jingxu97](https://github.com/jingxu97))
50+
51+
## Tests
52+
53+
- Update kustomizer to 3.8.6. ([#661](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/661), [@jingxu97](https://github.com/jingxu97))
54+
- Updates named pipe path in node.yaml for base deployment overlay to use CSI proxy disk v1beta2 (previously v1beta1) for Windows. ([#669](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/669), [@jingxu97](https://github.com/jingxu97))
55+
- Fix node version check for node skew tests. ([#645](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/645), [@saikat-royc](https://github.com/saikat-royc))
56+
- Add run-k8s-integration-ci.sh that the prow driver now expects to be in each release. ([#655](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/655), [@mattcary](https://github.com/mattcary))
57+
- Use node version on GKE when detecting XFS compatibility. ([#656](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/656), [@mattcary](https://github.com/mattcary))
58+
- Skip Pod fsgroupchange policy tests for < 1.20 k8s. ([#667](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/667), [@saikat-royc](https://github.com/saikat-royc))
59+
- Shorten the GKE cluster name. ([#671](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/671), [@saikat-royc](https://github.com/saikat-royc))
60+
61+
## Documentation
62+
63+
No notable changes.
64+
65+
## Dependencies
66+
67+
### Added
68+
_Nothing has changed._
69+
70+
### Changed
71+
- github.com/kubernetes-csi/csi-proxy/client: [v0.2.1 → v0.2.2](https://github.com/kubernetes-csi/csi-proxy/client/compare/v0.2.1...v0.2.2)
72+
73+
### Removed
74+
_Nothing has changed._

CHANGELOG/CHANGELOG-1.3.md

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# v1.3.1 - Changelog since v1.3.0
2+
3+
### Issues
4+
5+
- Fixes issue where `ControllerPublishVolume` is called repeatly if gke nodes are in different cloud zones than the gke controller ([#817](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/817), [@leiyiz](https://github.com/leiyiz))
6+
7+
## Dependencies
8+
9+
### Added
10+
_Nothing has changed._
11+
12+
### Changed
13+
_Nothing has changed._
14+
15+
### Removed
16+
_Nothing has changed._
17+
18+
# v1.3.0 - Changelog since v1.2.2
19+
20+
### Feature
21+
22+
- A new `k8s-tag-cluster-id` command line option has been added. If specified, the resulting PD disk will be labeled with "kubernetes_io_cluster_<cluster ID>": "owned". ([#693](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/693), [@tsmetana](https://github.com/tsmetana))
23+
- Add cloudbuild config to build gcp-compute-persistent-disk-csi-driver image ([#724](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/724), [@cpanato](https://github.com/cpanato))
24+
- Added Support for Windows Server 2004 and 20H2. ([#691](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/691), [@jeremyje](https://github.com/jeremyje))
25+
- Bumped csi-proxy client library to v1.0.0 ([#738](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/738), [@mauriciopoppe](https://github.com/mauriciopoppe))
26+
- It is now possible to access snapshots and volumes across different projects. ([#782](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/782), [@christian-roggia](https://github.com/christian-roggia))
27+
- Updating the following image versions in stable deployment specs:
28+
- csi-provisioner: v2.1.0
29+
- csi-attacher: v3.1.0
30+
- csi-resizer: v1.1.0
31+
- csi-snapshotter: v3.0.3
32+
- csi-node-driver-registrar: v2.1.0
33+
- Adding a liveness probe to restart a sidecar if it fails leader election health check. ([#699](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/699), [@verult](https://github.com/verult))
34+
- Users will be able to set the storage locations for snapshots by specifying them in the snapshot class. ([#793](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/793), [@TeweiLuo](https://github.com/TeweiLuo))
35+
- Disk labels support via CreateVolume (and hence StorageClass) parameters ([#718](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/718), [@mattcary](https://github.com/mattcary))
36+
37+
### Documentation
38+
39+
- Documentation for overlays ([#708](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/708), [@saikat-royc](https://github.com/saikat-royc))
40+
- Update README for overlays ([#715](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/715), [@saikat-royc](https://github.com/saikat-royc))
41+
42+
### Failing Test
43+
44+
- V1 CSIDriver resources are deployed for 1.18+ clusters. ([#783](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/783), [@mattcary](https://github.com/mattcary))
45+
46+
### Bug or Regression
47+
48+
- Do not run controller service in node. ([#702](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/702), [@mattcary](https://github.com/mattcary))
49+
- Fix a bug that CreateVolume should round up the request_bytes. ([#684](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/684), [@Jiawei0227](https://github.com/Jiawei0227))
50+
- It is now possible to mount a volume with XFS filesystem and its restored snapshot. ([#788](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/788), [@jsafrane](https://github.com/jsafrane))
51+
52+
### Other (Cleanup or Flake)
53+
54+
- Emit GKE component version metric ([#719](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/719), [@saikat-royc](https://github.com/saikat-royc))
55+
56+
### Uncategorized
57+
58+
- Remove probe logging to reduce noise ([#682](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/682), [@Jiawei0227](https://github.com/Jiawei0227))
59+
60+
## Dependencies
61+
62+
### Added
63+
- k8s.io/klog/v2: v2.4.0
64+
- k8s.io/mount-utils: v0.20.6
65+
66+
### Changed
67+
- github.com/Microsoft/go-winio: [v0.4.14 → v0.4.16](https://github.com/Microsoft/go-winio/compare/v0.4.14...v0.4.16)
68+
- github.com/go-logr/logr: [v0.1.0 → v0.2.0](https://github.com/go-logr/logr/compare/v0.1.0...v0.2.0)
69+
- github.com/kr/pretty: [v0.1.0 → v0.2.0](https://github.com/kr/pretty/compare/v0.1.0...v0.2.0)
70+
- github.com/kubernetes-csi/csi-proxy/client: [v0.2.2 → v1.0.0](https://github.com/kubernetes-csi/csi-proxy/client/compare/v0.2.2...v1.0.0)
71+
- github.com/pkg/errors: [v0.8.1 → v0.9.1](https://github.com/pkg/errors/compare/v0.8.1...v0.9.1)
72+
- github.com/stretchr/testify: [v1.4.0 → v1.6.1](https://github.com/stretchr/testify/compare/v1.4.0...v1.6.1)
73+
- gopkg.in/check.v1: 788fd78 → 41f04d3
74+
- gopkg.in/yaml.v3: 674ba3e → 9f266ea
75+
- k8s.io/utils: a9aa75a → 67b214c
76+
77+
### Removed
78+
_Nothing has changed._

Dockerfile

+15-7
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,28 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.13.4 as builder
15+
ARG BUILDPLATFORM
16+
17+
FROM --platform=$BUILDPLATFORM golang:1.13.15 as builder
18+
19+
ARG STAGINGVERSION
20+
ARG TARGETPLATFORM
21+
1622
WORKDIR /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
1723
ADD . .
18-
RUN make
24+
RUN GOARCH=$(echo $TARGETPLATFORM | cut -f2 -d '/') GCE_PD_CSI_STAGING_VERSION=$STAGINGVERSION make gce-pd-driver
1925

2026
# MAD HACKS: Build a version first so we can take the scsi_id bin and put it somewhere else in our real build
21-
FROM k8s.gcr.io/build-image/debian-base-amd64:v2.1.3 as base
22-
RUN clean-install udev
27+
FROM k8s.gcr.io/build-image/debian-base:buster-v1.6.0 as mad-hack
28+
RUN ln -s /bin/rm /usr/sbin/rm \
29+
&& clean-install udev
2330

2431
# Start from Kubernetes Debian base
25-
FROM k8s.gcr.io/build-image/debian-base-amd64:v2.1.3
32+
FROM k8s.gcr.io/build-image/debian-base:buster-v1.6.0
2633
COPY --from=builder /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/bin/gce-pd-csi-driver /gce-pd-csi-driver
2734
# Install necessary dependencies
28-
RUN clean-install util-linux e2fsprogs mount ca-certificates udev xfsprogs
29-
COPY --from=base /lib/udev/scsi_id /lib/udev_containerized/scsi_id
35+
RUN ln -s /bin/rm /usr/sbin/rm \
36+
&& clean-install util-linux e2fsprogs mount ca-certificates udev xfsprogs
37+
COPY --from=mad-hack /lib/udev/scsi_id /lib/udev_containerized/scsi_id
3038

3139
ENTRYPOINT ["/gce-pd-csi-driver"]

Dockerfile.Windows

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
# limitations under the License.
1414

1515
ARG BASE_IMAGE
16-
ARG BASE_IMAGE_TAG
17-
FROM --platform=$BUILDPLATFORM golang:1.13.4 AS builder
16+
FROM --platform=$BUILDPLATFORM golang:1.13.15 AS builder
1817

1918
ARG TARGETPLATFORM
2019
ARG BUILDPLATFORM
@@ -23,7 +22,7 @@ WORKDIR /code
2322
ADD . /code/
2423
RUN cd /code/ && GOARCH=$(echo $TARGETPLATFORM | cut -f2 -d '/') GCE_PD_CSI_STAGING_VERSION=${STAGINGVERSION} make gce-pd-driver-windows
2524

26-
FROM mcr.microsoft.com/windows/${BASE_IMAGE}:${BASE_IMAGE_TAG}
25+
FROM ${BASE_IMAGE}
2726
LABEL description="PD CSI driver"
2827
COPY --from=builder /code/bin/gce-pd-csi-driver.exe /gce-pd-csi-driver.exe
2928

Dockerfile.debug

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright 2021 The Kubernetes Authors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
FROM golang:1.13.15 as builder
16+
WORKDIR /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
17+
ADD . .
18+
19+
RUN CGO_ENABLED=0 go get -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv
20+
RUN GCE_PD_CSI_DEBUG=1 make gce-pd-driver
21+
22+
# MAD HACKS: Build a version first so we can take the scsi_id bin and put it somewhere else in our real build
23+
FROM k8s.gcr.io/build-image/debian-base-amd64:buster-v1.5.0 as mad-hack
24+
RUN clean-install udev
25+
26+
# Start from Kubernetes Debian base
27+
FROM k8s.gcr.io/build-image/debian-base-amd64:buster-v1.5.0
28+
29+
# Copy source code too to correlate the binary and the breakpoints
30+
WORKDIR /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
31+
ADD . .
32+
33+
COPY --from=builder /go/bin/dlv /go/bin/dlv
34+
35+
# Install necessary dependencies
36+
RUN clean-install util-linux e2fsprogs mount ca-certificates udev xfsprogs
37+
COPY --from=mad-hack /lib/udev/scsi_id /lib/udev_containerized/scsi_id
38+
39+
# PDCSI driver isn't copied to / because of delve not being able to correlate
40+
# the binary and the source code, instead just run the binary where it was
41+
# compiled, the overlay noauth-dev calls this binary
42+
ENTRYPOINT ["/go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/bin/gce-pd-csi-driver"]

0 commit comments

Comments
 (0)