1. 03 Apr, 2017 24 commits
    • Anthony Yeh's avatar
      0fd3120b
    • Kubernetes Submit Queue's avatar
      Merge pull request #41582 from dashpole/unit_test_status · e2d011e4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42973, 41582)
      
      Improve status manager unit testing
      
      This is designed to simplify testing logic in the status manager, and decrease reliance on syncBatch.  This is a smaller portion of #37119, and should be easier to review than that change.
      
      It makes the following changes:
      - creates convenience functions for get, update, and delete core.Action
      - prefers using syncPod on elements in the podStatusChannel to using syncBatch to reduce unintended reliance on syncBatch
      - combines consuming, validating, and clearing actions into single verifyActions function.  This replaces calls to testSyncBatch(), verifyActions(), and ClearActions
      - changes comments in testing functions into log statements for easier debugging
      
      @Random-Liu
      e2d011e4
    • Kubernetes Submit Queue's avatar
      Merge pull request #42973 from gnufied/fix-vsphere-selinux · 538c5c74
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix vsphere selinux support
      
      Managed flag must be true for SELinux relabelling to work
      for vsphere.
      
      Fixes #42972
      538c5c74
    • Kubernetes Submit Queue's avatar
      Merge pull request #43810 from gnufied/add-gnufied-vol-controller · 05c046f6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Adding gnufied as reviewer for volume controller
      
      I have helped review several PRs and made new
      PRs to this area.
      
      cc @childsb @saad-ali
      05c046f6
    • Kubernetes Submit Queue's avatar
      Merge pull request #42512 from kubermatic/scheeles-aws · 4ee6782d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43925, 42512)
      
      AWS: add KubernetesClusterID as additional option when VPC is set
      
      This is a small enhancement after the PRs https://github.com/kubernetes/kubernetes/pull/41695 and  https://github.com/kubernetes/kubernetes/pull/39996
      ## Release Notes
      ```release-note
      AWS cloud provider: allow to set KubernetesClusterID or KubernetesClusterTag in combination with VPC.
      ```
      4ee6782d
    • Kubernetes Submit Queue's avatar
      Merge pull request #43925 from Random-Liu/fix-dockershim-dns-options · 6c6f4f01
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      [CRI] Use DNSOptions passed by CRI in dockershim.
      
      When @xlgao-zju is working on the CRI validation test, he found that dockershim is not using the DNSOptions passed in CRI. https://github.com/kubernetes-incubator/cri-tools/pull/30#issuecomment-290644357
      
      This PR fixed the issue. I've manually tried, for `ClusterFirst` DNSPolicy, the resolv.conf will be:
      ```
      nameserver 8.8.8.8
      search corp.google.com prod.google.com prodz.google.com google.com
      options ndots:5
      ```
      
      For `Default` DNSPolicy, the resolv.conf will be:
      ```
      nameserver 127.0.1.1
      search corp.google.com prod.google.com prodz.google.com google.com
      ```
      
      @xlgao-zju You should be able to test after this PR is merged.
      
      /cc @yujuhong @feiskyer
      6c6f4f01
    • David Ashpole's avatar
      improve testing · 58c32c52
      David Ashpole authored
      58c32c52
    • Kubernetes Submit Queue's avatar
      Merge pull request #43955 from cblecker/mac-cover-test · 27945147
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40432, 43955)
      
      Fix coverage report testing on macOS
      
      **What this PR does / why we need it**:
      Fixes coverage testing on macOS
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #43952
      
      **Special notes for your reviewer**:
      Uses SHA1 SUM of tests instead of full test string to generate directory, so that the directory doesn't exceed 255 chars.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      27945147
    • Kubernetes Submit Queue's avatar
      Merge pull request #40432 from sjenning/imagegc-default · 6f3e5bad
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubelet: change image-gc-high-threshold below docker dm.min_free_space
      
      docker dm.min_free_space defaults to 10%, which "specifies the min free space percent in a thin pool require for new device creation to succeed....Whenever a new a thin pool device is created (during docker pull or during container creation), the Engine checks if the minimum free space is available. If sufficient space is unavailable, then device creation fails and any relevant docker operation fails." [1]
      
      This setting is preventing the storage usage to cross the 90% limit. However, image GC is expected to kick in only beyond image-gc-high-threshold. The image-gc-high-threshold has a default value of 90%, and hence GC never triggers. If image-gc-high-threshold is set to a value lower than (100 - dm.min_free_space)%, GC triggers.
      
      xref https://bugzilla.redhat.com/show_bug.cgi?id=1408309
      
      ```release-note
      changed kubelet default image-gc-high-threshold to 85% to resolve a conflict with default settings in docker that prevented image garbage collection from resolving low disk space situations when using devicemapper storage.
      ```
      
      @derekwaynecarr @sdodson @rhvgoyal
      6f3e5bad
    • Random-Liu's avatar
      Use DNSOptions passed by CRI in dockershim. · b1ce4b7a
      Random-Liu authored
      b1ce4b7a
    • Kubernetes Submit Queue's avatar
      Merge pull request #43968 from liggitt/federation-openapi · 0d1e8c09
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43450, 42999, 43968)
      
      Update federation openapi spec
      
      hack/verify-federation-openapi-spec.sh fails on master
      0d1e8c09
    • Kubernetes Submit Queue's avatar
      Merge pull request #42999 from shiywang/fix-return0 · 1df23630
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43450, 42999, 43968)
      
      fix kubectl config return 0 on error
      
      Fixes https://github.com/kubernetes/kubernetes/issues/42852
      cc @kubernetes/sig-cli-bugs
      @ymqytw ptal
      1df23630
    • Kubernetes Submit Queue's avatar
      Merge pull request #43450 from zjj2wry/003 · 2d646e0c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43450, 42999, 43968)
      
      unit test for kubectl config set-context
      
      **What this PR does / why we need it**:
      unit test for create context
      
      **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**:
      think you 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      2d646e0c
    • Kubernetes Submit Queue's avatar
      Merge pull request #43982 from jsafrane/fix-gluster-storage-class · a2b4fb9b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix deletion of Gluster, Ceph and Quobyte volumes
      
      GetClassForVolume should check pv.spec.storageClassName together with beta annotation.
      
      Fixes #43929
      
      @kubernetes/sig-storage-pr-reviews 
      
      ```release-note
      Fix bug with error "Volume has no class annotation" when deleting a PersistentVolume.
      ```
      a2b4fb9b
    • Kubernetes Submit Queue's avatar
      Merge pull request #43627 from… · 50763cb6
      Kubernetes Submit Queue authored
      Merge pull request #43627 from pospispa/make-constants-public-so-that-they-can-be-used-in-an-external-provisioner
      
      Automatic merge from submit-queue
      
      Make Constants Public so that They Can Be Used in an Ext. Provisioner
      
      Out-of-tree external provisioners have the same purpose as in-tree provisioners. As external provisioners work with PV and PVC datastructures it's an advantage to import certain Kubernetes packages instead of copy-pasting the Kubernetes code.
      
      That's why the constants are made public so that they can be used in an external provisioner.
      
      @jsafrane  @kubernetes/sig-storage-pr-reviews 
      
      ```
      NONE
      ```
      50763cb6
    • Jan Safranek's avatar
      Fix deletion of Gluster volumes · 3fbf9cb4
      Jan Safranek authored
      GetClassForVolume should check pv.spec.storageClassName together
      with beta annotation.
      3fbf9cb4
    • Kubernetes Submit Queue's avatar
      Merge pull request #42083 from fraenkel/validate_name · 70684584
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42038, 42083)
      
      Validate ConfigMapRef and SecretRef name
      
      fixes #42037
      
      **Release note**:
      ```release-note
      When creating a container using envFrom,
      1. validate the name of the ConfigMap in a ConfigMapRef
      2. validate the name of the Secret in a SecretRef
      ```
      70684584
    • Kubernetes Submit Queue's avatar
      Merge pull request #42038 from humblec/glusterfs-backup-vol1 · 46343f37
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42038, 42083)
      
       Add backup-volfile-servers to mount option. 
      
      This feature ensures the `backup servers` in the trusted pool is contacted if there is a failure in the connected server.
      Mount option becomes:
      mount -t glusterfs -o log-level=ERROR,log-file=/var/lib/kubelet/plugins/kubernetes.io/glusterfs/glustermount/glusterpod-glusterfs.log,backup-volfile-servers=192.168.100.0:192.168.200.0:192.168.43.149 ..
      Signed-off-by: 's avatarHumble Chirammal <hchiramm@redhat.com>
      46343f37
    • Kubernetes Submit Queue's avatar
      Merge pull request #42953 from kargakis/rm-myself · 4a8c73a1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add/remove kargakis from a couple of places
      
      I've replaced myself in some tests in test_owners with the actual owners of those tests and I've also picked up a bunch of deployment tests. Also due to lack of review bandwidth I am removing myself from sig_cli reviewers.
      
      @janetkuo
      4a8c73a1
    • Kubernetes Submit Queue's avatar
      Merge pull request #43898 from wojtek-t/debug_preserve_source_pod_ip · 503c9e58
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Debug problems encountered in #43702
      503c9e58
    • Wojciech Tyczynski's avatar
      dea98cbd
    • Jordan Liggitt's avatar
      Update federation openapi spec · d28c0d01
      Jordan Liggitt authored
      d28c0d01
    • Kubernetes Submit Queue's avatar
      Merge pull request #42016 from MHBauer/fix-copypasta · 81545c29
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update godoc to match
      
      **What this PR does / why we need it**:
      comments don't match the code. I can also just remove them.
      
      **Which issue this PR fixes**
      golint if it was run, but it is nice to have comments that appear to be relevant to the code.
      
      
      **Special notes for your reviewer**:
      docs only
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      81545c29
    • Kubernetes Submit Queue's avatar
      Merge pull request #43885 from zhangxiaoyu-zidif/master · 85dfdc12
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix a typo
      
      Fix a 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
      ```
      85dfdc12
  2. 02 Apr, 2017 2 commits
  3. 01 Apr, 2017 7 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #43933 from childsb/add_approver · 4fa902a9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      update pkg/controller/volume/OWNER to add appropriate approvers for both volume controllers
      
      Update pkg/controller/volume approvers so that the attach/detach and binding controllers have approvers.
      4fa902a9
    • Kubernetes Submit Queue's avatar
      Merge pull request #43684 from xilabao/patch-10 · 756539f4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix typo in kubeadm join -h
      
      ```
      Flags:
            --config string                Path to kubeadm config file
            --discovery-file string        A file or url from which to load cluster information
            --discovery-token string       A token used to validate cluster information fetched from the master
            --skip-preflight-checks        skip preflight checks normally run before modifying the system
            --tls-bootstrap-token string   A token used for TLS bootstrapping
            --token string                 Use this token for both discovery-token and tls-bootstrap-token
      ```
      756539f4
    • Kubernetes Submit Queue's avatar
      Merge pull request #40804 from runcom/prepull-cri · 25a87fa1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      test/e2e_node: prepull images with CRI
      
      Part of https://github.com/kubernetes/kubernetes/issues/40739
      
      - This PR builds on top of #40525 (and contains one commit from #40525)
      - The second commit contains a tiny change in the `Makefile`.
      - Third commit is a patch to be able to prepull images using the CRI (as opposed to run `docker` to pull images which doesn't make sense if you're using CRI most of the times)
      
      Marked WIP till #40525 makes its way into master
      
      @Random-Liu @lucab @yujuhong @mrunalp @rhatdan
      25a87fa1
    • Antonio Murdaca's avatar
      test/e2e_node: prepull images with CRI · 2634f57f
      Antonio Murdaca authored
      Signed-off-by: 's avatarAntonio Murdaca <runcom@redhat.com>
      2634f57f
    • Kubernetes Submit Queue's avatar
      Merge pull request #43918 from koep/43692 · 741c0922
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43407, 43918)
      
      Fix typo in mysql-galera example Dockerfile
      
      **What this PR does / why we need it**:
      Minor Bugfix.
      **Which issue this PR fixes**
      fixes #43692
      741c0922
    • Kubernetes Submit Queue's avatar
      Merge pull request #43407 from sjenning/selinux-npd-refactor · 659ea870
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      tests: e2e-node: refactor node-problem-detector test to avoid selinux…
      
      Fixes https://github.com/kubernetes/kubernetes/issues/43401
      
      This test creates a file in /tmp on the host and creates a HostPath volume in the container to so that the host can inject messages into the logfile being read by the node problem detector in the container.  However, selinux prohibits the container from reading files out of /tmp on the host.
      
      This PR modifies the test to create the log file in an EmptyDir volume instead, which will be properly labeled for container access.
      
      @derekwaynecarr
      659ea870
    • Kubernetes Submit Queue's avatar
      Merge pull request #43289 from tsmetana/adc-race-fix · fff5fae0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Attach/detach controller: fix potential race in constructor
      
      **What this PR does / why we need it**:
      There is a potential race condition in the Attach/detach controller: The "constructor" first installs informer event handlers and then creates and initializes the other data structures. However there is no guarantee an event cannot arrive before the data structures required by the event handlers are ready. This may result in nil pointer derefernces and potential crashes (e.g. the nodeAdd method calls adc.actualStateOfWorld.SetNodeStatusUpdateNeeded even though the actualStateOfWorld might be still nil).
      
      It should be enough just to move the event handlers installation at the end of the constructor function.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      fff5fae0
  4. 31 Mar, 2017 7 commits