1. 28 Jan, 2017 8 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #40194 from bruceauyeung/k8s-branch-fix-error-message-in-TestGetAddonImage · babecf10
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40132, 39302, 40194, 40619, 40601)
      
      fix error message in TestGetAddonImage
      Signed-off-by: 's avatarbruceauyeung <ouyang.qinhua@zte.com.cn>
      
      **What this PR does / why we need it**:
      
      1. fix incorrect error message in TestGetAddonImage
      2. rename some variables to make them more reasonable
      babecf10
    • Kubernetes Submit Queue's avatar
      Merge pull request #39302 from bruceauyeung/k8s-branch-fix-nil-check-and-typos · a812493a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40132, 39302, 40194, 40619, 40601)
      
      fix nil check and typos
      
      **What this PR does / why we need it**:
      1. nil error should be checked before defer statement.
      2. fix some typos.
      
      Signed-off-by: bruceauyeung ouyang.qinhua@zte.com.cn
      a812493a
    • Kubernetes Submit Queue's avatar
      Merge pull request #40132 from… · 433e7a1f
      Kubernetes Submit Queue authored
      Merge pull request #40132 from bruceauyeung/k8s-branch-add-invalid-and-valid-tokens-in-TestValidateToken-testcase
      
      Automatic merge from submit-queue
      
      add test tokens for TestValidateToken
      Signed-off-by: 's avatarbruceauyeung <ouyang.qinhua@zte.com.cn>
      
      
      **What this PR does / why we need it**:
      
      1. add invalid tokens which token ID and token secret contain special characters such as `*`
      2. add valid tokens which  token ID and token secret contain mixed lowercase characters and numeric numbers
      433e7a1f
    • Kubernetes Submit Queue's avatar
      Merge pull request #40597 from wojtek-t/cleanup_get_from_cache · a951727a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40497, 39769, 40554, 40569, 40597)
      
      Minor cleanup in getting from apiserver cache in kubelet
      a951727a
    • Kubernetes Submit Queue's avatar
      Merge pull request #40569 from spxtr/gen · 5b240515
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40497, 39769, 40554, 40569, 40597)
      
      Switch io_kubernetes_build to repo-infra.
      
      This also picks up the `go_genrule`. cc @mikedanese 
      
      **Release note**:
      ```release-note
      NONE
      ```
      5b240515
    • Kubernetes Submit Queue's avatar
      Merge pull request #40554 from roberthbailey/chown · 29a7b6f8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40497, 39769, 40554, 40569, 40597)
      
      When calling chown, use : instead of . to separate the user and group for cross platform compatibility.
      
      **What this PR does / why we need it**: Makes it possible to build on a Mac, which was broken by #39515. 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      `NONE`
      29a7b6f8
    • Kubernetes Submit Queue's avatar
      Merge pull request #39769 from danwinship/networkpolicy-validation · c776d097
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40497, 39769, 40554, 40569, 40597)
      
      NetworkPolicy validation improvements
      
      I noticed while implementing NetworkPolicy that I we weren't validating the "Ports" field at all.
      
      The docs are actually completely silent about what a string-valued Port field is supposed to mean. I had guessed it meant to call `net.LookupPort()` on it (ie, map it from /etc/services) but in every other case where we have an IntOrString-valued Port field in an API struct, it refers to a named ContainerPort. But that would be extremely awkward to implement in this case; a policy specifying a named port could end up mapping to a different numeric port on every container in the namespace... Do other people actually implement string-valued ports that way? Or, for that matter, implement string-valued ports at all? (Related: I hadn't noticed until now that you can leave the Port value unspecified, allowing you to say "allow to all UDP ports, but no TCP ports" or "allow to all TCP ports, but no UDP ports". That seems like something that ended up in the spec just because it was possible, not because it was actually useful...)
      
      @kubernetes/sig-network-misc
      c776d097
    • Kubernetes Submit Queue's avatar
      Merge pull request #40497 from lavalamp/log2much · fe2829c1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Make HandleError prevent hot-loops
      
      Add an error "handler" that just sleeps for a bit if errors happen more
      often than 500ms. Manually tested against #39816. This doesn't fix #39816 but it does keep it from crippling a cluster.
      
      ```release-note
      Prevent hotloops on error conditions, which could fill up the disk faster than log rotation can free space.
      ```
      fe2829c1
  2. 27 Jan, 2017 32 commits