PRFedosin: Allow to define exec credential plugin config options from kubectl
ResultFAILURE
Tests 1 failed / 795 succeeded
Started2019-02-11 12:00
Elapsed6m28s
Revision
Buildergke-prow-containerd-pool-99179761-xbx9
Refs master:196047fc
73230:1111c7fc
pod80dc1424-2df4-11e9-8907-0a580a6c061e
infra-commit0e19c7061
pod80dc1424-2df4-11e9-8907-0a580a6c061e
repok8s.io/kubernetes
repo-commitdd4f6b244a95ce2b7c31501e4291ed649aec3518
repos{u'k8s.io/kubernetes': u'master:196047fc280448fadbefe07540065209bf483fa0,73230:1111c7fcfdb2b5459368934dc0f44f52dc51b2a7'}

Test Failures


//pkg/kubectl/cmd/config:go_default_test 0.00s

bazel test //pkg/kubectl/cmd/config:go_default_test
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //pkg/kubectl/cmd/config:go_default_test
-----------------------------------------------------------------------------
Sets a user entry in kubeconfig 

Specifying a name that already exists will merge new fields on top of existing values. 

  Client-certificate flags:
  --client-certificate=certfile --client-key=keyfile
  
  Bearer token flags:
    --token=bearer_token
  
  Basic auth flags:
    --username=basic_user --password=basic_password
  
Bearer token and basic auth are mutually exclusive.

Usage:
  config set-credentials NAME [--client-certificate=path/to/certfile] [--client-key=path/to/keyfile] [--token=bearer_token] [--username=basic_user] [--password=basic_password] [--auth-provider=provider_name] [--auth-provider-arg=key=value] [--exec-command=exec_command] [--exec-api-version=exec_api_version] [--exec-arg=arg] [--exec-arg-remove=arg] [--exec-env=key=value]

Examples:
  # Set only the "client-key" field on the "cluster-admin"
  # entry, without touching other values:
  kubectl config set-credentials cluster-admin --client-key=~/.kube/admin.key
  
  # Set basic auth for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --username=admin --password=uXFGweU9l35qcif
  
  # Embed client certificate data in the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --client-certificate=~/.kube/admin.crt --embed-certs=true
  
  # Enable the Google Compute Platform auth provider for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --auth-provider=gcp
  
  # Enable the OpenID Connect auth provider for the "cluster-admin" entry with additional args
  kubectl config set-credentials cluster-admin --auth-provider=oidc --auth-provider-arg=client-id=foo --auth-provider-arg=client-secret=bar
  
  # Remove the "client-secret" config value for the OpenID Connect auth provider for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --auth-provider=oidc --auth-provider-arg=client-secret-
  
  # Enable new exec auth plugin for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable
  
  # Specify an exec API version other than the default for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-api-version=client.authentication.k8s.io/v1
  
  # Enable new exec auth plugin for the "cluster-admin" entry with additional args
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-arg=arg1 --exec-arg=arg2
  
  # Remove the "arg-to-remove" argument for the exec plugin for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-arg-remove=arg-to-remove
  
  # Enable new exec auth plugin for the "cluster-admin" entry with additional environment variables
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-env=key1=val1 --exec-env=key2=val2
  
  # Remove the "env-to-remove" environment variable for the exec plugin for the "cluster-admin" entry
  kubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-env=env-to-remove-

Flags:
      --auth-provider string          Auth provider for the user entry in kubeconfig
      --auth-provider-arg strings     'key=value' arguments for the auth provider
      --client-certificate string     Path to client-certificate file for the user entry in kubeconfig
      --client-key string             Path to client-key file for the user entry in kubeconfig
      --embed-certs tristate[=true]   Embed client cert/key for the user entry in kubeconfig
      --exec-api-version string       API version of the exec credential plugin for the user entry in kubeconfig. Defaults to client.authentication.k8s.io/v1beta1
      --exec-arg strings              new arguments for the exec credential plugin command for the user entry in kubeconfig
      --exec-arg-remove strings       arguments to remove from the exec credential plugin command for the user entry in kubeconfig
      --exec-command string           Command for the exec credential plugin for the user entry in kubeconfig
      --exec-env stringArray          'key=value' environment values for the exec credential plugin
  -h, --help                          help for set-credentials
      --password string               password for the user entry in kubeconfig
      --token string                  token for the user entry in kubeconfig
      --username string               username for the user entry in kubeconfig

Global Flags:
      --context string      The name of the kubeconfig context to use
      --kubeconfig string   use a particular kubeconfig file
error: Error: trying to get stringSlice value of flag of type stringArray

				from junit_bazel.xml

Filter through log files | View test history on testgrid


Show 795 Passed Tests

Error lines from build-log.txt

... skipping 133 lines ...
W0211 12:03:41.934] [5,363 / 5,381] 46 / 796 tests; GoLink pkg/kubectl/scheme/linux_amd64_race_stripped/go_default_test; 1s remote-cache ... (8 actions, 7 running)
W0211 12:03:58.056] [5,919 / 5,943] 90 / 796 tests; GoCompile cmd/kube-scheduler/app/config/linux_amd64_race_stripped/go_default_library%/k8s.io/kubernetes/cmd/kube-scheduler/app/config.a; 1s remote-cache ... (8 actions, 7 running)
W0211 12:04:17.980] [6,682 / 6,701] 137 / 796 tests; GoLink pkg/controller/nodeipam/ipam/cidrset/linux_amd64_race_stripped/go_default_test; 2s remote-cache ... (7 actions, 6 running)
W0211 12:04:39.606] [7,276 / 7,288] 209 / 796 tests; GoCompile pkg/kubectl/cmd/set/env/linux_amd64_race_stripped/go_default_test%/k8s.io/kubernetes/pkg/kubectl/cmd/set/env.a; 1s remote-cache ... (7 actions, 6 running)
W0211 12:05:04.498] [7,977 / 7,994] 304 / 796 tests; Testing //hack:verify-boilerplate; 5s linux-sandbox ... (6 actions running)
W0211 12:05:33.359] [8,905 / 8,916] 450 / 796 tests; GoLink pkg/kubelet/prober/linux_amd64_race_stripped/go_default_test; 1s remote-cache ... (7 actions, 6 running)
W0211 12:05:51.716] FAIL: //pkg/kubectl/cmd/config:go_default_test (see /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_1.log)
W0211 12:05:52.508] FAIL: //pkg/kubectl/cmd/config:go_default_test (see /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_2.log)
W0211 12:05:53.475] 
W0211 12:05:53.476] FAILED: //pkg/kubectl/cmd/config:go_default_test (Summary)
W0211 12:05:53.476]       /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_1.log
W0211 12:05:53.476]       /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_2.log
W0211 12:05:53.476]       /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test.log
W0211 12:05:53.477] FAIL: //pkg/kubectl/cmd/config:go_default_test (see /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test.log)
W0211 12:05:53.477] INFO: From Testing //pkg/kubectl/cmd/config:go_default_test:
I0211 12:05:53.577] ==================== Test output for //pkg/kubectl/cmd/config:go_default_test:
I0211 12:05:53.577] Sets a user entry in kubeconfig 
I0211 12:05:53.578] 
I0211 12:05:53.578] Specifying a name that already exists will merge new fields on top of existing values. 
I0211 12:05:53.578] 
... skipping 65 lines ...
I0211 12:05:53.585]       --token string                  token for the user entry in kubeconfig
I0211 12:05:53.585]       --username string               username for the user entry in kubeconfig
I0211 12:05:53.586] 
I0211 12:05:53.586] Global Flags:
I0211 12:05:53.586]       --context string      The name of the kubeconfig context to use
I0211 12:05:53.586]       --kubeconfig string   use a particular kubeconfig file
I0211 12:05:53.586] error: Error: trying to get stringSlice value of flag of type stringArray
I0211 12:05:53.586] ================================================================================
I0211 12:05:53.586] ==================== Test output for //pkg/kubectl/cmd/config:go_default_test:
I0211 12:05:53.586] Sets a user entry in kubeconfig 
I0211 12:05:53.586] 
I0211 12:05:53.587] Specifying a name that already exists will merge new fields on top of existing values. 
I0211 12:05:53.587] 
... skipping 65 lines ...
I0211 12:05:53.594]       --token string                  token for the user entry in kubeconfig
I0211 12:05:53.594]       --username string               username for the user entry in kubeconfig
I0211 12:05:53.594] 
I0211 12:05:53.594] Global Flags:
I0211 12:05:53.594]       --context string      The name of the kubeconfig context to use
I0211 12:05:53.594]       --kubeconfig string   use a particular kubeconfig file
I0211 12:05:53.594] error: Error: trying to get stringSlice value of flag of type stringArray
I0211 12:05:53.595] ================================================================================
I0211 12:05:53.595] ==================== Test output for //pkg/kubectl/cmd/config:go_default_test:
I0211 12:05:53.595] Sets a user entry in kubeconfig 
I0211 12:05:53.595] 
I0211 12:05:53.595] Specifying a name that already exists will merge new fields on top of existing values. 
I0211 12:05:53.595] 
... skipping 65 lines ...
I0211 12:05:53.602]       --token string                  token for the user entry in kubeconfig
I0211 12:05:53.602]       --username string               username for the user entry in kubeconfig
I0211 12:05:53.603] 
I0211 12:05:53.603] Global Flags:
I0211 12:05:53.603]       --context string      The name of the kubeconfig context to use
I0211 12:05:53.603]       --kubeconfig string   use a particular kubeconfig file
I0211 12:05:53.603] error: Error: trying to get stringSlice value of flag of type stringArray
I0211 12:05:53.603] ================================================================================
W0211 12:06:06.166] [10,017 / 10,037] 655 / 796 tests, 1 failed; GoLink pkg/kubectl/cmd/linux_amd64_race_stripped/go_default_test; 3s remote-cache ... (8 actions, 6 running)
W0211 12:06:26.010] INFO: Elapsed time: 271.356s, Critical Path: 27.94s
W0211 12:06:26.011] INFO: 9018 processes: 9016 remote cache hit, 2 linux-sandbox.
W0211 12:06:26.011] INFO: Build completed, 1 test FAILED, 10665 total actions
I0211 12:06:26.112] //cluster:clientbin_test                                        (cached) PASSED in 0.0s
I0211 12:06:26.112] //cluster:common_test                                           (cached) PASSED in 0.0s
I0211 12:06:26.112] //cluster:kube-util_test                                        (cached) PASSED in 0.0s
I0211 12:06:26.113] //cluster/gce/cos:go_default_test                               (cached) PASSED in 0.0s
I0211 12:06:26.113] //cluster/gce/custom:go_default_test                            (cached) PASSED in 0.0s
I0211 12:06:26.113] //cluster/gce/gci:go_default_test                               (cached) PASSED in 0.0s
... skipping 783 lines ...
I0211 12:06:26.298] //third_party/forked/etcd221/pkg/fileutil:go_default_test       (cached) PASSED in 0.0s
I0211 12:06:26.298] //third_party/forked/etcd237/pkg/fileutil:go_default_test       (cached) PASSED in 0.0s
I0211 12:06:26.298] //third_party/forked/golang/expansion:go_default_test           (cached) PASSED in 0.0s
I0211 12:06:26.298] //third_party/forked/golang/reflect:go_default_test             (cached) PASSED in 0.0s
I0211 12:06:26.299] //third_party/forked/gonum/graph/simple:go_default_test         (cached) PASSED in 0.0s
I0211 12:06:26.299] //hack:verify-boilerplate                                                PASSED in 3.1s
I0211 12:06:26.299] //pkg/kubectl/cmd/config:go_default_test                                 FAILED in 3 out of 3 in 2.8s
I0211 12:06:26.299]   Stats over 3 runs: max = 2.8s, min = 0.8s, avg = 1.5s, dev = 0.9s
I0211 12:06:26.299]   /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_1.log
I0211 12:06:26.299]   /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test_attempts/attempt_2.log
I0211 12:06:26.299]   /bazel-scratch/.cache/bazel/_bazel_root/e9f728bbd90b3fba632eb31b20e1dacd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/kubectl/cmd/config/go_default_test/test.log
I0211 12:06:26.299] 
I0211 12:06:26.300] Executed 2 out of 796 tests: 795 tests pass and 1 fails locally.
I0211 12:06:26.300] There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
W0211 12:06:26.400] INFO: Build completed, 1 test FAILED, 10665 total actions
W0211 12:06:26.401] Run: ('/workspace/./test-infra/jenkins/../scenarios/../hack/coalesce.py',)
I0211 12:06:26.656] Build passed, tests failed or timed out
E0211 12:06:26.662] Command failed
I0211 12:06:26.663] process 523 exited with code 3 after 5.2m
E0211 12:06:26.663] FAIL: pull-kubernetes-bazel-test
I0211 12:06:26.664] Call:  gcloud auth activate-service-account --key-file=/etc/service-account/service-account.json
W0211 12:06:32.596] Activated service account credentials for: [pr-kubekins@kubernetes-jenkins-pull.iam.gserviceaccount.com]
I0211 12:06:32.644] process 2525 exited with code 0 after 0.1m
I0211 12:06:32.645] Call:  gcloud config get-value account
I0211 12:06:32.961] process 2539 exited with code 0 after 0.0m
I0211 12:06:32.962] Will upload results to gs://kubernetes-jenkins/pr-logs using pr-kubekins@kubernetes-jenkins-pull.iam.gserviceaccount.com
I0211 12:06:32.962] Upload result and artifacts...
I0211 12:06:32.962] Gubernator results at https://gubernator.k8s.io/build/kubernetes-jenkins/pr-logs/pull/73230/pull-kubernetes-bazel-test/75409
I0211 12:06:32.963] Call:  gsutil ls gs://kubernetes-jenkins/pr-logs/pull/73230/pull-kubernetes-bazel-test/75409/artifacts
W0211 12:06:34.293] CommandException: One or more URLs matched no objects.
E0211 12:06:34.444] Command failed
I0211 12:06:34.444] process 2551 exited with code 1 after 0.0m
W0211 12:06:34.444] Remote dir gs://kubernetes-jenkins/pr-logs/pull/73230/pull-kubernetes-bazel-test/75409/artifacts not exist yet
I0211 12:06:34.445] Call:  gsutil -m -q -o GSUtil:use_magicfile=True cp -r -c -z log,txt,xml /workspace/_artifacts gs://kubernetes-jenkins/pr-logs/pull/73230/pull-kubernetes-bazel-test/75409/artifacts
I0211 12:06:36.794] process 2693 exited with code 0 after 0.0m
W0211 12:06:36.795] metadata path /workspace/_artifacts/metadata.json does not exist
W0211 12:06:36.795] metadata not found or invalid, init with empty metadata
... skipping 23 lines ...