Patrick Ohly
29941b8d3e
api: resource.k8s.io v1alpha1 -> v1alpha2
...
For Kubernetes 1.27, we intend to make some breaking API changes:
- rename PodScheduling -> PodSchedulingHints (https://github.com/kubernetes/kubernetes/issues/114283 )
- extend ResourceClaimStatus (https://github.com/kubernetes/enhancements/pull/3802 )
We need to switch from v1alpha1 to v1alpha2 for that.
2023-03-14 07:52:03 +01:00
Sean Sullivan
5e8648b9f1
Refactor to simplify factory Validator
2022-12-11 18:20:28 -08:00
Patrick Ohly
5cca60f0b8
api: dynamic resource allocation API
...
This adds a new resource.k8s.io API group with v1alpha1 as version. It contains
four new types: resource.ResourceClaim, resource.ResourceClass, resource.ResourceClaimTemplate, and
resource.PodScheduling.
2022-11-10 20:08:24 +01:00
SataQiu
8a42e73540
fix the bug that kubectl convert does not pick the right api version
2022-09-23 17:14:32 +08:00
cndoit18
ec43037d0f
style: remove redundant judgment
...
Signed-off-by: cndoit18 <cndoit18@outlook.com>
2022-08-25 12:07:36 +08:00
Kevin Delgado
fe3772890f
add server-side validation support to kubectl
2022-03-26 03:45:13 +00:00
Eddie Zaneski
040d575e9f
Update sig-cli OWNERS
...
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2022-02-14 10:55:35 -07:00
Davanum Srinivas
9405e9b55e
Check in OWNERS modified by update-yamlfmt.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-09 21:31:26 -05:00
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08:00
wzshiming
df9a7797bb
kubectl-convert import known versions
2021-01-12 19:04:50 +08:00
Maciej Szulik
523854a0e2
Generated changes
2020-11-06 12:04:39 +01:00
Maciej Szulik
9b8247e5dd
Move the remaining kubectl bits to k8s.io/kubectl
2020-11-06 12:04:39 +01:00
Maciej Szulik
2e74df97a4
Introduce kubectl-convert plugin
2020-11-06 12:04:36 +01:00
Lee Verberne
30262e9b14
Remove alpha from kubectl debug
2020-11-04 17:45:28 +01:00
Jan Chaloupka
d3726b91e2
Move pkg/kubectl/cmd/auth under staging/src/k8s.io/kubectl/pkg/cmd/auth
2020-11-03 15:34:28 +01:00
Kubernetes Prow Robot
f0dfa55de5
Merge pull request #90675 from bamarni/kubectl-config-delete-context-completion
...
Enable completion for `kubectl config delete-context`
2020-11-02 20:24:14 -08:00
Kubernetes Prow Robot
3c2da35b2a
Merge pull request #96019 from rikatz/96017
...
Kubectl - flush profiling when interrupting a long running command
2020-11-02 16:16:28 -08:00
Jan Chaloupka
a5920f7edb
Move helpers from pkg/registry/rbac/reconciliation and pkg/registry/rbac/validation under k8s.io/component-helpers
2020-11-02 17:51:16 +01:00
Ricardo Pchevuzinske Katz
912d9673cb
kubectl flush profiling when get a sigterm
...
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
2020-10-29 17:15:12 -03:00
Kubernetes Prow Robot
5937e7eef7
Merge pull request #92343 from knight42/fix/flags-before-plugin
...
fix(kubectl): print error if users place flags before plugin name
2020-10-28 20:30:58 -07:00
Troy Connor
782b943987
[auth]Check verbs for nonresourceurls and resources
2020-10-12 13:58:45 -04:00
David Eads
c0c033b12f
generated
2020-09-14 09:24:41 -04:00
David Eads
c7911a384c
remove pod presets
2020-09-14 09:24:40 -04:00
Bilal Amarni
81867fd1d9
Enable completion for kubectl config delete-context
...
This enables shell completion for `delete-context`, which will suggest
context names, similarly to the `use-context` and `rename-context`
subcommands.
2020-08-10 16:24:36 +02:00
knight42
7a2e5af11d
fix(kubectl): warn users that flags cannot be placed before plugin
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-07-22 20:34:31 +08:00
knight42
1b32dfdafd
refactor: move kubectl-cp to staging
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-06-16 11:53:22 +08:00
Kubernetes Prow Robot
0535c11381
Merge pull request #90789 from hezhizhen/kubectl_cp
...
Refine extractFileSpec
2020-06-15 08:09:56 -07:00
Jordan Liggitt
df6608dc99
Generated files
2020-06-11 16:04:19 -04:00
Jordan Liggitt
0d674c4edb
cmd: silence warnings in kube-controller-manager/kube-apiserver, dedupe/color warnings in kubectl
2020-06-11 16:04:19 -04:00
Davanum Srinivas
07d88617e5
Run hack/update-vendor.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:33 -04:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:27 -04:00
hezhizhen
1c84efe0c7
Refine extractFileSpec
2020-05-15 10:18:52 +08:00
Aaron Crickenberger
c05629eac4
empty forbiddenPrefixes is same as not being there at all
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
81881e4a12
prune .import-restrictions
...
specifically:
- cmd/kubeadm/.import-restrictions
- we don't need to explicitly allow k8s.io repos (external or published)
- rm pkg/controller/.import-restrictions
- pkg/client/unversioned was removed in 59042
- pkg/kubectl/.import-restrictions
- pkg/printers is no longer used
- pkg/api was masking all of the pkg/apis prefixes
- rm staging/src/k8s.io/code-generator/cmd/lister-gen/.import-restrictions
- noop / empty file
- test/e2e/framework/.import-restrictions
- we don't need to explicitly allow k8s.io repos (external or published)
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
f306a0dbb4
convert .import-restrictions to yaml
...
yaml has comments, so we can explain why we have certain rules or
certain prefixes
for those files that weren't already commented yaml, I converted them to
yaml and took a best guess at comments based on the PRs that introduced
or updated them
2020-04-28 08:41:36 -07:00
Maciej Szulik
02cd65d7bb
Squash pkg/describe/versioned/ into pkg/describe/
2020-03-03 19:20:06 +01:00
Kubernetes Prow Robot
641616362d
Merge pull request #88133 from julianvmodesto/dry-run-tests
...
Cleanup --dry-run values in tests, docs, and scripts
2020-02-27 11:33:42 -08:00
Julian V. Modesto
d97169f59a
Clean up --dry-run values.
...
- Clean up --dry-run values in tests, docs, and scripts
- Fix --dry-run for auth reconcile and add a test
2020-02-15 00:43:30 -05:00
Julian V. Modesto
932500c015
Remove deprecated rolling-update command
2020-02-13 23:52:53 -05:00
Mike Danese
25651408ae
generated: run refactor
2020-02-08 12:30:21 -05:00
Mike Danese
3aa59f7f30
generated: run refactor
2020-02-07 18:16:47 -08:00
Troy Connor
314b6cb32b
[auth]Change example in can-i to apps instead of extensions
2019-12-13 13:36:48 -05:00
Clayton Coleman
3b780c64b8
Always negotiate a decoder using ClientNegotiator
...
This commit performs two refactors and fixes a bug.
Refactor 1 changes the signature of Request to take a RESTClient, which
removes the extra copy of everything on RESTClient from Request. A pair
of optional constructors are added for testing. The major functional
change is that Request no longer has the shim HTTPClient interface and
so some test cases change slightly because we are now going through
http.Client code paths instead of direct to our test stubs.
Refactor 2 changes the signature of RESTClient to take a
ClientContentConfig instead of ContentConfig - the primary difference
being that ClientContentConfig uses ClientNegotiator instead of
NegotiatedSerializer and the old Serializers type. We also collapse
some redundancies (like the rate limiter can be created outside the
constructor).
The bug fix is to negotiate the streaming content type on a Watch()
like we do for requests. We stop caching the decoder and simply
resolve it on the request. We also clean up the dynamic client
and remove the extra WatchSpecificVersions() method by providing
a properly wrapped dynamic client.
2019-11-10 21:30:36 -05:00
Sean Sullivan
2a3f28863b
Moves kubectl get subcommand to staging
2019-10-29 15:51:00 -07:00
Sean Sullivan
958d7d3b6e
Removes duplicate TabWriter. Several updates to reference the one remaining TabWriter in cli-runtime.
2019-10-22 23:45:08 -07:00
Sean Sullivan
8b2130343e
Moves tableprinter.go and tabwriter.go to cli-runtime/pkg/printers. Copies PrintOptions to cli-runtime/pkg/printers.
2019-10-22 23:45:08 -07:00
Maciej Szulik
99448d2283
Update symlink warning
2019-10-01 10:36:02 +02:00
Kubernetes Prow Robot
05588f769d
Merge pull request #82928 from chendotjs/simplify-regex
...
simplify regexp with raw string
2019-09-25 11:07:02 -07:00
wojtekt
cd24a0e5fa
Minor cleanup of jsonFallbackEncoder
2019-09-22 14:05:54 +02:00
chenyaqi01
3175c9e226
simplify regexp with raw string
2019-09-20 16:53:56 +08:00