Skip to content

Commit

Permalink
Merge pull request #10271 from carlory/remove-enable-hostpath-provisi…
Browse files Browse the repository at this point in the history
…oner-flag

🐛 remove --enable-hostpath-provisioner flag
  • Loading branch information
k8s-ci-robot authored Mar 20, 2024
2 parents 42f9afd + fa986e9 commit 005ac84
Show file tree
Hide file tree
Showing 27 changed files with 16 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ spec:
certSANs:
- localhost
- 127.0.0.1
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
dns: {}
etcd: {}
networking: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ spec:
certSANs:
- localhost
- 127.0.0.1
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
dns: {}
etcd: {}
networking: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ spec:
namespace: default
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: { enable-hostpath-provisioner: 'true' }
apiServer:
certSANs: [ localhost, 127.0.0.1 ]
initConfiguration:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ spec:
namespace: default
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: { enable-hostpath-provisioner: 'true' }
apiServer:
certSANs: [ localhost, 127.0.0.1 ]
initConfiguration:
Expand Down
2 changes: 0 additions & 2 deletions docs/book/src/clusterctl/commands/alpha-topology-plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ spec:
nodeDrainTimeout: 1s
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: { enable-hostpath-provisioner: 'true' }
apiServer:
certSANs: [ localhost, 127.0.0.1 ]
initConfiguration:
Expand Down
8 changes: 0 additions & 8 deletions docs/book/src/tasks/bootstrap/kubeadm-bootstrap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ metadata:
spec:
initConfiguration:
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
clusterConfiguration:
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
---
kind: DockerMachine
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
Expand Down Expand Up @@ -118,10 +114,6 @@ spec:
initConfiguration:
nodeRegistration:
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
clusterConfiguration:
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
```

Additional control plane nodes:
Expand Down
25 changes: 10 additions & 15 deletions docs/book/src/tasks/bootstrap/kubeadm-bootstrap/kubelet-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

CAPBK has several ways to configure kubelet.

- [Pass `KubeletConfiguration` file via `KubeadmConfigSpec.files`](#pass-kubeletconfiguration-file-via-kubeadmconfigspecfiles)
- [Set kubelet flags via `KubeadmConfigSpec.kubeletExtraArgs`](#set-kubelet-flags-via-kubeadmconfigspeckubeletextraargs)
- [`kubeletconfiguration` patch target](#use-the-kubeletconfiguration-patch-target)
- [Kubelet Configuration](#kubelet-configuration)
- [Pass `KubeletConfiguration` file via `KubeadmConfigSpec.files`](#pass-kubeletconfiguration-file-via-kubeadmconfigspecfiles)
- [KubeadmControlPlaneTemplate](#kubeadmcontrolplanetemplate)
- [KubeadmConfigTemplate](#kubeadmconfigtemplate)
- [Set kubelet flags via `KubeadmConfigSpec.kubeletExtraArgs`](#set-kubelet-flags-via-kubeadmconfigspeckubeletextraargs)
- [KubeadmControlPlaneTemplate](#kubeadmcontrolplanetemplate-1)
- [KubeadmConfigTemplate](#kubeadmconfigtemplate-1)
- [Use kubeadm's `kubeletconfiguration` patch target](#use-kubeadms-kubeletconfiguration-patch-target)
- [KubeadmControlPlaneTemplate](#kubeadmcontrolplanetemplate-2)
- [KubeadmConfigTemplate](#kubeadmconfigtemplate-2)

## Pass `KubeletConfiguration` file via `KubeadmConfigSpec.files`

Expand Down Expand Up @@ -86,10 +93,6 @@ spec:
streamingConnectionIdleTimeout: 0s
syncFrequency: 0s
volumeStatsAggPeriod: 0s
clusterConfiguration:
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
nodeRegistration:
criSocket: unix:///var/run/containerd/containerd.sock
Expand Down Expand Up @@ -203,10 +206,6 @@ spec:
template:
spec:
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
nodeRegistration:
criSocket: unix:///var/run/containerd/containerd.sock
Expand Down Expand Up @@ -290,10 +289,6 @@ spec:
"nodefs.available": "10%",
},
}
clusterConfiguration:
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
nodeRegistration:
criSocket: unix:///var/run/containerd/containerd.sock
Expand Down
12 changes: 6 additions & 6 deletions internal/controllers/topology/cluster/reconcile_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2575,7 +2575,7 @@ func TestReconcileReferencedObjectSequences(t *testing.T) {
"clusterConfiguration": map[string]interface{}{
"controllerManager": map[string]interface{}{
"extraArgs": map[string]interface{}{
"enable-hostpath-provisioner": "true",
"v": "4",
},
},
},
Expand All @@ -2588,7 +2588,7 @@ func TestReconcileReferencedObjectSequences(t *testing.T) {
"clusterConfiguration": map[string]interface{}{
"controllerManager": map[string]interface{}{
"extraArgs": map[string]interface{}{
"enable-hostpath-provisioner": "true",
"v": "4",
},
},
},
Expand All @@ -2597,7 +2597,7 @@ func TestReconcileReferencedObjectSequences(t *testing.T) {
},
},
reconcileStep{
name: "Drop enable-hostpath-provisioner",
name: "Drop v",
desired: object{
spec: nil,
},
Expand Down Expand Up @@ -2725,7 +2725,7 @@ func TestReconcileReferencedObjectSequences(t *testing.T) {
"clusterConfiguration": map[string]interface{}{
"controllerManager": map[string]interface{}{
"extraArgs": map[string]interface{}{
"enable-hostpath-provisioner": "true",
"v": "4",
},
},
},
Expand All @@ -2738,7 +2738,7 @@ func TestReconcileReferencedObjectSequences(t *testing.T) {
"clusterConfiguration": map[string]interface{}{
"controllerManager": map[string]interface{}{
"extraArgs": map[string]interface{}{
"enable-hostpath-provisioner": "true",
"v": "4",
},
},
},
Expand Down Expand Up @@ -2778,7 +2778,7 @@ func TestReconcileReferencedObjectSequences(t *testing.T) {
"clusterConfiguration": map[string]interface{}{
"controllerManager": map[string]interface{}{
"extraArgs": map[string]interface{}{
// Reconcile to drop enable-hostpath-provisioner,
// Reconcile to drop v field,
// while preserving user-defined enable-garbage-collector field.
"enable-garbage-collector": "true",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ spec:
name: "${CLUSTER_NAME}-control-plane"
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: {enable-hostpath-provisioner: 'true'}
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ metadata:
name: "${CLUSTER_NAME}-control-plane-0"
spec:
clusterConfiguration:
controllerManager:
extraArgs: {enable-hostpath-provisioner: 'true'}
apiServer:
certSANs: [localhost, 127.0.0.1]
initConfiguration:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ spec:
name: "${CLUSTER_NAME}-control-plane"
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: {enable-hostpath-provisioner: 'true'}
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ spec:
nodeDrainTimeout: 1s
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: { enable-hostpath-provisioner: 'true' }
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@ spec:
# extraArgs must be non-empty for control plane components to enable patches from ClusterClass to work.
controllerManager:
extraArgs:
enable-hostpath-provisioner: 'true'
v: "0"
scheduler:
extraArgs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ spec:
name: "${CLUSTER_NAME}-control-plane"
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: {enable-hostpath-provisioner: 'true'}
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ spec:
name: "${CLUSTER_NAME}-control-plane"
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: {enable-hostpath-provisioner: 'true'}
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ spec:
name: "${CLUSTER_NAME}-control-plane"
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: {enable-hostpath-provisioner: 'true'}
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ spec:
name: "${CLUSTER_NAME}-control-plane"
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: {enable-hostpath-provisioner: 'true'}
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,6 @@ spec:
nodeDrainTimeout: 1s
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: { enable-hostpath-provisioner: 'true' }
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, host.docker.internal, "::", "::1", "127.0.0.1", "0.0.0.0"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ spec:
name: "${CLUSTER_NAME}-control-plane"
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: {enable-hostpath-provisioner: 'true'}
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@ spec:
# extraArgs must be non-empty for control plane components to enable patches from ClusterClass to work.
controllerManager:
extraArgs:
enable-hostpath-provisioner: 'true'
v: "0"
scheduler:
extraArgs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ spec:
- 127.0.0.1
- 0.0.0.0
- host.docker.internal
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
nodeRegistration:
criSocket: unix:///var/run/containerd/containerd.sock
Expand Down
3 changes: 0 additions & 3 deletions test/infrastructure/docker/examples/machine-pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ spec:
- localhost
- 127.0.0.1
- 0.0.0.0
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
nodeRegistration:
kubeletExtraArgs:
Expand Down
3 changes: 0 additions & 3 deletions test/infrastructure/docker/examples/simple-cluster-ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ spec:
- 0.0.0.0
- "::"
- "::1"
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
localAPIEndpoint:
advertiseAddress: '::'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ metadata:
name: controlplane-0-config
namespace: default
spec:
clusterConfiguration:
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
nodeRegistration:
kubeletExtraArgs:
Expand Down
3 changes: 0 additions & 3 deletions test/infrastructure/docker/examples/simple-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ spec:
- localhost
- 127.0.0.1
- 0.0.0.0
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
nodeRegistration:
kubeletExtraArgs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ spec:
spec:
kubeadmConfigSpec:
clusterConfiguration:
controllerManager:
extraArgs: { enable-hostpath-provisioner: 'true' }
apiServer:
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ spec:
- 127.0.0.1
- 0.0.0.0
- host.docker.internal
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
initConfiguration:
nodeRegistration:
criSocket: unix:///var/run/containerd/containerd.sock
Expand Down

0 comments on commit 005ac84

Please sign in to comment.