-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Added env variable for cloud-provider #106241
Added env variable for cloud-provider #106241
Conversation
@jdnurme: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @jdnurme. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
I don't know the history here, can you please take a look whether |
I believe @jdnurme is trying to have a flag which only controls the cloud-provider flag passed in to Kubelet/KCM/KAS so that we can test the relevant feature gate. ( kubernetes/pkg/features/kube_features.go Line 540 in ad99a59
|
Correct, this flag is intended for testing with cloud providers disabled. |
yes, I understand this. I see that some scripts are using Also I see this: kubernetes/cluster/log-dump/log-dump.sh Line 537 in ff696d8
Again, I didn't see any red flags, just want to make sure we reuse things or clean up if there is a chance. |
I believe that is slightly different, simply because the KUBERNETES_PROVIDER variable seems to be specific to kubernetes platforms. In that link i see "gke" as the value being replaced. Cloud provider is non-specific to whether or not the platform is integrated with kubernetes. In this instance it's replacing "gce". I'm not confident these can be used interchangeably so I think the safest option is to keep "CLOUD_PROVIDER" as separate. In my tests, I am running against GCE, not GKE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/triage acceptes |
@SergeyKanzhelev: The label(s) In response to this:
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. |
/assign yujuhong |
cluster/gce/config-default.sh
Outdated
|
||
# CLOUD_PROVIDER defines the cloud-provider value presented to KCM, apiserver, | ||
# and kubelet | ||
export CLOUD_PROVIDER="${CLOUD_PROVIDER:-gce}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CLOUD_PROVIDER variable is already used here. I would suggest switching this to something like CLOUD_PROVIDER_FLAG. Its more descriptive and not yet used.
@jdnurme please see one pending comment from @cheftako #106241 (comment) |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheftako, jdnurme, SergeyKanzhelev 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 |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This allows the cloud provider to be specified as an environment variable in preparation for cloud provider extraction.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
NONE
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: