Skip to content

Commit fdab88a

Browse files
machineconfiguration: add dropInDir details for KubeletConfigSpec
Signed-off-by: Sohan Kunkerkar <[email protected]>
1 parent 52377f0 commit fdab88a

14 files changed

+76
-0
lines changed

features.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
| InsightsOnDemandDataGather| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
2929
| InsightsRuntimeExtractor| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
3030
| KMSEncryptionProvider| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
31+
| KubeletConfigDropInDir| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
3132
| MachineAPIProviderOpenStack| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
3233
| MachineConfigNodes| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
3334
| MaxUnavailableStatefulSet| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |

features/features.go

+8
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,14 @@ var (
695695
enhancementPR("https://github.com/openshift/enhancements/pull/1697").
696696
mustRegister()
697697

698+
FeatureGateKubeletConfigDropInDir = newFeatureGate("KubeletConfigDropInDir").
699+
reportProblemsToJiraComponent("Node").
700+
contactPerson("sohankunkerkar").
701+
productScope(ocpSpecific).
702+
enableIn(configv1.DevPreviewNoUpgrade, configv1.TechPreviewNoUpgrade).
703+
enhancementPR("https://github.com/kubernetes/enhancements/issues/3983").
704+
mustRegister()
705+
698706
FeatureGateNutanixMultiSubnets = newFeatureGate("NutanixMultiSubnets").
699707
reportProblemsToJiraComponent("Cloud Compute / Nutanix Provider").
700708
contactPerson("yanhli").

machineconfiguration/v1/types.go

+10
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,16 @@ type KubeletConfigSpec struct {
709709
// A nil selector will result in no pools being selected.
710710
// +optional
711711
MachineConfigPoolSelector *metav1.LabelSelector `json:"machineConfigPoolSelector,omitempty"`
712+
713+
// dropInConfigDirectory allows users to define a directory for Kubelet's drop-in configuration.
714+
// This enables incremental configuration updates without modifying the main KubeletConfig.
715+
// +optional
716+
DropInConfigDirectory *string `json:"dropInConfigDirectory,omitempty"`
717+
718+
// dropInConfigFile defines a specific configuration file within the drop-in directory.
719+
// +optional
720+
DropInConfigFile *string `json:"dropInConfigFile,omitempty"`
721+
712722
// kubeletConfig fields are defined in kubernetes upstream. Please refer to the types defined in the version/commit used by
713723
// OpenShift of the upstream kubernetes. It's important to note that, since the fields of the kubelet configuration are directly fetched from
714724
// upstream the validation of those values is handled directly by the kubelet. Please refer to the upstream version of the relevant kubernetes

machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_kubeletconfigs.crd.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ spec:
4848
properties:
4949
autoSizingReserved:
5050
type: boolean
51+
dropInConfigDirectory:
52+
description: |-
53+
dropInConfigDirectory allows users to define a directory for Kubelet's drop-in configuration.
54+
This enables incremental configuration updates without modifying the main KubeletConfig.
55+
type: string
56+
dropInConfigFile:
57+
description: dropInConfigFile defines a specific configuration file
58+
within the drop-in directory.
59+
type: string
5160
kubeletConfig:
5261
description: |-
5362
kubeletConfig fields are defined in kubernetes upstream. Please refer to the types defined in the version/commit used by

machineconfiguration/v1/zz_generated.deepcopy.go

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

machineconfiguration/v1/zz_generated.featuregated-crd-manifests/kubeletconfigs.machineconfiguration.openshift.io/AAA_ungated.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ spec:
4949
properties:
5050
autoSizingReserved:
5151
type: boolean
52+
dropInConfigDirectory:
53+
description: |-
54+
dropInConfigDirectory allows users to define a directory for Kubelet's drop-in configuration.
55+
This enables incremental configuration updates without modifying the main KubeletConfig.
56+
type: string
57+
dropInConfigFile:
58+
description: dropInConfigFile defines a specific configuration file
59+
within the drop-in directory.
60+
type: string
5261
kubeletConfig:
5362
description: |-
5463
kubeletConfig fields are defined in kubernetes upstream. Please refer to the types defined in the version/commit used by

machineconfiguration/v1/zz_generated.swagger_doc_generated.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payload-manifests/crds/0000_80_machine-config_01_kubeletconfigs.crd.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ spec:
4848
properties:
4949
autoSizingReserved:
5050
type: boolean
51+
dropInConfigDirectory:
52+
description: |-
53+
dropInConfigDirectory allows users to define a directory for Kubelet's drop-in configuration.
54+
This enables incremental configuration updates without modifying the main KubeletConfig.
55+
type: string
56+
dropInConfigFile:
57+
description: dropInConfigFile defines a specific configuration file
58+
within the drop-in directory.
59+
type: string
5160
kubeletConfig:
5261
description: |-
5362
kubeletConfig fields are defined in kubernetes upstream. Please refer to the types defined in the version/commit used by

payload-manifests/featuregates/featureGate-Hypershift-Default.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
{
8686
"name": "KMSEncryptionProvider"
8787
},
88+
{
89+
"name": "KubeletConfigDropInDir"
90+
},
8891
{
8992
"name": "MachineAPIMigration"
9093
},

payload-manifests/featuregates/featureGate-Hypershift-DevPreviewNoUpgrade.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
{
147147
"name": "KMSv1"
148148
},
149+
{
150+
"name": "KubeletConfigDropInDir"
151+
},
149152
{
150153
"name": "MachineAPIProviderOpenStack"
151154
},

payload-manifests/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
{
147147
"name": "KMSv1"
148148
},
149+
{
150+
"name": "KubeletConfigDropInDir"
151+
},
149152
{
150153
"name": "MachineAPIProviderOpenStack"
151154
},

payload-manifests/featuregates/featureGate-SelfManagedHA-Default.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
{
8989
"name": "KMSEncryptionProvider"
9090
},
91+
{
92+
"name": "KubeletConfigDropInDir"
93+
},
9194
{
9295
"name": "MachineAPIMigration"
9396
},

payload-manifests/featuregates/featureGate-SelfManagedHA-DevPreviewNoUpgrade.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@
143143
{
144144
"name": "KMSv1"
145145
},
146+
{
147+
"name": "KubeletConfigDropInDir"
148+
},
146149
{
147150
"name": "MachineAPIProviderOpenStack"
148151
},

payload-manifests/featuregates/featureGate-SelfManagedHA-TechPreviewNoUpgrade.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@
143143
{
144144
"name": "KMSv1"
145145
},
146+
{
147+
"name": "KubeletConfigDropInDir"
148+
},
146149
{
147150
"name": "MachineAPIProviderOpenStack"
148151
},

0 commit comments

Comments
 (0)