Commit Graph

70605 Commits

Author SHA1 Message Date
Patrick Ohly
8cde9c08f0 e2e/storage: decentralized settings
Tests shouldn't have to use the central context for their settings,
because conceptually tests and framework get developed independently.

This does not yet use the new framework/config utility code because
that code still needs to be reviewed.

Besides moving the flags, they also get renamed from the top-level
"--csiImage{Version|Registry}" to
"--storage.csi.image.{version|registry}". These flags were introduced
fairly recently and shouldn't be in use much, so now is a good time to
introduce a hierarchical naming for storage flags, in particular
because more flags will be added soon.
2018-10-05 14:24:35 +02:00
Patrick Ohly
cf0dcc6ab2 e2e: clarify and enhance configuration support
Storing settings in the framework's TestContext is not something that
out-of-tree test authors can do because for them the framework is a
read-only upstream component. Conceptually the same is true for
in-tree tests, so the recommended approach is to define configuration
settings in the code that uses them.

How to do that is a bit uncertain. Viper has several
drawbacks (maintenance status uncertain, cannot list supported
options, cannot validate the configuration file). How to handle
configuration files is currently getting discussed for kubeadm, with
similar concerns about
Viper (https://github.com/kubernetes/kubeadm/issues/1040).

Instead of making a choice now for E2E, the recommendation is that
test authors continue to define command line flags as before, except
that they should do it in their own code and with better flag names.

But the ability to read options also from a file is useful, so
several enhancements get added:
- all settings defined via flags can also be read from a
  configuration file, without extra work for test authors
- framework/config makes it possible to populate a struct directly
  and define flags with a single function call
- a path and file suffix can be given to --viper-config (as in
  "--viper-config /tmp/e2e.json") instead of expecting the file in
  the current directory; as before, just plain "--viper-config e2e"
  still works
- if "--viper-config" is set, the file must exist; otherwise the
  "e2e" config is optional (as before)
- errors from Viper are no longer silently ignored, so syntax errors
  are detected early
- Viper support is optional: test suite authors who don't want
  it are not forced to use it by the e2e/framework
2018-10-05 14:22:18 +02:00
k8s-ci-robot
5fdb0c7177
Merge pull request #69436 from mcrute/issue-69237
[aws] allow true/false in lb annotations
2018-10-05 01:33:31 -07:00
k8s-ci-robot
5602ab7761
Merge pull request #68379 from immutableT/kms-plugin-via-gke
Enable configure-helper.sh to support two scenarios for etcd level encryption: decryption and adding encryption to existing clusters.
2018-10-04 23:38:42 -07:00
k8s-ci-robot
2f349d58df
Merge pull request #68897 from ksubrmnn/mac_address
Load Balancing is not distributing connections to different endpoints
2018-10-04 19:34:45 -07:00
k8s-ci-robot
fecb5edf8a
Merge pull request #66266 from wking/kubectl-drain-drop-backOff
kubectl: Drop backOff from DrainOptions
2018-10-04 19:34:34 -07:00
k8s-ci-robot
0928bb4c01
Merge pull request #69359 from roycaihw/install-create-update-options
Add CreateOptions and UpdateOptions to apiserver rest parameter installation
2018-10-04 18:19:49 -07:00
k8s-ci-robot
fe379ec945
Merge pull request #69355 from bsalamat/perc_validation
Add validation for percentage-of-nodes-to-score of the scheduler config
2018-10-04 18:19:40 -07:00
k8s-ci-robot
6e850768a6
Merge pull request #69115 from mkimuram/issue/69114
Fix descriptor lock release logic for block volume unmapDevice
2018-10-04 18:19:36 -07:00
k8s-ci-robot
766d860f86
Merge pull request #69021 from mgdevstack/master-kubelet-conformance
Promote kubelet NodeConformance tests to Conformance
2018-10-04 18:19:25 -07:00
k8s-ci-robot
8a3888dcfa
Merge pull request #69407 from madhanrm/approvers
Updated approvers for winkernel proxy
2018-10-04 15:59:39 -07:00
k8s-ci-robot
5800937698
Merge pull request #69398 from seans3/run-test-fix
kubectl run test: remove legacyscheme dependency and cleanups
2018-10-04 15:59:29 -07:00
k8s-ci-robot
5e3dc7daf7
Merge pull request #69289 from fabriziopandini/kubeadm-add-v1beta1
Kubeadm add v1beta1 config
2018-10-04 15:59:19 -07:00
k8s-ci-robot
7aed07253d
Merge pull request #69423 from nikhita/staging-instructions-make-it-clear
Make staging repo creation instructions clearer
2018-10-04 13:40:30 -07:00
k8s-ci-robot
34e2688835
Merge pull request #69404 from seans3/fake-test-fix
kubectl fake test factory: replace legacyscheme with kubectl scheme
2018-10-04 13:40:20 -07:00
k8s-ci-robot
f7df7f8a25
Merge pull request #69335 from seans3/set-tests-fix
kubectl set tests: remove testapi core dependency
2018-10-04 13:40:10 -07:00
k8s-ci-robot
409871ecae
Merge pull request #69310 from liggitt/remove-etcd2
Remove etcd2 storage backend
2018-10-04 13:40:00 -07:00
k8s-ci-robot
166490a473
Merge pull request #69103 from pohly/testfiles
E2E: handling extra files
2018-10-04 13:39:49 -07:00
k8s-ci-robot
686f29fbc4
Merge pull request #66301 from wking/kubectl-drain-drop-typer
kubectl: Drop typer from DrainOptions
2018-10-04 12:28:57 -07:00
Mike Crute
076dbc6fd6 [aws] allow true/false in lb annotations 2018-10-04 12:19:32 -07:00
k8s-ci-robot
5589c5b3cb
Merge pull request #69401 from seans3/helpers-test-fix
kubectl helpers test: remove core dependencies
2018-10-04 10:09:55 -07:00
k8s-ci-robot
c568da3ab4
Merge pull request #69384 from oomichi/add-distros
Update options of master/node-os-distro
2018-10-04 10:09:45 -07:00
Madhan Raj Mookkandy
77a9884f4a Updated approvers for winkernel 2018-10-04 10:05:59 -07:00
immutablet
4bc62be0e6 Run kms-plugin in its own POD. 2018-10-04 09:19:57 -07:00
Jordan Liggitt
ad46728158 Switch e2e_node to etcd3 2018-10-04 11:41:16 -04:00
Jordan Liggitt
85ae79500f Remove etcd2 storage backend 2018-10-04 11:41:16 -04:00
k8s-ci-robot
ae2efc752a
Merge pull request #69391 from justinsb/fix_go111_printf
Storage: printf cleanups
2018-10-04 07:51:48 -07:00
k8s-ci-robot
03494debe5
Merge pull request #69385 from bowei/update-owners
Update OWNERS files for GCE-related components
2018-10-04 07:51:36 -07:00
k8s-ci-robot
a25bc8df42
Merge pull request #68440 from humblec/log-level
Add `log-level` mount option support for glusterfs plugin
2018-10-04 06:21:49 -07:00
Nikhita Raghunath
4d47fae312 staging/README: add cluster boostrap 2018-10-04 17:51:42 +05:30
Nikhita Raghunath
b0809cf5d7 Make staging repo creation instructions clearer 2018-10-04 16:55:38 +05:30
fabriziopandini
b4092acdb6 autogenerated 2018-10-04 13:20:20 +02:00
fabriziopandini
9aec633c40 Fix tests 2018-10-04 13:20:11 +02:00
fabriziopandini
488ac6825b Automated bump from v1alpha3 references to v1beta1 2018-10-04 12:03:38 +02:00
fabriziopandini
8ae5179a7b Add a duplicated v1beta1 API 2018-10-04 12:02:50 +02:00
k8s-ci-robot
7136a3e4b2
Merge pull request #67880 from chenyb4/kubectl_openapi
Add kubectl openapi doc import comment
2018-10-04 01:05:15 -07:00
k8s-ci-robot
6e88271a61
Merge pull request #69399 from mikedanese/consistent
storage: propagate TransformFromStorage errors from List
2018-10-03 22:43:22 -07:00
k8s-ci-robot
50ce55e7c5
Merge pull request #69392 from justinsb/fix_go_111_printf_kubeadm
kubeadm: fix printf format error
2018-10-03 22:43:12 -07:00
k8s-ci-robot
2d1ef05ad1
Merge pull request #69295 from deads2k/kbuectl-13-wait-false
allow condition value to specified for kubectl wait
2018-10-03 21:32:12 -07:00
k8s-ci-robot
68536e4382
Merge pull request #68520 from verult/top-auth-integration
Auth integration tests for CSINodeInfo changes
2018-10-03 21:32:01 -07:00
k8s-ci-robot
0187ed03eb
Merge pull request #69408 from cblecker/bump-cert-dep
Bump github.com/google/certificate-transparency-go to v1.0.21
2018-10-03 20:06:40 -07:00
k8s-ci-robot
5dd78df7da
Merge pull request #68982 from aruneli/master
Fixes #65869 Do not listen insecurely if secure port is specified
2018-10-03 17:32:28 -07:00
Christoph Blecker
2e5578b230
Bump github.com/google/certificate-transparency-go to v1.0.21 2018-10-03 16:47:10 -07:00
Sean Sullivan
fa727c809e kubectl fake test factory: replace legacyscheme with kubectl scheme 2018-10-03 15:38:28 -07:00
Masaki Kimura
4226ae7a61 Fix to reflect commnet
- Change not to skip error from GetLoopDevice other than DeviceNotFound
- Add comment for the reason for order of descriptor lock release and TearDownDevice
2018-10-03 22:31:51 +00:00
k8s-ci-robot
16256296d2
Merge pull request #69353 from davidz627/fix/provisionerName
Update provisioner name and don't supply zone in GCE PD CSI test
2018-10-03 15:21:59 -07:00
k8s-ci-robot
6cef8d7ce0
Merge pull request #69339 from seans3/apply-test-fix
kubectl apply test: remove core testapi dependency
2018-10-03 15:21:50 -07:00
k8s-ci-robot
f758b4d148
Merge pull request #69338 from MrHohn/autoscaler-1.3.0
Bump cluster-proportional-autoscaler to 1.3.0
2018-10-03 15:21:41 -07:00
k8s-ci-robot
82a52de097
Merge pull request #68247 from awly/fetch-exec-plugin-license
Fetch gke-exec-plugin license file along with the binary
2018-10-03 15:21:31 -07:00
Cheng Xing
c65d7c9a49 NodeAuthorizer and NodeRestriction integration test for CSINodeInfo permissions 2018-10-03 14:31:16 -07:00