1. 22 Jul, 2017 9 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #46514 from ravisantoshgudimetla/scheduler_taints_refactor · c1c7193b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49420, 49296, 49299, 49371, 46514)
      
      Refactoring taint functions to reduce sprawl
      
      **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 #45060
      
      **Special notes for your reviewer**:
      @gmarek @timothysc @k82cn @jayunit100 - I moved some fn's to helpers and some to utils. LMK, if you are ok with this change.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      c1c7193b
    • Kubernetes Submit Queue's avatar
      Merge pull request #49371 from juju-solutions/bug/pv-metric · b9e549e7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49420, 49296, 49299, 49371, 46514)
      
      Fix: PV metric is not namespaced
      
      **What this PR does / why we need it**: The PV metric of juju deployments is not namespaced. This PR fixes this bug. 
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/348
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```NONE
      ```
      b9e549e7
    • Kubernetes Submit Queue's avatar
      Merge pull request #49299 from dims/delay-looking-for-instance-id · 4560beb2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49420, 49296, 49299, 49371, 46514)
      
      Avoid looking up instance id until we need it
      
      **What this PR does / why we need it**:
      
      currently kube-controller-manager cannot run outside of a vm started
      by openstack (with --cloud-provider=openstack params). We try to read
      the instance id from the metadata provider or the config drive or the
      file location only when we really need it. In the normal scenario, the
      controller-manager uses the node name to get the instance id.
      https://github.com/kubernetes/kubernetes/blob/41541910e1699975a8f9202a89b6865e45921194/pkg/volume/cinder/attacher.go#L149
      
      The localInstanceID is currently used only in the test case, so let
      us not read it until it is really needed.
      
      So let's try to find the instance-id only when 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
      NONE
      ```
      4560beb2
    • Kubernetes Submit Queue's avatar
      Merge pull request #49296 from juju-solutions/feature/report-failing-services · 0af43066
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49420, 49296, 49299, 49371, 46514)
      
      Update status to show failing services.
      
      **What this PR does / why we need it**: Report on charm status any services that are not running.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/341
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```Report failing services in Juju deployed clusters.
      ```
      0af43066
    • Kubernetes Submit Queue's avatar
      Merge pull request #49420 from gnufied/fix-adc-controller-nil-spec · ab35df57
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49420, 49296, 49299, 49371, 46514)
      
      Fix controller crash because of nil volume spec
      
      For volumes that don't support bulk volume verification, a nil
      volume spec can cause crash of controller.
      
      Fixes #49418
      
      **Release note**:
      ```release-note
      Fixes #49418 where kube-controller-manager can panic on volume.CanSupport methods and enter a crash loop.
      ```
      ab35df57
    • Kubernetes Submit Queue's avatar
      Merge pull request #49240 from caesarxuchao/remove-admission-types · 5d5d6ca3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46210, 48607, 46874, 46598, 49240)
      
      Remove types.generated.go generated for internal API types
      
      We don't need generated codecs for internal types.
      5d5d6ca3
    • Kubernetes Submit Queue's avatar
      Merge pull request #46598 from xiangpengzhao/fix-kubectl-version · 22cc2943
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46210, 48607, 46874, 46598, 49240)
      
      Make "kubectl version" json format output more readable.
      
      **What this PR does / why we need it**:
      ##39858 adds a flag --output to `kubectl version`, but the json format output is displayed in one line. It's not so readable. This PR fixes it.
      
      and
      
      - adds a shorthand for `output`
      - ~~refactors that: if `--short` is specified, `--output` will be ignored~~
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #43750
      
      **Special notes for your reviewer**:
      /cc @php-coder @alejandroEsc 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      22cc2943
    • Kubernetes Submit Queue's avatar
      Merge pull request #46874 from pmichali/issue44848c · c90fda82
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46210, 48607, 46874, 46598, 49240)
      
      Ipv6 support for ChooseHostInterface (part 3 of 3)
      
      **What this PR does / why we need it**:
      Provides IPv6 support for the ChooseHostInterface() and ChooseBindAddress() functions
      in the apimachinery's util/net/interface.go file. It strives to maintain backward compatibility with existing use of IPv4, but allow IPv6 to be used when available.  This is part 3 of a set of PRs, and has been rebased on top of #46138, which is rebased on top of #46044.
      
      This is part of an overall effort to provide IPv6 support in the code, by addressing places where IPv4 logic exists and making it IPv6 ready.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #44848
      
      **Special notes for your reviewer**:
      You can look at the other PRs for the commit description of what each of them does. I do see some unrelated test failures in those commits - appears to be flakes.
      
      **Release note**:
      
      ```release-noteNONE
      ```
      c90fda82
    • Kubernetes Submit Queue's avatar
      Merge pull request #48607 from luxas/kubeadm_cleanup_selfhosting · 75b3a0f3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46210, 48607, 46874, 46598, 49240)
      
      kubeadm: Make the hostPath volume mount code more secure
      
      **What this PR does / why we need it**:
      
       - Refactors the hostpath volume mounting code for the Static Pods
       - Splits out the functionality that was in a big function to something testable
       - Unit test a lot
       - Adds support for mounting external etcd CA/cert/key files in an other path than `/etc/ssl/certs`. Before this you **had** to have your files in there or the apiserver would crashloop
       - Significantly improves comment coverage
       - Now only mounts the bare essentials instead of nearly everything. For example, don't mount full `/etc/kubernetes` when the only thing you need is `/etc/kubernetes/scheduler.conf`
       - Make everything but the etcd datadir read-only for components.
      
      **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/341
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      cc @kubernetes/sig-cluster-lifecycle-pr-reviews
      75b3a0f3
  2. 21 Jul, 2017 31 commits