@@ -157,24 +157,25 @@ type LeaderMigrationConfiguration struct {
157
157
LeaderName string ` json:"leaderName"`
158
158
159
159
// ResourceLock indicates the resource object type that will be used to lock
160
- // Must be either "leases" or "endpoints", defaults to 'leases'
161
- // No other types (e.g. "endpointsleases" or "configmapsleases") are allowed
162
- ResourceLock string
160
+ // Must be either "leases" or "endpoints", defaults to 'leases'
161
+ // No other types (e.g. "endpointsleases" or "configmapsleases") are allowed
162
+ ResourceLock string
163
163
164
- // ControllerLeaders contains a list of migrating leader lock configurations
165
- ControllerLeaders []ControllerLeaderConfiguration ` json:"controllerLeaders"`
164
+ // ControllerLeaders contains a list of migrating leader lock configurations
165
+ ControllerLeaders []ControllerLeaderConfiguration ` json:"controllerLeaders"`
166
166
}
167
167
168
168
// ControllerLeaderConfiguration provides the configuration for a migrating leader lock.
169
169
type ControllerLeaderConfiguration struct {
170
- // Name is the name of the controller being migrated
171
- // E.g. service-controller, route-controller, cloud-node-controller, etc
172
- Name string ` json:"name"`
170
+ // Name is the name of the controller being migrated
171
+ // E.g. service-controller, route-controller, cloud-node-controller, etc
172
+ Name string ` json:"name"`
173
173
174
- // Component is the name of the component in which the controller will be running.
175
- // E.g. kube-controller-manager, cloud-controller-manager, etc
176
- Component string ` json:"component"`
174
+ // Component is the name of the component in which the controller will be running.
175
+ // E.g. kube-controller-manager, cloud-controller-manager, etc
176
+ Component string ` json:"component"`
177
177
}
178
+
178
179
```
179
180
180
181
#### Default LeaderMigrationConfiguration
@@ -228,7 +229,7 @@ The provided default configuration will be equivalent to the following:
228
229
229
230
``` yaml
230
231
kind : LeaderMigrationConfiguration
231
- apiVersion : v1alpha1
232
+ apiVersion : controllermanager.config.k8s.io/ v1alpha1
232
233
leaderName : cloud-provider-extraction-migration
233
234
resourceLock : leases
234
235
controllerLeaders :
@@ -266,7 +267,7 @@ following:
266
267
267
268
` ` ` yaml
268
269
kind: LeaderMigrationConfiguration
269
- apiVersion: v1alpha1
270
+ apiVersion: controllermanager.config.k8s.io/ v1alpha1
270
271
leaderName: cloud-provider-extraction-migration
271
272
resourceLock: leases
272
273
controllerLeaders:
0 commit comments