Skip to content

Rebase kubernetes 1.7.6 #42

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

Merged
merged 166 commits into from
Oct 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
0c43cd9
UPSTREAM: <carry>: reallow the ability to post across namespaces in api
Aug 11, 2015
dec1812
UPSTREAM: <carry>: add kubelet timeouts
soltysh Dec 21, 2015
372b4fd
UPSTREAM: <carry>: Tolerate node ExternalID changes with no cloud pro…
DirectXMan12 Jan 12, 2016
30ecb24
UPSTREAM: <carry>: Add our types to kubectl get error
Nov 18, 2016
dfd18ea
UPSTREAM: <carry>: Allow overriding default generators for run
liggitt Mar 16, 2016
5a33e34
UPSTREAM: <carry>: force import ordering for stable codegen
Nov 18, 2016
b60ea94
UPSTREAM: <drop>: merge multiple registrations for the same group
deads2k Feb 1, 2016
b892bc9
UPSTREAM: <carry>: add service serving cert signer to token controller
deads2k May 26, 2016
0be53fc
UPSTREAM: <carry>: fix fifo resync, remove after FIFO is dead
deads2k Jul 14, 2016
0eff8f3
UPSTREAM: <carry>: ignored namespace lifecycle resources
deads2k Jun 14, 2017
f7566e7
UPSTREAM: <carry>: Disable file locking in clientcmd
smarterclayton Sep 13, 2016
6d1e050
UPSTREAM: <carry>: Disable e2e pre-check on scheduler predicates
Nov 28, 2016
19fb614
UPSTREAM: <drop>: add origin resource shortcuts to kube shortcut rest…
Dec 19, 2016
9e86141
UPSTREAM: <carry>: Double container probe timeout
smarterclayton Jan 16, 2017
187602e
UPSTREAM: <carry>: Increase service endpoint test timeout
smarterclayton Jan 16, 2017
c5307ad
UPSTREAM: <carry>: Pod deletion can be contended, causing test failure
smarterclayton Jan 17, 2017
ed6be64
UPSTREAM: docker/engine-api: 26718: Add Logs to ContainerAttachOptions
sttts Mar 9, 2017
0cd1393
UPSTREAM: <carry>: update clientset generator for openshift groups
deads2k Mar 22, 2017
20564c4
UPSTREAM: carry: google.golang.org/grpc 231b4cfea0e79843053a33f5fe90b…
sttts Mar 15, 2017
b6f8418
UPSTREAM: <carry>: openapi test, patch in updated package name
deads2k Apr 25, 2017
486553b
UPSTREAM: 00000: make AsVersionedObjects default cleanly
deads2k Apr 25, 2017
ac07ab2
UPSTREAM: <carry>: Fix to avoid REST API calls at log level 2.
Apr 20, 2017
26c646b
UPSTREAM: 00000: disambiguate operation names for legacy discovery
deads2k Jun 7, 2017
485baa9
UPSTREAM: <carry>: remove JSON codec
deads2k Jul 5, 2017
b2dd9ae
UPSTREAM: 47975: make proto time precision match json
deads2k Jun 23, 2017
03c2ecd
UPSTREAM: 48017: Plumb preferred version to nested object encoder
liggitt Jun 24, 2017
c31e900
UPSTREAM: 47740: Add websocket protocol authentication method
liggitt Jun 19, 2017
b791231
UPSTREAM: 47740: Use websocket protocol authenticator in apiserver
liggitt Jun 19, 2017
d7c93b2
UPSTREAM: <carry>: add patch to allow shimming SCC
deads2k Jun 15, 2017
d61b2df
UPSTREAM: <carry>: update client namer rules for amguity
deads2k Jun 23, 2017
de0337b
UPSTREAM: <carry>: update group references
deads2k Jun 26, 2017
481c21b
UPSTREAM: 47823: don't pass CRI error through to waiting state reason
sjenning Jun 21, 2017
0606f8b
UPSTREAM: 47094: prioritize messages for long steps
eparis Jun 26, 2017
74a8afb
UPSTREAM: 47919: Use %q formatter for error messages from the AWS SDK…
Jun 22, 2017
bc1890e
UPSTREAM: 47367: Add client side event rate limiting
derekwaynecarr Jun 15, 2017
485c266
UPSTREAM: 48343: don't accept delete tokens that are waiting to be re…
deads2k Jun 30, 2017
1b41c16
UPSTREAM: 44784: Handle vendored names in OpenAPI gen
smarterclayton Jun 30, 2017
53082dd
UPSTREAM: 48354: allow a deletestrategy to opt-out of GC
deads2k Jun 30, 2017
810d5a4
UPSTREAM: 48394: GuaranteedUpdate must write if stored data is not ca…
smarterclayton Jul 2, 2017
1dd0acf
UPSTREAM: 47347: actually check for a live discovery endpoint before …
deads2k Jun 12, 2017
9edd653
UPSTREAM: <carry>: commit generated openapi
deads2k Jul 24, 2017
1b5c258
UPSTREAM: <drop>: generated updates
deads2k Jul 6, 2017
11be20e
UPSTREAM: 45894: Export BaseControllerRefManager
deads2k Jul 6, 2017
a264648
UPSTREAM: 49130: expose RegisterAllAdmissionPlugins
deads2k Jul 6, 2017
adaeb19
UPSTREAM: 49131: expose direct from config new scheduler method
deads2k Jul 6, 2017
dc05b03
UPSTREAM: 49132: make a union categoryexpander
deads2k Jul 7, 2017
bc0fca6
UPSTREAM: <carry>: make wiring in kubeproxy easy until we sort out co…
deads2k Jul 10, 2017
d3192d6
UPSTREAM: <carry>: compensate for poor printer behavior
deads2k Jul 11, 2017
a9a5308
UPSTREAM: <carry>: increase wait in kubecontrollers
deads2k Jul 10, 2017
b47ade8
UPSTREAM: 49133: update permissions to allow block owner deletion
deads2k Jul 11, 2017
1083652
UPSTREAM: 49134: tolerate missing template
deads2k Jul 11, 2017
9da98eb
UPSTREAM: 49136: don't mutate printers after creation
deads2k Jul 11, 2017
0d9dd47
UPSTREAM: 45294: Fix protobuf generator for aliases to repeated types
deads2k Jul 11, 2017
8622442
UPSTREAM: <carry>: generator updates
deads2k Jul 10, 2017
b6b7508
UPSTREAM: <carry>: squash to SCC
deads2k Jul 11, 2017
0c2ae59
UPSTREAM: 49137: proxier is it really nil
deads2k Jul 12, 2017
a552749
UPSTREAM: <carry>: allow separate mapping fo kind
deads2k Jul 12, 2017
e4e5dd1
UPSTREAM: <drop>: disable suspicously failing tests
deads2k Jul 14, 2017
de2ffbc
UPSTREAM: 49139: expose proxy default
deads2k Jul 13, 2017
8889f23
UPSTREAM: 48481: protect against nil panic in apply
fabianofranz Jul 5, 2017
500d25e
UPSTREAM: 48582: Fixes oc delete ignoring --grace-period.
fabianofranz Jul 7, 2017
dac90a0
UPSTREAM: 48578: run must output message on container error
fabianofranz Jul 7, 2017
da51183
UPSTREAM: 48613: proxy/userspace: honor listen IP address as host IP …
dcbw Jul 12, 2017
18c0830
UPSTREAM: 48884: Do not mutate pods on update
smarterclayton Jul 13, 2017
3bf69d1
UPSTREAM: 49120: Modify podpreset lister to use correct namespace
Jul 19, 2017
7d7181c
UPSTREAM: 48635: proxy/userspace: suppress "LoadBalancerRR: Removing …
deads2k Jul 19, 2017
b60d02c
UPSTREAM: 48960: No warning event for DNSSearchForming
derekwaynecarr Jul 17, 2017
97cdcea
UPSTREAM: 47731: Use endpoints informer for the endpoint controller.
Jul 5, 2017
257b758
UPSTREAM: 47788: Get rid of 30s ResyncPeriod in endpoint controller.
Jul 5, 2017
bc37d43
UPSTREAM: 49230: use informers for quota calculation
derekwaynecarr Jul 19, 2017
5f917e9
UPSTREAM: 49285: do not mutate statefulset on update
mfojtik Jul 19, 2017
d03dc7f
UPSTREAM: 49111: Fix findmnt parsing in containerized kubelet
jsafrane Jul 20, 2017
e40bdc8
UPSTREAM: 49227: tighten quota controller interface
deads2k Jul 20, 2017
2cfbbd2
UPSTREAM: 49127: Make definite mount timeout for glusterfs volume mount
jsafrane Jul 21, 2017
9fdd1f5
UPSTREAM: 49312: allow the /version endpoint to pass through
deads2k Jul 20, 2017
dd7115b
UPSTREAM: 49379: Pass clientset's Interface to CreateScheduler.
Jul 21, 2017
5787db7
UPSTREAM: 49326: add cronjobs to all
deads2k Jul 20, 2017
bfdcfd8
UPSTREAM: 49395: rate limiting should not affect system masters
deads2k Jul 24, 2017
9b61415
UPSTREAM: 48940: support fc volume attach and detach
rootfs Jul 21, 2017
d28936e
UPSTREAM: 48518: Kubelet client cert initialization (and 48519)
smarterclayton Jul 20, 2017
d2d070d
UPSTREAM: 49514: Make client bootstrap public
smarterclayton Jul 20, 2017
b4e8224
UPSTREAM: 48778: check for negative values
juanvallejo Jul 11, 2017
e34515b
UPSTREAM: 49475: Fixed glusterfs mount options
jsafrane Jul 25, 2017
e45bdb9
UPSTREAM: 48224: add reflector metrics
deads2k Jul 25, 2017
cd79d5b
UPSTREAM: 49656: make admission tolerate object without objectmeta fo…
deads2k Jul 26, 2017
ddaf805
UPSTREAM: 49114: Move generators to staging/src/k8s.io/kube-gen
mfojtik Jul 25, 2017
b3f83eb
UPSTREAM: <carry>: Do not error out on pods in kube-system
smarterclayton Jul 27, 2017
efed96c
UPSTREAM: 49724: skip WaitForAttachAndMount for terminated pods in sy…
sjenning Jul 28, 2017
efe262f
UPSTREAM: 49448: Use an interface in lock election
smarterclayton Jul 22, 2017
7739ffb
UPSTREAM: <drop>: make openapi handler serialize in the background
deads2k Jul 28, 2017
52db415
UPSTREAM: <drop>: pickup clientgen changes
mfojtik Jul 31, 2017
219087a
UPSTREAM: <drop>: update kubernetes types for new codegen syntax
mfojtik Jul 31, 2017
4582a11
UPSTREAM: 00000: allow nil openapispec
deads2k Aug 1, 2017
5a1c51c
UPSTREAM: <drop>: allow duplicate openapi paths. this is moved in 1.8
deads2k Aug 1, 2017
e45cc49
UPSTREAM: <drop>: don't hold API server start on superslow openapi ag…
deads2k Aug 1, 2017
516ef75
UPSTREAM: <drop>: aggregate openapi through servers. 1.8 should fix t…
deads2k Aug 1, 2017
fd36715
UPSTREAM: <drop>: regenerate clientsets using updated codegen
mfojtik Aug 2, 2017
5cac545
UPSTREAM: 49919: Fix duplicate metrics collector registration attempt…
deads2k Aug 2, 2017
6a5fe69
UPSTREAM: 50019: create default selection functions for storage
deads2k Aug 1, 2017
89409fb
UPSTREAM: 50259: provide the failing health as part of the controller…
deads2k Aug 7, 2017
3461885
UPSTREAM: 49972: remove dead log handler and increase verbosity
deads2k Aug 7, 2017
1f2653d
UPSTREAM: 47267: flag support in kubectl plugins
fabianofranz Aug 8, 2017
13085d2
UPSTREAM: 49868: Status objects for 404 API errors will have the corr…
enj Aug 9, 2017
fb96eae
UPSTREAM: 50139: skip generation of informers and listers on resource…
mfojtik Aug 4, 2017
1ae8a4c
UPSTREAM: <drop>: skip TSB namespace when checking for scheduled pods
deads2k Aug 15, 2017
9f7f907
UPSTREAM: 50639: Extend SetHeader Requests method ito accept multiple…
simo5 Jul 10, 2017
e986cf8
UPSTREAM: 50702: Allow injection of policy in RBAC post start hook
enj Aug 15, 2017
02c7d75
UPSTREAM: 50710: Refactor RBAC authorizer entry points
enj Aug 15, 2017
6848f4e
UPSTREAM: 49902: Allow update to GC fields for RBAC resources
enj Aug 15, 2017
6e22434
UPSTREAM: 50620: allow default option values - oc adm top node|pod
juanvallejo Aug 15, 2017
e586557
UPSTREAM: 50911: add diff details to pod validation error
deads2k Aug 18, 2017
ab6d47e
UPSTREAM: 50934: Skip non-update endpoint updates
sjenning Aug 21, 2017
18013e2
UPSTREAM: 51144: Fix unready endpoints bug introduced in #50934
joelsmith Aug 23, 2017
eeb75ee
UPSTREAM: 51197: provide a default field selector for name and namespace
deads2k Aug 18, 2017
080886c
UPSTREAM: 51208: Add an OrDie version for AddPostStartHook
simo5 Aug 23, 2017
39716e6
UPSTREAM: 51534: update scheduler to return structured errors instead…
deads2k Aug 29, 2017
4f1b244
UPSTREAM: 51535: allow disabling the scheduler port
deads2k Aug 29, 2017
ea1e517
UPSTREAM: 51473: Fix cAdvisor prometheus metrics
smarterclayton Aug 29, 2017
6bcadd5
UPSTREAM: 50258: Add token group adder component
liggitt Aug 7, 2017
5fabe2a
UPSTREAM: 50258: Add token cache component
liggitt Aug 7, 2017
e922fc1
UPSTREAM: 50258: Add union token authenticator
liggitt Aug 7, 2017
51b90d8
UPSTREAM: 50258: Simplify bearer token auth chain, cache successful a…
liggitt Aug 7, 2017
ba43bba
UPSTREAM: 51638: allow to generate extended methods in client-go
mfojtik Aug 28, 2017
bed92e8
UPSTREAM: 51705: Address panic in TestCancelAndReadd
enj Aug 31, 2017
dec5922
UPSTREAM: 51727: ensure all unstructured resources
juanvallejo Aug 31, 2017
05884bc
UPSTREAM: 51636: add reconcile command to kubectl auth
deads2k Sep 1, 2017
9a96473
UPSTREAM: 49142: Slow-start batch pod creation of rs, rc, ds, jobs
joelsmith Sep 1, 2017
37ebe3c
UPSTREAM: <drop>: Fix result type in fake clientset generator
mfojtik Sep 1, 2017
012fb5a
UPSTREAM: 51803: make url parsing in apiserver configurable
deads2k Sep 1, 2017
78bd8e5
UPSTREAM: 51932: fix format of forbidden messages
deads2k Sep 5, 2017
c4d5074
UPSTREAM: 50843: FlexVolume: Add ability to control 'SupportsSELinux'…
Sep 6, 2017
8874eeb
UPSTREAM: 49219: Use case-insensitive header keys for --requestheader…
deads2k Sep 6, 2017
2780226
UPSTREAM: 45345: Support "fstype" parameter in dynamically provisione…
jsafrane Sep 8, 2017
01091ba
UPSTREAM: 48502: Add a refreshing discovery client
deads2k Sep 7, 2017
b38c71d
UPSTREAM: 49416: FC volume plugin: remove block device at DetachDisk
rootfs Sep 8, 2017
796673a
UPSTREAM: 50094: apimachinery: remove pre-apigroups import path logic
sttts Aug 10, 2017
69a4f9d
UPSTREAM: 52127: Fix deployment timeout reporting
0xmichalis Sep 11, 2017
388b4f1
bump(k8s.io/code-generator): UPSTREAM: <drop>: rename generators to m…
deads2k Sep 11, 2017
8eff8e8
bump(k8s.io/code-generator): UPSTREAM: <drop>: handle kube-gen rename
deads2k Sep 11, 2017
06d8cf6
UPSTREAM: 52344: Do not log spam image pull backoff
smarterclayton Sep 12, 2017
cc05cd9
Avoid printing node list for LoadBalancer in log file
imcsk8 Sep 11, 2017
f8eb904
UPSTREAM: 49640: Run mount in its own systemd scope
jsafrane Aug 10, 2017
97d6dc5
UPSTREAM: <carry>: allow controller context injection to share informers
deads2k Sep 7, 2017
77e2e1c
UPSTREAM: 51448: Add PVCRef to VolumeStats
Sep 7, 2017
1b48522
UPSTREAM: 51553: Expose PVC metrics via kubelet prometheus
Sep 7, 2017
34da307
UPSTREAM: 51644: do not update init containers status if terminated
sjenning Sep 8, 2017
723eaf7
UPSTREAM: 49025: fix NodePort test on baremetal installs
danwinship Aug 14, 2017
1a92d90
UPSTREAM: <drop>: add debugging to NodePort test
danwinship Aug 14, 2017
3fde567
UPSTREAM: 50334: Support iscsi volume attach and detach
Sep 12, 2017
5c98bb2
UPSTREAM: 48612: Warn if cluster ID is missing for AWS
Sep 13, 2017
f0f24db
UPSTREAM: 48226: Log get PVC/PV errors in MaxPD predicate only at hig…
Sep 13, 2017
b28b73e
UPSTREAM: 49215: Require Cluster ID for AWS
Sep 13, 2017
83a64e7
UPSTREAM: 48583: Record 429 and timeout errors to prometheus
smarterclayton Sep 8, 2017
6ca72d9
UPSTREAM: 52221: Always populate volume status from node
gnufied Sep 15, 2017
3ed9f27
UPSTREAM: 49638: Remove default binding of system:node role to system…
liggitt Sep 16, 2017
f5be66a
UPSTREAM: 52597: Support flag round tripping
smarterclayton Sep 10, 2017
46bb66b
UPSTREAM: <carry>: increase timeout in TestCancelAndReadd even more
soltysh Sep 18, 2017
80a4400
UPSTREAM: 51728: Enable CRI-O stats from cAdvisor
sjenning Sep 19, 2017
c485988
UPSTREAM: 52073: Fix cross-build
sjenning Sep 19, 2017
c8ebce7
UPSTREAM: 52297: Use cAdvisor constant for crio imagefs
sjenning Sep 19, 2017
5ecf75e
UPSTREAM: 48605: support json output for log backend of advanced audit
soltysh Sep 4, 2017
e6a8827
UPSTREAM: 51119: Allow audit to log authorization failures
soltysh Sep 1, 2017
6bf40ee
UPSTREAM: 52030: Fill in creationtimestamp in audit events
soltysh Sep 18, 2017
fe3d5be
UPSTREAM: 51782: A policy with 0 rules should return an error
soltysh Sep 18, 2017
754741e
UPSTREAM: google/cadvisor: 1741: add CRI-O handler
sjenning Sep 18, 2017
a08f5ee
UPSTREAM: <drop>: generated updates
ironcladlou Oct 3, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,9 @@ kubernetes.tar.gz
# generated files in any directory
# TODO(thockin): uncomment this when we stop committing the generated files.
#zz_generated.*
zz_generated.openapi.go

# make-related metadata
/.make/
# Just in time generated data in the source, should never be commited
/test/e2e/generated/bindata.go

# This file used by some vendor repos (e.g. github.com/go-openapi/...) to store secret variables and should not be ignored
!\.drone\.sec
Expand Down
1 change: 0 additions & 1 deletion build/root/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ define CMD_HELP_INFO
# make kubectl kube-proxy
endef
#TODO: make EXCLUDE_TARGET auto-generated when there are other files in cmd/
#TODO: should we exclude the target "libs" but include "cmd/libs/go2idl/*"?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this commit looks drastically different than it did previously... it was a strict rename before, now there are hundreds of changed lines

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and lots of files outside the staging/src/k8s.io/{kube-gen => code-generator}/cmd/client-gen path are affected

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously it fixed only what was needed to build in origin. Now, it works properly inside k8s, that's also the reason the rename commit is so big.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would prefer the rename commit separate from the fixup response in the future...

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will remember for next time, sorry was trying to fix that mess.

EXCLUDE_TARGET=OWNERS
.PHONY: $(filter-out %$(EXCLUDE_TARGET),$(notdir $(abspath $(wildcard cmd/*/))))
ifeq ($(PRINT_HELP),y)
Expand Down
20 changes: 10 additions & 10 deletions build/root/Makefile.generated_files
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ verify_generated_files: verify_gen_deepcopy \
# # expect one file to be regenerated
# make gen_deepcopy
# # expect nothing to be rebuilt, finish in O(seconds)
# touch cmd/libs/go2idl/deepcopy-gen/main.go
# touch vendor/k8s.io/code-generator/cmd/deepcopy-gen/main.go
# make gen_deepcopy
# # expect deepcopy-gen is built exactly once
# # expect many files to be regenerated
Expand All @@ -88,7 +88,7 @@ verify_generated_files: verify_gen_deepcopy \
# # expect one file to be regenerated
# make gen_conversion
# # expect nothing to be rebuilt, finish in O(seconds)
# touch cmd/libs/go2idl/conversion-gen/main.go
# touch vendor/k8s.io/code-generator/cmd/conversion-gen/main.go
# make gen_conversion
# # expect conversion-gen is built exactly once
# # expect many files to be regenerated
Expand Down Expand Up @@ -274,7 +274,7 @@ $(META_DIR)/$(DEEPCOPY_GEN).mk:
(echo -n "$(DEEPCOPY_GEN): "; \
./hack/run-in-gopath.sh go list \
-f '{{.ImportPath}}{{"\n"}}{{range .Deps}}{{.}}{{"\n"}}{{end}}' \
./cmd/libs/go2idl/deepcopy-gen \
./vendor/k8s.io/code-generator/cmd/deepcopy-gen \
| grep --color=never "^$(PRJ_SRC_PATH)/" \
| xargs ./hack/run-in-gopath.sh go list \
-f '{{$$d := .Dir}}{{$$d}}{{"\n"}}{{range .GoFiles}}{{$$d}}/{{.}}{{"\n"}}{{end}}' \
Expand All @@ -299,7 +299,7 @@ sinclude $(META_DIR)/$(DEEPCOPY_GEN).mk
# newer than the binary, and try to rebuild it over and over. So we touch it,
# and make is happy.
$(DEEPCOPY_GEN):
hack/make-rules/build.sh cmd/libs/go2idl/deepcopy-gen
hack/make-rules/build.sh ./vendor/k8s.io/code-generator/cmd/deepcopy-gen
touch $@

#
Expand Down Expand Up @@ -424,7 +424,7 @@ $(META_DIR)/$(DEFAULTER_GEN).mk:
(echo -n "$(DEFAULTER_GEN): "; \
./hack/run-in-gopath.sh go list \
-f '{{.ImportPath}}{{"\n"}}{{range .Deps}}{{.}}{{"\n"}}{{end}}' \
./cmd/libs/go2idl/defaulter-gen \
./vendor/k8s.io/code-generator/cmd/defaulter-gen \
| grep --color=never "^$(PRJ_SRC_PATH)/" \
| xargs ./hack/run-in-gopath.sh go list \
-f '{{$$d := .Dir}}{{$$d}}{{"\n"}}{{range .GoFiles}}{{$$d}}/{{.}}{{"\n"}}{{end}}' \
Expand All @@ -449,7 +449,7 @@ sinclude $(META_DIR)/$(DEFAULTER_GEN).mk
# newer than the binary, and try to rebuild it over and over. So we touch it,
# and make is happy.
$(DEFAULTER_GEN):
hack/make-rules/build.sh cmd/libs/go2idl/defaulter-gen
hack/make-rules/build.sh ./vendor/k8s.io/code-generator/cmd/defaulter-gen
touch $@

#
Expand Down Expand Up @@ -522,7 +522,7 @@ $(META_DIR)/$(OPENAPI_GEN).mk:
(echo -n "$(OPENAPI_GEN): "; \
./hack/run-in-gopath.sh go list \
-f '{{.ImportPath}}{{"\n"}}{{range .Deps}}{{.}}{{"\n"}}{{end}}' \
./cmd/libs/go2idl/openapi-gen \
./vendor/k8s.io/code-generator/cmd/openapi-gen \
| grep --color=never "^$(PRJ_SRC_PATH)/" \
| xargs ./hack/run-in-gopath.sh go list \
-f '{{$$d := .Dir}}{{$$d}}{{"\n"}}{{range .GoFiles}}{{$$d}}/{{.}}{{"\n"}}{{end}}' \
Expand All @@ -547,7 +547,7 @@ sinclude $(META_DIR)/$(OPENAPI_GEN).mk
# newer than the binary, and try to rebuild it over and over. So we touch it,
# and make is happy.
$(OPENAPI_GEN):
hack/make-rules/build.sh cmd/libs/go2idl/openapi-gen
hack/make-rules/build.sh ./vendor/k8s.io/code-generator/cmd/openapi-gen
touch $@

#
Expand Down Expand Up @@ -716,7 +716,7 @@ $(META_DIR)/$(CONVERSION_GEN).mk:
(echo -n "$(CONVERSION_GEN): "; \
./hack/run-in-gopath.sh go list \
-f '{{.ImportPath}}{{"\n"}}{{range .Deps}}{{.}}{{"\n"}}{{end}}' \
./cmd/libs/go2idl/conversion-gen \
./vendor/k8s.io/code-generator/cmd/conversion-gen \
| grep --color=never "^$(PRJ_SRC_PATH)/" \
| xargs ./hack/run-in-gopath.sh go list \
-f '{{$$d := .Dir}}{{$$d}}{{"\n"}}{{range .GoFiles}}{{$$d}}/{{.}}{{"\n"}}{{end}}' \
Expand All @@ -741,5 +741,5 @@ sinclude $(META_DIR)/$(CONVERSION_GEN).mk
# newer than the binary, and try to rebuild it over and over. So we touch it,
# and make is happy.
$(CONVERSION_GEN):
hack/make-rules/build.sh cmd/libs/go2idl/conversion-gen
hack/make-rules/build.sh ./vendor/k8s.io/code-generator/cmd/conversion-gen
touch $@
10 changes: 0 additions & 10 deletions cmd/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ filegroup(
"//cmd/kubectl:all-srcs",
"//cmd/kubelet:all-srcs",
"//cmd/kubemark:all-srcs",
"//cmd/libs/go2idl/client-gen:all-srcs",
"//cmd/libs/go2idl/conversion-gen:all-srcs",
"//cmd/libs/go2idl/deepcopy-gen:all-srcs",
"//cmd/libs/go2idl/defaulter-gen:all-srcs",
"//cmd/libs/go2idl/go-to-protobuf:all-srcs",
"//cmd/libs/go2idl/import-boss:all-srcs",
"//cmd/libs/go2idl/informer-gen:all-srcs",
"//cmd/libs/go2idl/lister-gen:all-srcs",
"//cmd/libs/go2idl/openapi-gen:all-srcs",
"//cmd/libs/go2idl/set-gen:all-srcs",
"//cmd/linkcheck:all-srcs",
"//cmd/mungedocs:all-srcs",
],
Expand Down
2 changes: 2 additions & 0 deletions cmd/cloud-controller-manager/app/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ func (s *CloudControllerManagerServer) AddFlags(fs *pflag.FlagSet) {
fs.Var(componentconfig.IPVar{Val: &s.Address}, "address", "The IP address to serve on (set to 0.0.0.0 for all interfaces)")
fs.StringVar(&s.CloudProvider, "cloud-provider", s.CloudProvider, "The provider of cloud services. Cannot be empty.")
fs.StringVar(&s.CloudConfigFile, "cloud-config", s.CloudConfigFile, "The path to the cloud provider configuration file. Empty string for no configuration file.")
fs.BoolVar(&s.AllowUntaggedCloud, "allow-untagged-cloud", false, "Allow the cluster to run without the cluster-id on cloud instances. This is a legacy mode of operation and a cluster-id will be required in the future.")
fs.MarkDeprecated("allow-untagged-cloud", "This flag is deprecated and will be removed in a future release. A cluster-id will be required on cloud instances")
fs.DurationVar(&s.MinResyncPeriod.Duration, "min-resync-period", s.MinResyncPeriod.Duration, "The resync period in reflectors will be random between MinResyncPeriod and 2*MinResyncPeriod")
fs.DurationVar(&s.NodeMonitorPeriod.Duration, "node-monitor-period", s.NodeMonitorPeriod.Duration,
"The period for syncing NodeStatus in NodeController.")
Expand Down
8 changes: 8 additions & 0 deletions cmd/cloud-controller-manager/controller-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ func main() {
glog.Fatalf("Cloud provider could not be initialized: %v", err)
}

if cloud.HasClusterID() == false {
if s.AllowUntaggedCloud == true {
glog.Warning("detected a cluster without a ClusterID. A ClusterID will be required in the future. Please tag your cluster to avoid any future issues")
} else {
glog.Fatalf("no ClusterID Found. A ClusterID is required for the cloud provider to function properly. This check can be bypassed by setting the allow-untagged-cloud option")
}
}

if err := app.Run(s, cloud); err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
Expand Down
2 changes: 2 additions & 0 deletions cmd/kube-apiserver/app/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ go_library(
"//pkg/quota/install:go_default_library",
"//pkg/registry/cachesize:go_default_library",
"//pkg/registry/rbac/rest:go_default_library",
"//pkg/util/reflector/prometheus:go_default_library",
"//pkg/util/workqueue/prometheus:go_default_library",
"//pkg/version:go_default_library",
"//plugin/pkg/admission/admit:go_default_library",
"//plugin/pkg/admission/alwayspullimages:go_default_library",
Expand Down
4 changes: 2 additions & 2 deletions cmd/kube-apiserver/app/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ import (
"k8s.io/kubernetes/plugin/pkg/admission/webhook"
)

// registerAllAdmissionPlugins registers all admission plugins
func registerAllAdmissionPlugins(plugins *admission.Plugins) {
// RegisterAllAdmissionPlugins registers all admission plugins
func RegisterAllAdmissionPlugins(plugins *admission.Plugins) {
admit.Register(plugins)
alwayspullimages.Register(plugins)
antiaffinity.Register(plugins)
Expand Down
5 changes: 4 additions & 1 deletion cmd/kube-apiserver/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ import (
rbacrest "k8s.io/kubernetes/pkg/registry/rbac/rest"
"k8s.io/kubernetes/pkg/version"
"k8s.io/kubernetes/plugin/pkg/auth/authenticator/token/bootstrap"

_ "k8s.io/kubernetes/pkg/util/reflector/prometheus" // for reflector metric registration
_ "k8s.io/kubernetes/pkg/util/workqueue/prometheus" // for workqueue metric registration
)

const etcdRetryLimit = 60
Expand Down Expand Up @@ -239,7 +242,7 @@ func CreateNodeDialer(s *options.ServerRunOptions) (tunneler.Tunneler, *http.Tra
// CreateKubeAPIServerConfig creates all the resources for running the API server, but runs none of them
func CreateKubeAPIServerConfig(s *options.ServerRunOptions, nodeTunneler tunneler.Tunneler, proxyTransport http.RoundTripper) (*master.Config, informers.SharedInformerFactory, clientgoinformers.SharedInformerFactory, *kubeserver.InsecureServingInfo, aggregatorapiserver.ServiceResolver, error) {
// register all admission plugins
registerAllAdmissionPlugins(s.Admission.Plugins)
RegisterAllAdmissionPlugins(s.Admission.Plugins)

// set defaults in the options before trying to create the generic config
if err := defaultOptions(s); err != nil {
Expand Down
2 changes: 2 additions & 0 deletions cmd/kube-controller-manager/app/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ go_library(
"//pkg/volume/azure_dd:go_default_library",
"//pkg/volume/azure_file:go_default_library",
"//pkg/volume/cinder:go_default_library",
"//pkg/volume/fc:go_default_library",
"//pkg/volume/flexvolume:go_default_library",
"//pkg/volume/flocker:go_default_library",
"//pkg/volume/gce_pd:go_default_library",
"//pkg/volume/glusterfs:go_default_library",
"//pkg/volume/host_path:go_default_library",
"//pkg/volume/iscsi:go_default_library",
"//pkg/volume/local:go_default_library",
"//pkg/volume/nfs:go_default_library",
"//pkg/volume/photon_pd:go_default_library",
Expand Down
67 changes: 42 additions & 25 deletions cmd/kube-controller-manager/app/controllermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,27 +130,29 @@ func Run(s *options.CMServer) error {
}
leaderElectionClient := clientset.NewForConfigOrDie(restclient.AddUserAgent(kubeconfig, "leader-election"))

go func() {
mux := http.NewServeMux()
healthz.InstallHandler(mux)
if s.EnableProfiling {
mux.HandleFunc("/debug/pprof/", pprof.Index)
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
if s.EnableContentionProfiling {
goruntime.SetBlockProfileRate(1)
if s.Port >= 0 {
go func() {
mux := http.NewServeMux()
healthz.InstallHandler(mux)
if s.EnableProfiling {
mux.HandleFunc("/debug/pprof/", pprof.Index)
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
if s.EnableContentionProfiling {
goruntime.SetBlockProfileRate(1)
}
}
}
configz.InstallHandler(mux)
mux.Handle("/metrics", prometheus.Handler())
configz.InstallHandler(mux)
mux.Handle("/metrics", prometheus.Handler())

server := &http.Server{
Addr: net.JoinHostPort(s.Address, strconv.Itoa(int(s.Port))),
Handler: mux,
}
glog.Fatal(server.ListenAndServe())
}()
server := &http.Server{
Addr: net.JoinHostPort(s.Address, strconv.Itoa(int(s.Port))),
Handler: mux,
}
glog.Fatal(server.ListenAndServe())
}()
}

eventBroadcaster := record.NewBroadcaster()
eventBroadcaster.StartLogging(glog.Infof)
Expand Down Expand Up @@ -182,7 +184,11 @@ func Run(s *options.CMServer) error {
glog.Fatalf("error starting controllers: %v", err)
}

ctx.InformerFactory.Start(ctx.Stop)
if StartInformers == nil {
ctx.InformerFactory.Start(ctx.Stop)
} else {
StartInformers(ctx.Stop)
}

select {}
}
Expand All @@ -200,7 +206,7 @@ func Run(s *options.CMServer) error {
rl, err := resourcelock.New(s.LeaderElection.ResourceLock,
"kube-system",
"kube-controller-manager",
leaderElectionClient,
leaderElectionClient.Core(),
resourcelock.ResourceLockConfig{
Identity: id,
EventRecorder: recorder,
Expand Down Expand Up @@ -341,27 +347,30 @@ func NewControllerInitializers() map[string]InitFunc {
func GetAvailableResources(clientBuilder controller.ControllerClientBuilder) (map[schema.GroupVersionResource]bool, error) {
var discoveryClient discovery.DiscoveryInterface

var healthzContent string
// If apiserver is not running we should wait for some time and fail only then. This is particularly
// important when we start apiserver and controller manager at the same time.
err := wait.PollImmediate(time.Second, 10*time.Second, func() (bool, error) {
err := wait.PollImmediate(time.Second, 5*time.Minute, func() (bool, error) {
client, err := clientBuilder.Client("controller-discovery")
if err != nil {
glog.Errorf("Failed to get api versions from server: %v", err)
return false, nil
}

healthStatus := 0
client.Discovery().RESTClient().Get().AbsPath("/healthz").Do().StatusCode(&healthStatus)
resp := client.Discovery().RESTClient().Get().AbsPath("/healthz").Do().StatusCode(&healthStatus)
if healthStatus != http.StatusOK {
glog.Errorf("Server isn't healthy yet. Waiting a little while.")
return false, nil
}
content, _ := resp.Raw()
healthzContent = string(content)

discoveryClient = client.Discovery()
return true, nil
})
if err != nil {
return nil, fmt.Errorf("failed to get api versions from server: %v", err)
return nil, fmt.Errorf("failed to get api versions from server: %v: %v", healthzContent, err)
}

resourceMap, err := discoveryClient.ServerResources()
Expand All @@ -386,7 +395,7 @@ func GetAvailableResources(clientBuilder controller.ControllerClientBuilder) (ma
return allResources, nil
}

func CreateControllerContext(s *options.CMServer, rootClientBuilder, clientBuilder controller.ControllerClientBuilder, stop <-chan struct{}) (ControllerContext, error) {
func createControllerContext(s *options.CMServer, rootClientBuilder, clientBuilder controller.ControllerClientBuilder, stop <-chan struct{}) (ControllerContext, error) {
versionedClient := rootClientBuilder.ClientOrDie("shared-informers")
sharedInformers := informers.NewSharedInformerFactory(versionedClient, ResyncPeriod(s)())

Expand All @@ -402,6 +411,14 @@ func CreateControllerContext(s *options.CMServer, rootClientBuilder, clientBuild
if cloud != nil {
// Initialize the cloud provider with a reference to the clientBuilder
cloud.Initialize(rootClientBuilder)

if cloud.HasClusterID() == false {
if s.AllowUntaggedCloud == true {
glog.Warning("detected a cluster without a ClusterID. A ClusterID will be required in the future. Please tag your cluster to avoid any future issues")
} else {
return ControllerContext{}, fmt.Errorf("no ClusterID Found. A ClusterID is required for the cloud provider to function properly. This check can be bypassed by setting the allow-untagged-cloud option")
}
}
}

ctx := ControllerContext{
Expand Down
8 changes: 7 additions & 1 deletion cmd/kube-controller-manager/app/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import (
persistentvolumecontroller "k8s.io/kubernetes/pkg/controller/volume/persistentvolume"
"k8s.io/kubernetes/pkg/features"
quotainstall "k8s.io/kubernetes/pkg/quota/install"
"k8s.io/kubernetes/pkg/util/metrics"
)

func startServiceController(ctx ControllerContext) (bool, error) {
Expand Down Expand Up @@ -179,6 +180,7 @@ func startEndpointController(ctx ControllerContext) (bool, error) {
go endpointcontroller.NewEndpointController(
ctx.InformerFactory.Core().V1().Pods(),
ctx.InformerFactory.Core().V1().Services(),
ctx.InformerFactory.Core().V1().Endpoints(),
ctx.ClientBuilder.ClientOrDie("endpoint-controller"),
).Run(int(ctx.Options.ConcurrentEndpointSyncs), ctx.Stop)
return true, nil
Expand Down Expand Up @@ -215,14 +217,18 @@ func startResourceQuotaController(ctx ControllerContext) (bool, error) {
api.Kind("ConfigMap"),
}
resourceQuotaControllerOptions := &resourcequotacontroller.ResourceQuotaControllerOptions{
KubeClient: resourceQuotaControllerClient,
QuotaClient: resourceQuotaControllerClient.Core(),
ResourceQuotaInformer: ctx.InformerFactory.Core().V1().ResourceQuotas(),
ResyncPeriod: controller.StaticResyncPeriodFunc(ctx.Options.ResourceQuotaSyncPeriod.Duration),
Registry: resourceQuotaRegistry,
ControllerFactory: resourcequotacontroller.NewReplenishmentControllerFactory(ctx.InformerFactory),
ReplenishmentResyncPeriod: ResyncPeriod(&ctx.Options),
GroupKindsToReplenish: groupKindsToReplenish,
}
if resourceQuotaControllerClient.Core().RESTClient().GetRateLimiter() != nil {
metrics.RegisterMetricAndTrackRateLimiterUsage("resource_quota_controller", resourceQuotaControllerClient.Core().RESTClient().GetRateLimiter())
}

go resourcequotacontroller.NewResourceQuotaController(
resourceQuotaControllerOptions,
).Run(int(ctx.Options.ConcurrentResourceQuotaSyncs), ctx.Stop)
Expand Down
2 changes: 2 additions & 0 deletions cmd/kube-controller-manager/app/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet, allControllers []string, disabled
fs.BoolVar(&s.UseServiceAccountCredentials, "use-service-account-credentials", s.UseServiceAccountCredentials, "If true, use individual service account credentials for each controller.")
fs.StringVar(&s.CloudProvider, "cloud-provider", s.CloudProvider, "The provider for cloud services. Empty string for no provider.")
fs.StringVar(&s.CloudConfigFile, "cloud-config", s.CloudConfigFile, "The path to the cloud provider configuration file. Empty string for no configuration file.")
fs.BoolVar(&s.AllowUntaggedCloud, "allow-untagged-cloud", false, "Allow the cluster to run without the cluster-id on cloud instances. This is a legacy mode of operation and a cluster-id will be required in the future.")
fs.MarkDeprecated("allow-untagged-cloud", "This flag is deprecated and will be removed in a future release. A cluster-id will be required on cloud instances")
fs.Int32Var(&s.ConcurrentEndpointSyncs, "concurrent-endpoint-syncs", s.ConcurrentEndpointSyncs, "The number of endpoint syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.Int32Var(&s.ConcurrentServiceSyncs, "concurrent-service-syncs", s.ConcurrentServiceSyncs, "The number of services that are allowed to sync concurrently. Larger number = more responsive service management, but more CPU (and network) load")
fs.Int32Var(&s.ConcurrentRCSyncs, "concurrent_rc_syncs", s.ConcurrentRCSyncs, "The number of replication controllers that are allowed to sync concurrently. Larger number = more responsive replica management, but more CPU (and network) load")
Expand Down
Loading