Commit Graph

16074 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d9e7f25a80
Merge pull request #110668 from brianpursley/k-108630
Remove unused flags from kubectl run
2022-06-27 07:49:00 -07:00
Kubernetes Prow Robot
1d22329de8
Merge pull request #110201 from aramase/kmsv2
Add KMS v2alpha1 API
2022-06-24 12:06:58 -07:00
Anish Ramasekar
907545445a
Add KMS v2alpha1 API
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2022-06-24 17:58:34 +00:00
Kubernetes Prow Robot
6219eed24f
Merge pull request #110535 from giuseppe/add-userns-CRI
kubelet: add CRI definitions for user namespaces
2022-06-24 09:16:56 -07:00
Kubernetes Prow Robot
411ecc3b62
Merge pull request #110764 from soltysh/improve_msg
Improve run and debug attach message upon failure
2022-06-24 02:27:09 -07:00
Kubernetes Prow Robot
e526241a9a
Merge pull request #108833 from eltociear/patch-8
fix typo in genericapiserver.go
2022-06-24 02:26:57 -07:00
Giuseppe Scrivano
e8154ba52d
kubelet: add CRI definitions for user namespaces
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2022-06-24 09:39:40 +02:00
Maciej Szulik
43c2ae479f
Improve run and debug attach message upon failure 2022-06-24 09:14:27 +02:00
Kubernetes Prow Robot
487512bb56
Merge pull request #109510 from sugangli/pinhole-fw
Firewall Pinhole Fix for ILB and NetLB
2022-06-23 16:13:20 -07:00
Kubernetes Prow Robot
801bcfeea7
Merge pull request #110731 from jkh52/update-netproxy
Bump konnectivity-client to 0.0.32
2022-06-23 12:41:20 -07:00
Sugang Li
c64846da00 update kube-controller-manager dependencies 2022-06-23 18:07:18 +00:00
Sugang Li
84903d4b84 add ILB and NetLB pinhole changes 2022-06-23 18:07:15 +00:00
cpanato
ab810a7f85
remove release-1.20 from prom bot due to eol
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-06-23 18:04:17 +02:00
Kubernetes Prow Robot
dee37aacc1
Merge pull request #110652 from Abirdcfly/fixchunksize
fix: --chunk-size with selector returns missing result
2022-06-22 18:21:43 -07:00
Joseph Anttila Hall
f5c584a020 Bump konnectivity-client to 0.0.32 2022-06-22 17:22:42 -07:00
Kubernetes Prow Robot
ddfbb5bdbe
Merge pull request #110724 from pohly/klog-update
build: update to klog v2.70.0
2022-06-22 17:03:54 -07:00
Abirdcfly
fba297629d fix: --chunk-size with selector returns missing result
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-06-23 07:07:13 +08:00
Kubernetes Prow Robot
1d81106534
Merge pull request #110425 from LY-today/fake-evict-list-err
fix: list pod err after an pod evicted
2022-06-22 15:55:42 -07:00
Kubernetes Prow Robot
e2fe430da7
Merge pull request #109632 from weilaaa/recorrect_byindex_input_param
correct input params of ByIndex
2022-06-22 09:29:43 -07:00
LY-today
f299494e79 fix: list pod err after an pod evicted
Signed-off-by: LY-today <724102053@qq.com>
2022-06-22 23:30:40 +08:00
Patrick Ohly
f05e327ca6 build: update to klog v2.70.0
The main practical advantage is that klog.Fatal no longer dumps the backtrace
of all goroutines.
2022-06-22 16:29:51 +02:00
weilaaa
9847b2eeb4 correct input params and add godoc 2022-06-22 11:26:07 +08:00
Kubernetes Prow Robot
1ceca7b139
Merge pull request #110646 from thockin/rest-init-uid-early
Initialize UID earlier in the Create process
2022-06-21 11:06:38 -07:00
Brian Pursley
25e713ba77 Remove unused flags from kubectl run
The following flags, which do not apply to kubectl run,
have been removed:
--cascade
--filename
--force
--grace-period
--kustomize
--recursive
--timeout
--wait

These flags were being added to the run command to support
pod deletion after attach, but they are not used if set, so
they effectively do nothing.

This PR also displays an error message if the pod fails to be
deleted (when the --rm flag is used).  Previously any error
during deletion would be suppressed and the pod would remain.

This PR also adds some unit tests for run and attach with and
without the --rm flag.  As such, some minor refactoring of the
run command has been done to support mocking dependencies.
2022-06-21 10:51:30 -04:00
Tim Hockin
5615de51f9 Initialize UID earlier in the Create process
Before:
  Create()
      BeginCreate()
      BeforeCreate()
          init UID <---------------------
          strategy code

After:
  Create()
      init UID <-------------------------
      BeginCreate()
      BeforeCreate()
          strategy code

This also wipes UID early (suggested by David) and asserts it is set in
BeforeCreate().
2022-06-18 18:47:23 -07:00
Kubernetes Prow Robot
dbb6c77de4
Merge pull request #110108 from ialidzhikov/fix/typo
Nit: Fix a typo
2022-06-17 14:52:02 -07:00
Patrick Ohly
4c6338ac0f logs: replace config methods with functions
API types are only supposed to have methods related to serialization.
2022-06-17 20:22:13 +02:00
Patrick Ohly
ea3f25f49b logs: add alpha+beta feature gates
It is useful to have the ability to control whether alpha or beta features are
enabled. We can group features under LoggingAlphaOptions and LoggingBetaOptions
because the configuration is designed so that each feature individually must be
enabled via its own option.

Currently, the JSON format itself is beta (graduated in 1.23) but additional
options for it were only added in 1.23 and thus are still alpha:

  $ go run ./staging/src/k8s.io/component-base/logs/example/cmd/logger.go --logging-format=json --log-json-split-stream --log-json-info-buffer-size 1M --feature-gates LoggingBetaOptions=false
  [format: Forbidden: Log format json is BETA and disabled, see LoggingBetaOptions feature, options.json.splitStream: Forbidden: Feature LoggingAlphaOptions is disabled, options.json.infoBufferSize: Forbidden: Feature LoggingAlphaOptions is disabled]

  $ go run ./staging/src/k8s.io/component-base/logs/example/cmd/logger.go --logging-format=json --log-json-split-stream --log-json-info-buffer-size 1M
  [options.json.splitStream: Forbidden: Feature LoggingAlphaOptions is disabled, options.json.infoBufferSize: Forbidden: Feature LoggingAlphaOptions is disabled]

This is the same approach that was taken for CPUManagerPolicyAlphaOptions and
CPUManagerPolicyBetaOptions.

In order to test this without modifying the global feature gate in a test file,
ValidateKubeletConfiguration must take a feature gate as argument.
2022-06-17 20:22:13 +02:00
Patrick Ohly
1aceac797d logs: make LoggingConfiguration an unversioned API
Making the LoggingConfiguration part of the versioned component-base/config API
had the theoretic advantage that components could have offered different
configuration APIs with experimental features limited to alpha versions (for
example, sanitization offered only in a v1alpha1.KubeletConfiguration). Some
components could have decided to only use stable logging options.

In practice, this wasn't done. Furthermore, we don't want different components
to make different choices regarding which logging features they offer to
users. It should always be the same everywhere, for the sake of consistency.

This can be achieved with a saner Go API by dropping the distinction between
internal and external LoggingConfiguration types. Different stability levels of
indidividual fields have to be covered by documentation (done) and potentially
feature gates (not currently done).

Advantages:

- everything related to logging is under component-base/logs;
  previously this was scattered across different packages and
  different files under "logs" (why some code was in logs/config.go
  vs. logs/options.go vs. logs/logs.go always confused me again
  and again when coming back to the code):

  - long-term config and command line API are clearly separated
    into the "api" package underneath that

  - logs/logs.go itself only deals with legacy global flags and
    logging configuration

- removal of separate Go APIs like logs.BindLoggingFlags and
  logs.Options

- LogRegistry becomes an implementation detail, with less code
  and less exported functionality (only registration needs to
  be exported, querying is internal)
2022-06-17 20:22:13 +02:00
Patrick Ohly
5fe00c14be logs: move code in preparation for v1 api 2022-06-17 20:06:14 +02:00
Patrick Ohly
18bf5d23f1 logs: simplify flush daemon startup
StartFlushDaemon can be called more than once. We can take advantage of that an
eliminate the tracking of where we need to start it.
2022-06-17 20:06:14 +02:00
Swati Sehgal
22ff20a0a0 staging-readme: Document the need to add doc.go in a staging repo
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2022-06-16 13:48:13 +01:00
Kubernetes Prow Robot
549e1b4fb6
Merge pull request #110448 from twilight0620/test0608
add some uts of group_version.go
2022-06-15 18:50:48 -07:00
Kubernetes Prow Robot
4b024fc4ee
Merge pull request #110459 from wangyysde/promote-pod-security-to-ga
PodSecurity: promote config and feature gate to GA
2022-06-15 14:41:22 -07:00
Kubernetes Prow Robot
349efaabf8
Merge pull request #110436 from nicks/nicks/issue-1108
client-go: fix panic in ConfirmUsable validation
2022-06-15 13:19:10 -07:00
twilight0620
94331dc71b add some uts of group_version.go 2022-06-15 09:46:00 +08:00
wangyysde
ab66a38194 PodSecurity: promote config and feature gate to GA
Signed-off-by: wangyysde <net_use@bzhy.com>
2022-06-15 09:29:47 +08:00
Kubernetes Prow Robot
e08bf9cce6
Merge pull request #110469 from prasita123/pr_branch
add missing error handling steps
2022-06-14 12:07:33 -07:00
Kubernetes Prow Robot
daac87bf99
Merge pull request #110561 from Shubham82/extend_Description
RBAC: Modify the Description for the apiGroup.
2022-06-14 10:59:44 -07:00
Kubernetes Prow Robot
de5982637a
Merge pull request #110378 from lucacome/bump-grpc
Bump grpc to v1.47.0
2022-06-14 10:59:33 -07:00
Kubernetes Prow Robot
9f0be547cd
Merge pull request #110516 from MikeSpreitzer/bundle-metrics-registration
Bundle metrics registration into test server creation
2022-06-14 09:09:46 -07:00
Shubham Kuchhal
b1994772ee RBAC: Modify the Description for the apiGroup. 2022-06-14 13:31:09 +05:30
Kubernetes Prow Robot
04c6c48463
Merge pull request #110551 from liggitt/fix-cert
Fix example webhook cert generation
2022-06-14 00:25:44 -07:00
Kubernetes Prow Robot
7c596b901d
Merge pull request #110519 from dims/update-etcd-packages-to-v3.5.4
Update etcd packages to v3.5.4
2022-06-13 22:21:44 -07:00
Luca Comellini
51fafd7de3
Bump grpc to v1.47.0
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-06-13 22:08:47 -07:00
Jordan Liggitt
7e8277284a Fix example webhook cert generation 2022-06-13 19:28:47 -04:00
Kubernetes Prow Robot
c0642b749e
Merge pull request #110179 from Jefftree/fix_openapi_v2
Prune defaults for CRDs for OpenAPI V2
2022-06-13 13:28:12 -07:00
Kubernetes Prow Robot
474fd40e38
Merge pull request #110546 from liggitt/fix-example
Drop spurious replace
2022-06-13 12:16:23 -07:00
Kubernetes Prow Robot
0fe0dbf3fb
Merge pull request #110518 from dims/switch-to-released-version-of-v3.8.0-github.com/emicklei/go-restful/v3
Switch to released version of v3.8.0 - github.com/emicklei/go-restful/v3
2022-06-13 10:30:11 -07:00
Jordan Liggitt
051f2a30b3 Drop spurious replace 2022-06-13 12:15:01 -04:00