-
Notifications
You must be signed in to change notification settings - Fork 41
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
✨ Update to 1.4 CAPI #661
✨ Update to 1.4 CAPI #661
Conversation
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
- Add missing package comments - Add missing exported function comments - also add periods to end of many comments Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
- remove unused functions - add new required functions - rename of one mhc remediation test Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
requests: | ||
cpu: 100m | ||
memory: 35Mi | ||
securityContext: |
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.
nice. all we need to do is connect to APIs, no privs/root needed.
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.
Is 35Mi sufficient?
} | ||
|
||
func (r *PacketClusterReconciler) reconcileDelete(ctx context.Context, clusterScope *scope.ClusterScope) (ctrl.Result, error) { | ||
func (r *PacketClusterReconciler) reconcileDelete(_ context.Context, _ *scope.ClusterScope) (ctrl.Result, error) { | ||
// Initially I created this handler to remove an elastic IP when a cluster |
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.
rereading this for the first time in a while.. We probably should clean up after ourselves for any resources we dynamically provisioned. We could offer preservation behaviors in a few different ways (possibly all of them):
- IP reservation tags
locked
(? this wouldn't be conventional for IP reservations. Unlike devices there is no "locked" field on the EM API resource. most likely this would look like other CAPP EM tags) - CAPP configuration parameters
--no-ip-reservation-cleanup
- PacketCluster configuration parameters
@@ -113,7 +125,7 @@ func (p *Client) NewDevice(ctx context.Context, req CreateDeviceRequest) (*metal | |||
stringWriter := &strings.Builder{} | |||
userData := string(userDataRaw) | |||
userDataValues := map[string]interface{}{ | |||
"kubernetesVersion": pointer.StringPtrDerefOr(req.MachineScope.Machine.Spec.Version, ""), | |||
"kubernetesVersion": ptr.Deref(req.MachineScope.Machine.Spec.Version, ""), |
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.
cool - generics
https://pkg.go.dev/k8s.io/utils/ptr#Deref
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cprivitere, displague 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 |
/lgtm |
What this PR does / why we need it:
This PR tracks the changes to update to version 1.4 of the CAPI libraries.
As part of the upgrade, we're implementing a recommended change -- the addition of an explicit default security context for the controller-manager deployment.
Finally, tooling in the makefile was updated to match the versions used in the upstream cluster-api project as of v1.4.6.
Fixes #564