-
Notifications
You must be signed in to change notification settings - Fork 23
Bump k8s to 1.14.1 #42
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
Bump k8s to 1.14.1 #42
Conversation
ingvagabund
commented
May 22, 2019
- bump k8s to v1.14.1
- Manager.GetRecorder renamed to Manager.GetEventRecorderFor
- replace "-" with "_" in controller names (the name is used to prefix prometheus metric name which refuses "-" in metric name, see ⚠ Bump Kubernetes version to 1.14 kubernetes-sigs/controller-runtime#376)
- machineset-controller -> machineset_controller
- machinedeployment-controller -> machinedeployment_controller
- cluster-controller -> cluster_controller
- replace order of arguments in Client.List (runtime object switched with list options, list options converted to a function)
- schema moved from "sigs.k8s.io/controller-runtime/pkg/runtime/schema" under "sigs.k8s.io/controller-runtime/pkg/scheme"
- "k8s.io/client-go/util/integer" moved under "k8s.io/utils/integer"
/refresh |
/retest |
pkg/controller/machinedeployment/machinedeployment_controller_test.go
Outdated
Show resolved
Hide resolved
415c2ac
to
69d5683
Compare
@@ -61,7 +61,7 @@ func AddWithActuator(mgr manager.Manager, actuator Actuator) error { | |||
func newReconciler(mgr manager.Manager, actuator Actuator) reconcile.Reconciler { | |||
r := &ReconcileMachine{ | |||
Client: mgr.GetClient(), | |||
eventRecorder: mgr.GetRecorder("machine-controller"), | |||
eventRecorder: mgr.GetEventRecorderFor("machine-controller"), |
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.
Should this also be s/-/_?
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.
I would still prefer to keep the event source to have -
instead of _
.
Requires to update controller-runtime to the latest which has just recently adopted k8s v1.14.
…o/controller-runtime@master - Manager.GetRecorder renamed to Manager.GetEventRecorderFor - replace "-" with "_" in controller names (the name is used to prefix prometheus metric name which refuses "-" in metric name) - machineset-controller -> machineset_controller - machinedeployment-controller -> machinedeployment_controller - cluster-controller -> cluster_controller - replace order of arguments in Client.List (runtime object switched with list options, list options converted to a function) - schema moved from "sigs.k8s.io/controller-runtime/pkg/runtime/schema" under "sigs.k8s.io/controller-runtime/pkg/scheme" - "k8s.io/client-go/util/integer" moved under "k8s.io/utils/integer"
69d5683
to
73386ff
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: frobware 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 |
e911af7
into
openshift:openshift-4.2-cluster-api-0.1.0