-
Couldn't load subscription status.
- Fork 42
✨ Update to 1.4 CAPI #661
✨ Update to 1.4 CAPI #661
Conversation
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
- Add missing package comments - Add missing exported function comments - also add periods to end of many comments Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
- remove unused functions - add new required functions - rename of one mhc remediation test Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
| 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
| 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