1. 25 May, 2017 23 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #44774 from kargakis/uniquifier · 26d7ee04
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Switch Deployments to new hashing algo w/ collision avoidance mechanism
      
      Implements https://github.com/kubernetes/community/pull/477
      
      @kubernetes/sig-apps-api-reviews @kubernetes/sig-apps-pr-reviews 
      
      Fixes https://github.com/kubernetes/kubernetes/issues/29735
      Fixes https://github.com/kubernetes/kubernetes/issues/43948
      
      ```release-note
      Deployments are updated to use (1) a more stable hashing algorithm (fnv) than the previous one (adler) and (2) a hashing collision avoidance mechanism that will ensure new rollouts will not block on hashing collisions anymore.
      ```
      26d7ee04
    • Michail Kargakis's avatar
      Generated changes for collision count · 9190a47c
      Michail Kargakis authored
      Signed-off-by: 's avatarMichail Kargakis <mkargaki@redhat.com>
      9190a47c
    • Kubernetes Submit Queue's avatar
      Merge pull request #46366 from nicksardo/gce-subnetwork-url · 9c1480bb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45573, 46354, 46376, 46162, 46366)
      
      GCE - Retrieve subnetwork name/url from gce.conf 
      
      **What this PR does / why we need it**:
      Features like ILB require specifying the subnetwork if the network is type manual.
      
      **Notes:**
      The network URL can be [constructed](https://github.com/nicksardo/kubernetes/blob/68e7e18698d60050924c0f0e8f794a21820f2a1a/pkg/cloudprovider/providers/gce/gce.go#L211-L217) by fetching instance metadata; however, the subnetwork is not provided through this feature. Users must specify the subnetwork name/url through the gce.conf.
      
      Although multiple subnets can exist in the same region for a network, the cloud provider will only use one subnet url for creating LBs. 
      
      
      **Release note**:
      ```release-note
      NONE
      ```
      9c1480bb
    • Kubernetes Submit Queue's avatar
      Merge pull request #46162 from lixiaobing10051267/masterFound · 8f9f412d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45573, 46354, 46376, 46162, 46366)
      
      break the loop when found true
      
      break the loop when found true.
      8f9f412d
    • Kubernetes Submit Queue's avatar
      Merge pull request #46376 from perotinus/sacrb · 0cd76e17
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45573, 46354, 46376, 46162, 46366)
      
      [Federation] Uniquify the ClusterRole and ClusterRoleBinding names created by `kubefed join`
      
      This allows a cluster to be in multiple federations.
      
      **Release note**:
      ```release-note
      NONE
      ```
      0cd76e17
    • Kubernetes Submit Queue's avatar
      Merge pull request #46354 from smarterclayton/metrics_subresource · 23348cee
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45573, 46354, 46376, 46162, 46366)
      
      Subresources are not included in apiserver prometheus metrics
      
      Subresources are very often completely different code paths and errors
      generated on those code paths are important to distinguish.
      
      @kubernetes/sig-api-machinery-pr-reviews
      
      ```release-note
      The Prometheus metrics for the kube-apiserver for tracking incoming API requests and latencies now return the `subresource` label for correctly attributing the type of API call.
      ```
      23348cee
    • Kubernetes Submit Queue's avatar
      Merge pull request #45573 from shiywang/zh · 4234d79a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45573, 46354, 46376, 46162, 46366)
      
      Add Simplified Chinese translation for kubectl
      
      What this PR does / why we need it:
      This PR provides first attempt to translate kubectl in Simplified Chinese.
      
      Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
      No issues
      
      Special notes for your reviewer:
      Although I'm a native speaker for Mandarin Chinese, but I think translation is a whole different knowledge which I'm not good at it, so this pr absolutely need to be polished.
      @adohe @mengqiy @resouer @k82cn @caesarxuchao @wanghaoran1988 sorry I think there are so many folks who are good at Chinese I haven't mention, feel free to leave a comment on it : )
      also cc @brendandburns
      4234d79a
    • Michail Kargakis's avatar
      4a2c5eae
    • Michail Kargakis's avatar
      aeb2d9b9
    • Michail Kargakis's avatar
      Remove obsolete deployment helpers · fcf68ba7
      Michail Kargakis authored
      Signed-off-by: 's avatarMichail Kargakis <mkargaki@redhat.com>
      fcf68ba7
    • Michail Kargakis's avatar
      4aa8b1a6
    • Kubernetes Submit Queue's avatar
      Merge pull request #46373 from deads2k/controller-06-queue · 4def5add
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45913, 46065, 46352, 46363, 46373)
      
      don't queue namespaces for deletion if the namespace isn't deleted
      
      Most namespaces aren't deleted most of the time.  No need to queue them for cleanup if they aren't deleted.
      4def5add
    • Kubernetes Submit Queue's avatar
      Merge pull request #46363 from MrHohn/fix-CheckPodsCondition · d84f3f4b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45913, 46065, 46352, 46363, 46373)
      
      Fix CheckPodsCondition to print out the correct podName
      
      From a couple CIs (https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-serial/1114, https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-gci-qa-serial-master/2246, https://storage.googleapis.com/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-pre-release/2187), all indicate we print out the wrong pod name in CheckPodsCondition for _"Pod XXX failed to be running and ready, or succeeded."_:
      ```
      I0524 02:09:50.173] May 24 02:09:50.173: INFO: Waiting for pod heapster-v1.3.0-3806988011-kzkg6 in namespace 'kube-system' status to be 'running and ready, or succeeded'(found phase: "Running", readiness: false) (4m55.033881993s elapsed)
      I0524 02:09:52.178] May 24 02:09:52.178: INFO: Waiting for pod heapster-v1.3.0-3806988011-kzkg6 in namespace 'kube-system' status to be 'running and ready, or succeeded'(found phase: "Running", readiness: false) (4m57.03848264s elapsed)
      I0524 02:09:54.183] May 24 02:09:54.182: INFO: Waiting for pod heapster-v1.3.0-3806988011-kzkg6 in namespace 'kube-system' status to be 'running and ready, or succeeded'(found phase: "Running", readiness: false) (4m59.043463323s elapsed)
      I0524 02:09:56.183] May 24 02:09:56.183: INFO: Pod fluentd-gcp-v2.0-6wf67 failed to be running and ready, or succeeded.
      I0524 02:09:56.184] May 24 02:09:56.183: INFO: Wanted all 23 pods to be running and ready, or succeeded. Result: false. Pods: [heapster-v1.3.0-3806988011-kzkg6 kube-proxy-bootstrap-e2e-minion-group-bbwn rescheduler-v0.3.0-bootstrap-e2e-master monitoring-influxdb-grafana-v4-1q59k l7-default-backend-1044750973-zgxsc etcd-server-events-bootstrap-e2e-master kube-apiserver-bootstrap-e2e-master kube-proxy-bootstrap-e2e-minion-group-6nqb kube-proxy-bootstrap-e2e-minion-group-mzbz fluentd-gcp-v2.0-chd2x kube-dns-806549836-f8p46 fluentd-gcp-v2.0-44x97 kube-dns-autoscaler-2528518105-vlg8t fluentd-gcp-v2.0-p1h4b kube-controller-manager-bootstrap-e2e-master l7-lb-controller-v0.9.3-bootstrap-e2e-master kubernetes-dashboard-2917854236-tn3nx kube-dns-806549836-fq2fp kube-scheduler-bootstrap-e2e-master etcd-empty-dir-cleanup-bootstrap-e2e-master kube-addon-manager-bootstrap-e2e-master etcd-server-bootstrap-e2e-master fluentd-gcp-v2.0-6wf67]
      I0524 02:09:56.184] May 24 02:09:56.183: INFO: At least one pod wasn't running and ready or succeeded at test start.
      I0524 02:09:56.184] [AfterEach] [k8s.io] Restart [Disruptive]
      ```
      
      Check the codes and found we always print out the last pod name, which is random. Pass the pod name into channel to fix.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      d84f3f4b
    • Kubernetes Submit Queue's avatar
      Merge pull request #46352 from humblec/gluster-mount-4 · f5bdd61b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45913, 46065, 46352, 46363, 46373)
      
      Dont exit if 'mount.glusterfs -V' resulted in an error.
      f5bdd61b
    • Kubernetes Submit Queue's avatar
      Merge pull request #46065 from timstclair/audit-api · 74f50193
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45913, 46065, 46352, 46363, 46373)
      
      Update audit API with missing pieces
      
      Follow-up to https://github.com/kubernetes/kubernetes/pull/45315 to resolve pending decisions & issues, including:
      
      - Audit ID format
      - Identifying audit event "stage"
      - Request/Response object format (resolve conversion issue)
      - Add a subresource field to the `ObjectReference`
      
      For https://github.com/kubernetes/features/issues/22
      
      ~~TODO: Add generated code once we've reached consensus on the types.~~
      
      /cc @deads2k @ihmccreery @sttts @soltysh @ericchiang
      74f50193
    • Kubernetes Submit Queue's avatar
      Merge pull request #45913 from enj/enj/t/etcd_cohabitating_resources · fe5b3033
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45913, 46065, 46352, 46363, 46373)
      
      Detect cohabitating resources in etcd storage test
      
      **What this PR does / why we need it**:
      
      This change updates the etcd storage path test to detect cohabitating resources by looking at their expected location in etcd.  This was not detected in the past because the GVK check did not span across groups.
      
      To limit noise from failures caused by multiple objects at the same location in etcd, the test now fails when different GVRs share the same expected path.  Thus every object is expected to have a unique path.
      
      @liggitt PTAL
      Signed-off-by: 's avatarMonis Khan <mkhan@redhat.com>
      
      **Release note**:
      
      ```
      NONE
      ```
      fe5b3033
    • Kubernetes Submit Queue's avatar
      Merge pull request #46150 from bowei/ip-alias-service · 80171e51
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150)
      
      Create a subnet for reserving the service cluster IP range
      
      This will be done if IP aliases is enabled on GCP.
      
      ```release-note
      NONE
      ```
      80171e51
    • Kubernetes Submit Queue's avatar
      Merge pull request #46303 from Random-Liu/fix-cos-image-project · ed884340
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150)
      
      Fix cos image project to cos-cloud.
      
      Addressed https://github.com/kubernetes/kubernetes/pull/45136#discussion_r118092211.
      
      @vishh @yujuhong @dchen1107
      ed884340
    • Kubernetes Submit Queue's avatar
      Merge pull request #46311 from dashpole/disable_ubuntu_gpu_test · 8d88c552
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150)
      
      Dont attach a GPU to ubuntu test machines for node e2e serial tests
      
      This should fix flakes in the e2e_node serial suite.
      
      @vishh I think this is what you were asking for...
      
      /assign @vishh
      8d88c552
    • Kubernetes Submit Queue's avatar
      Merge pull request #46309 from Random-Liu/move-docker-validation-to-separate-project · b71ca669
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150)
      
      Move docker validation test to separate project.
      
      Docker validation test is leaking VMs because new docker version `DOCKER_VERSION=17.05.0-c` totally breaks the new gci image `GCE_IMAGES=gci-test-60-9579-0-0` with the `gci-docker-version` metadata specified.
      
      The test successfully created the instance, but timed out when checking VM aliveness, and leaked the VM.
      
      I've cleaned up all leaked VMs. This PR moves docker validation node e2e test into a separate project to not influencing other node e2e test.
      
      @kewu1992 We should fix the docker automated validation test.
      
      /cc @dchen1107 @yujuhong @abgworrall
      b71ca669
    • Kubernetes Submit Queue's avatar
      Merge pull request #46299 from ncdc/fix-DirectClientConfig-Namespace-override · 3c2e6a9f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150)
      
      Fix in-cluster kubectl --namespace override
      
      **What this PR does / why we need it**:
      Before this change, if the config was empty, ConfirmUsable() would
      return an "invalid configuration" error instead of examining and
      honoring the value of the --namespace flag. This change looks at the
      overrides first, and returns the overridden value if it exists before
      attempting to check if the config is usable. This is most applicable to
      in-cluster clients, where they don't have a kubeconfig but they do have
      a token and can use KUBERNETES_SERVICE_HOST/_PORT.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      The --namespace flag is now honored for in-cluster clients that have an empty configuration.
      ```
      
      @kubernetes/sig-api-machinery-pr-reviews @fabianofranz @liggitt @deads2k @smarterclayton @caesarxuchao @soltysh
      3c2e6a9f
    • Kubernetes Submit Queue's avatar
      Merge pull request #46207 from zjj2wry/spea-space · cbd6b25c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      /pkg/client/listers: fix some typo
      
      **What this PR does / why we need it**:
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      cbd6b25c
    • Kubernetes Submit Queue's avatar
      Merge pull request #45317 from ericchiang/oidc-client-update · 98128560
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      oidc client plugin: reduce round trips and fix scopes requested
      
      This PR attempts to simplify the OpenID Connect client plugin to
      reduce round trips. The steps taken by the client are now:
      
      * If ID Token isn't expired:
         * Do nothing.
      * If ID Token is expired:
         * Query /.well-known discovery URL to find token_endpoint.
         * Use an OAuth2 client and refresh token to request new ID token.
      
      This avoids the previous pattern of always initializing a client,
      which would hit the /.well-known endpoint several times.
      
      The client no longer does token validation since the server already
      does this. As a result, this code no longer imports
      github.com/coreos/go-oidc, instead just using golang.org/x/oauth2
      for refreshing.
      
      Overall reduction in tests because we're not verify as many things
      on the client side. For example, we're no longer validating the
      id_token signature (again, because it's being done on the server
      side).
      
      This has been manually tested against dex, and I hope to continue
      to test this over the 1.7 release cycle.
      
      cc @mlbiam @frodenas @curtisallen @jsloyer @rithujohn191 @philips @kubernetes/sig-auth-pr-reviews 
      
      ```release-note
      NONE
      ```
      
      Updates https://github.com/kubernetes/kubernetes/issues/42654
      Closes https://github.com/kubernetes/kubernetes/issues/37875
      Closes https://github.com/kubernetes/kubernetes/issues/37874
      98128560
  2. 24 May, 2017 17 commits