Commit Graph

11589 Commits

Author SHA1 Message Date
Harsh Singh
1763688d71 Added config parameter for CPU threads 2020-10-29 12:16:10 +05:30
卢振兴10069964
9470f64a4f add audit-log-compress to apiserver 2020-10-29 09:33:05 +08:00
Nick Maliwacki
5712e33abc SetCondtion updates generation 2020-10-28 14:25:03 -07:00
Kubernetes Prow Robot
8bc8b11bcf
Merge pull request #95939 from dprotaso/leaderelection-release
Address scenario where releasing a resource lock fails if a prior update fails or gets cancelled
2020-10-28 13:54:06 -07:00
Kubernetes Prow Robot
2e18975d2b
Merge pull request #92956 from zhouya0/remove_dependency_between_create_rolebinding
Remove dependency of generators from  create rolebinding
2020-10-28 13:53:39 -07:00
Kubernetes Prow Robot
ec0ef23599
Merge pull request #95923 from deads2k/remove-deprecated
remove the deprecated client that we stopped generating
2020-10-28 12:50:11 -07:00
Dave Protasowski
5e7ed7b86d Re-add the event recorder in the release test
Prior having a mock recorder would cause panics since the lock
would be set to nil on update failures. Now the recorder will
use the cached lock
2020-10-28 14:08:36 -04:00
Dave Protasowski
8160ecfd90 Don't clear the cached resourcelock when errors occurs on updates
This allows the lock to be release normally - even with a
potentially stale lock. This flow should only occur when we're
the lease holders.
2020-10-28 14:08:36 -04:00
Dave Protasowski
23ce312b9f Add failing test showing release is not working properly 2020-10-28 14:08:36 -04:00
Tim Hockin
4f8fb1d3ca Wipe some fields on service "type" updates
Service has had a problem since forever:

- User creates a service type=LoadBalancer
- We silently allocate them a NodePort
- User changes type to ClusterIP
- We fail the operation because they did not clear NodePort

They never asked for or used the NodePort!

Dual-stack introduced some dependent fields that get auto-wiped on
updates.  This carries it further.

If you squint, you can see Service as a big, messy discriminated union,
with type as the discriminator. Ignoring fields for non-selected
union-modes seems right.

This introduces the potential for an apply loop. Specifically, we will
accept YAML that we did not previously accept. Apply could see the
field in local YAML and not in the server and repeatedly try to patch it
in. But since that YAML is currently an error, it seems like a very low
risk. Almost nobody actually specifies their own NodePort values.

To mitigate this somewhat, we only auto-wipe on updates. The same YAML
would fail to create. This is a little inconsistent. We could
auto-wipe on create, too, at the risk of more potential impact.

To do this properly, we need to know the old and new values, which means
we can not do it in defaulting or conversion. So we do it in strategy.

This change also adds unit tests and updates e2e tests to rely on and
verify this behavior.
2020-10-28 10:41:26 -07:00
Kubernetes Prow Robot
17312ea4a9
Merge pull request #95810 from ruiwen-zhao/staticcheck_fix
Fix staticcheck failures on apiserver/plugin/pkg/{authenticator, auth…
2020-10-28 07:45:55 -07:00
David Eads
1f349b5d05 remove the deprecated client that we stopped generating 2020-10-28 10:43:31 -04:00
David Eads
5edd3763ce generated 2020-10-28 10:34:15 -04:00
Patrik Cyvoct
6af838c3d1
fix case when HC timeout is 0
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
2020-10-28 11:45:50 +01:00
Yixiang2019
62710bc034 cleanup: fix some error log capitalization
Signed-off-by: Yixiang2019 <wang.yixiang@zte.com.cn>
2020-10-28 16:44:54 +08:00
Kubernetes Prow Robot
8456a514f1
Merge pull request #95736 from Jefftree/reuse-parser
Reuse SSA type converter for resources in the same API Group
2020-10-27 17:28:10 -07:00
Kubernetes Prow Robot
c5ecae737d
Merge pull request #95117 from andrewsykim/fake-dynamic-list
fake dynamic client: document that List does not preserve TypeMeta in UnstructuredList
2020-10-27 17:27:55 -07:00
Kubernetes Prow Robot
451e4030c1
Merge pull request #95924 from khenidak/tombstone-ipfamily
tombstone-ing IPFamily field(15)
2020-10-27 16:36:19 -07:00
Kubernetes Prow Robot
2c58deffa8
Merge pull request #95635 from RaunakShah/pvc_describe
Alter wording to describe pods using a pvc
2020-10-27 15:31:57 -07:00
David Eads
4af2f7d37f add godoc for events to events.k8s.io 2020-10-27 15:36:37 -04:00
W. Trevor King
f95ec84322 Event: Document TTL and best-effort-ness
Generally try to waive away folks who see a particular event stream
and feel tempted to extrapolate and build tooling that expects the
same underlying resource transition chain to continue to produce a
similar event stream as the underlying components evolve and are
updated.  New controllers should not be constrained to be
backwards-compatible with previous versions with regard to Event
emission.  This is distinct from the Event type itself, which has the
usual Kubernetes-API compatibility commitments for versioned types.

The EventTTL default has been 1h since 7e258b85bd (Reduce TTL for
events in etcd from 48hrs to 1hr, 2015-03-11, #5315), and remains so
today:

  $ git --no-pager log -1 --format='%h %s' origin/master
  8e5c02255c Merge pull request #90942 from ii/ii-create-pod%2Bpodstatus-resource-lifecycle-test
  $ git --no-pager grep EventTTL: 8e5c02255c cmd/kube-apiserver/app/options/options.go
  8e5c02255cc:cmd/kube-apiserver/app/options/options.go:		EventTTL:               1 * time.Hour,

In this space [1,2]:

  To avoid filling up master's disk, a retention policy is enforced:
  events are removed one hour after the last occurrence.  To provide
  longer history and aggregation capabilities, a third party solution
  should be installed to capture events.
  ...
  Note: It is not guaranteed that all events happening in a cluster
  will be exported to Stackdriver.  One possible scenario when events
  will not be exported is when event exporter is not running
  (e.g. during restart or upgrade).  In most cases it's fine to use
  events for purposes like setting up metrics and alerts, but you
  should be aware of the potential inaccuracy.
  ...
  To prevent disturbing your workloads, event exporter does not have
  resources set and is in the best effort QOS class, which means that
  it will be the first to be killed in the case of resource
  starvation.

Although that's talking more about export from etcd -> external
storage, and not about cluster components submitting events to etcd.

[1]: https://kubernetes.io/docs/tasks/debug-application-cluster/events-stackdriver/
[2]: https://github.com/kubernetes/website/pull/4155/files#diff-d8eb69c5436aa38b396d4f3ed75e4792R10
2020-10-27 15:36:37 -04:00
Kubernetes Prow Robot
56069e4f9d
Merge pull request #95874 from tkashem/webhook-handle-error
Webhook: handle error when calling wait.ExponentialBackoff
2020-10-27 11:41:34 -07:00
Khaled (Kal) Henidak
ae2210324c tombstone-ing IPFamily field(15) 2020-10-27 17:55:03 +00:00
Andrew Sy Kim
deb1bb8bff fake dynamic client: document that List does not preserve TypeMeta in UnstructuredList
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-10-27 13:42:16 -04:00
Abu Kashem
f8e35de156
Webhook: handle error when calling wait.ExponentialBackoff
- Inside WithExponentialBackoff function, handle error returned
by wait.ExponentialBackoff.
- Ensure that the wait time is bound to the given context.
2020-10-27 12:04:28 -04:00
wojtekt
f62e61c28f Fix cacher test after bumping fakeBudget timeout to 2 seconds 2020-10-27 15:25:31 +01:00
Kubernetes Prow Robot
b4258ec138
Merge pull request #95869 from wojtek-t/debug_watchcache_test
Fix cacher test flakiness
2020-10-27 04:33:59 -07:00
Kubernetes Prow Robot
4df8d97af0
Merge pull request #95725 from p0lyn0mial/delegated-authz-sar-timeout
sets explicit timeout for SubjectAccessReview client
2020-10-27 03:37:59 -07:00
Kubernetes Prow Robot
1f0371bb3f
Merge pull request #95864 from nilo19/cleanup/fix-typos
Fix a lot of typos in Azure codes
2020-10-27 02:13:59 -07:00
Kubernetes Prow Robot
68f6b09e80
Merge pull request #80954 from zachomedia/fix-lock-release
Fix leader election lock release when using LeaseLocks
2020-10-26 20:57:58 -07:00
Kubernetes Prow Robot
3d6026499b
Merge pull request #95235 from andrewsykim/controlplane-egress-selector
apiserver: support 'controlplane' as an egress selector type
2020-10-26 14:45:59 -07:00
Khaled Henidak (Kal)
6675eba3ef
dual stack services (#91824)
* api: structure change

* api: defaulting, conversion, and validation

* [FIX] validation: auto remove second ip/family when service changes to SingleStack

* [FIX] api: defaulting, conversion, and validation

* api-server: clusterIPs alloc, printers, storage and strategy

* [FIX] clusterIPs default on read

* alloc: auto remove second ip/family when service changes to SingleStack

* api-server: repair loop handling for clusterIPs

* api-server: force kubernetes default service into single stack

* api-server: tie dualstack feature flag with endpoint feature flag

* controller-manager: feature flag, endpoint, and endpointSlice controllers handling multi family service

* [FIX] controller-manager: feature flag, endpoint, and endpointSlicecontrollers handling multi family service

* kube-proxy: feature-flag, utils, proxier, and meta proxier

* [FIX] kubeproxy: call both proxier at the same time

* kubenet: remove forced pod IP sorting

* kubectl: modify describe to include ClusterIPs, IPFamilies, and IPFamilyPolicy

* e2e: fix tests that depends on IPFamily field AND add dual stack tests

* e2e: fix expected error message for ClusterIP immutability

* add integration tests for dualstack

the third phase of dual stack is a very complex change in the API,
basically it introduces Dual Stack services. Main changes are:

- It pluralizes the Service IPFamily field to IPFamilies,
and removes the singular field.
- It introduces a new field IPFamilyPolicyType that can take
3 values to express the "dual-stack(mad)ness" of the cluster:
SingleStack, PreferDualStack and RequireDualStack
- It pluralizes ClusterIP to ClusterIPs.

The goal is to add coverage to the services API operations,
taking into account the 6 different modes a cluster can have:

- single stack: IP4 or IPv6 (as of today)
- dual stack: IPv4 only, IPv6 only, IPv4 - IPv6, IPv6 - IPv4

* [FIX] add integration tests for dualstack

* generated data

* generated files

Co-authored-by: Antonio Ojea <aojea@redhat.com>
2020-10-26 13:15:59 -07:00
wojtekt
6eb71c4089 Fix cacher test flakiness 2020-10-26 20:09:13 +01:00
Jefftree
1f986cc69d Make versionconverter functions private 2020-10-26 11:03:17 -07:00
Jefftree
7182d84b10 Reuse SSA type converter for resources in the same API Group 2020-10-26 11:03:17 -07:00
shahra
ff6711140a Change pvc describe test 2020-10-26 10:49:48 -07:00
Kubernetes Prow Robot
2e1d903b13
Merge pull request #95836 from nodo/yaml-unmarshal-number
Add yaml util to unmarshal numbers into int/float
2020-10-26 10:25:27 -07:00
Haowei Cai
742ba5f24a add an APIServerIdentity feature gate 2020-10-26 10:25:13 -07:00
Lukasz Szaszkiewicz
2160cbc53f DelegatingAuthorizationOptions: exposes and sets a default timeout for SubjectAccessReview client
previously no timeout was set. Requests without explicit timeout might potentially hang forever and lead to starvation of the application.
2020-10-26 17:11:59 +01:00
Qi Ni
ecdc1ba57c Fix a lot of typos in Azure codes 2020-10-26 22:47:38 +08:00
Kubernetes Prow Robot
e79a873b4c
Merge pull request #95821 from markusthoemmes/optimize-nn-string
Optimize string building for NamespacedName
2020-10-26 07:45:01 -07:00
Andrew Sy Kim
e4b45d944d apiserver: use canonical egress selection names in EgressSelectorConfiguration API docs
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-10-26 10:24:16 -04:00
Andrew Sy Kim
5a09325864 apiserver: update TestReadEgressSelectorConfiguration to use 'controlplane' egress selector name
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-10-26 10:24:16 -04:00
Andrew Sy Kim
30d43806c3 apiserver: add validation for EgressSelection names in EgressSelectorConfiguration API
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-10-26 10:24:16 -04:00
Andrew Sy Kim
a0aebf96ec apiserver: support egress selection name 'controlplane' and deprecate 'master'
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-10-26 10:24:16 -04:00
Kubernetes Prow Robot
16e18a590f
Merge pull request #95813 from nilo19/bug/fix-pip-name
Azure: Update the frontend IP config when the service's `pipName` annotation is changed
2020-10-25 17:31:01 -07:00
Andrea Nodari
04d972cb4b Add yaml util to unmarshal numbers into int/float 2020-10-24 11:36:22 +02:00
Qi Ni
87a4805ba4 Update the frontend IP config when the service's pipName annotation is changed 2020-10-24 17:35:23 +08:00
Kubernetes Prow Robot
f20a36f784
Merge pull request #95428 from roycaihw/cleanup/generalize-lease-controller
Generalize node lease controller
2020-10-23 13:43:02 -07:00
Kubernetes Prow Robot
6578517aa7
Merge pull request #95259 from tkashem/apf-workload-low
Increase the concurrency share of workload-low priority level
2020-10-23 12:15:02 -07:00
Kubernetes Prow Robot
ec453ffb1a
Merge pull request #90691 from arjunrn/container-resource-hpa
Add container based scaling to HPA
2020-10-23 05:51:51 -07:00
Markus Thömmes
668d560618 Optimize string building for NamespacedName 2020-10-23 10:42:31 +02:00
PingWang
30bcfb6dd9 Clean code: optimize some logs of mount
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2020-10-23 16:19:46 +08:00
Kubernetes Prow Robot
44f5a75e6c
Merge pull request #85480 from tnozicka/apiserver-better-error
Add certificate identification to error message when x509 auth fails
2020-10-23 00:11:44 -07:00
Kubernetes Prow Robot
1257bc5acb
Merge pull request #91474 from cici37/pkgController
Cleanup CCM dependencies
2020-10-22 23:17:45 -07:00
ruiwen-zhao
bdedc4ce34 Fix staticcheck failures on apiserver/plugin/pkg/{authenticator, authorizer} 2020-10-22 21:47:17 +00:00
shahra
bcff03f7d2 Alter wording to describe pods using a pvc 2020-10-22 14:07:42 -07:00
Haowei Cai
9861b9e3ea allow component-helpers to import util and klog 2020-10-22 13:30:12 -07:00
Haowei Cai
4af91987a9 generated 2020-10-22 12:00:51 -07:00
Haowei Cai
c9bbd8532f generalize lease controller 2020-10-22 11:58:59 -07:00
Haowei Cai
c70e3649e1 move node lease controller to component-helpers 2020-10-22 11:58:58 -07:00
Arjun Naik
0fec7b0f7e Added functionality and API for pod autoscaling based on container resources
Signed-off-by: Arjun Naik <anaik@redhat.com>
2020-10-21 21:10:05 +02:00
Kubernetes Prow Robot
5a4c9af290
Merge pull request #95716 from nilo19/cleanup/add-error-log
Azure: Add error detail in log
2020-10-21 03:20:20 -07:00
Kubernetes Prow Robot
9a6e35a16a
Merge pull request #95748 from nilo19/bug/fix-lb-update-failed-pip
Update the PIP when it is not in the Succeeded provisioning state during the LB update.
2020-10-21 01:34:19 -07:00
Qi Ni
46593daf22 Update the PIP when it is not in the Succeeded provisioning state during the LB update. 2020-10-21 15:40:18 +08:00
Kubernetes Prow Robot
4b59044b8d
Merge pull request #95499 from nicolehanjing/nicoleh-fix-fake
cloud provider: fix the fake cloud provider
2020-10-20 14:32:23 -07:00
Kubernetes Prow Robot
163b23f163
Merge pull request #95529 from cici37/cleanup
Add back openapi gen for generic types and clean up doc.go
2020-10-20 11:22:34 -07:00
Kubernetes Prow Robot
af1c8935d9
Merge pull request #95692 from markusthoemmes/bump-azure-adal
Bump github.com/Azure/go-autorest/autorest/adal to 0.9.5
2020-10-20 10:22:22 -07:00
Kubernetes Prow Robot
d5ea0edc09
Merge pull request #95646 from jprzychodzen/leader-election-1
Add a new way to generate leader election lock
2020-10-20 09:02:09 -07:00
Kubernetes Prow Robot
2be8f3c9a8
Merge pull request #95690 from nikhita/csi-translation-lib-imports
staging/publishing: cleanup import restrictions for csi-translation-lib
2020-10-20 06:52:09 -07:00
Qi Ni
748ae54ec0 Add error detail in log 2020-10-20 20:29:22 +08:00
Kubernetes Prow Robot
6d3ccd8e6c
Merge pull request #95559 from prameshj/elb-update
Do not skip externalLB update if some nodes are not found.
2020-10-19 21:00:08 -07:00
Nicole Han
acee0779c5 fix the fake cloud provider 2020-10-19 20:37:55 -07:00
Pavithra Ramesh
6d535f1ada Do not skip externalLB update if some nodes are not found.
Log a warning instead and continue with the update. This is useful in cases where
the number of nodes is changing due to autoscaling or updgrades. It is possible
that the nodes picked by service controller don't all exist when gce layer lists
them. Update should still succeed with the nodes in the input that are valid.
This will still return an error if 0 nodes were found, when a non-zero input was passed in.

same
2020-10-19 16:47:27 -07:00
Kubernetes Prow Robot
6f1288f58c
Merge pull request #95629 from roycaihw/fix/storageversion-manager
storageversion manager: fix slice allocation
2020-10-19 16:00:07 -07:00
cici37
95acec5a3b Move client_builder to k8s.io/controller-manager 2020-10-19 14:48:22 -07:00
Kubernetes Prow Robot
6ccdb15500
Merge pull request #91541 from bjrara/standalone-apiextension
Enhance apiextensions-apiserver in the standalone mode
2020-10-19 12:08:13 -07:00
Kubernetes Prow Robot
2046f4212a
Merge pull request #95660 from rikatz/improve-create-ingress
Fix catch all regex and missing DryRun Options
2020-10-19 07:52:26 -07:00
Kubernetes Prow Robot
86a208edc8
Merge pull request #95260 from amandahla/issue93784
Fixes high CPU usage in kubectl drain
2020-10-19 07:52:13 -07:00
Monis Khan
0284139660
Generated bazel
Signed-off-by: Monis Khan <mok@vmware.com>
2020-10-19 08:50:26 -04:00
Monis Khan
99566970ce
Generated conversions
Signed-off-by: Monis Khan <mok@vmware.com>
2020-10-19 08:50:25 -04:00
Monis Khan
f97422c8bd
exec credential provider: wire in cluster info
Signed-off-by: Monis Khan <mok@vmware.com>
2020-10-19 08:50:25 -04:00
Markus Thömmes
34b9d11505 Fix dependency linting 2020-10-19 11:33:30 +02:00
Markus Thömmes
e1fd0bd0eb Bump github.com/Azure/go-autorest/autorest/adal to 0.9.5 2020-10-19 09:59:45 +02:00
Kubernetes Prow Robot
ac10e4043a
Merge pull request #95578 from marwanad/add-deallocation-methods
add methods to deallocate and starts vms in a scale set
2020-10-19 00:18:14 -07:00
Nikhita Raghunath
e76e057439 staging/publishing: cleanup import restrictions for csi-translation-lib 2020-10-19 12:45:57 +05:30
Kubernetes Prow Robot
722be6647a
Merge pull request #95543 from wawa0210/fix-95530
Remove the dependency of csi-translation-lib module on apiserver/cloud-provider/controller-manager
2020-10-18 21:14:13 -07:00
Kubernetes Prow Robot
7b11de20a9
Merge pull request #95540 from masap/fix_dry_run_param
test: Fix deprecated --dry-run parameter
2020-10-18 17:10:13 -07:00
Douglas Schilling Landgraf
a6158c01b9 kubectl: allow users to use args with KUBECTL_EXTERNAL_DIFF
Currently, if users try to use external diff command with arguments
will fail because the entire command won't be available through $PATH.
This patch allow users to use external diff tools with args (or not)
via KUBECTL_EXTERNAL_DIFF env.

Reference: https://github.com/kubernetes/kubectl/issues/937

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
2020-10-17 06:53:13 -04:00
Kubernetes Prow Robot
0ec3ad4160
Merge pull request #95652 from nikhita/publishing-bot-rules-cleanup
staging/publishing: remove release-1.16 rules
2020-10-16 23:16:12 -07:00
wawa0210
3d6d692b68
avoid apiserver/cloud-provider/controller-manager deps from k8s.io/csi-translation-lib 2020-10-17 09:45:38 +08:00
Kubernetes Prow Robot
c913d4ed2a
Merge pull request #95640 from lala123912/staticcheck_2
vendor/k8s.io/metrics/pkg/client/custom_metrics: fix static check
2020-10-16 16:00:12 -07:00
Ricardo Pchevuzinske Katz
45d6672a98
Fix catch all regex and missing DryRun Options
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
2020-10-16 15:45:15 -03:00
cici37
0d2002229f Add back openapi gen for generic types and clean up doc.go 2020-10-16 10:54:15 -07:00
Haowei Cai
904d5c45de fix a nil pointer ref in slice allocation 2020-10-16 10:16:08 -07:00
Sai Harsha Kottapalli
7b0ef888f3
warn user about resource being deleted 2020-10-16 22:12:17 +05:30
Kubernetes Prow Robot
9af86e8db8
Merge pull request #95583 from andyzhangx/fix-valid-path
fix: smb valid path error
2020-10-16 09:01:54 -07:00
Nikhita Raghunath
88bbd7376c staging/publishing: remove release-1.16 rules 2020-10-16 18:26:17 +05:30
Jakub Przychodzeń
24033c908d Add new way to generate leader election lock 2020-10-16 12:20:52 +02:00
lala123912
324e969a6c fix staticcheck
vendor/k8s.io/metrics/pkg/client/custom_metrics/multi_client.go:49:4: ineffective break statement. Did you mean to break out of the outer loop? (SA4011)
vendor/k8s.io/metrics/pkg/client/custom_metrics/versioned_client.go:38:2: var codecs is unused (U1000)
2020-10-16 16:08:53 +08:00
Kubernetes Prow Robot
cd8b87f25a
Merge pull request #95562 from wojtek-t/fix_metrics
Fix metrics reporting in kube-apiserver
2020-10-15 21:13:25 -07:00
Kubernetes Prow Robot
0a20321bab
Merge pull request #91931 from lixiaobing1/lxb-deploy
fix func name NewCreateCreateDeploymentOptions
2020-10-15 14:43:25 -07:00
Kubernetes Prow Robot
35e20f1742
Merge pull request #94327 from rikatz/create-ingress
kubectl create ingress
2020-10-15 08:06:24 -07:00
Kubernetes Prow Robot
36a6a64936
Merge pull request #95427 from roycaihw/fix/tls-transport-cache
TLS transport cache: don't cache transports for incomparable configs
2020-10-15 07:10:24 -07:00
Anderson Duboc
d88da2855f remove debug print from create quota 2020-10-15 11:07:19 -03:00
Kubernetes Prow Robot
28b46be97b
Merge pull request #95278 from mrbobbytables/update-kubectl-support-label
kubectl: Update triage/support label references to kind/support
2020-10-15 06:04:51 -07:00
Kubernetes Prow Robot
297b021f49
Merge pull request #95230 from Git-Jiro/fix_vendor_client_go
Fix staticchecks in vendor/k8s.io/client-go
2020-10-15 06:04:37 -07:00
Kubernetes Prow Robot
2f31a4ab0d
Merge pull request #94939 from tnqn/describe-pod-toleration
kubectl: add a space between effect and operator when printing tolerations
2020-10-15 06:04:24 -07:00
Ricardo Pchevuzinske Katz
73aa0a92f8 Add support for create ingress in kubectl
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
2020-10-15 09:07:40 -03:00
wojtekt
3d2a80643a Fix metrics reporting in kube-apiserver 2020-10-15 13:50:33 +02:00
Kubernetes Prow Robot
d7e0cb0e35
Merge pull request #95542 from nilo19/bug/support-exclude-node-from-lb-label
Support the node label `node.kubernetes.io/exclude-from-external-load-balancers`
2020-10-15 01:38:24 -07:00
andyzhangx
5656e346c7 fix: smb valid path error 2020-10-15 07:02:12 +00:00
Martin Schimandl
13c017056c Fix staticchecks in vendor/k8s.io/client-go 2020-10-15 07:27:02 +02:00
Marwan Ahmed
ede9d8ce12 add methods to deallocate and starts vms in a scale set 2020-10-14 19:43:03 -07:00
Kubernetes Prow Robot
2318a13228
Merge pull request #94985 from howardjohn/describe-ingress
Fix `kubectl describe ingress` format
2020-10-14 14:05:49 -07:00
Haowei Cai
fac48d2538 add a local tlsTransportCache to available_controller
The available_controller creates short-lived clients to sync remote APIService
objects. These clients are constructed with HTTP transports that cannot
be cached by client-go (because client-go won't know whether the TLS configs
have dynamic functions or not), which may spam idle connections. A local
cache works because we know all the configs share the same dialer
function, and can only vary on the dynamic cert/key.
2020-10-14 14:01:56 -07:00
Kubernetes Prow Robot
6d01c5a589
Merge pull request #92459 from roycaihw/storage-version/manager
Add storageversion manager interface
2020-10-14 03:19:55 -07:00
Masashi Honma
ad7cbac163 test: Fix deprecated --dry-run parameter
Some unit tests throw this warning.

W1013 09:06:21.581870  176998 helpers.go:567] --dry-run=true is deprecated (boolean value) and can be replaced with --dry-run=client.

This patch removes the warning by using --dry-run=client instead of --dry-run=true.

The unit tests that are affected are:

make test WHAT=./vendor/k8s.io/kubectl/pkg/cmd/apply GOFLAGS=-v
make test WHAT=./vendor/k8s.io/kubectl/pkg/cmd/create GOFLAGS=-v

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
2020-10-14 10:00:08 +09:00
Amir Mofasser
be45584a03
Add create ingress command to cmd/kubectl
Add `create ingress` unit tests


Move src code to staging dir


Update create command to reflect new API


Replaced deprecated `extensions` api with `networking`


Fix `missing strict dependencies`


Update BUILD 


Update BUILD


Fix commit conflict with upstream


Update after review

* Removed obsolete files
* Moved v1beta to v1 api

Fixed gofmt


Fixed deps imports


Merge with PR #94327


Revert changes


Revert go.mod


Revert BUILD


No need to update generated BUILD


Add required deps to BUILD


Update BUILD
2020-10-13 16:54:17 +02:00
Qi Ni
7964e302b0 Support the node label node.kubernetes.io/exclude-from-external-load-balancers 2020-10-13 22:18:54 +08:00
zhouya0
8ab7f6f5cc Remove dependency between create rolebinding 2020-10-13 18:50:05 +08:00
Kubernetes Prow Robot
e799c852fb
Merge pull request #95447 from gnufied/fix-disk-detach-failure
Fix vsphere disk detach failure
2020-10-13 03:36:41 -07:00
Kubernetes Prow Robot
da777a6cc0
Merge pull request #95265 from SaiHarshaK/refactor-command-kubectl-create-quota
Remove the dependency between create quota command and generators
2020-10-13 03:36:27 -07:00
tashen
27cb5cf4f0 add systemd mount options interface to support the no-systemd mount 2020-10-13 13:46:57 +08:00
Kubernetes Prow Robot
53d9bed6e0
Merge pull request #95463 from andyzhangx/bigdisk-cachemode
fix azure disk attach failure for disk size bigger than 4TB
2020-10-12 21:12:26 -07:00
Hemant Kumar
5627771601 Fix vsphere disk detach failing
Make inability to fetch canonicalPath non-fatal error
Throw error if we can't fetch canonicalPath on attach
2020-10-12 21:58:28 -04:00
Kubernetes Prow Robot
1dff024e64
Merge pull request #91014 from cici37/apiConfig
Move cmd/controller-manager to k8s.io/controller-manager
2020-10-12 15:17:22 -07:00
Kubernetes Prow Robot
4bbf4111e2
Merge pull request #92507 from ingvagabund/staging-library-go
Initialize k8s.io/component-helpers staging repository
2020-10-12 10:30:48 -07:00
Haowei Cai
184b460369 add a OWNERS file under storageversion 2020-10-12 09:57:54 -07:00
Haowei Cai
c548d016d4 generated 2020-10-12 09:57:54 -07:00
Haowei Cai
48361711a5 add the storageversion.Manager interface 2020-10-12 09:57:54 -07:00
andyzhangx
daa4d76643 fix azure disk attach failure for disk size bigger than 4TB
test: add debugging info

fix test failure

remove debugging info

add condition
2020-10-12 01:43:59 +00:00
Jan Chaloupka
cd89e3bf72 Add PULL_REQUEST_TEMPLATE.md and state the repo does not accept any direct changes 2020-10-11 21:40:29 +02:00
Jan Chaloupka
3802f2022b Run hack/update-vendor.sh 2020-10-11 21:40:24 +02:00
Jan Chaloupka
7530806c9f Add rule for component-helpers into staging/publishing/rules.yaml 2020-10-11 21:40:18 +02:00
Jan Chaloupka
95ad020a75 Duplicate a single helper from pkg/apis
Duplicating GetPodPriority code from k8s.io/kubernetes/pkg/api/v1/pod as PodPriority
2020-10-11 21:39:51 +02:00
Kubernetes Prow Robot
78ece5411a
Merge pull request #95048 from alculquicondor/disable-default-spread
Add DefaultingType to PodTopologySpreadArgs
2020-10-09 19:38:47 -07:00
Aldo Culquicondor
c8a0b9e8e7 Add defaultingType to PodTopologySpreadArgs
Change-Id: Ibf6a4fdb39a31fe9deed68de7e7cb24a9bf9d06a
2020-10-09 17:12:12 -04:00
Haowei Cai
0765ba8e54 don't cache transports for incomparable configs
Co-authored-by: Jordan Liggitt <liggitt@google.com>
2020-10-08 16:45:56 -07:00
cici37
ae8ce0d190 Move cmd/controller-manager to k8s.io/controller-manager and cloud specific configs to k8s.io/cloud-provider. 2020-10-08 13:23:16 -07:00
Nicole Han
db87743913 cloud node controller: handle empty providerID from getProviderID 2020-10-08 12:40:14 -07:00
Kubernetes Prow Robot
0a14265b7e
Merge pull request #91513 from jqmichael/awsSDK1316
Upgraded aws-sdk-go dependency to v1.35.5 to support new regions like Milan
2020-10-08 11:57:06 -07:00
Jan Chaloupka
75cee7818b Initialize k8s.io/kubernetes/staging/src/k8s.io/component-helpers 2020-10-08 12:11:11 +02:00
Christopher Montoro
68e8fd5f33
Update the example for kubectl port-forward
Clarify that `REMOTE_PORT` is interpreted as identifying a _Service_ port when provided `TYPE` is `service`.
Also, highlight support for specifying a named port as `REMOTE_PORT`.
2020-10-07 22:12:49 -04:00
Qing Ju
b57d040247 Upgraded aws-sdk-go to v1.35.5 to include more regions, i.e. Millan
./hack/pin-dependency.sh github.com/aws/aws-sdk-go v1.35.5
./hack/update-vendor.sh
./hack/lint-dependencies.sh

// Additional changes required by lint-dependencies
hack/pin-dependency.sh github.com/jmespath/go-jmespath v0.4.0
./hack/update-vendor.sh
./hack/lint-dependencies.sh
2020-10-07 16:48:19 -07:00
Kubernetes Prow Robot
c1ce63ab73
Merge pull request #95059 from zhouya0/clean_up_nits_delete_cascade
Clean up nits in delete cascade flag parsing
2020-10-07 12:38:16 -07:00
Abu Kashem
fd7bf9a5dc
allocate service-account flowschema to global-default 2020-10-07 14:59:58 -04:00
Patrik Cyvoct
2e430ba622
Allow configuration of etcd healthcheck timeout
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
2020-10-07 19:13:19 +02:00
Sai Harsha Kottapalli
0222f2d033
Remove the dependency between create quota command and generators 2020-10-07 20:34:48 +05:30
Kubernetes Prow Robot
e99df0e5a7
Merge pull request #95316 from sfowl/mask-token-in-toCurl
Mask bearer token in logs when logLevel >= 9
2020-10-07 03:44:42 -07:00
Kubernetes Prow Robot
a1441b2d52
Merge pull request #92201 from cici37/features
Remove dependency pkg/features from CCM
2020-10-06 15:58:42 -07:00
Kubernetes Prow Robot
838e7bb278
Merge pull request #95253 from sallyom/apigroup-version-output-api-resources
include APIVersion in output of 'kubectl api-resources'
2020-10-06 06:36:21 -07:00
Kubernetes Prow Robot
1a66eb7b8a
Merge pull request #89482 from renatoviana12/master
fixed percentage behaviour in instr
2020-10-05 20:00:19 -07:00
Sam Fowler
f0f5225541 Mask bearer token in logs when logLevel >= 9 2020-10-06 11:10:38 +10:00
Sally O'Malley
29cd320d89
clarify help for --api-version: note it's API group/version 2020-10-05 14:14:42 -04:00
Sally O'Malley
068dbb44f3
include APIVersion in output of 'kubectl api-resources' 2020-10-05 14:14:42 -04:00
cici37
33e23c4005 Move cloud related feature gates to controller-manager 2020-10-05 10:19:08 -07:00
shuang zhang
f0ea54070b Replace AreLabelsInWhiteList with isSubset 2020-10-05 22:07:47 +08:00
Kubernetes Prow Robot
6e9475bcd3
Merge pull request #94910 from yashvardhan-kukreja/issue-94602/fix-comment-declaration-event
Cleaned up: the potentially misleading comment under Event struct
2020-10-05 06:23:06 -07:00
Yashvardhan Kukreja
07d0b4a8bc
Cleaned up and fixed: the potentially misleading comments around Event struct 2020-10-05 15:28:59 +05:30
Kubernetes Prow Robot
086b65a000
Merge pull request #95289 from DataDog/fix-instanceexists-on-deleted-vmss
Azure: fix node removal race condition on VMSS deletion
2020-10-04 18:17:05 -07:00
Kubernetes Prow Robot
267ba6781e
Merge pull request #95098 from phunziker/92402-memcache_test
Fix vendor/k8s.io/client-go/discovery/cached/memory staticcheck
2020-10-04 11:23:05 -07:00
Benjamin Pineau
ee7cd252e8 Azure: fix node removal race condition on VMSS deletion
When a VMSS is being deleted, instances are removed first. The VMSS
itself will disappear once empty. That delay is generally enough for
kube-controller-manager to delete the corresponding k8s nodes, but
might not when busy or throttled (for instance).

If kubernetes nodes remains after their backing VMSS were removed, Azure
cloud-provider will fail listing that VMSS VMs, and downstream callers
(ie. `InstanceExistsByProviderID`) won't account those errors for a
missing instance. The nodes will remain (still considered as "existing"),
and controller-manager will indefinitely retry to VMSS VMs list it,
draining API calls quotas, potentially causing throttling.

In practice a missing scale set implies instances attributed to that
VMSS don't exists either: `InstanceExistsByProviderID` (part of the
general cloud provider interface) should return false in that case.
2020-10-04 18:06:23 +02:00
Kubernetes Prow Robot
d8185e583b
Merge pull request #91934 from SataQiu/fix-kubectl-20200609
kubectl: improve the warning message when doing kubectl apply to the resource without expected annotation
2020-10-03 19:05:05 -07:00
Kubernetes Prow Robot
90c9f7b3e1
Merge pull request #93901 from jpbetz/atomic-structs
Treat LabelSelectors as atomic by Server Side Apply to fix #92913
2020-10-03 15:53:05 -07:00
Kubernetes Prow Robot
1ebf64d343
Merge pull request #94896 from wawa0210/fix-92383
Support kubectl alpha debug default image imagePullPolicy set by the image tag
2020-10-03 13:07:05 -07:00
Kubernetes Prow Robot
0d1ac16ca4
Merge pull request #95180 from SaiHarshaK/staticcheck_kubectl_get
fix staticcheck for kubectl pkg files
2020-10-03 10:47:05 -07:00
Bob Killen
c761a343cb
kubectl: Update triage/support label references to kind/support
The label triage/support has been reclassified as kind/support. The
kind/* family of labels makes more logical sense, as they describe the
"kind" of thing an issue or PR is.

For more information, see the announcement email:
https://groups.google.com/g/kubernetes-dev/c/YcaJpsjjLKw/m/i15cLLx5CAAJ
2020-10-03 09:32:33 -04:00
Kubernetes Prow Robot
24cfb410f0
Merge pull request #94991 from nilo19/feature/support-shared-pip
Azure: Support multiple services sharing one IP address
2020-10-03 05:39:04 -07:00
Sai Harsha Kottapalli
f6b3c5fb3f
fix staticcheck for kubectl pkg files 2020-10-03 13:50:53 +05:30
Kubernetes Prow Robot
bf9354d8cc
Merge pull request #95202 from rikatz/remove-master-clusterinfo
Change kubectl clusterinfo to non offensive words
2020-10-02 14:19:04 -07:00
Kubernetes Prow Robot
3005b6d767
Merge pull request #95240 from apelisse/no-field-update-on-nop
Do not update managedFields timestamp when they don't change
2020-10-02 13:27:05 -07:00
Amanda Hager Lopes de Andrade Katz
de9c2c2090 Fixes high CPU usage in kubectl drain 2020-10-02 16:02:12 -03:00
Kubernetes Prow Robot
75250ebeee
Merge pull request #95177 from andyzhangx/detach-non-existing-vm
fix detach azure disk issue when vm not exist
2020-10-01 23:37:19 -07:00
Antoine Pelisse
fedc0b7093 Do not update managedFields timestamp when they don't change 2020-10-01 21:32:39 -07:00
Kishor Joshi
53fc51fc28 reconcile NLB attributes on service creation 2020-10-01 20:33:45 -07:00
andyzhangx
ed82a6ed5a fix detach azure disk issue when vm not exist
fix comments

fix comments
2020-10-02 01:28:14 +00:00
Kubernetes Prow Robot
5549a0d9bb
Merge pull request #95012 from nodo/add-namespace-to-post-based-namespace-creation
Make the creation of namespace using POST and PATCH consistent
2020-10-01 17:37:20 -07:00
Andrea Nodari
3cb510e33e Make the creation of namespace using POST and PATCH consistent
PATCH verb is used when creating a namespace using server-side apply,
while POST verb is used when creating a namespace using client-side
apply.

The difference in path between the two ways to create a namespace led to
an inconsistency when calling webhooks. When server-side apply is used,
the request sent to webhooks has the field "namespace" populated with
the name of namespace being created. On the other hand, when using
client-side apply the "namespace" field is omitted.

This commit aims to make the behaviour consistent and populates the
"namespace" field when creating a namespace using POST verb (i.e.
client-side apply).
2020-10-01 18:05:49 +02:00
Andrew Sy Kim
247f6dd092 vsphere: improve logging message on node cache refresh event
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-10-01 10:53:27 -04:00
Joe Betz
8874bdf004 Tag LabelSelector with +structType=atomic 2020-10-01 06:12:34 -07:00
Joe Betz
f298d549f6 Bump to latest kube-openapi and SMD to pick up structType=atomic support 2020-10-01 06:12:28 -07:00
Ricardo Pchevuzinske Katz
ab129349ac Change kubectl clusterinfo to non offensive words
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
2020-10-01 08:25:52 -03:00
Kubernetes Prow Robot
ef33126cc7
Merge pull request #92897 from MikeSpreitzer/fix92895
Fix description of conversion generator
2020-10-01 02:46:55 -07:00
Renato Viana
316eff8dee Fixed percentage behavior in instr
fixed syntax, wrote a test

fixed a test

.

1

Update staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

Co-Authored-By: Joel Speed <Joel.speed@hotmail.co.uk>

added test

.

fix

fix test

fixed a test

gofmt

lint

fix

function name

validation fix

.

godocs added

.
2020-09-30 21:23:05 +01:00
Tomas Smetana
e9ca265901 Don't add empty AZ labels to OpenStack volumes 2020-09-30 11:02:36 +02:00
Kubernetes Prow Robot
cea1d4e20b
Merge pull request #94205 from jiahuif/cm-migration-config
add configuration for controller migration.
2020-09-29 20:11:24 -07:00
Kubernetes Prow Robot
8f09fcdd9b
Merge pull request #95144 from zhanw15/patch-02
kubernetes/sample-apiserver: correct 'information' spelling errors
2020-09-29 16:07:25 -07:00
Kubernetes Prow Robot
2d2fea0044
Merge pull request #95143 from zhanw15/patch-01
kubernetes/sample-apiserver: correct 'admission' spelling errors
2020-09-29 14:59:25 -07:00
Indeed
5e4f445df3 add configuration for controller migration. 2020-09-29 13:59:19 -07:00
Kubernetes Prow Robot
b9d2df810c
Merge pull request #95145 from wojtek-t/send_bookmarks_on_changes
Watch bookmarks may contain version of objects of other types
2020-09-29 10:11:25 -07:00
wojtekt
0bd8104809 Watch bookmarks may contain version of objects of other types 2020-09-29 18:15:52 +02:00
Kubernetes Prow Robot
a8e96c82de
Merge pull request #95148 from wojtek-t/graduate_indexes_to_ga
Graduate SelectorIndex to GA
2020-09-29 07:35:26 -07:00
Qi Ni
5b3e6ab2b0 Support sharing one IP address for multiple services 2020-09-29 21:58:14 +08:00
Qi Ni
6958db632b Add unit tests for feature "Support sharing one IP address for multiple services" 2020-09-29 21:57:51 +08:00
wojtekt
fea3042f1f Graduate SelectorIndex to GA 2020-09-29 14:06:41 +02:00
展望
c28534c065 correct 'information' spelling errors 2020-09-29 18:13:44 +08:00
展望
f5f9e01ccb correct 'admission' spelling errors 2020-09-29 18:02:08 +08:00
Kubernetes Prow Robot
55be3c063a
Merge pull request #95123 from lavalamp/fix-95064
fix goroutine that lives too long
2020-09-29 01:39:25 -07:00
Kubernetes Prow Robot
998c477fcb
Merge pull request #95114 from antcs/issues-94240
add unit tests for getStorageAccounts in azure_storageaccount.go
2020-09-28 21:31:25 -07:00