Skip to content

Update docs/stable overlay to reference new release #658

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

Merged
merged 1 commit into from
Nov 13, 2020

Conversation

saad-ali
Copy link
Contributor

@saad-ali saad-ali commented Nov 6, 2020

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind api-change
/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:

  • Update docs and stable overlay to reference new release (1.1.0).
  • Move leader election and volume in use patches to base overlay.
  • Switch sidecar images to k8s.gcr.io/sig-storage/ and gcr.io/k8s-staging-sig-storage.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

None

/assign @msau42

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/documentation Categorizes issue or PR as related to documentation. labels Nov 6, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saad-ali

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 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. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 6, 2020
@saad-ali saad-ali force-pushed the updateDocsAndOveraly branch from a88c20d to cbfc795 Compare November 6, 2020 23:35
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 6, 2020
Copy link
Contributor Author

@saad-ali saad-ali left a comment

Choose a reason for hiding this comment

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

PTAL

@saad-ali saad-ali force-pushed the updateDocsAndOveraly branch from cbfc795 to 02a86e8 Compare November 6, 2020 23:37
@saad-ali saad-ali force-pushed the updateDocsAndOveraly branch from 02a86e8 to 07cd01d Compare November 9, 2020 09:09
@saad-ali
Copy link
Contributor Author

saad-ali commented Nov 9, 2020

W1107 00:10:28.572]   Warning  Failed       28s   kubelet            Error: ErrImagePull
W1107 00:10:28.572]   Normal   Pulling      28s   kubelet            Pulling image "gke.gcr.io/csi-attacher:v3.0.1-gke.0"
W1107 00:10:28.573]   Warning  Failed       28s   kubelet            Failed to pull image "gke.gcr.io/csi-attacher:v3.0.1-gke.0": rpc error: code = NotFound desc = failed to pull and unpack image "gke.gcr.io/csi-attacher:v3.0.1-gke.0": failed to resolve reference "gke.gcr.io/csi-attacher:v3.0.1-gke.0": gke.gcr.io/csi-attacher:v3.0.1-gke.0: not found
W1107 00:10:28.573]   Warning  Failed       28s   kubelet            Error: ErrImagePull
W1107 00:10:28.573]   Normal   Pulling      28s   kubelet            Pulling image "gke.gcr.io/csi-resizer:v1.0.1-gke.0"
W1107 00:10:28.574]   Warning  Failed       28s   kubelet            Failed to pull image "gke.gcr.io/csi-resizer:v1.0.1-gke.0": rpc error: code = NotFound desc = failed to pull and unpack image "gke.gcr.io/csi-resizer:v1.0.1-gke.0": failed to resolve reference "gke.gcr.io/csi-resizer:v1.0.1-gke.0": gke.gcr.io/csi-resizer:v1.0.1-gke.0: not found
W1107 00:10:28.574]   Warning  Failed       28s   kubelet            Error: ErrImagePull
W1107 00:10:28.574]   Normal   Pulling      28s   kubelet            Pulling image "gke.gcr.io/csi-snapshotter:v3.0.1-gke.0"
W1107 00:10:28.574]   Normal   Pulling      28s   kubelet            Pulling image "gke.gcr.io/csi-provisioner:v2.0.3-gke.0"
W1107 00:10:28.575]   Warning  Failed       28s   kubelet            Error: ErrImagePull
W1107 00:10:28.575]   Warning  Failed       28s   kubelet            Failed to pull image "gke.gcr.io/csi-snapshotter:v3.0.1-gke.0": rpc error: code = NotFound desc = failed to pull and unpack image "gke.gcr.io/csi-snapshotter:v3.0.1-gke.0": failed to resolve reference "gke.gcr.io/csi-snapshotter:v3.0.1-gke.0": gke.gcr.io/csi-snapshotter:v3.0.1-gke.0: not found

@msau42 When are the new sidecar images going to be promoted?

@saad-ali saad-ali force-pushed the updateDocsAndOveraly branch from 07cd01d to 44700fc Compare November 10, 2020 09:23
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 10, 2020
@saad-ali
Copy link
Contributor Author

PTAL

@@ -12,8 +12,8 @@ kind: ImageTagTransformer
metadata:
name: imagetag-csi-provisioner-prow-head
imageTag:
name: gke.gcr.io/csi-provisioner
newName: quay.io/k8scsi/csi-provisioner
name: k8s.gcr.io/sig-storage/csi-provisioner
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any alpha/dev image transformations that need to be updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. Alpha only overrides the driver image, not the sidecars. And dev just uses alpha image transformers.

@saad-ali saad-ali force-pushed the updateDocsAndOveraly branch from 44700fc to 776e647 Compare November 12, 2020 07:20
newName: gcr.io/gke-release-staging/csi-provisioner
newTag: "v2.0.3-gke.0"
name: k8s.gcr.io/sig-storage/csi-provisioner
newName: gcr.io/k8s-staging-sig-storage/csi-provisioner
Copy link
Contributor

Choose a reason for hiding this comment

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

staging-rc could remain on k8s.gcr.io/sig-storage since it's still using released images

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we not want to push it to use the latest available released staging image?

Copy link
Contributor

Choose a reason for hiding this comment

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

For pd driver image, I think using the staging repo makes sense.

But I'm not sure about CSI sidecars. We don't use internal pdcsi tests as an indicator for OSS CSI sidecar releases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. We don't need to test unreleased versions of sidecars in this repo.

@jingxu97
Copy link
Contributor

before updating stable overlay, is there a testing phase? Or we just use stable overlay for testing.

@jingxu97
Copy link
Contributor

/test pull-gcp-compute-persistent-disk-csi-driver-e2e-win2019

@msau42
Copy link
Contributor

msau42 commented Nov 12, 2020

before updating stable overlay, is there a testing phase? Or we just use stable overlay for testing.

The pull job tests stable overlay with custom built pd driver image, so doesn't exactly reflect the stable overlay.

The closest thing we have to pretesting stable overlay is the staging-rc overlay, so it's good to make sure they match as close as possible.

Update docs and stable overlay to reference new release (1.1.0).
Move leader election and volume in use patches to base overlay.
Switch sidecar images to k8s.gcr.io/sig-storage/ and
gcr.io/k8s-staging-sig-storage
@saad-ali saad-ali force-pushed the updateDocsAndOveraly branch from 776e647 to 7a715d0 Compare November 13, 2020 09:45
@saad-ali
Copy link
Contributor Author

PTAL

# - "--run-controller-service=false" # disable the controller service of the CSI driver
# - "--run-node-service=false" # disable the node service of the CSI driver
- "--leader-election"
- "--default-fstype=ext4"
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to set default fstype?
If the reason we need to set it due to issue related to fsgroup will be ignored if default fstype is not set, kubernetes-sigs/vsphere-csi-driver#370 (comment)

This logic should be fixed in 1.19 by kubernetes/kubernetes#92001. This means for testing k/k 1.19 and above, no need to set default-fstype here. During format and mount, the default fstype will be applied depending on OS.

So for OSS test which using the latest kubernetes, we don't need to set default value here so we can test the behavior of correctly setting fstype by driver.

For internal tests which tests earlier version of kubernetes, it also seems ok so far without setting default-fstype. From what I searched, we didn't test fsgroup behavior yet.

There is a new test added very recently for 1.20. https://github.com/kubernetes/kubernetes/blame/master/test/e2e/storage/testsuites/fsgroupchangepolicy.go

So I think from testing point, should be ok without setting default value here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree we don't need it staring with Kubernetes 1.20. In 1.19 it's still an alpha feature and not enabled by default.

I think for the purposes of this PR, which is to cleanup the overlays for the already released driver, we should still keep it.

For the next driver release, we can look into removing it along with adding the CSIDriver change. It will also bump up the min version of this driver to Kubernetes 1.20

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opened #668 to track this since this PR has merged.

@msau42
Copy link
Contributor

msau42 commented Nov 13, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 13, 2020
@k8s-ci-robot k8s-ci-robot merged commit 9a52928 into kubernetes-sigs:master Nov 13, 2020
k8s-ci-robot added a commit that referenced this pull request Nov 13, 2020
Cherrypick #658 from `master` to `release-1.1`
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/documentation Categorizes issue or PR as related to documentation. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants