Skip to content

Commit 214287b

Browse files
committed
kube-controller-manager removed deprecated command flags: --volume-host-cidr-denylist and --volume-host-allow-local-loopback
1 parent 8361522 commit 214287b

File tree

12 files changed

+2
-82
lines changed

12 files changed

+2
-82
lines changed

api/api-rules/violation_exceptions.list

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ API rule violation: list_type_missing,k8s.io/cloud-provider/config/v1alpha1,Webh
33
API rule violation: list_type_missing,k8s.io/controller-manager/config/v1alpha1,GenericControllerManagerConfiguration,Controllers
44
API rule violation: list_type_missing,k8s.io/controller-manager/config/v1alpha1,LeaderMigrationConfiguration,ControllerLeaders
55
API rule violation: list_type_missing,k8s.io/kube-controller-manager/config/v1alpha1,GarbageCollectorControllerConfiguration,GCIgnoredResources
6-
API rule violation: list_type_missing,k8s.io/kube-controller-manager/config/v1alpha1,PersistentVolumeBinderControllerConfiguration,VolumeHostCIDRDenylist
76
API rule violation: list_type_missing,k8s.io/kube-proxy/config/v1alpha1,KubeProxyConfiguration,NodePortAddresses
87
API rule violation: list_type_missing,k8s.io/kube-proxy/config/v1alpha1,KubeProxyIPVSConfiguration,ExcludeCIDRs
98
API rule violation: list_type_missing,k8s.io/kubelet/config/v1,CredentialProvider,Args
@@ -230,8 +229,6 @@ API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,N
230229
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,NodeLifecycleControllerConfiguration,UnhealthyZoneThreshold
231230
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,PersistentVolumeBinderControllerConfiguration,PVClaimBinderSyncPeriod
232231
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,PersistentVolumeBinderControllerConfiguration,VolumeConfiguration
233-
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,PersistentVolumeBinderControllerConfiguration,VolumeHostAllowLocalLoopback
234-
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,PersistentVolumeBinderControllerConfiguration,VolumeHostCIDRDenylist
235232
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,PersistentVolumeRecyclerConfiguration,IncrementTimeoutHostPath
236233
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,PersistentVolumeRecyclerConfiguration,IncrementTimeoutNFS
237234
API rule violation: names_match,k8s.io/kube-controller-manager/config/v1alpha1,PersistentVolumeRecyclerConfiguration,MaximumRetry

cluster/gce/gci/configure-helper.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,6 @@ function start-kube-controller-manager {
21962196
params+=("--kubeconfig=${config_path}" "--authentication-kubeconfig=${config_path}" "--authorization-kubeconfig=${config_path}")
21972197
params+=("--root-ca-file=${CA_CERT_BUNDLE_PATH}")
21982198
params+=("--service-account-private-key-file=${SERVICEACCOUNT_KEY_PATH}")
2199-
params+=("--volume-host-allow-local-loopback=false")
22002199
if [[ -n "${ENABLE_GARBAGE_COLLECTOR:-}" ]]; then
22012200
params+=("--enable-garbage-collector=${ENABLE_GARBAGE_COLLECTOR}")
22022201
fi

cmd/kube-controller-manager/app/options/options_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ var args = []string{
115115
"--enable-hostpath-provisioner=true",
116116
"--cluster-signing-duration=10h",
117117
"--flex-volume-plugin-dir=/flex-volume-plugin",
118-
"--volume-host-cidr-denylist=127.0.0.1/28,feed::/16",
119-
"--volume-host-allow-local-loopback=false",
120118
"--horizontal-pod-autoscaler-sync-period=45s",
121119
"--horizontal-pod-autoscaler-downscale-stabilization=3m",
122120
"--horizontal-pod-autoscaler-cpu-initialization-period=90s",
@@ -368,8 +366,6 @@ func TestAddFlags(t *testing.T) {
368366
IncrementTimeoutHostPath: 45,
369367
},
370368
},
371-
VolumeHostCIDRDenylist: []string{"127.0.0.1/28", "feed::/16"},
372-
VolumeHostAllowLocalLoopback: false,
373369
},
374370
},
375371
PodGCController: &PodGCControllerOptions{
@@ -617,8 +613,6 @@ func TestApplyTo(t *testing.T) {
617613
IncrementTimeoutHostPath: 45,
618614
},
619615
},
620-
VolumeHostCIDRDenylist: []string{"127.0.0.1/28", "feed::/16"},
621-
VolumeHostAllowLocalLoopback: false,
622616
},
623617
PodGCController: podgcconfig.PodGCControllerConfiguration{
624618
TerminatedPodGCThreshold: 12000,

cmd/kube-controller-manager/app/options/persistentvolumebindercontroller.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ func (o *PersistentVolumeBinderControllerOptions) AddFlags(fs *pflag.FlagSet) {
4343
fs.BoolVar(&o.VolumeConfiguration.EnableHostPathProvisioning, "enable-hostpath-provisioner", o.VolumeConfiguration.EnableHostPathProvisioning, "Enable HostPath PV provisioning when running without a cloud provider. This allows testing and development of provisioning features. HostPath provisioning is not supported in any way, won't work in a multi-node cluster, and should not be used for anything other than testing or development.")
4444
fs.BoolVar(&o.VolumeConfiguration.EnableDynamicProvisioning, "enable-dynamic-provisioning", o.VolumeConfiguration.EnableDynamicProvisioning, "Enable dynamic provisioning for environments that support it.")
4545
fs.StringVar(&o.VolumeConfiguration.FlexVolumePluginDir, "flex-volume-plugin-dir", o.VolumeConfiguration.FlexVolumePluginDir, "Full path of the directory in which the flex volume plugin should search for additional third party volume plugins.")
46-
fs.StringSliceVar(&o.VolumeHostCIDRDenylist, "volume-host-cidr-denylist", o.VolumeHostCIDRDenylist, "A comma-separated list of CIDR ranges to avoid from volume plugins.")
47-
fs.MarkDeprecated("volume-host-cidr-denylist", "This flag is currently no-op and will be deleted.")
48-
fs.BoolVar(&o.VolumeHostAllowLocalLoopback, "volume-host-allow-local-loopback", o.VolumeHostAllowLocalLoopback, "If false, deny local loopback IPs in addition to any CIDR ranges in --volume-host-cidr-denylist")
49-
fs.MarkDeprecated("volume-host-allow-local-loopback", "This flag is currently no-op and will be deleted.")
5046
}
5147

5248
// ApplyTo fills up PersistentVolumeBinderController config with options.
@@ -57,8 +53,6 @@ func (o *PersistentVolumeBinderControllerOptions) ApplyTo(cfg *persistentvolumec
5753

5854
cfg.PVClaimBinderSyncPeriod = o.PVClaimBinderSyncPeriod
5955
cfg.VolumeConfiguration = o.VolumeConfiguration
60-
cfg.VolumeHostCIDRDenylist = o.VolumeHostCIDRDenylist
61-
cfg.VolumeHostAllowLocalLoopback = o.VolumeHostAllowLocalLoopback
6256

6357
return nil
6458
}

pkg/controller/apis/config/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/controller/volume/persistentvolume/config/types.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ type PersistentVolumeBinderControllerConfiguration struct {
2828
PVClaimBinderSyncPeriod metav1.Duration
2929
// volumeConfiguration holds configuration for volume related features.
3030
VolumeConfiguration VolumeConfiguration
31-
// DEPRECATED: VolumeHostCIDRDenylist is a list of CIDRs that should not be reachable by the
32-
// controller from plugins.
33-
VolumeHostCIDRDenylist []string
34-
// DEPRECATED: VolumeHostAllowLocalLoopback indicates if local loopback hosts (127.0.0.1, etc)
35-
// should be allowed from plugins.
36-
VolumeHostAllowLocalLoopback bool
3731
}
3832

3933
// VolumeConfiguration contains *all* enumerated flags meant to configure all volume

pkg/controller/volume/persistentvolume/config/v1alpha1/defaults.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ func RecommendedDefaultPersistentVolumeBinderControllerConfiguration(obj *kubect
3939
obj.PVClaimBinderSyncPeriod = metav1.Duration{Duration: 15 * time.Second}
4040
}
4141

42-
if obj.VolumeHostAllowLocalLoopback == nil {
43-
trueValue := true
44-
obj.VolumeHostAllowLocalLoopback = &trueValue
45-
}
46-
4742
// Use the default VolumeConfiguration options.
4843
RecommendedDefaultVolumeConfiguration(&obj.VolumeConfiguration)
4944
}

pkg/controller/volume/persistentvolume/config/v1alpha1/zz_generated.conversion.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/controller/volume/persistentvolume/config/zz_generated.deepcopy.go

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 1 addition & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)