-
Notifications
You must be signed in to change notification settings - Fork 4.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
Cloud controller template function #7992
Cloud controller template function #7992
Conversation
Hi @DavidSie. 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. |
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.
/ok-to-test
@DavidSie could you please fix the tests |
Yes, I am about to fix the failing test, but I don't understand why test "pull-kops-bazel-test" cannot see this file: https://github.com/DavidSie/kops/blob/pr_cloud_controller_template_function/upup/models/cloudup/resources/addons/openstack.addons.k8s.io/k8s-1.11.yaml.template , Maybe you @zetaab could help me |
you cannot refer to templates using path, instead you should use some existing template function which loads those(I think). I do not know what is the correct way to load templates @rifelpet do you have idea how this should be handled |
fd8d8f9
to
b0dfb21
Compare
…erConfigArgv function to templates, and testing it. Exposing CloudControllerConfigArgv function to templates, and testing it.
2945b9c
to
f2912af
Compare
@zetaab please take a look. |
cluster: &kops.Cluster{Spec: kops.ClusterSpec{ | ||
CloudProvider: string(kops.CloudProviderOpenstack), | ||
ExternalCloudControllerManager: &kops.CloudControllerManagerConfig{ | ||
CIDRAllocatorType: fi.String(string(ipam.RangeAllocatorType)), |
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.
It seems like all of the new vendored code is only to use this one constant, is that correct? I know we've been trying to become less dependent on kubernetes/kubernetes
, so rather than adding all of the vendored code could we just reuse the string "RangeAllocator"
here?
Hi @rifelpet, I did it |
Looks good to me, thanks! deferring to @zetaab for approval. /lgtm |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DavidSie, zetaab 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 |
…-origin-release-1.16 Automated cherry pick of #7992: Add CloudControllerConfigArgv template function, Expose
…-origin-release-1.17 Automated cherry pick of #7992: Add CloudControllerConfigArgv template function, Expose
This PR fixes issue with missing setting of cluster-name in openstack-cloud-provider manifest.
There was similar PR(#7945) but Github claimed some commits were not authored by me, So I created new.