@@ -13,7 +13,7 @@ import (
13
13
var MinSupportedVersion = semver .MustParse ("4.14.0" )
14
14
15
15
// CheckExistingScheduledUpgrade checks and returns the current upgrade schedule if any.
16
- func CheckExistingScheduledUpgrade (client * ocm. Client , cluster * cmv1.Cluster ) (* cmv1.ControlPlaneUpgradePolicy , error ) {
16
+ func CheckExistingScheduledUpgrade (client OCMClient , cluster * cmv1.Cluster ) (* cmv1.ControlPlaneUpgradePolicy , error ) {
17
17
upgradePolicies , err := client .GetControlPlaneUpgradePolicies (cluster .ID ())
18
18
if err != nil {
19
19
return nil , err
@@ -27,7 +27,7 @@ func CheckExistingScheduledUpgrade(client *ocm.Client, cluster *cmv1.Cluster) (*
27
27
}
28
28
29
29
// ScheduleControlPlaneUpgrade schedules a new control plane upgrade to the specified version at the specified time.
30
- func ScheduleControlPlaneUpgrade (client * ocm. Client , cluster * cmv1.Cluster , version string , nextRun time.Time , ack bool ) (* cmv1.ControlPlaneUpgradePolicy , error ) {
30
+ func ScheduleControlPlaneUpgrade (client OCMClient , cluster * cmv1.Cluster , version string , nextRun time.Time , ack bool ) (* cmv1.ControlPlaneUpgradePolicy , error ) {
31
31
// earliestNextRun is set to at least 5 min from now by the OCM API.
32
32
// Set our next run request to something slightly longer than 5min to make sure we account for the latency between when we send this
33
33
// request and when the server processes it.
@@ -71,7 +71,7 @@ func ScheduleControlPlaneUpgrade(client *ocm.Client, cluster *cmv1.Cluster, vers
71
71
}
72
72
73
73
// ScheduleNodePoolUpgrade schedules a new nodePool upgrade to the specified version at the specified time.
74
- func ScheduleNodePoolUpgrade (client * ocm. Client , clusterID string , nodePool * cmv1.NodePool , version string , nextRun time.Time ) (* cmv1.NodePoolUpgradePolicy , error ) {
74
+ func ScheduleNodePoolUpgrade (client OCMClient , clusterID string , nodePool * cmv1.NodePool , version string , nextRun time.Time ) (* cmv1.NodePoolUpgradePolicy , error ) {
75
75
// earliestNextRun is set to at least 5 min from now by the OCM API.
76
76
// Set our next run request to something slightly longer than 5min to make sure we account for the latency between when we send this
77
77
// request and when the server processes it.
0 commit comments