1. 20 Oct, 2016 16 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #35085 from xilabao/fix-testing-against-local-clusters · d7e70bd4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      check_node_count falls out of use, clear from docs/devel/e2e-tests.md
      
      delete "--check_node_count " for testing against local clusters
      d7e70bd4
    • Kubernetes Submit Queue's avatar
      Merge pull request #34998 from timstclair/sysdisk · 333c0454
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Don't report FS stats for system containers in the Kubelet Summary API
      
      Fixes https://github.com/kubernetes/kubernetes/issues/31999
      333c0454
    • Kubernetes Submit Queue's avatar
      Merge pull request #34389 from guangxuli/k8s_configmap_test · 0b2674ea
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      add a clean code for TestCanSupport
      0b2674ea
    • Kubernetes Submit Queue's avatar
      Merge pull request #35158 from foxish/petset-redis-fix · b559cc32
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fixing flakes caused by petset tests.
      
      **What this PR does / why we need it**: We should wait till the key/value has been replicated to database slaves before trying to read from them.
      
      **Which issue this PR fixes** Fixes https://github.com/kubernetes/kubernetes/issues/33904, https://github.com/kubernetes/kubernetes/issues/33895
      
      cc @kubernetes/sig-apps
      b559cc32
    • Kubernetes Submit Queue's avatar
      Merge pull request #34653 from rata/simplify-e2e-secret · 3e22b38f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add secret e2e test for keys mapping
      
      **What this PR does / why we need it**: Adds a basic e2e test missing in secrets
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*:
      
      **Special notes for your reviewer**:
      
      **Release note**:
      ```NONE
      ```
      This patch adds a secret e2e test. While configmap e2e tests are far
      more complete, this patch makes secret e2e tests one step closer.
      
      Also, now is more easy to add more tests without code duplication (as I
      did in earlier patches :-/), because of the functions created, and is
      more easy to make it similar to confimap e2e in the future, that is
      really complete.
      3e22b38f
    • Kubernetes Submit Queue's avatar
      Merge pull request #34514 from derekwaynecarr/validation-fixes · 41c9bbcc
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      requests.storage is a standard resource name
      
      The value `requests.storage` is a valid standard resource name but was omitted from the standard list.
      41c9bbcc
    • Kubernetes Submit Queue's avatar
      Merge pull request #35125 from wojtek-t/avoid_unnecessary_reallocations · 5fcb9fd0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Avoid unnecessary reallocations of slice in Cacher
      5fcb9fd0
    • Anirudh's avatar
      fixing lint. · bbc282c5
      Anirudh authored
      bbc282c5
    • Kubernetes Submit Queue's avatar
      Merge pull request #34845 from derekwaynecarr/make_pvc_informer_list · 6306ab00
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      PVC informer lister supports listing
      
      This will be used in follow-on PRs for quota evaluation backed by informers for pvcs.
      
      /cc @deads2k @eparis @kubernetes/sig-storage
      6306ab00
    • Anirudh's avatar
      Fixed based on comments · eeeffbb1
      Anirudh authored
      eeeffbb1
    • Kubernetes Submit Queue's avatar
      Merge pull request #35142 from dankohn/dankohn-code-of-conduct · deadea91
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Change code of conduct to call CNCF CoC by reference
      
      **What this PR does / why we need it**:
      
      Revises the Kubernetes Code of Conduct (CoC) to point to the CNCF CoC by reference. The CNCF CoC is nearly identical to the Kubernetes one. The only changes are replacing `Kubernetes` with `CNCF` and referencing the Linux Foundation events CoC.
      
      Here is an exact diff of the changes between the Kubernetes CoC and the CNCF CoC: https://github.com/cncf/foundation/commit/9f3936e486806e4c2efffb25ebd3306dee203943
      
      Note that this PR attempts to resolve https://github.com/cncf/foundation/issues/2 which is to have a standard CoC for all CNCF projects.
      
      **Special notes for your reviewer**:
      
      Cc @sarahnovotny @bgrant0607 @aronchick @caniszczyk @monadic
      deadea91
    • Kubernetes Submit Queue's avatar
      Merge pull request #34831 from dcbw/multizone-gce-instances · a9192ff4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      cloudprovider/gce: canonicalize instance name when returning instance array
      
      'names' is an array of FQDNs.  'instances' is a map indexed by canonicalized
      name.  Clearly these two won't always match, so when building the final
      instance array to return, make sure to look up map entries by their canonicalized
      name.
      
      In the below example, "ocp-master-5pob" is clearly found as a GCE instance
      but when building the final instance array it cannot be matched as the code
      is looking for "ocp-master-5pob.c.ose-refarch.internal" instead.  The node
      is then deleted from the cluster as it cannot be found by the cloud provider.
      
      ```
      gce.go:2519] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): initial node prefix ocp-
      gce.go:2530] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): looking for instances map[ocp-master-5pob:<nil>]
      gce.go:2533] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): getting zone 'europe-west1-c' (remaining 1)
      gce.go:2563] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    instance name <omitted> not requested
      gce.go:2563] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    instance name <omitted> not requested
      gce.go:2533] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): getting zone 'europe-west1-b' (remaining 1)
      gce.go:2563] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    instance name <omitted> not requested
      gce.go:2576] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    found instance 'ocp-master-5pob' remaining 0
      gce.go:2563] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    instance name <omitted> not requested
      gce.go:2533] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): getting zone 'europe-west1-d' (remaining 0)
      gce.go:2588] Failed to retrieve instance: "ocp-master-5pob.c.ose-refarch.internal"
      gce.go:2624] ### getInstanceByName(ocp-master-5pob.c.ose-refarch.internal): got []: instance not found
      gce.go:2626] getInstanceByName/multiple-zones: failed to get instance ocp-master-5pob.c.ose-refarch.internal; err: instance not found
      nodecontroller.go:587] Deleting node (no longer present in cloud provider): ocp-master-5pob.c.ose-refarch.internal
      nodecontroller.go:664] Recording Deleting Node ocp-master-5pob.c.ose-refarch.internal because it's not present according to cloud provider event message for node ocp-master-5pob.c.ose-refarch.internal
      ```
      a9192ff4
    • Anirudh's avatar
      38a6f38c
    • Kubernetes Submit Queue's avatar
      Merge pull request #35160 from mml/luc-cleanup · 7007064e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove unneeded double quotes from hack/local-up-cluster.sh.
      7007064e
    • Kubernetes Submit Queue's avatar
      Merge pull request #35152 from jessfraz/changelog-fix · 561ae505
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      changelog: readd downloads section
      
      ping @david-mcmahon
      561ae505
    • Kubernetes Submit Queue's avatar
      Merge pull request #35141 from rootfs/rbd-secret2 · f8999a0e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      remove pv annotation from rbd volume
      
      @kubernetes/sig-storage  @jsafrane @childsb @eparis
      f8999a0e
  2. 19 Oct, 2016 24 commits
    • Matt Liggett's avatar
      Remove unneeded double quotes from hack/local-up-cluster.sh. · 1decca82
      Matt Liggett authored
      They freak out vim syntax highlighting when they are combined with a '/'
      character.
      1decca82
    • Kubernetes Submit Queue's avatar
      Merge pull request #35148 from caesarxuchao/importboss-clientset · 192e18e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add import restriction to clientset
      
      This prevents clientset from import more packages in pkg/client/unversioned, because we want to deprecate pkg/client/unversioned.
      
      cc @ingvagabund
      192e18e2
    • Kubernetes Submit Queue's avatar
      Merge pull request #35082 from mml/disruption-wait · a2460ad3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Wait for all pods to be running before checking PDB status.
      a2460ad3
    • Kubernetes Submit Queue's avatar
      Merge pull request #34407 from brendandburns/kubectl-schema · 2de1f5c0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add validation that detects repeated keys in the labels and annotations maps
      
      Fixes #2965  (a nearly 2 year old feature request!)
      
      @kubernetes/kubectl 
      
      @eparis
      2de1f5c0
    • Jess Frazelle's avatar
      changelog: readd downloads section · dcf7331a
      Jess Frazelle authored
      Signed-off-by: 's avatarJess Frazelle <acidburn@google.com>
      dcf7331a
    • derekwaynecarr's avatar
      d5c45e88
    • Kubernetes Submit Queue's avatar
      Merge pull request #35029 from wojtek-t/avoid_computing_keys_multiple_times · cb03ed36
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Avoid computing keys multiple times in Cacher
      
      This should significantly reduce both cpu-usage and number of allocations in Cacher.
      
      This is a proper follow-up from #30998
      
      @deads2k @liggitt
      cb03ed36
    • Chao Xu's avatar
      add import restriction to clientset · 45432750
      Chao Xu authored
      45432750
    • Kubernetes Submit Queue's avatar
      Merge pull request #34638 from screeley44/k8-get-sc · 91b7e1f9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Adding default StorageClass annotation printout for resource_printer and describer and some refactoring
      
      adding ISDEFAULT for _kubectl get storageclass_ output
      
      ```
      [root@screeley-sc1 gce]# kubectl get storageclass
      NAME            TYPE                   ISDEFAULT
      another-class   kubernetes.io/gce-pd   NO        
      generic1-slow   kubernetes.io/gce-pd   YES       
      generic2-fast   kubernetes.io/gce-pd   YES       
      ```
      
      ```release-note
      Add ISDEFAULT to kubectl get storageClass output
      ```
      
      @kubernetes/sig-storage
      91b7e1f9
    • Dan Williams's avatar
      cloudprovider/gce: canonicalize instance name when returning instance array · 40cefcaf
      Dan Williams authored
      'names' is an array of FQDNs.  'instances' is a map indexed by canonicalized
      name.  Clearly these two won't always match, so when building the final
      instance array to return, make sure to look up map entries by their canonicalized
      name.
      
      In the below example, "ocp-master-5pob" is clearly found as a GCE instance
      but when building the final instance array it cannot be matched as the code
      is looking for "ocp-master-5pob.c.ose-refarch.internal" instead.  The node
      is then deleted from the cluster as it cannot be found by the cloud provider.
      
      gce.go:2519] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): initial node prefix ocp-
      gce.go:2530] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): looking for instances map[ocp-master-5pob:<nil>]
      gce.go:2533] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): getting zone 'europe-west1-c' (remaining 1)
      gce.go:2563] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    instance name <omitted> not requested
      gce.go:2563] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    instance name <omitted> not requested
      gce.go:2533] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): getting zone 'europe-west1-b' (remaining 1)
      gce.go:2563] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    instance name <omitted> not requested
      gce.go:2576] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    found instance 'ocp-master-5pob' remaining 0
      gce.go:2563] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]):    instance name <omitted> not requested
      gce.go:2533] ### getInstancesByNames([ocp-master-5pob.c.ose-refarch.internal]): getting zone 'europe-west1-d' (remaining 0)
      gce.go:2588] Failed to retrieve instance: "ocp-master-5pob.c.ose-refarch.internal"
      gce.go:2624] ### getInstanceByName(ocp-master-5pob.c.ose-refarch.internal): got []: instance not found
      gce.go:2626] getInstanceByName/multiple-zones: failed to get instance ocp-master-5pob.c.ose-refarch.internal; err: instance not found
      nodecontroller.go:587] Deleting node (no longer present in cloud provider): ocp-master-5pob.c.ose-refarch.internal
      nodecontroller.go:664] Recording Deleting Node ocp-master-5pob.c.ose-refarch.internal because it's not present according to cloud provider event message for node ocp-master-5pob.c.ose-refarch.internal
      40cefcaf
    • Wojciech Tyczynski's avatar
      0ced3f43
    • Huamin Chen's avatar
      remove pv annotation from rbd volume · 10b29de5
      Huamin Chen authored
      Signed-off-by: 's avatarHuamin Chen <hchen@redhat.com>
      10b29de5
    • Dan Kohn's avatar
      77db65d6
    • Kubernetes Submit Queue's avatar
      Merge pull request #35122 from gmarek/clientset · 26aa5a9e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Use clientset in GetReadySchedulableNodesOrDie
      26aa5a9e
    • Kubernetes Submit Queue's avatar
      Merge pull request #35120 from eparis/hack-sort · 10a0d2a4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Use LC_ALL=C with sort
      
      In some user env LANG=C might lose:
      
      Wrong:
      ```
      echo -e "test/images/port-forward-tester\ntest/images/porter" | LANG=C sort
      test/images/porter
      test/images/port-forward-tester
      ```
      Right:
      ```
      echo -e "test/images/port-forward-tester\ntest/images/porter" | LC_ALL=C sort
      test/images/port-forward-tester
      test/images/porter
      ```
      10a0d2a4
    • Kubernetes Submit Queue's avatar
      Merge pull request #35022 from jsafrane/gluster-secrets2 · d4087d0b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove PV annotations for Gluster provisioner.
      
      Don't store Gluster SotrageClass parameters in annotations, it's insecure.
      Instead, expect that there is the StorageClass available at the time
      when it's needed by Gluster deleter.
      
      See #34822 for detais
      
      @kubernetes/sig-storage
      d4087d0b
    • Kubernetes Submit Queue's avatar
      Merge pull request #34683 from asalkeld/cmd/testing/fake · 5133e1f0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Move the common test functions from cmd_test.go to cmd/testing/fake.go
      
      **What this PR does / why we need it**:
      This is so that we can use NewAPIFactory() from cmd/set/*test.go
      Up until now we would get a import loop error.
      
      This commit also adds a basic unit test case for cmd/set/set_image.go
      
      **Which issue this PR fixes**
      partial #34592
      
      **Special notes for your reviewer**:
      None
      
      **Release note**:
      ```release-note
      NONE
      ```
      5133e1f0
    • Scott Creeley's avatar
    • gmarek's avatar
      Use clientset in GetReadySchedulableNodesOrDie · f08f7518
      gmarek authored
      f08f7518
    • Eric Paris's avatar
      Use LC_ALL=C with sort · b670f762
      Eric Paris authored
      In some user env LANG=C might lose:
      
      Wrong:
      ```
      echo -e "test/images/port-forward-tester\ntest/images/porter" | LANG=C sort
      test/images/porter
      test/images/port-forward-tester
      ```
      Right:
      ```
      echo -e "test/images/port-forward-tester\ntest/images/porter" | LC_ALL=C sort
      test/images/port-forward-tester
      test/images/porter
      ```
      b670f762
    • Kubernetes Submit Queue's avatar
      Merge pull request #35112 from errordeveloper/fix-35105 · be1996ee
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Get rid of output line that break automated usage of `kubectl set image`
      
      **What this PR does / why we need it**:
      
      **Which issue this PR fixes**: fixes #35105
      
      **Special notes for your reviewer**: We could consider printing it to stderr, or using `IsTerminal()`, but I went for the simplest thing first.
      
      **Release note**:
      ```release-note
      Make `kubectl set image` easier to script
      ```
      be1996ee
    • Kubernetes Submit Queue's avatar
      Merge pull request #34976 from deads2k/api-30-separate-third-party · 6b56d7ba
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      separate third party resources from master (moves + consequences)
      
      Remove the third party resource code from the main `Master` struct.  I think we may be able to get this down to particular way to configure/`New` a generic API server.
      6b56d7ba
    • Kubernetes Submit Queue's avatar
      Merge pull request #33966 from dims/fix-issue-33375 · 8290366a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Enable local-up-cluster.sh to start with the secured port
      
      related to #33375
      8290366a
    • Ilya Dmitrichenko's avatar