-
Notifications
You must be signed in to change notification settings - Fork 578
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
Node join #355
Node join #355
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri 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 |
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.
first pass
@@ -0,0 +1,91 @@ | |||
package deployer |
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.
please add tests for this. they don't have to be comprehensive, just basic tests that will let us add new tests in future as bugs come up
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
Can I open an issue to add tests and address it later? This PR is already kinda big
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.
yeah fine with me
1e38e64
to
486b269
Compare
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.
Looking even better!
In future it would help a bit if you put vendor/generated code in one commit and all the other stuff in another commit, but i don't think it was too bad in this case
@@ -35,6 +35,12 @@ type AWSClusterProviderConfig struct { | |||
|
|||
// SSHKeyName is the name of the ssh key to attach to the bastion host. | |||
SSHKeyName string `json:"sshKeyName,omitempty"` | |||
|
|||
// CACertificate is a PEM encoded CA Certificate for the control plane nodes. | |||
CACertificate []byte `json:"caCertificate,omitempty"` |
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.
What's the reason for moving this to config from status?
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.
Total hack for #348
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.
That, but it does allow for a user to override the CA material for a cluster... In the future we may want to extend this to a type that could be either defined inline or a reference to an external source of truth (k8s secret, aws ssm, etc)
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.
In addition to the other points, it also allows to retain the certificates on pivot, which wasn't happening before.
@@ -0,0 +1,91 @@ | |||
package deployer |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
/test pull-cluster-api-provider-aws-bazel-tes |
/test pull-cluster-api-provider-aws-bazel-test |
f410495
to
c59cb5b
Compare
Signed-off-by: Vince Prignano <[email protected]>
/lgtm |
What this PR does / why we need it:
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 #266
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
Release note: