1. 28 Aug, 2017 17 commits
    • Jordan Liggitt's avatar
      Add liggitt to client-go approvers · 838d8a72
      Jordan Liggitt authored
      838d8a72
    • Kubernetes Submit Queue's avatar
      Merge pull request #51460 from bskiba/cp · 9ccb55e0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51441, 51356, 51460)
      
      Autodetect kubemark Cloud Provider
      
      **What this PR does / why we need it**:
      This is needed for CloudProviderId to be properly
      filled for Hollow Nodes.
      
      **Release note**:
      ```
      NONE
      ```
      9ccb55e0
    • Kubernetes Submit Queue's avatar
      Merge pull request #51356 from wongma7/pv-cap-resize · 520eab77
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51441, 51356, 51460)
      
      Don't update pvc.status.capacity if pvc is already Bound
      
      As discussed here https://github.com/kubernetes/community/pull/657#discussion_r128008128, in order for `pvc.status.Capacity < pv.Spec.Capcity` to be the mechanism for volume filesystem* resize, the pv controller should stop updating pvc.status.Capacity every resync period.
      
      /assign @jsafrane
      /sig storage
      ```release-note
      NONE
      ```
      520eab77
    • Kubernetes Submit Queue's avatar
      Merge pull request #51441 from wackxu/fixbadcomt · 169de991
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51441, 51356, 51460)
      
      fix the bad position of code comment
      
      **What this PR does / why we need it**:
      
      The position of code comment is wrong and move it to the right position
      
      **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**:
      
      ```
      NONE
      ```
      169de991
    • Kubernetes Submit Queue's avatar
      Merge pull request #50805 from bsalamat/preemption_metacompute · 4ba2b625
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add support to modify precomputed predicate metadata upon adding/removal of a pod
      
      **What this PR does / why we need it**: This PR adds capability to change precomputed predicate metadata and let's us add/remove pods to the precomputed metadata efficiently without the need ot recomputing everything upon addition/removal of pods. This PR is needed as a part of adding preemption logic to the scheduler.
      
      **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**:
      To make the review process a bit easier, there are three commits. The cleanup commit is only moving code and renaming some functions, without logic changes.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      ref/ #47604
      ref/ #48646
      
      /assign @wojtek-t 
      
      @kubernetes/sig-scheduling-pr-reviews @davidopp
      4ba2b625
    • Kubernetes Submit Queue's avatar
      Merge pull request #50036 from wongma7/metrics · 2a2f4994
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add volume operation metrics to operation executor and PV controller
      
      This PR implements the proposal for high level volume metrics https://github.com/kubernetes/community/pull/809
      
      **Special notes for your reviewer**:
      
      ~Differences from proposal:~ all resolved
      
      ~"verify_volume" is now "verify_volumes_are_attached" + "verify_volumes_are_attached_per_node" + "verify_controller_attached_volume." Which of them do we want?~
      
      ~There is no "mount_device" metric because the MountVolume operation combines MountDevice and mount (plugin.Setup). Do we want to extract the mount_device metric or is it okay to keep mountvolume as one? For attachable volumes, MountDevice is the actual mount and Setup is a bindmount + setvolumeownership. For unattachable, mountDevice does not occur and Setup is an actual mount + setvolumeownership.~
      
      ~PV controller metrics I did not implement following the proposal at all. I did not change goroutinemap nor scheduleOperation. Because provisionClaimOperation does not return an error, so it's impossible for the caller to know if there is actually a failure worth reporting. So I manually create a new metric inside the function according to some conditions.~
      
      @gnufied 
      
      I have tested the operationexecutor metrics but not provision & delete. Sample: 
      ![screen shot 2017-08-02 at 15 01 08](https://user-images.githubusercontent.com/13111288/28889980-a7093526-7793-11e7-9aa9-ad7158be76fa.png)
      
      
      **Release note**:
      
      ```release-note
      Add error count and time-taken metrics for storage operations such as mount and attach, per-volume-plugin.
      ```
      2a2f4994
    • Beata Skiba's avatar
      Autodetect kubemark Cloud Provider · 59c888f8
      Beata Skiba authored
      This is needed for CloudProviderId to be properly
      filled for Hollow Nodes.
      59c888f8
    • Kubernetes Submit Queue's avatar
      Merge pull request #51117 from k82cn/k8s_50360_2 · daf591c1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Moved node condition filter into a predicates.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50360
      
      **Release note**:
      
      ```release-note
      A new predicates, named 'CheckNodeCondition', was added to replace node condition filter. 'NetworkUnavailable', 'OutOfDisk' and 'NotReady' maybe reported as a reason when failed to schedule pods.
      ```
      daf591c1
    • Bobby (Babak) Salamat's avatar
      bazel update · 87d40656
      Bobby (Babak) Salamat authored
      87d40656
    • Bobby (Babak) Salamat's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #51305 from hzxuzhonghu/validation-fix · 3b2417a7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49861, 50933, 51380, 50688, 51305)
      
      fix v1 validation return error
      
      **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 #51304 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      3b2417a7
    • Kubernetes Submit Queue's avatar
      Merge pull request #50688 from allencloud/refactor-code-in-volume-iscsi · 855f3e78
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49861, 50933, 51380, 50688, 51305)
      
      refactor codes in volume iscsi to improve readability
      Signed-off-by: 's avatarallencloud <allen.sun@daocloud.io>
      
      
      
      **What this PR does / why we need it**:
      This PR refactors some codes in pkg/volume/iscsi. What is specific, this PR takes advantage of return fast to make codes indent less. As a result the readability of codes will improve a little bit.
      
      What I did:
      1.  refactor codes in volume iscsi to improve readability.
      2.  change a keyword of `delete` into `deleteArgs` to reduce ambiguousness.
      3.  make some variables camel case. 
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      NONE
      
      **Special notes for your reviewer**:
      NONE
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      855f3e78
    • Kubernetes Submit Queue's avatar
      Merge pull request #51380 from mtaufen/dkcfg-test-file-load · d5a811a1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49861, 50933, 51380, 50688, 51305)
      
      Test loading Kubelet config from a file
      
      **What this PR does / why we need it**:
      Adds a test for loading kubelet config from a file, part of improving https://github.com/kubernetes/kubernetes/issues/50217
      
      **Release note**:
      ```release-note
      NONE
      ```
      d5a811a1
    • Kubernetes Submit Queue's avatar
      Merge pull request #50933 from mattmoyer/bootstrap-token-groups · 915b772f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49861, 50933, 51380, 50688, 51305)
      
      Add configurable groups to bootstrap tokens.
      
      **What this PR does / why we need it**:
      This change adds support for authenticating bootstrap tokens into a configurable set of extra groups in addition to `system:bootstrappers`. Previously, bootstrap tokens could only ever authenticate to the `system:bootstrappers` group.
      
      Groups are specified as a comma-separated list in the `auth-extra-groups` key of the `bootstrap.kubernetes.io/token` Secret, and must begin with the prefix `system:bootstrapper:` (and match a validation regex that checks against our normal convention). Whether or not any extra groups are configured, `system:bootstrappers` will still be added.
      
      This also adds a `--groups` flag for `kubeadm token create`, which sets the `auth-extra-groups` key on the resulting Secret. The default is to not set the key.
      
      `kubeadm token list` is also updated to include a `EXTRA GROUPS` output column.
      
      **Which issue this PR fixes**: fixes #49306
      
      **Special notes for your reviewer**: 
      The use case for this is in https://github.com/kubernetes/kubernetes/issues/49306. Comments on the feature itself are probably better over there. It will be part of how HA/self-hosting kubeadm bootstraps new master nodes (post 1.8).
      
      **Release note**:
      ```release-note
      Add support for configurable groups for bootstrap token authentication.
      ```
      
      cc @luxas @kubernetes/sig-cluster-lifecycle-api-reviews @kubernetes/sig-auth-api-reviews 
      
      /kind feature
      915b772f
    • Kubernetes Submit Queue's avatar
      Merge pull request #49861 from krmayankk/disrupt · ecd910ea
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      simplify disruption controller finder logic
      
      **What this PR does / why we need it**:
      Address some comments from https://github.com/kubernetes/kubernetes/pull/45003 and simplify the PDB controller logic as part of issue https://github.com/kubernetes/kubernetes/issues/42284
      
      @enisoc @kargakis @caesarxuchao 
      
      Also it feels like we can get rid of the finders all together since with controller ref, each pod has only controller. Let me know if i should remove that finders all together ?
      ecd910ea
    • Kubernetes Submit Queue's avatar
      Merge pull request #51412 from luxas/kubeadm_feature_gates · 64e03165
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: Rename FeatureFlags to FeatureGates
      
      **What this PR does / why we need it**:
      
      Automatic rename from `FeatureFlags` to `FeatureGates`, as I noticed that's the real name for this feature. This is for consistency in the API and generally in the code.
      
      **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
      NONE
      ```
      @kubernetes/sig-cluster-lifecycle-pr-reviews @fabriziopandini @jamiehannaford
      64e03165
    • wackxu's avatar
      fix the bad position of code comment · bd6a0713
      wackxu authored
      bd6a0713
  2. 27 Aug, 2017 9 commits
    • Lucas Käldström's avatar
      b371acb6
    • Kubernetes Submit Queue's avatar
      Merge pull request #51082 from caesarxuchao/repair-null-pending-initializer · 877ee919
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50953, 51082)
      
      Fix mergekey of initializers; Repair invalid update of initializers
      
      Fix https://github.com/kubernetes/kubernetes/issues/51131
      
      The PR did two things to make parallel patching `metadata.initializers.pending` possible:
      * Add mergekey to initializers.pending
      * Let the initializer admission plugin set the `metadata.intializers` to nil if an update makes the `pending` and the `result` both nil, instead of returning a validation error. Otherwise if multiple initializer controllers sending the patch removing themselves from `pending` at the same time, one of them will get a validation error.
      
      
      ```release-note
      The patch to remove the last initializer from metadata.initializer.pending will result in metadata.initializer to be set to nil (assuming metadata.initializer.result is also nil), instead of resulting in an validation error.
      ```
      877ee919
    • Kubernetes Submit Queue's avatar
      Merge pull request #50953 from zjj2wry/get-pvc · 2009bbde
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix issue(#50937)Fix kubectl get pvc lose volume name
      
      **What this PR does / why we need it**:
      closes #50937 
      **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**:
      this should has volumename column.
      ```
      NAME       STATUS    CAPACITY    ACCESS MODES   STORAGECLASS   AGE
      myclaim    Bound     pv-gcepd2   5Gi            ROX            slow      35m
      myclaim2   Bound     pv-gcepd    5Gi            ROX            slow      25m
      ```
      **Release note**:
      
      ```release-note
      NONE
      ```
      2009bbde
    • allencloud's avatar
      c8c7139d
    • Kubernetes Submit Queue's avatar
      Merge pull request #51417 from kubernetes/revert-42689-enable-oir-e2e · 6109b401
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Revert "Re-enable OIR e2e tests."
      
      Reverts kubernetes/kubernetes#42689
      
      e2e tests are very flaky since that pr merged, and it's very likely related:
      https://storage.googleapis.com/k8s-gubernator/triage/index.html?pr=1&test=Opaque%20resources
      6109b401
    • Kubernetes Submit Queue's avatar
      Merge pull request #49006 from CaoShuFeng/is_forbidden · 562d2be7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix forbidden message format
      
      Before this change:
       $ kubectl get pods --as=tom
       Error from server (Forbidden): pods "" is forbidden: User "tom" cannot list pods in the namespace "default".
      After this change:
       $ kubectl get pods --as=tom
       Error from server (Forbidden): pods is forbidden: User "tom" cannot list pods in the namespace "default".
      
      
      
      **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**:
      
      ```
      Fix forbidden message format, remove extra ""
      ```
      562d2be7
    • Kubernetes Submit Queue's avatar
      Merge pull request #51414 from luxas/kubeadm_use_new_bt_flag · 2723e06a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49849, 50334, 51414)
      
      kubeadm: Use the --enable-bootstrap-token-auth flag when possible
      
      **What this PR does / why we need it**:
      
      Uses the right API server flag for the right version.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      fixes: https://github.com/kubernetes/kubeadm/issues/414
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      @kubernetes/sig-cluster-lifecycle-pr-reviews @mattmoyer
      2723e06a
    • Kubernetes Submit Queue's avatar
      Merge pull request #50334 from mtanino/issue/48953 · 496e71ef
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49849, 50334, 51414)
      
      Support iscsi volume attach and detach
      
      **What this PR does / why we need it**:
      
      Support iSCSI volume attach and detach to enforce RWO access
      
      **Which issue this PR fixes** : fixes #48953
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      NONE
      ```
      496e71ef
    • Kubernetes Submit Queue's avatar
      Merge pull request #49849 from dixudx/stable_sort_volumesInUse · cbe5f38e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49849, 50334, 51414)
      
      make volumesInUse sorted in node status updates
      
      **What this PR does / why we need it**:
      
      `volumesInUse` is not sent in a stable sort order. This will make node status patch requests larger than needed, and makes debugging nodes harder than necessary.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #49731
      
      **Special notes for your reviewer**:
      
      /cc @derekwaynecarr @jboyd01
      
      **Release note**:
      
      ```release-note
      make volumesInUse sorted in node status updates
      ```
      cbe5f38e
  3. 26 Aug, 2017 14 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #51366 from sbezverk/cross_platform_fix · 036456a8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fixes cross platform build failure
      036456a8
    • mtanino's avatar
      Support iscsi volume attach and detach · e21b68b4
      mtanino authored
      Fixes #48953
      e21b68b4
    • mtanino's avatar
      WaitForAttach refactoring for iSCSI attacher/detacher · 5ff9dc0b
      mtanino authored
      This change is prerequisite for implementing iSCSI attacher
      and detacher.
      
      In order to use chap authentication at iSCSI plugin after
      implementing attacher and detacher, secret is needed at
      AttachDisk() which is called from WaitForAttach().
      To obtain secret, pod information is required, but
      WaitForAttach() doesn't pass pod information inside.
      
      This patch adds 'pod' as an argument of WaitForAttach()
      and adds changes to drivers who implements WaitForAttach().
      
      Fixes #48953
      5ff9dc0b
    • Kubernetes Submit Queue's avatar
      Merge pull request #45294 from liggitt/proto-slices · 217513e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove null -> [] slice hack
      
      Closes #44593
      
      When 1.6 added protobuf storage, the storage layer lost the ability to persist slice fields with empty but non-null values.
      
      As a workaround, we tried to convert empty slice fields to `[]`, rather than `null`. Compressing `null` -> `[]` was just as much of an API breakage as `[]` -> `null`, but was hoped to cause fewer problems in clients that don't do null checks.
      
      Because of conversion optimizations around converting lists of objects, the `null` -> `[]` hack was discovered to only apply to individual get requests, not to a list of objects. 1.6 and 1.7 was released with this behavior, and the world didn't explode. 1.7 documented the breaking API change that `null` and `[]` should be considered equivalent, unless otherwise noted on a particular field.
      
      This PR:
      
      * Reverts the earlier attempt (https://github.com/kubernetes/kubernetes/pull/43422) at ensuring non-null json slice output in conversion
      * Makes results of `get` consistent with the results of `list` (which helps naive clients that do deepequal comparisons of objects obtained via list/watch and get), and allows empty slice fields to be returned as `null`
      
      ```release-note
      Protobuf serialization does not distinguish between `[]` and `null`.
      API fields previously capable of storing and returning either `[]` and `null` via JSON API requests (for example, the Endpoints `subsets` field) can now store only `null` when created using the protobuf content-type or stored in etcd using protobuf serialization (the default in 1.6+). JSON API clients should tolerate `null` values for such fields, and treat `null` and `[]` as equivalent in meaning unless specifically documented otherwise for a particular field.
      ```
      217513e2
    • Antoine Pelisse's avatar
      Revert "Re-enable OIR e2e tests." · 281630b0
      Antoine Pelisse authored
      281630b0
    • Michael Taufen's avatar
      Test loading Kubelet config from a file · 251e8f5f
      Michael Taufen authored
      251e8f5f
    • Lucas Käldström's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #51317 from FengyunPan/GetZoneByProviderID-openstack · 42313085
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Implement GetZoneByProviderID and GetZoneByNodeName for openstack
      
      This is part of #50926
      cc @wlan0
      
      **Release note**:
      ```release-note
      NONE
      ```
      42313085
    • Kubernetes Submit Queue's avatar
      Merge pull request #49599 from tcharding/kubelet_test_mock · 9188043c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51391, 51338, 51340, 50773, 49599)
      
      Remove duplicate code
      
      This PR cleans up Kubelet test code. Adds a function enabling the removal of duplicate code for Mock chaining. Also adds a function to check the pod status, again enabling removal of duplicate code.
      
      Fixes #22470
      
      **Special notes for your reviewer**:
      
      This is my first PR for the Kubernetes project. Keeping it simple.
      9188043c
    • Kubernetes Submit Queue's avatar
      Merge pull request #50773 from huzhengchuan/bug/50770 · 98fb8cac
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51391, 51338, 51340, 50773, 49599)
      
      Delete "hugetlb" from whitelistControllers
      
      **What this PR does / why we need it**:
      Delete "hugetlb" from whitelistControllers
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50770
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      NONE
      ```
      98fb8cac
    • Kubernetes Submit Queue's avatar
      Merge pull request #51340 from yan234280533/patch-3 · 7579bc83
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51391, 51338, 51340, 50773, 49599)
      
      add an starting info log of namespace controller.
      
      **What this PR does / why we need it**:
      
      add an starting info log of namespace controller.
      
      **Release note**:
      NA
      7579bc83
    • Kubernetes Submit Queue's avatar
      Merge pull request #51338 from yan234280533/patch-2 · 4cbc4592
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51391, 51338, 51340, 50773, 49599)
      
      modify an little gammer error.
      
      **What this PR does / why we need it**:
      I found that it used "Found" in the middle of sentence. I think use "found" in the middle of sentence is better than "Found" ,so I modified it.
      4cbc4592
    • Kubernetes Submit Queue's avatar
      Merge pull request #51391 from alrs/fix-iscsi-swallowed-error · 223227eb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix swallowed error in iscsi package
      
      **What this PR does / why we need it**: Fixes a swallowed error in the iscsi package.
      
      
      ```release-note NONE
      ```
      223227eb
    • Kubernetes Submit Queue's avatar
      Merge pull request #51390 from alrs/fix-photon-pd-swallowed-errors · f7eb492f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix swallowed errors in tests of photon_pd package
      
      **What this PR does / why we need it**: Fixes swallowed errors in the tests of the photon_pd package.
      
      ```release-note NONE
      ```
      f7eb492f