Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
ad5dd2b
add status Subresources for volumeSnapshot
wackxu Nov 2, 2018
9485506
update cluster role for snapshot status
wackxu Nov 21, 2018
e157b6b
update to Go 1.12.4
pohly Apr 15, 2019
0bee749
Merge pull request #18 from pohly/go-version
k8s-ci-robot Apr 15, 2019
603855f
Add Delete Volume Finalizer
xing-yang Oct 17, 2018
7dec039
Fix the default timeout in help msg
xing-yang Apr 27, 2019
b36da39
Merge pull request #118 from xing-yang/timeout
k8s-ci-robot Apr 27, 2019
a1b3374
Merge pull request #47 from xing-yang/delete_volume_finalizer
k8s-ci-robot Apr 29, 2019
26f95af
fix TODO use time.Time for createSnapshot & solute conflict
zhucan Apr 30, 2019
51a8bd8
add status subresources for volumeSnapshot & solute conflict
zhucan May 7, 2019
ae9a5ff
Update deployment images to v1.1.0
xing-yang May 8, 2019
dd61cbe
restart external-snapshotter failed
zhucan May 8, 2019
e49856e
Add groupName in doc.go when generating files
xing-yang May 9, 2019
3c03339
Merge pull request #119 from zhucan/68
k8s-ci-robot May 9, 2019
7030fe0
Merge pull request #122 from xing-yang/update_image_1.1.0
k8s-ci-robot May 10, 2019
567d14c
Merge pull request #123 from xing-yang/fake
k8s-ci-robot May 10, 2019
066143d
build.make: allow repos to use 'go mod' for vendoring
pohly May 10, 2019
0399988
Merge pull request #19 from pohly/go-mod-vendor
k8s-ci-robot May 13, 2019
95fc4bc
update snapshot yaml
zhucan May 14, 2019
10d6437
Merge branch 'master' into status-52
zhucan May 14, 2019
4f82209
run 'make -k all test' failed
zhucan May 14, 2019
2db3a1e
use 'UpdateStatus' failed
zhucan May 17, 2019
a23be2d
clean useless key 'subresources' in snapshot yaml
zhucan May 31, 2019
d3243e0
Merge pull request #121 from zhucan/status-52
k8s-ci-robot Jun 12, 2019
9a59d29
Add changelog for v1.2
xing-yang Jun 17, 2019
b3f591d
Merge pull request #127 from xing-yang/changelog_1.2
k8s-ci-robot Jun 19, 2019
b2f4e05
prow.sh: flexible test driver config
pohly Jul 8, 2019
db8abb6
Merge pull request #20 from pohly/test-driver-config
k8s-ci-robot Jul 8, 2019
a6f21d4
Add variables for 1.15
msau42 Jul 11, 2019
ecc7918
Update kind to v0.4.0. This requires overriding Kubernetes versions
msau42 Jul 11, 2019
4b6fa4a
Update hostpath version for sidecar testing to v1.2.0-rc2
msau42 Jul 11, 2019
4e31f07
Change default hostpath driver name to hostpath.csi.k8s.io
msau42 Jul 12, 2019
f4f73ce
Merge pull request #21 from msau42/add-1.15-jobs
k8s-ci-robot Jul 12, 2019
0c0dc30
prow.sh: tag master images with a large version number
msau42 Jul 15, 2019
1cac3af
Merge pull request #22 from msau42/add-1.15-jobs
k8s-ci-robot Jul 16, 2019
b2c5af6
release-tools: update
pohly Jul 16, 2019
7e9deea
Merge pull request #146 from pohly/prow-update-release-1.2
k8s-ci-robot Jul 16, 2019
999884e
Check if ListSnapshots is supported during GetSnapshotStatus
ggriffiths Jul 10, 2019
95fa4bb
Merge pull request #156 from hakanmemisoglu/release-1.2-list-snapshot…
k8s-ci-robot Aug 10, 2019
a8012f9
Add changelog for v1.2.1 release
xing-yang Aug 10, 2019
34fa9aa
Merge pull request #158 from xing-yang/changelog
k8s-ci-robot Aug 13, 2019
d51c3c5
Verify PV/PVC binding and driver
xing-yang Oct 8, 2019
4e966fa
Add change log for 1.2.2 release
xing-yang Oct 9, 2019
70c34a2
Merge pull request #173 from xing-yang/release-1.2
k8s-ci-robot Oct 9, 2019
d5da3c1
Merge pull request #174 from xing-yang/change_log_1.2.2
k8s-ci-robot Oct 9, 2019
e4f5115
Merge tag 'v1.2.2' into rebase-1.2.2
jsafrane Oct 14, 2019
ce2dcfd
UPSTREAM: <carry>: Use golang 1.12 in OpenShift
jsafrane Oct 14, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGELOG-1.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Changelog since v1.2.1

## Notable Changes

- Cherry picks PR #172: Added extra verification of source PersistentVolumeClaim before creating snapshot.([#173](https://github.com/kubernetes-csi/external-snapshotter/pull/173), [@xing-yang](https://github.com/xing-yang))

# Changelog since v1.2.0

## Notable Changes

- Cherry picks PR #138: Prebound snapshots will work correctly with CSI drivers that does not support ListSnasphots.([#156](https://github.com/kubernetes-csi/external-snapshotter/pull/156), [@hakanmemisoglu](https://github.com/hakanmemisoglu))

# Changelog since v1.1.0

## Breaking Changes

- Changes the API group name for the fake VolumeSnapshot object to "snapshot.storage.k8s.io" to be in-sync with the group name of the real VolumeSnapshot object. As a result, the generated interfaces for clientset and informers of VolumeSnapshot are also changed from "VolumeSnapshot" to "Snapshot". ([#123](https://github.com/kubernetes-csi/external-snapshotter/pull/123), [@xing-yang](https://github.com/xing-yang))

## New Features

- Adds Finalizer on the snapshot source PVC to prevent it from being deleted when a snapshot is being created from it. ([#47](https://github.com/kubernetes-csi/external-snapshotter/pull/47), [@xing-yang](https://github.com/xing-yang))

## Other Notable Changes

- Add Status subresource for VolumeSnapshot. ([#121](https://github.com/kubernetes-csi/external-snapshotter/pull/121), [@zhucan](https://github.com/zhucan))
2 changes: 1 addition & 1 deletion Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.11 AS builder
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.12 AS builder
WORKDIR /go/src/github.com/kubernetes-csi/external-snapshotter
COPY . .
RUN make build
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.openshift.rhel7
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.11 AS builder
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.12 AS builder
WORKDIR /go/src/github.com/kubernetes-csi/external-snapshotter
COPY . .
RUN make build
Expand Down
2 changes: 0 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions cmd/csi-snapshotter/create_crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ func CreateCRD(clientset apiextensionsclient.Interface) error {
Plural: crdv1.VolumeSnapshotClassResourcePlural,
Kind: reflect.TypeOf(crdv1.VolumeSnapshotClass{}).Name(),
},
Subresources: &apiextensionsv1beta1.CustomResourceSubresources{
Status: &apiextensionsv1beta1.CustomResourceSubresourceStatus{},
},
},
}

res, err := clientset.ApiextensionsV1beta1().CustomResourceDefinitions().Create(crd)

if err != nil && !apierrors.IsAlreadyExists(err) {
Expand Down Expand Up @@ -80,6 +84,9 @@ func CreateCRD(clientset apiextensionsclient.Interface) error {
Plural: crdv1.VolumeSnapshotResourcePlural,
Kind: reflect.TypeOf(crdv1.VolumeSnapshot{}).Name(),
},
Subresources: &apiextensionsv1beta1.CustomResourceSubresources{
Status: &apiextensionsv1beta1.CustomResourceSubresourceStatus{},
},
},
}
res, err = clientset.ApiextensionsV1beta1().CustomResourceDefinitions().Create(crd)
Expand Down
8 changes: 4 additions & 4 deletions cmd/csi-snapshotter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ var (
snapshotNamePrefix = flag.String("snapshot-name-prefix", "snapshot", "Prefix to apply to the name of a created snapshot")
snapshotNameUUIDLength = flag.Int("snapshot-name-uuid-length", -1, "Length in characters for the generated uuid of a created snapshot. Defaults behavior is to NOT truncate.")
showVersion = flag.Bool("version", false, "Show version.")
csiTimeout = flag.Duration("timeout", defaultCSITimeout, "The timeout for any RPCs to the CSI driver. Default is 10s.")
csiTimeout = flag.Duration("timeout", defaultCSITimeout, "The timeout for any RPCs to the CSI driver. Default is 1 minute.")

leaderElection = flag.Bool("leader-election", false, "Enables leader election.")
leaderElectionNamespace = flag.String("leader-election-namespace", "", "The namespace where the leader election resource exists. Defaults to the pod namespace if not set.")
Expand Down Expand Up @@ -184,9 +184,9 @@ func main() {
snapClient,
kubeClient,
*snapshotterName,
factory.Volumesnapshot().V1alpha1().VolumeSnapshots(),
factory.Volumesnapshot().V1alpha1().VolumeSnapshotContents(),
factory.Volumesnapshot().V1alpha1().VolumeSnapshotClasses(),
factory.Snapshot().V1alpha1().VolumeSnapshots(),
factory.Snapshot().V1alpha1().VolumeSnapshotContents(),
factory.Snapshot().V1alpha1().VolumeSnapshotClasses(),
coreFactory.Core().V1().PersistentVolumeClaims(),
*createSnapshotContentRetryCount,
*createSnapshotContentInterval,
Expand Down
7 changes: 5 additions & 2 deletions deploy/kubernetes/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rules:
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["get", "list", "watch"]
Expand All @@ -44,9 +44,12 @@ rules:
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots/status"]
verbs: ["update"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["create", "list", "watch", "delete"]
verbs: ["create", "list", "watch", "delete", "get", "update"]

---
kind: ClusterRoleBinding
Expand Down
6 changes: 3 additions & 3 deletions deploy/kubernetes/setup-csi-snapshotter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
serviceAccount: csi-snapshotter
containers:
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.0.1
image: quay.io/k8scsi/csi-provisioner:v1.1.0
args:
- "--provisioner=csi-hostpath"
- "--csi-address=$(ADDRESS)"
Expand All @@ -85,7 +85,7 @@ spec:
- name: socket-dir
mountPath: /csi
- name: csi-snapshotter
image: quay.io/k8scsi/csi-snapshotter:v1.0.1
image: quay.io/k8scsi/csi-snapshotter:v1.1.0
args:
- "--csi-address=$(ADDRESS)"
- "--connection-timeout=15s"
Expand All @@ -98,7 +98,7 @@ spec:
- name: socket-dir
mountPath: /csi
- name: hostpath
image: quay.io/k8scsi/hostpathplugin:v1.0.1
image: quay.io/k8scsi/hostpathplugin:v1.1.0
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/volumesnapshot/v1alpha1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ limitations under the License.
*/

// +k8s:deepcopy-gen=package
// +groupName=snapshot.storage.k8s.io

package v1alpha1
2 changes: 1 addition & 1 deletion pkg/apis/volumesnapshot/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 10 additions & 18 deletions pkg/client/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/client/clientset/versioned/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 6 additions & 11 deletions pkg/client/clientset/versioned/fake/clientset_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/client/clientset/versioned/fake/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pkg/client/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/client/clientset/versioned/scheme/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pkg/client/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading