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

CCM does not start with K8s 1.20 dependencies #438

Closed
piepmatz opened this issue Feb 8, 2021 · 2 comments · Fixed by #434
Closed

CCM does not start with K8s 1.20 dependencies #438

piepmatz opened this issue Feb 8, 2021 · 2 comments · Fixed by #434
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@piepmatz
Copy link

piepmatz commented Feb 8, 2021

Is this a BUG REPORT or FEATURE REQUEST?:

/kind bug

What happened:

The CCM binary instantly exits with --cloud-provider cannot be empty, even though the flag is provided. The binary doesn't react to any flags at all, e.g. --version and -h have no impact.

I noticed this with a different, private CCM after updating the K8s dependencies to 1.20 and wanted to look how others have solved the issue. #429 by @nicolehanjing looked promising, but results in the same error that I was trying to solve.

What you expected to happen:

CCM should react on flags.

How to reproduce it (as minimally and precisely as possible):

make
.build/bin/vsphere-cloud-controller-manager.linux_amd64 --cloud-provider=foo

Anything else we need to know?:

@nicolehanjing also updated the AWS CCM's dependencies to K8s 1.20 in kubernetes/cloud-provider-aws#151. Things seem to work there as expected. Maybe because the cobra command is built differently.

Environment:

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 8, 2021
@piepmatz
Copy link
Author

It's a K8s upstream bug: kubernetes/cloud-provider#44

@nicolehanjing
Copy link
Member

Hi @piepmatz
I have a PR out for fixing this issue: #434
There is another PR to fix the upstream bug: kubernetes/kubernetes#98210

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
3 participants