Commit Graph

90576 Commits

Author SHA1 Message Date
Jing Xu
e71acffdfe Install diskutil into GCE windows node
This PR installs a utility diskutil.exe into GCE windows node. This is a
workaround for csiproxy be able to get disk id by name. This utility
will be placed once issue is addressed.
2020-05-19 18:36:16 -07:00
Kubernetes Prow Robot
3c082d5a60
Merge pull request #89644 from saschagrunert/runtime-spec
Update runtime-spec to v1.0.2
2020-04-29 08:54:25 -07:00
Kubernetes Prow Robot
7229e13036
Merge pull request #90423 from neolit123/1.19-move-cluster-bash-to-util
/cluster: add / update OWNERS labels
2020-04-29 04:52:24 -07:00
Kubernetes Prow Robot
0c3c2cd6ac
Merge pull request #89660 from pjferrell/kubectl-jsonpath-nonprimitive-types
client-go/util/jsonpath: resolve #16707 by outputting json for non-primitive types
2020-04-28 22:56:25 -07:00
Kubernetes Prow Robot
961a5ed144
Merge pull request #90380 from spiffxp/import-boss-test-files
Update import-boss files to yaml, include test files in CI job
2020-04-28 15:58:24 -07:00
Kubernetes Prow Robot
4099ad6e0d
Merge pull request #90542 from lixiang233/master
There's no need to set moveRequestCycle and do broadcast twice.
2020-04-28 12:58:25 -07:00
Kubernetes Prow Robot
f7907083c2
Merge pull request #89160 from tedyu/symlink-first-seen
Remove potentially unhealthy symlink only for dead containers
2020-04-28 09:58:07 -07:00
Aaron Crickenberger
64c0c4792a cmd/api/testing no longer overrides pkg's rules 2020-04-28 08:46:49 -07:00
Aaron Crickenberger
c05629eac4 empty forbiddenPrefixes is same as not being there at all 2020-04-28 08:41:36 -07:00
Aaron Crickenberger
a7af20922f use forbiddenPrefixes instead of allowedPrefixes 2020-04-28 08:41:36 -07:00
Aaron Crickenberger
c2e7ccf2d4 default import-boss --include-test-files=true 2020-04-28 08:41:36 -07:00
Aaron Crickenberger
c209fe8439 fix .import-restrictions to work with import-boss --include-test-files
this is mainly to ensure integration tests (which all end in _test)
are properly bossed around for their imports

I had to adjust some of the _test files to adhere to existing
reverse_rules specified elsewhere
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
Kubernetes Prow Robot
7814f3aaf7
Merge pull request #88723 from wawa0210/kubectl_taint_short_forms
Support kubectl more flexible matching method to match whether the current resource type is node
2020-04-28 04:32:05 -07:00
Kubernetes Prow Robot
885e1e929a
Merge pull request #90501 from tanjunchen/component-base/metrics-improve-code
k8s.io/component-base/metrics/testutil/:improve code
2020-04-27 22:26:52 -07:00
Kubernetes Prow Robot
fabe9cddf1
Merge pull request #90467 from Huang-Wei/honor-runAllFilters
Simplify status handling of scheduler RunFilterPlugins
2020-04-27 22:26:43 -07:00
Kubernetes Prow Robot
62880cb122
Merge pull request #90421 from neolit123/1.19-remove-cluster-clientbin
/cluster: cleanup clientbin.sh
2020-04-27 22:26:33 -07:00
Kubernetes Prow Robot
3c3497bed9
Merge pull request #89981 from gaurav1086/VolumeMode_nil_ptr_check
[volume] VolumeMode nil pointer check
2020-04-27 22:26:19 -07:00
Kubernetes Prow Robot
f86bf71dbe
Merge pull request #89560 from gavinfish/direct-k8s-pod
e2e/framework: remove direct imports to /pkg/api/v1/pod
2020-04-27 22:26:05 -07:00
Kubernetes Prow Robot
54e1e5b62f
Merge pull request #90527 from alculquicondor/optimize-scoring-map
Spreading score optimization: Store ignored instead of qualifying nodes
2020-04-27 19:40:05 -07:00
Kubernetes Prow Robot
df1a4c4e55
Merge pull request #90537 from freehan/enable-externalip
Enable externalPolicyForExternalIP by default
2020-04-27 16:28:04 -07:00
Minhan Xia
432ad6c677 enable externalPolicyForExternalIP by default 2020-04-27 14:52:14 -07:00
Lubomir I. Ivanov
b4bbf0a69f /cluster: cleanup clientbin.sh
clientbin.sh is only used in kubectl.sh. It contains logic
for finding a binary that was build from the k/k tree
and for printing errors if the binary cannot be found.

- Remove clientbin.sh
- Remove references of clientbin.sh from /cluster/BUILD
- Use hack/lib/util.sh's kube::util::find-binary for finding the binary
2020-04-28 00:27:33 +03:00
Kubernetes Prow Robot
6abb8ebd19
Merge pull request #90524 from kubernetes/revert-90249-bookmark_every_minute
Revert "Send watch bookmarks every minute"
2020-04-27 13:40:43 -07:00
Kubernetes Prow Robot
b9ac921f31
Merge pull request #90463 from deads2k/beta-annotations-05-autoscaling
add prerelease lifecycle tags to autoscaling
2020-04-27 13:40:33 -07:00
Kubernetes Prow Robot
e00e89ae1c
Merge pull request #90449 from wojtek-t/remove_events_deprecated_field
Remove events deprecated field
2020-04-27 13:40:19 -07:00
Kubernetes Prow Robot
7fdc1275d9
Merge pull request #90377 from cbf123/container_cpuset_fixup_2
Fix exclusive CPU allocations being deleted at container restart
2020-04-27 13:40:04 -07:00
Kubernetes Prow Robot
77bf313584
Merge pull request #90457 from deads2k/beta-annotations-03-apps
add beta annotations to apps
2020-04-27 12:09:38 -07:00
Kubernetes Prow Robot
561b2aba94
Merge pull request #90419 from klueska/upstream-update-reusable-cpus-strategy
Update strategy used to reuse CPUs from init containers in CPUManager
2020-04-27 12:09:23 -07:00
Chris Friesen
ab5870d808 Fix exclusive CPU allocations being deleted at container restart
The expectation is that exclusive CPU allocations happen at pod
creation time. When a container restarts, it should not have its
exclusive CPU allocations removed, and it should not need to
re-allocate CPUs.

There are a few places in the current code that look for containers
that have exited and call CpuManager.RemoveContainer() to clean up
the container.  This will end up deleting any exclusive CPU
allocations for that container, and if the container restarts within
the same pod it will end up using the default cpuset rather than
what should be exclusive CPUs.

Removing those calls and adding resource cleanup at allocation
time should get rid of the problem.

Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
2020-04-27 11:36:54 -06:00
Aldo Culquicondor
a9461fe6f5 spreading: Store ignored instead of qualifying nodes
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-27 13:18:34 -04:00
wojtekt
13d74c8c04 Update compatibility test
--- FAIL: TestCompatibility (1.44s)
    --- FAIL: TestCompatibility/core.v1.Event (0.02s)
        --- FAIL: TestCompatibility/core.v1.Event/v1.17.0 (0.01s)
            compatibility.go:488: proto differs
            compatibility.go:490:   strings.Join({
                  	... // 79 identical lines
                  	"      2: 456715000",
                  	"    }",
                - 	`    3: ""`,
                  	"  }",
                  	`  12: "30"`,
                  	... // 18 identical lines
                  }, "\n")

            compatibility.go:506: wrote expected compatibility data... verify, commit, and rerun tests
        --- FAIL: TestCompatibility/core.v1.Event/v1.18.0 (0.01s)
            compatibility.go:488: proto differs
            compatibility.go:490:   strings.Join({
                  	... // 79 identical lines
                  	"      2: 456715000",
                  	"    }",
                - 	`    3: ""`,
                  	"  }",
                  	`  12: "30"`,
                  	... // 18 identical lines
                  }, "\n")

            compatibility.go:506: wrote expected compatibility data... verify, commit, and rerun tests
    --- FAIL: TestCompatibility/events.k8s.io.v1beta1.Event (0.02s)
        --- FAIL: TestCompatibility/events.k8s.io.v1beta1.Event/v1.17.0 (0.01s)
            compatibility.go:476: json differs
            compatibility.go:477:   strings.Join({
                  	... // 43 identical lines
                  	`  "series": {`,
                  	`    "count": -1971381490,`,
                - 	`    "lastObservedTime": "2429-02-18T17:57:56.343118Z",`,
                - 	`    "state": "鯹)晿\u003c"`,
                + 	`    "lastObservedTime": "2429-02-18T17:57:56.343118Z"`,
                  	"  },",
                  	`  "reportingController": "19",`,
                  	... // 31 identical lines
                  }, "\n")

            compatibility.go:482: yaml differs
            compatibility.go:483:   strings.Join({
                  	... // 60 identical lines
                  	"  count: -1971381490",
                  	`  lastObservedTime: "2429-02-18T17:57:56.343118Z"`,
                - 	"  state: 鯹)晿<",
                  	`type: "36"`,
                  	"",
                  }, "\n")

            compatibility.go:488: proto differs
            compatibility.go:490:   strings.Join({
                  	... // 54 identical lines
                  	"      2: 343118000",
                  	"    }",
                - 	`    3: "\351\257\271)\346\231\277<"`,
                  	"  }",
                  	`  4: "19"`,
                  	... // 43 identical lines
                  }, "\n")

            compatibility.go:506: wrote expected compatibility data... verify, commit, and rerun tests
        --- FAIL: TestCompatibility/events.k8s.io.v1beta1.Event/v1.18.0 (0.01s)
            compatibility.go:476: json differs
            compatibility.go:477:   strings.Join({
                  	... // 43 identical lines
                  	`  "series": {`,
                  	`    "count": -1971381490,`,
                - 	`    "lastObservedTime": "2429-02-18T17:57:56.343118Z",`,
                - 	`    "state": "鯹)晿\u003c"`,
                + 	`    "lastObservedTime": "2429-02-18T17:57:56.343118Z"`,
                  	"  },",
                  	`  "reportingController": "19",`,
                  	... // 31 identical lines
                  }, "\n")

            compatibility.go:482: yaml differs
            compatibility.go:483:   strings.Join({
                  	... // 60 identical lines
                  	"  count: -1971381490",
                  	`  lastObservedTime: "2429-02-18T17:57:56.343118Z"`,
                - 	"  state: 鯹)晿<",
                  	`type: "36"`,
                  	"",
                  }, "\n")

            compatibility.go:488: proto differs
            compatibility.go:490:   strings.Join({
                  	... // 54 identical lines
                  	"      2: 343118000",
                  	"    }",
                - 	`    3: "\351\257\271)\346\231\277<"`,
                  	"  }",
                  	`  4: "19"`,
                  	... // 43 identical lines
                  }, "\n")

            compatibility.go:506: wrote expected compatibility data... verify, commit, and rerun tests
2020-04-27 18:53:11 +02:00
wojtekt
5a9b6a3114 Autogenerated 2020-04-27 18:53:11 +02:00
wojtekt
edc60a970a Remove deprecated State fiel in EventSeries 2020-04-27 18:53:11 +02:00
lixiang
5844bc3b9f There's no need to set moveRequestCycle and do broadcast twice. 2020-04-28 00:43:58 +08:00
Kubernetes Prow Robot
95bb85378d
Merge pull request #89992 from zhouya0/remove_cobra_command_from_options
Remove *cobra.command from options
2020-04-27 09:35:44 -07:00
Kubernetes Prow Robot
ca8db0b396
Merge pull request #85806 from beautytiger/dev-191202-urlspace
fix: add space in front of url in command desc
2020-04-27 09:35:30 -07:00
张潇
8fda1f361c
Kubectl Taint now also accepts short forms for "node","nodes","no" 2020-04-27 23:18:27 +08:00
Wojciech Tyczynski
1cb98ed237
Revert "Send watch bookmarks every minute" 2020-04-27 17:07:27 +02:00
Kubernetes Prow Robot
75aede28e1
Merge pull request #90484 from nilo19/cleanup/add-unit-tests-for-race-condition
Add unit tests for azure race conditions.
2020-04-27 06:39:29 -07:00
Kubernetes Prow Robot
64d55ae13b
Merge pull request #90270 from gaurav1086/aws_block_test
[Provider/AWS] fix block test
2020-04-27 05:13:29 -07:00
Kubernetes Prow Robot
cdc9e337d2
Merge pull request #90337 from gaurav1086/aws_use_TrimPrefix
[Provider/aws] use strings.TrimPrefix()
2020-04-27 02:51:29 -07:00
t-qini
e48f69de10 Add unit tests for azure race conditions. 2020-04-27 16:44:27 +08:00
Sascha Grunert
519686faeb
Update runtime-spec to v1.0.2
We can now use the new version since v1.0.2 has be officially released.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-04-27 09:34:54 +02:00
Kubernetes Prow Robot
d3d870f051
Merge pull request #90459 from liggitt/rbac-deprecated
add prerelease API lifecycle tags for rbac APIs
2020-04-26 16:39:28 -07:00
tanjunchen
807a7e2426 k8s.io/component-base/metrics/testutil/:improve code 2020-04-26 15:27:51 +08:00
Kubernetes Prow Robot
31b90f3bc0
Merge pull request #90500 from tanjunchen/remove-prometheus_import_allow_list-20200426
remove staging/src/k8s.io/apiserver/pkg/admission/metrics/ in prometheus_import_allow_list
2020-04-25 22:09:28 -07:00
tanjunchen
ff8c7fda32 remove staging/src/k8s.io/apiserver/pkg/admission/metrics/ in prometheus_import_allow_list 2020-04-26 11:36:38 +08:00
Kubernetes Prow Robot
e7de96e635
Merge pull request #90493 from KnicKnic/cert_path
fix cert path generation in windows
2020-04-25 20:05:29 -07:00