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

Switched to k8s 1.18.0 as attempt to fix issue #25 #26

Merged
merged 3 commits into from Jan 6, 2021

Conversation

petermicuch
Copy link
Contributor

This is my very first attempt to work with GO at all, so it definitely needs someone more experienced to check. I only installed GO today to fix this.

As right now I have no k8s cluster running version 1.20 I can only test it tomorrow. My main goal was to update dependencies and interfaces so that this runs against k8s 1.18. With that the problem described in issue #25 shall not be present. Actually already version 1.16 should do according to this post.

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Dec 10, 2020
@k8s-ci-robot
Copy link
Contributor

Welcome @petermicuch!

It looks like this is your first PR to kubernetes-sigs/nfs-subdir-external-provisioner 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/nfs-subdir-external-provisioner has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Dec 10, 2020
@petermicuch
Copy link
Contributor Author

I just tested this now and it works. Volume gets created, after PVC deletion volume is removed and respective folder is marked as archived. I have to check with my company if it is fine to sign CLA.

@petermicuch
Copy link
Contributor Author

I have to do small internal training in my company to be able to sign CLA, so it will take a week or so before I can sign it (I hope not more). If anyone is willing to create another PR bringing in changes or even to bump directly to k8s 1.20.0 I am fine with that. I took versions of client-go as I have seen them in go.mod originally.

@rkevin-arch
Copy link

Thank you so much for the PR! It fixed our cluster for now. For anyone still using the (unfortunately deprecated but no replacement available) stable/nfs-client-provisioner helm chart, you can add the following to the helm values:

image:
  repository: rkevin/nfs-subdir-external-provisioner
  tag: fix-k8s-1.20

This image is directly built on this PR. This is a temporary fix until this PR is merged upstream.

@petermicuch
Copy link
Contributor Author

Almost there with CLA signing. My company representative will sign corporation CLA hopefully today.

@petermicuch
Copy link
Contributor Author

CLA signed. Please check.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Dec 18, 2020
@petermicuch
Copy link
Contributor Author

@kmova can this one be approved before #29 or will this come after? And do you know if @ashishranjan738 is around for reviews or could you help review this one?

@kmova
Copy link
Contributor

kmova commented Dec 19, 2020

This looks good to me @petermicuch .. I am waiting on @jackielii to confirm if the incorporated changes are good.

Yes, I will hold off on #29 till this is merged. And I also need to work on a few updates to the Dockerfile in that PR.

@kmova
Copy link
Contributor

kmova commented Dec 19, 2020

/lgtm

@petermicuch
Copy link
Contributor Author

@jackielii , @kmova is this now good to go? I have seen #29 was already merged to master.

@jsafrane
Copy link
Contributor

jsafrane commented Jan 6, 2021

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsafrane, petermicuch

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 Jan 6, 2021
@k8s-ci-robot k8s-ci-robot merged commit 4fce9ff into kubernetes-sigs:master Jan 6, 2021
@petermicuch petermicuch deleted the bump_to_k8s_1_18_0 branch January 6, 2021 21:35
@fabriciomrtnz
Copy link

fabriciomrtnz commented Jan 16, 2021

Thank you so much for the PR! It fixed our cluster for now. For anyone still using the (unfortunately deprecated but no replacement available) stable/nfs-client-provisioner helm chart, you can add the following to the helm values:

image:
  repository: rkevin/nfs-subdir-external-provisioner
  tag: fix-k8s-1.20

This image is directly built on this PR. This is a temporary fix until this PR is merged upstream.

I do not use helm.

What does this translate to in the deployment-arm.yaml definition?

@rkevin-arch
Copy link

What does this translate to in the deployment-arm.yaml definition?

Try changing line 24 from image: quay.io/external_storage/nfs-client-provisioner-arm:latest to image: rkevin/nfs-subdir-external-provisioner:fix-k8s-1.20-arm (or image: rkevin/nfs-subdir-external-provisioner:fix-k8s-1.20 for x86_64). Note that this isn't an official image so you should be switching to an official one when it releases.

@groundhog2k
Copy link

I created a fork of this repository and used the patch from @petermicuch to create a multi-arch image of the nfs-subdir-external-provisioner. It works with Kubernetes 1.20.x on ARMv8 and AMD64
Feel free to use it.

(I also copies the deprecated stable helm chart - to have a backup until a new offical chart will be available => https://github.com/groundhog2k/helm-charts/tree/master/charts/nfs-client-provisioner)

@ammmze
Copy link

ammmze commented Jan 23, 2021

Thank you @groundhog2k! I'm just getting my feet wet with kubernetes (just testing via helmfile and k3d ATM) to transition my home server from a docker-compose setup. And I appreciate the multi-arch image as well as I'm thinking I may pick up some raspberry pi's to start distributing my stuff across multiple hosts as well as keeping my AMD machine for GPU workloads.

@colfe34
Copy link

colfe34 commented Mar 13, 2021

Guys thank you so much for this workaround, worked instantly.

@rkevin-arch
Copy link

I believe there is an official nfs-subdir-external-provisioner helm chart / image now, so you probably shouldn't be using the workarounds here. Better to switch to an official image.

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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants