-
Notifications
You must be signed in to change notification settings - Fork 550
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
Updated subnets field in Machinepool yaml #2903
Conversation
How is this template supposed to work full stop? We need a VPC created and AWSCluster controller to provision subnets before a subnet can be used in the machine pool. Otherwise, you might use BYOI, but this template doesn't support it. This whole template needs revision and/or the MachinePool controller code needs fixing to work with VPCs provisioned by AWSCluster. |
Template doesn't work with the field set, but |
33ae87f
to
eb9a621
Compare
@randomvariable why do we need to change the code? |
Let's follow up on this before the release this week. cc @randomvariable |
eb9a621
to
bdaa8a7
Compare
@@ -91,8 +91,6 @@ spec: | |||
awsLaunchTemplate: | |||
instanceType: "${AWS_CONTROL_PLANE_MACHINE_TYPE}" | |||
sshKeyName: "${AWS_SSH_KEY_NAME}" | |||
subnets: |
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.
We can keep this in the docs:
subnets:
- subnet-id
Btw, did you check if this field is working by any chance?
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.
Yes will receive a validation error. It says invalid type for io.x-k8s.cluster.infrastructure.v1beta1.AWSMachinePool.spec.subnets: got "string", expected "map";
So that's why I removed it from doc as well. Please let me know if you think we should still keep it?
@sedefsavas I tried multiple use cases in local and found
|
bdaa8a7
to
37d1f01
Compare
I confirmed that this works with correct subnet ids that belongs to the VPC cluster is in.
|
37d1f01
to
8abda3a
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sedefsavas 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 |
Updated subnets field in Machinepool yaml
What type of PR is this?
/kind bug
What this PR does / why we need it:
Updated doc and template machinepool flavour for subnet field.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2464
Special notes for your reviewer:
Checklist:
Release note: