Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 2024643: Rebase v1.22.5 #1103

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
b82e4b8
remove listx from OWNERS_ALIASES
Aug 10, 2021
fc580a4
support more than 100 disk mounts on Windows
andyzhangx Oct 14, 2021
dd8563b
Run storage hostpath e2e test client pod as privileged
Elbehery Oct 11, 2021
f285405
parameter 'disabled-metrics' is invalid
h4ghhh Sep 16, 2021
6765a52
Free APF seats for watches handled by an aggregated apiserver.
benluddy Oct 6, 2021
7465f1d
fix: skip instance not found when decoupling vmss from lb
nilo19 Oct 14, 2021
39f5a50
Release commit for Kubernetes v1.22.4-rc.0
Oct 27, 2021
33b5f0f
Update CHANGELOG/CHANGELOG-1.22.md for v1.22.3
Oct 27, 2021
e565102
Support cgroupv2 in node problem detector test
bobbypage Oct 19, 2021
b791721
Fix issue in node status updating VolumeAttached list
jingxu97 Aug 20, 2021
dee25f4
Remove nodes with Cluster Autoscaler taint from LB backends.
prameshj Oct 27, 2021
83a25d3
use original requests in NodeResourcesBalancedAllocation instead of N…
ahmad-diaa Oct 22, 2021
9e778cb
Fix race condition in logging when request times out
Oct 18, 2021
84bd48e
sched: ensure feature gate is honored when instantiating scheduler
Huang-Wei Oct 26, 2021
4dfd5db
Add unit tests to cover scheduler's setup
Huang-Wei Nov 3, 2021
b9236d7
Fixing how EndpointSlice Mirroring handles Service selector transitions
robscott Oct 29, 2021
98ad7ac
Update debian, debian-iptables, setcap images to pick up CVE-2021-339…
cpanato Nov 4, 2021
e091d57
Merge pull request #106112 from marseel/automated-cherry-pick-of-#105…
k8s-ci-robot Nov 4, 2021
d2d17d3
Merge pull request #105827 from benluddy/automated-cherry-pick-of-#10…
k8s-ci-robot Nov 4, 2021
6315226
Merge pull request #105786 from Elbehery/cherrypick-unprivileged-stor…
k8s-ci-robot Nov 4, 2021
48c87da
Merge pull request #105990 from bobbypage/automated-cherry-pick-of-#1…
k8s-ci-robot Nov 4, 2021
4968d1a
Merge pull request #106132 from robscott/automated-cherry-pick-of-#10…
k8s-ci-robot Nov 5, 2021
dccaa29
Merge pull request #105692 from andyzhangx/automated-cherry-pick-of-#…
k8s-ci-robot Nov 5, 2021
137731a
Merge pull request #106061 from prameshj/automated-cherry-pick-of-#10…
k8s-ci-robot Nov 8, 2021
f3e8a2e
Merge pull request #106143 from cpanato/debian-122
k8s-ci-robot Nov 8, 2021
bd146ab
Automated cherry pick of #105122: added keys for structured logging (…
ialidzhikov Nov 8, 2021
3bf2248
[go1.16] Update to go1.16.10
cpanato Nov 8, 2021
24b725f
Use separate pathSpec for local and remote to properly handle cleanin…
soltysh Aug 21, 2020
53d4c15
kube-proxy: fix stale detection logic
Nov 4, 2021
0c73323
Manual cherry pick of kube-openapi changes for release-1.22
ulucinar Nov 9, 2021
58f8e28
devicemanager: checkpoint: support pre-1.20 data
ffromani Jun 15, 2021
4623e6a
node: e2e: add test for the checkpoint recovery
ffromani Oct 26, 2021
8ddc296
Don't guess SELinux support on error
jsafrane Oct 27, 2021
9286d72
Add shortcut for SELinux detection
jsafrane Nov 1, 2021
a1bc265
Fixed unit test SELinux support
jsafrane Nov 1, 2021
137d098
Merge pull request #106235 from enj/automated-cherry-pick-of-#94165-u…
k8s-ci-robot Nov 9, 2021
1b37972
e2e: node: release-1.22: backport findKubeletServiceName
ffromani Nov 9, 2021
4b626f8
Merge pull request #106259 from jsafrane/automated-cherry-pick-of-#10…
k8s-ci-robot Nov 9, 2021
a82c1e7
Merge pull request #106223 from cpanato/go116
k8s-ci-robot Nov 10, 2021
b01dafb
Merge pull request #106250 from ulucinar/bump-k-openapi-1.22
k8s-ci-robot Nov 10, 2021
d37689e
Add check for subpaths
gnufied Oct 6, 2021
0fbcd84
Check subpath file
gnufied Nov 9, 2021
248243b
Add tests for checking bind mounts
gnufied Nov 9, 2021
6f60216
Fixed nil pointer dereference
lauchokyip Nov 10, 2021
f939cb1
Merge pull request #106350 from gnufied/automated-cherry-pick-of-#105…
k8s-ci-robot Nov 12, 2021
e775a1d
Merge pull request #104260 from listx/release-1.22
k8s-ci-robot Nov 12, 2021
7a274d6
Merge pull request #106081 from ahmad-diaa/automated-cherry-pick-of-#…
k8s-ci-robot Nov 12, 2021
bfdfba3
Merge pull request #106052 from jingxu97/automated-cherry-pick-of-#10…
k8s-ci-robot Nov 12, 2021
38c9923
proxy/iptables: Fix sync_proxy_rules_iptables_total metric
danwinship Nov 4, 2021
438fe5a
proxy/iptables: Improve the sorting logic in TestOverallIPTablesRules…
danwinship Oct 30, 2021
84ff589
proxy/iptables: Misc improvements to unit test
danwinship Oct 25, 2021
bb79123
proxy/iptables: test that we create a consistent set of iptables rules
danwinship Nov 3, 2021
06f17bc
proxy/iptables: Fix TestOnlyLocalNodePortsNoClusterCIDR
danwinship Oct 29, 2021
0be09e4
proxy/iptables: Add more stuff to the unit test
danwinship Oct 27, 2021
5e0795b
proxy/iptables: Remove a no-op check
danwinship Nov 2, 2021
13a4262
proxy/iptables: fix all-vs-ready endpoints a bit
danwinship Nov 2, 2021
b54f9d7
defer close the rotated log open
rphillips Nov 1, 2021
2456f3f
Merge pull request #106383 from rphillips/automated-cherry-pick-of-#1…
k8s-ci-robot Nov 12, 2021
e8768d7
Merge pull request #106239 from aojea/automated-cherry-pick-of-#10616…
k8s-ci-robot Nov 12, 2021
d09a985
Merge pull request #106356 from lauchokyip/automated-cherry-pick-of-#…
k8s-ci-robot Nov 12, 2021
1e4cacb
NodeConformance: Respect grace period when updating static pod
gjkim42 Aug 3, 2021
0bdfab7
Ensure there is one running static pod with the same full name
gjkim42 Sep 1, 2021
604ac4a
Merge pull request #105793 from Huang-Wei/automated-cherry-pick-of-#1…
k8s-ci-robot Nov 13, 2021
5e9932f
Merge pull request #106373 from aojea/automated-cherry-pick-of-#10603…
k8s-ci-robot Nov 13, 2021
714321c
Merge pull request #106130 from Huang-Wei/automated-cherry-pick-of-#1…
k8s-ci-robot Nov 13, 2021
5bace13
Fix flake caused by sampling signal counter too early.
benluddy Nov 10, 2021
2b6d9a4
Add warning about using unsupported CRON_TZ
soltysh Nov 16, 2021
b695d79
Release commit for Kubernetes v1.22.4
Nov 17, 2021
29ddfcf
Release commit for Kubernetes v1.22.5-rc.0
Nov 17, 2021
7c9ac9b
Update CHANGELOG/CHANGELOG-1.22.md for v1.22.4
Nov 17, 2021
c157e2e
Reduce calls to docker from dockershim for stats
jsturtevant Aug 5, 2021
c2904eb
Ignore 'wait: no child processes' error when calling mount/umount
shyamjvs Jul 19, 2021
3a8d9c9
Skip check for all topology labels when using system default spreading
alculquicondor Sep 15, 2021
88e84ee
Merge pull request #106604 from alculquicondor/automated-cherry-pick-…
k8s-ci-robot Nov 23, 2021
c2493e4
kube-scheduler: Increase the duration to expire an assumed pod
ahg-g Nov 14, 2021
8fa0073
Merge pull request #106526 from harche/automated-cherry-pick-of-#1037…
k8s-ci-robot Nov 23, 2021
8d456f2
kubelet: Rejected pods should be filtered from admission
smarterclayton Sep 7, 2021
edaf660
Ensure deletion of pods in queues and cache
alculquicondor Nov 2, 2021
125966a
Merge pull request #106633 from ahg-g/automated-cherry-pick-of-#10641…
k8s-ci-robot Nov 26, 2021
1c85b16
Merge pull request #106684 from alculquicondor/automated-cherry-pick-…
k8s-ci-robot Nov 26, 2021
be40a1f
Merge pull request #104918 from ehashman/automated-cherry-pick-of-#10…
k8s-ci-robot Nov 29, 2021
ca3a1dc
Merge pull request #106500 from jsturtevant/automated-cherry-pick-of-…
k8s-ci-robot Dec 1, 2021
74d6b65
Merge pull request #106253 from fromanirh/automated-cherry-pick-of-#1…
k8s-ci-robot Dec 2, 2021
da50388
Merge pull request #106394 from gjkim42/automated-cherry-pick-of-#104…
k8s-ci-robot Dec 2, 2021
f43d3e3
[go1.16] Update to go1.16.11
cpanato Dec 6, 2021
c6ca334
Merge pull request #106837 from cpanato/go116-release-1-22
k8s-ci-robot Dec 8, 2021
9bc1624
kubelet: set failed phase during graceful shutdown
bobbypage Dec 9, 2021
a664779
kubeadm: validate local etcd certficates during expiration checks
neolit123 Dec 8, 2021
e248fbe
kubeadm: print the CA of kubeconfig files in "check expiration"
neolit123 Dec 8, 2021
d431931
kubeadm: avoid requiring a CA key during kubeconfig expiration checks
neolit123 Dec 7, 2021
9697f6b
Merge pull request #106899 from bobbypage/graceful-shutdown-fix
k8s-ci-robot Dec 9, 2021
1448d09
Merge pull request #106487 from soltysh/automated-cherry-pick-of-#106…
k8s-ci-robot Dec 10, 2021
ebe30df
Merge pull request #105836 from nilo19/automated-cherry-pick-of-#1056…
k8s-ci-robot Dec 10, 2021
5d11dd7
Merge pull request #106457 from benluddy/automated-cherry-pick-of-#10…
k8s-ci-robot Dec 10, 2021
ee4feba
Merge pull request #106930 from neolit123/automated-cherry-pick-of-#1…
k8s-ci-robot Dec 10, 2021
13fe78d
Merge pull request #106925 from neolit123/automated-cherry-pick-of-#1…
k8s-ci-robot Dec 10, 2021
cd6f99f
dependencies: Update golang.org/x/net to v0.0.0-20211209124913-491a49…
cpanato Dec 10, 2021
98cce2d
[go1.16] Update to go1.16.12
cpanato Dec 12, 2021
d0b51ca
Merge pull request #106982 from cpanato/go116-1.22
k8s-ci-robot Dec 13, 2021
603c0de
Merge pull request #106960 from cpanato/update-xnet-122t
k8s-ci-robot Dec 13, 2021
5c99e2a
Release commit for Kubernetes v1.22.5
Dec 16, 2021
4900551
Merge tag 'v1.22.5' into release-4.9
Jan 4, 2022
76bcbf6
UPSTREAM: <drop>: manually resolve conflicts
Jan 4, 2022
a845857
UPSTREAM: <drop>: hack/update-vendor.sh, make update and update image
Jan 4, 2022
bc26962
Merge branch 'release-4.9' into rebase-1.22.5
josefkarasek Feb 1, 2022
e5d665c
Ignore container notfound error while getPodstatuses
249043822 Jan 20, 2022
1f3ad73
kubelet: fix podstatus not containing pod full name
rphillips Jan 21, 2022
7199e31
Add an e2e test for updating a static pod while it restarts
gjkim42 Jan 29, 2022
31806f2
kubelet: Clean up a static pod that has been terminated before starting
gjkim42 Jan 31, 2022
fa3f5d6
remove InitFlags for pod_workers test
rphillips Feb 23, 2022
91ce514
UPSTREAM: <drop>: Disable Conntrack UDP traffic test
damemi Dec 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
425 changes: 336 additions & 89 deletions CHANGELOG/CHANGELOG-1.22.md

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,13 @@ aliases:
- cblecker
- dims
- justaugustus # Release Manager / SIG Chair
- listx
build-image-reviewers:
- BenTheElder
- cblecker
- cpanato # Release Manager / SIG Technical Lead
- dims
- hasheddan # Release Manager / SIG Technical Lead
- justaugustus # Release Manager / SIG Chair
- listx
- puerco # Release Manager / SIG Technical Lead
- saschagrunert # Release Manager / SIG Chair
- xmudrii # Release Manager
Expand Down
2 changes: 1 addition & 1 deletion build/build-image/cross/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.22.0-go1.16.9-buster.0
v1.22.0-go1.16.12-buster.0
6 changes: 3 additions & 3 deletions build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ readonly KUBE_RSYNC_PORT="${KUBE_RSYNC_PORT:-}"
readonly KUBE_CONTAINER_RSYNC_PORT=8730

# These are the default versions (image tags) for their respective base images.
readonly __default_debian_iptables_version=buster-v1.6.5
readonly __default_go_runner_version=v2.3.1-go1.16.9-buster.0
readonly __default_setcap_version=buster-v2.0.3
readonly __default_debian_iptables_version=buster-v1.6.7
readonly __default_go_runner_version=v2.3.1-go1.16.12-buster.0
readonly __default_setcap_version=buster-v2.0.4

# These are the base images for the Docker-wrapped binaries.
readonly KUBE_GORUNNER_IMAGE="${KUBE_GORUNNER_IMAGE:-$KUBE_BASE_IMAGE_REGISTRY/go-runner:$__default_go_runner_version}"
Expand Down
12 changes: 6 additions & 6 deletions build/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ dependencies:

# Golang
- name: "golang: upstream version"
version: 1.16.9
version: 1.16.12
refPaths:
- path: build/build-image/cross/VERSION
- path: cluster/addons/fluentd-elasticsearch/es-image/Dockerfile
Expand All @@ -124,13 +124,13 @@ dependencies:
match: minimum_go_version=go([0-9]+\.[0-9]+)

- name: "k8s.gcr.io/kube-cross: dependents"
version: v1.22.0-go1.16.9-buster.0
version: v1.22.0-go1.16.12-buster.0
refPaths:
- path: build/build-image/cross/VERSION

# Base images
- name: "k8s.gcr.io/debian-base: dependents"
version: buster-v1.8.0
version: buster-v1.9.0
refPaths:
- path: cluster/images/etcd/Makefile
match: BASEIMAGE\?\=k8s\.gcr\.io\/build-image\/debian-base:[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
Expand All @@ -144,15 +144,15 @@ dependencies:
match: BASEIMAGE\?\=k8s\.gcr\.io\/build-image\/debian-base-s390x:[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)

- name: "k8s.gcr.io/debian-iptables: dependents"
version: buster-v1.6.5
version: buster-v1.6.7
refPaths:
- path: build/common.sh
match: __default_debian_iptables_version=
- path: test/utils/image/manifest.go
match: configs\[DebianIptables\] = Config{list\.BuildImageRegistry, "debian-iptables", "[a-zA-Z]+\-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)"}

- name: "k8s.gcr.io/go-runner: dependents"
version: v2.3.1-go1.16.9-buster.0
version: v2.3.1-go1.16.12-buster.0
refPaths:
- path: build/common.sh
match: __default_go_runner_version=
Expand Down Expand Up @@ -216,7 +216,7 @@ dependencies:
match: configs\[Pause\] = Config{list\.GcRegistry, "pause", "\d+\.\d+(.\d+)?"}

- name: "k8s.gcr.io/setcap: dependents"
version: buster-v2.0.3
version: buster-v2.0.4
refPaths:
- path: build/common.sh
match: __default_setcap_version=
Expand Down
2 changes: 1 addition & 1 deletion cluster/addons/fluentd-elasticsearch/es-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.16.9 AS builder
FROM golang:1.16.12 AS builder
COPY elasticsearch_logging_discovery.go go.mod go.sum /
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -ldflags "-w" -o /elasticsearch_logging_discovery /elasticsearch_logging_discovery.go

Expand Down
10 changes: 5 additions & 5 deletions cluster/images/etcd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ GOARM?=7
TEMP_DIR:=$(shell mktemp -d)

ifeq ($(ARCH),amd64)
BASEIMAGE?=k8s.gcr.io/build-image/debian-base:buster-v1.8.0
BASEIMAGE?=k8s.gcr.io/build-image/debian-base:buster-v1.9.0
endif
ifeq ($(ARCH),arm)
BASEIMAGE?=k8s.gcr.io/build-image/debian-base-arm:buster-v1.8.0
BASEIMAGE?=k8s.gcr.io/build-image/debian-base-arm:buster-v1.9.0
endif
ifeq ($(ARCH),arm64)
BASEIMAGE?=k8s.gcr.io/build-image/debian-base-arm64:buster-v1.8.0
BASEIMAGE?=k8s.gcr.io/build-image/debian-base-arm64:buster-v1.9.0
endif
ifeq ($(ARCH),ppc64le)
BASEIMAGE?=k8s.gcr.io/build-image/debian-base-ppc64le:buster-v1.8.0
BASEIMAGE?=k8s.gcr.io/build-image/debian-base-ppc64le:buster-v1.9.0
endif
ifeq ($(ARCH),s390x)
BASEIMAGE?=k8s.gcr.io/build-image/debian-base-s390x:buster-v1.8.0
BASEIMAGE?=k8s.gcr.io/build-image/debian-base-s390x:buster-v1.9.0
endif

RUNNERIMAGE?=gcr.io/distroless/static:latest
Expand Down
23 changes: 14 additions & 9 deletions cmd/kube-scheduler/app/options/deprecated.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@ import (

"github.com/spf13/pflag"
"k8s.io/apimachinery/pkg/util/validation/field"
componentbaseconfig "k8s.io/component-base/config"
schedulerappconfig "k8s.io/kubernetes/cmd/kube-scheduler/app/config"
kubeschedulerconfig "k8s.io/kubernetes/pkg/scheduler/apis/config"
)

// DeprecatedOptions contains deprecated options and their flags.
// TODO remove these fields once the deprecated flags are removed.
type DeprecatedOptions struct {
componentbaseconfig.DebuggingConfiguration
componentbaseconfig.ClientConnectionConfiguration
// Note that only the deprecated options (lock-object-name and lock-object-namespace) are populated here.
componentbaseconfig.LeaderElectionConfiguration
// The fields below here are placeholders for flags that can't be directly
// mapped into componentconfig.KubeSchedulerConfiguration.
PolicyConfigFile string
Expand All @@ -37,7 +42,7 @@ type DeprecatedOptions struct {
}

// AddFlags adds flags for the deprecated options.
func (o *DeprecatedOptions) AddFlags(fs *pflag.FlagSet, cfg *kubeschedulerconfig.KubeSchedulerConfiguration) {
func (o *DeprecatedOptions) AddFlags(fs *pflag.FlagSet) {
if o == nil {
return
}
Expand All @@ -48,14 +53,14 @@ func (o *DeprecatedOptions) AddFlags(fs *pflag.FlagSet, cfg *kubeschedulerconfig
fs.StringVar(&o.PolicyConfigMapNamespace, "policy-configmap-namespace", o.PolicyConfigMapNamespace, "DEPRECATED: the namespace where policy ConfigMap is located. The kube-system namespace will be used if this is not provided or is empty. Note: The predicates/priorities defined in this file will take precedence over any profiles define in ComponentConfig.")
fs.BoolVar(&o.UseLegacyPolicyConfig, "use-legacy-policy-config", o.UseLegacyPolicyConfig, "DEPRECATED: when set to true, scheduler will ignore policy ConfigMap and uses policy config file. Note: The scheduler will fail if this is combined with Plugin configs")

fs.BoolVar(&cfg.EnableProfiling, "profiling", cfg.EnableProfiling, "DEPRECATED: enable profiling via web interface host:port/debug/pprof/. This parameter is ignored if a config file is specified in --config.")
fs.BoolVar(&cfg.EnableContentionProfiling, "contention-profiling", cfg.EnableContentionProfiling, "DEPRECATED: enable lock contention profiling, if profiling is enabled. This parameter is ignored if a config file is specified in --config.")
fs.StringVar(&cfg.ClientConnection.Kubeconfig, "kubeconfig", cfg.ClientConnection.Kubeconfig, "DEPRECATED: path to kubeconfig file with authorization and master location information. This parameter is ignored if a config file is specified in --config.")
fs.StringVar(&cfg.ClientConnection.ContentType, "kube-api-content-type", cfg.ClientConnection.ContentType, "DEPRECATED: content type of requests sent to apiserver. This parameter is ignored if a config file is specified in --config.")
fs.Float32Var(&cfg.ClientConnection.QPS, "kube-api-qps", cfg.ClientConnection.QPS, "DEPRECATED: QPS to use while talking with kubernetes apiserver. This parameter is ignored if a config file is specified in --config.")
fs.Int32Var(&cfg.ClientConnection.Burst, "kube-api-burst", cfg.ClientConnection.Burst, "DEPRECATED: burst to use while talking with kubernetes apiserver. This parameter is ignored if a config file is specified in --config.")
fs.StringVar(&cfg.LeaderElection.ResourceNamespace, "lock-object-namespace", cfg.LeaderElection.ResourceNamespace, "DEPRECATED: define the namespace of the lock object. Will be removed in favor of leader-elect-resource-namespace. This parameter is ignored if a config file is specified in --config.")
fs.StringVar(&cfg.LeaderElection.ResourceName, "lock-object-name", cfg.LeaderElection.ResourceName, "DEPRECATED: define the name of the lock object. Will be removed in favor of leader-elect-resource-name. This parameter is ignored if a config file is specified in --config.")
fs.BoolVar(&o.EnableProfiling, "profiling", true, "DEPRECATED: enable profiling via web interface host:port/debug/pprof/. This parameter is ignored if a config file is specified in --config.")
fs.BoolVar(&o.EnableContentionProfiling, "contention-profiling", true, "DEPRECATED: enable lock contention profiling, if profiling is enabled. This parameter is ignored if a config file is specified in --config.")
fs.StringVar(&o.Kubeconfig, "kubeconfig", "", "DEPRECATED: path to kubeconfig file with authorization and master location information. This parameter is ignored if a config file is specified in --config.")
fs.StringVar(&o.ContentType, "kube-api-content-type", "application/vnd.kubernetes.protobuf", "DEPRECATED: content type of requests sent to apiserver. This parameter is ignored if a config file is specified in --config.")
fs.Float32Var(&o.QPS, "kube-api-qps", 50.0, "DEPRECATED: QPS to use while talking with kubernetes apiserver. This parameter is ignored if a config file is specified in --config.")
fs.Int32Var(&o.Burst, "kube-api-burst", 100, "DEPRECATED: burst to use while talking with kubernetes apiserver. This parameter is ignored if a config file is specified in --config.")
fs.StringVar(&o.ResourceNamespace, "lock-object-namespace", "kube-system", "DEPRECATED: define the namespace of the lock object. Will be removed in favor of leader-elect-resource-namespace. This parameter is ignored if a config file is specified in --config.")
fs.StringVar(&o.ResourceName, "lock-object-name", "kube-scheduler", "DEPRECATED: define the name of the lock object. Will be removed in favor of leader-elect-resource-name. This parameter is ignored if a config file is specified in --config.")
}

// Validate validates the deprecated scheduler options.
Expand Down
4 changes: 2 additions & 2 deletions cmd/kube-scheduler/app/options/insecure_serving.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func (o *CombinedInsecureServingOptions) AddFlags(fs *pflag.FlagSet) {
return
}

fs.StringVar(&o.BindAddress, "address", o.BindAddress, "DEPRECATED: the IP address on which to listen for the --port port (set to 0.0.0.0 or :: for listening in all interfaces and IP families). See --bind-address instead. This parameter is ignored if a config file is specified in --config.")
fs.StringVar(&o.BindAddress, "address", "0.0.0.0", "DEPRECATED: the IP address on which to listen for the --port port (set to 0.0.0.0 or :: for listening in all interfaces and IP families). See --bind-address instead. This parameter is ignored if a config file is specified in --config.")
// MarkDeprecated hides the flag from the help. We don't want that:
// fs.MarkDeprecated("address", "see --bind-address instead.")
fs.IntVar(&o.BindPort, "port", o.BindPort, "DEPRECATED: the port on which to serve HTTP insecurely without authentication and authorization. If 0, don't serve plain HTTP at all. See --secure-port instead. This parameter is ignored if a config file is specified in --config.")
fs.IntVar(&o.BindPort, "port", kubeschedulerconfig.DefaultInsecureSchedulerPort, "DEPRECATED: the port on which to serve HTTP insecurely without authentication and authorization. If 0, don't serve plain HTTP at all. See --secure-port instead. This parameter is ignored if a config file is specified in --config.")
// MarkDeprecated hides the flag from the help. We don't want that:
// fs.MarkDeprecated("port", "see --secure-port instead.")
}
Expand Down
18 changes: 9 additions & 9 deletions cmd/kube-scheduler/app/options/insecure_serving_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestOptions_ApplyTo(t *testing.T) {
{
name: "no config, zero port",
options: Options{
ComponentConfig: kubeschedulerconfig.KubeSchedulerConfiguration{
ComponentConfig: &kubeschedulerconfig.KubeSchedulerConfiguration{
HealthzBindAddress: "1.2.3.4:1234",
MetricsBindAddress: "1.2.3.4:1234",
},
Expand All @@ -56,7 +56,7 @@ func TestOptions_ApplyTo(t *testing.T) {
{
name: "config loaded, non-nil healthz",
options: Options{
ComponentConfig: kubeschedulerconfig.KubeSchedulerConfiguration{
ComponentConfig: &kubeschedulerconfig.KubeSchedulerConfiguration{
HealthzBindAddress: "1.2.3.4:1234",
MetricsBindAddress: "1.2.3.4:1234",
},
Expand All @@ -74,7 +74,7 @@ func TestOptions_ApplyTo(t *testing.T) {
{
name: "config loaded, non-nil metrics",
options: Options{
ComponentConfig: kubeschedulerconfig.KubeSchedulerConfiguration{
ComponentConfig: &kubeschedulerconfig.KubeSchedulerConfiguration{
HealthzBindAddress: "1.2.3.4:1234",
MetricsBindAddress: "1.2.3.4:1234",
},
Expand All @@ -92,7 +92,7 @@ func TestOptions_ApplyTo(t *testing.T) {
{
name: "config loaded, all set, zero BindPort",
options: Options{
ComponentConfig: kubeschedulerconfig.KubeSchedulerConfiguration{
ComponentConfig: &kubeschedulerconfig.KubeSchedulerConfiguration{
HealthzBindAddress: "1.2.3.4:1234",
MetricsBindAddress: "1.2.3.4:1234",
},
Expand All @@ -113,7 +113,7 @@ func TestOptions_ApplyTo(t *testing.T) {
{
name: "config loaded, all set, different addresses",
options: Options{
ComponentConfig: kubeschedulerconfig.KubeSchedulerConfiguration{
ComponentConfig: &kubeschedulerconfig.KubeSchedulerConfiguration{
HealthzBindAddress: "1.2.3.4:1234",
MetricsBindAddress: "1.2.3.4:1235",
},
Expand All @@ -136,7 +136,7 @@ func TestOptions_ApplyTo(t *testing.T) {
{
name: "no config, all set, port passed",
options: Options{
ComponentConfig: kubeschedulerconfig.KubeSchedulerConfiguration{
ComponentConfig: &kubeschedulerconfig.KubeSchedulerConfiguration{
HealthzBindAddress: "1.2.3.4:1234",
MetricsBindAddress: "1.2.3.4:1234",
},
Expand All @@ -158,7 +158,7 @@ func TestOptions_ApplyTo(t *testing.T) {
{
name: "no config, all set, address passed",
options: Options{
ComponentConfig: kubeschedulerconfig.KubeSchedulerConfiguration{
ComponentConfig: &kubeschedulerconfig.KubeSchedulerConfiguration{
HealthzBindAddress: "1.2.3.4:1234",
MetricsBindAddress: "1.2.3.4:1234",
},
Expand All @@ -180,7 +180,7 @@ func TestOptions_ApplyTo(t *testing.T) {
{
name: "no config, all set, zero port passed",
options: Options{
ComponentConfig: kubeschedulerconfig.KubeSchedulerConfiguration{
ComponentConfig: &kubeschedulerconfig.KubeSchedulerConfiguration{
HealthzBindAddress: "1.2.3.4:1234",
MetricsBindAddress: "1.2.3.4:1234",
},
Expand All @@ -197,7 +197,7 @@ func TestOptions_ApplyTo(t *testing.T) {
for i, tt := range tests {
t.Run(fmt.Sprintf("%d-%s", i, tt.name), func(t *testing.T) {
c := schedulerappconfig.Config{
ComponentConfig: tt.options.ComponentConfig,
ComponentConfig: *tt.options.ComponentConfig,
}

if tt.options.CombinedInsecureServing != nil {
Expand Down