File tree 5 files changed +17
-18
lines changed
5 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type ManagedClusterModuleSpec struct {
27
27
ModuleSpec kmmv1beta1.ModuleSpec `json:"moduleSpec,omitempty"`
28
28
29
29
// SpokeNamespace describes the Spoke namespace, in which the ModuleSpec should be applied.
30
- SpokeNamespace string `json:"spokeNamespace,omitempty "`
30
+ SpokeNamespace string `json:"spokeNamespace"`
31
31
32
32
// Selector describes on which managed clusters the ModuleSpec should be applied.
33
33
Selector map [string ]string `json:"selector"`
Original file line number Diff line number Diff line change @@ -136,7 +136,9 @@ type ModprobeArgs struct {
136
136
137
137
type ModprobeSpec struct {
138
138
// ModuleName is the name of the Module to be loaded.
139
- ModuleName string `json:"moduleName"`
139
+ // This field can only be unset if rawArgs is set.
140
+ // +optional
141
+ ModuleName string `json:"moduleName,omitempty"`
140
142
141
143
// Parameters is an optional list of kernel module parameters to be provided to modprobe.
142
144
// They should be in the form of key=value and will be separated by spaces in the modprobe command.
Original file line number Diff line number Diff line change @@ -2371,8 +2371,9 @@ spec:
2371
2371
The firmware(s) will be copied to the host for the kernel to find them.
2372
2372
type : string
2373
2373
moduleName :
2374
- description : ModuleName is the name of the Module
2375
- to be loaded.
2374
+ description : |-
2375
+ ModuleName is the name of the Module to be loaded.
2376
+ This field can only be unset if rawArgs is set.
2376
2377
type : string
2377
2378
modulesLoadingOrder :
2378
2379
description : |-
@@ -2418,8 +2419,6 @@ spec:
2418
2419
minItems : 1
2419
2420
type : array
2420
2421
type : object
2421
- required :
2422
- - moduleName
2423
2422
type : object
2424
2423
registryTLS :
2425
2424
description : RegistryTLS set the TLS configs for accessing
@@ -2531,6 +2530,7 @@ spec:
2531
2530
type : string
2532
2531
required :
2533
2532
- selector
2533
+ - spokeNamespace
2534
2534
type : object
2535
2535
status :
2536
2536
description : ManagedClusterModuleStatus defines the observed state of
Original file line number Diff line number Diff line change @@ -2348,8 +2348,9 @@ spec:
2348
2348
The firmware(s) will be copied to the host for the kernel to find them.
2349
2349
type : string
2350
2350
moduleName :
2351
- description : ModuleName is the name of the Module to be
2352
- loaded.
2351
+ description : |-
2352
+ ModuleName is the name of the Module to be loaded.
2353
+ This field can only be unset if rawArgs is set.
2353
2354
type : string
2354
2355
modulesLoadingOrder :
2355
2356
description : |-
@@ -2395,8 +2396,6 @@ spec:
2395
2396
minItems : 1
2396
2397
type : array
2397
2398
type : object
2398
- required :
2399
- - moduleName
2400
2399
type : object
2401
2400
registryTLS :
2402
2401
description : RegistryTLS set the TLS configs for accessing
Original file line number Diff line number Diff line change 96
96
The firmware(s) will be copied to the host for the kernel to find them.
97
97
type : string
98
98
moduleName :
99
- description : ModuleName is the name of the Module to
100
- be loaded.
99
+ description : |-
100
+ ModuleName is the name of the Module to be loaded.
101
+ This field can only be unset if rawArgs is set.
101
102
type : string
102
103
modulesLoadingOrder :
103
104
description : |-
@@ -143,8 +144,6 @@ spec:
143
144
minItems : 1
144
145
type : array
145
146
type : object
146
- required :
147
- - moduleName
148
147
type : object
149
148
required :
150
149
- containerImage
@@ -236,8 +235,9 @@ spec:
236
235
The firmware(s) will be copied to the host for the kernel to find them.
237
236
type : string
238
237
moduleName :
239
- description : ModuleName is the name of the Module to
240
- be loaded.
238
+ description : |-
239
+ ModuleName is the name of the Module to be loaded.
240
+ This field can only be unset if rawArgs is set.
241
241
type : string
242
242
modulesLoadingOrder :
243
243
description : |-
@@ -283,8 +283,6 @@ spec:
283
283
minItems : 1
284
284
type : array
285
285
type : object
286
- required :
287
- - moduleName
288
286
type : object
289
287
required :
290
288
- containerImage
You can’t perform that action at this time.
0 commit comments