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

Support v1beta1 snapshots #322

Merged
merged 2 commits into from
Jun 22, 2020
Merged

Support v1beta1 snapshots #322

merged 2 commits into from
Jun 22, 2020

Conversation

timoreimann
Copy link
Collaborator

@timoreimann timoreimann commented Jun 6, 2020

This change adds support for v1beta1 snapshots. The change is breaking, meaning that v1alpha1 snapshots cannot be used anymore. Consequently, we also stop testing for Kubernetes releases below 1.17 which do did not support v1beta1 snapshots.

Changes in detail:

  • Update manifests, including the addition of the new snapshot controller and update of the csi-snapshotter and csi-provisioner sidecars.
  • Split up release manifests into multiple files to limit kustomize usage to manifests that require modification for testing. In particular, the snapshot controller is excluded which does not support running in a dev and non-dev version concurrently.
  • Update examples.
  • Update CI and build references to Kubernetes releases.
  • Remove VolumeSnapshotDataSource feature gate which is enabled by default since 1.17.
  • Remove integration tests that were needed for Kubernetes <1.14 only.
  • Extend documentation.

@timoreimann timoreimann added WIP and removed WIP labels Jun 6, 2020
@timoreimann timoreimann force-pushed the support-v1beta1-snapshots branch 9 times, most recently from 07ee849 to ede7d28 Compare June 10, 2020 22:34
@timoreimann timoreimann force-pushed the support-v1beta1-snapshots branch 5 times, most recently from c2dbe5f to 7845c3f Compare June 15, 2020 23:05
@timoreimann timoreimann removed the WIP label Jun 15, 2020
@timoreimann timoreimann marked this pull request as ready for review June 15, 2020 23:41
@timoreimann timoreimann force-pushed the support-v1beta1-snapshots branch 2 times, most recently from 4ea5966 to f3e7c9b Compare June 16, 2020 08:48
Copy link

@MorrisLaw MorrisLaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, one small nit. But, I can see that the changes reflect the intended goal as described in the PR description.

README.md Outdated
---
**Note:**

The [DigitalOcean Kubernetes](https://www.digitalocean.com/products/kubernetes/) products comes with the CSI driver pre-installed and no further steps are required.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: products product

kind: VolumeSnapshot
metadata:
name: csi-do-test-snapshot
spec:
source:
name: csi-do-test-pvc
kind: PersistentVolumeClaim
persistentVolumeClaimName: csi-do-test-pvc

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@adamwg adamwg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

metadata:
name: do-block-storage
namespace: kube-system
Copy link
Collaborator

@varshavaradarajan varshavaradarajan Jun 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this no longer in the kube-system namespace?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VolumeSnapshotClass never really was in a namespace because the object is non-namespaced. I removed it to make things more clear.

This change adds support for v1beta1 snapshots. The change is breaking,
meaning that v1alpha1 snapshots cannot be used anymore. Consequently, we
also stop testing for Kubernetes releases below 1.17 which do did not
support v1beta1 snapshots.

Changes in detail:

- Update manifests, including the addition of the new snapshot
  controller and update of the csi-snapshotter and csi-provisioner
  sidecars.
- Split up release manifests into multiple files to limit kustomize
  usage to manifests that require modification for testing. In
  particular, the snapshot controller is excluded which does not support
  running in a dev and non-dev version concurrently.
- Update examples.
- Update CI and build references to Kubernetes releases.
- Remove VolumeSnapshotDataSource feature gate which is enabled by
  default since 1.17.
- Remove integration tests that were needed for Kubernetes <1.14 only.
- Extend documentation.
@timoreimann timoreimann merged commit a4be15e into master Jun 22, 2020
@timoreimann timoreimann deleted the support-v1beta1-snapshots branch June 22, 2020 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants