1. 15 Jul, 2017 8 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #48949 from php-coder/minor_cleanup · c3e8bd04
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix comments and typo in the error message
      
      **What this PR does / why we need it**:
      This PR fixes outdated comments and typo in the error message.
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      CC @simo5
      c3e8bd04
    • Kubernetes Submit Queue's avatar
      Merge pull request #48978 from davidopp/test_fixit · e1ba93f2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46318, 48978)
      
      Mark sig-scheduling tests with [sig-scheduling] so they can be selected for the testdash dashboard
      
      **What this PR does / why we need it**:
      Mark sig-scheduling tests with [sig-scheduling] so they can be selected for the testdash dashboard
      (see kubernetes/test-infra#3529 for sig-scheduling dashboard definition).
      
      cc/ @bsalamat @kubernetes/sig-scheduling-pr-reviews
      e1ba93f2
    • Kubernetes Submit Queue's avatar
      Merge pull request #46318 from liggitt/kubectl-run-service-account · 6610daa3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Allow setting service account with kubectl run
      
      As more containers need to make use of the API, and more clusters are RBAC-enabled, which service account is used to run a particular container becomes more important.
      
      This adds support to existing generators for setting the service account name in the pod spec.
      
      ```release-note
      `kubectl run` learned how to set a service account name in the generated pod spec with the `--serviceaccount` flag.
      ```
      
      related to #45147
      6610daa3
    • Jordan Liggitt's avatar
      e8f2879b
    • Kubernetes Submit Queue's avatar
      Merge pull request #47106 from gyliu513/ecache-test · b039c6e1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Improved code coverage for equivalence cache.
      
      **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
      none
      ```
      b039c6e1
    • David Oppenheimer's avatar
      Mark sig-scheduling tests with [sig-scheduling] so they can be selected · a836d55d
      David Oppenheimer authored
      for the testdash dashboard.
      a836d55d
    • Kubernetes Submit Queue's avatar
      Merge pull request #48326 from karataliu/afd.dev · f736f312
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix share name generation in azure file provisioner.
      
      **What this PR does / why we need it**:
      Azure file share name has a length limit of 63, but currently the code is using data volume's limit 75.
      
      **Which issue this PR fixes**
      With current implementation, when the cluster name is long, the resulting file share name could have a length of 75.
      
      Also function `GenerateVolumeName` would produce double '-' when clusterName containing '-' is to be truncated.
      
      In both cases, service would reject the creating file share request.
      
      **Special notes for your reviewer**:
      Please refer to:
      https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata#share-names
      
      - Share names must be from 3 through 63 characters long.
      - The name cannot contain two consecutive hyphens.
      
      @rootfs @colemickens 
      
      **Release note**:
      f736f312
    • Kubernetes Submit Queue's avatar
      Merge pull request #47846 from ncdc/jsonpath-filter-allow-missing-intermediate-keys · da31d920
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      jsonpath filter: allow intermediate missing keys
      
      **What this PR does / why we need it**:
      In jsonpath, when filtering a list, if allowMissingKeys is true, skip
      over any items that are missing an intermediate key in the filter,
      instead of returning a confusing error.
      
      For example, if the filter is
      
      {.items[?(@.metadata.annotations.foo=="bar")].metadata.name}
      
      we should return all items where metadata.annotations.foo == bar, but if
      an item in the list does not have metadata, metadata.annotations, or
      metadata.annotations.foo, skip it instead of erroring.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #45546 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      Fixed a bug where a jsonpath filter would return an error if one of the items being evaluated did not contain all of the nested elements in the filter query.
      ```
      
      cc @timothysc @smarterclayton @stevekuznetsov @mengqiy @liggitt @kubernetes/sig-api-machinery-pr-reviews
      da31d920
  2. 14 Jul, 2017 32 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #48896 from yguo0905/docker-validation-m60 · 226b39c6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48890, 46893, 48872, 48896)
      
      Add cos-beta-60-9592-52-0 to the benchmark tests
      
      This PR depends on https://github.com/kubernetes/kubernetes/pull/48824.
      
      This PR adds new resource usage tests for cos-beta-60-9592-52-0 (docker 1.13.1).
      
      Ref: #42926
      
      **Release note**:
      ```
      None
      ```
      /sig node
      /area node-e2e
      /assign @dchen1107
      /cc @abgworrall
      226b39c6
    • Kubernetes Submit Queue's avatar
      Merge pull request #48872 from FengyunPan/fix-order · 8c8f5622
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48890, 46893, 48872, 48896)
      
      Fix the order of deletion
      
      1. EnsureLoadBalancer can't delete pool without deleting members,
         just let EnsureLoadBalancerDeleted do it.
      2. Add some friendly error message
      
      **Release note**:
      ```release-note
      NONE
      ```
      8c8f5622
    • Kubernetes Submit Queue's avatar
      Merge pull request #46893 from yguo0905/image-spec · cab07f3a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48890, 46893, 48872, 48896)
      
      Support customized system spec in the node conformance test and create the GKE system spec
      
      ref: https://github.com/kubernetes/kubernetes/issues/46891
      
      - System specs are located in `test/e2e_node/system/specs`. Created one for validating GKE images in `test/e2e_node/system/specs/gke.yaml`.
      - `--image-spec-name` can be used to specify a system spec in node e2e and conformance tests. This option maps to `SYSTEM_SPEC_NAME` in a test properties file, which is the user facing configuration. So, users can specify `SYSTEM_SPEC_NAME=gke` to run the image validation using the GKE system spec.
      - If `SYSTEM_SPEC_NAME` is unspecified, the default spec (`system.DefaultSysSpec`) will be used.
      - We can also use `make test-e2e-node SYSTEM_SPEC_NAME=gke` to run tests using GKE image spec.
      
      **Release note**:
      `None`
      cab07f3a
    • Kubernetes Submit Queue's avatar
      Merge pull request #48890 from jpbetz/group-api-machinery-e2e-tests · f9cb6f9b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Move api-machinery related e2e tests to a 'api-machinery' e2e test su…
      
      …bdirectory.
      
      
      
      **What this PR does / why we need it**:
      
      Moves all e2e tests belonging to sig-api-machinery into a dedicated `test/e2e/apimachinery ` directory and updates the tests to use `SigDescribe` to prepend `[sig-api-machinery]` to the testnames of all apimachinery owned tests.
      
      **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
      ```
      f9cb6f9b
    • Kubernetes Submit Queue's avatar
      Merge pull request #48308 from yguo0905/docker-api · 23e60ac9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update Docker API in Kubelet
      
      Ref: https://github.com/kubernetes/kubernetes/issues/34308
      
      The Kubelet currently uses deprecated docker API (https://godoc.org/github.com/docker/engine-api). This PR changes it to use the new one (https://godoc.org/github.com/moby/moby/client).
      
      This PR updated the docker package from 1.11 to 1.13.1-rc2.
      
      **Release note**:
      ```
      None
      ```
      
      /assign @Random-Liu 
      /cc @yujuhong
      23e60ac9
    • Kubernetes Submit Queue's avatar
      Merge pull request #48891 from csbell/federation-up · 1d166e0b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48842, 48891)
      
      [Federation] Handle federation up timeouts
      
      Instead of relying on external timeout command.
      
      First raised in #48756
      
      /assign madhusudancs
      1d166e0b
    • Kubernetes Submit Queue's avatar
      Merge pull request #48842 from enisoc/quick-verify · 048b0600
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add quick-verify make rule.
      
      This is useful for humans to run to catch obvious problems before
      pushing commits and waiting for CI to run verify checks.
      
      Quick mode only runs a whitelist of verify scripts that are reasonably fast.
      I set the initial bar arbitrarily at <10s each on my workstation.
      
      The whole set runs in <30s for me, assuming I had already run `make` and
      `hack/godep-restore.sh`. This is compared to the full `make verify`
      which takes [I don't know how long because I gave up after 45min].
      048b0600
    • Joe Betz's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #48958 from wwwtyro/rye/charm-load-balancer-port · 60c3dd1b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48578, 48895, 48958)
      
      use port configuration
      
      **What this PR does / why we need it**: Uses the `port` config option in the kubeapi-load-balancer charm.
      
      **Release note**:
      ```release-note
      Uses the port config option in the kubeapi-load-balancer charm.
      ```
      60c3dd1b
    • Kubernetes Submit Queue's avatar
      Merge pull request #48895 from crimsonfaith91/move-upgrade · fcfe9a26
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48578, 48895, 48958)
      
      move sig-apps upgrade tests to its directory
      
      **What this PR does / why we need it**: This PR moves sig-apps upgrade tests to its directory in accord to fixit requirements.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48839
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      fcfe9a26
    • Kubernetes Submit Queue's avatar
      Merge pull request #48578 from fabianofranz/run_output_message_on_container_error · fdb3b2af
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48578, 48895, 48958)
      
      run must output message on container error
      
      **What this PR does / why we need it**: `kubectl run` must output a message (instead of just exiting with an error code) on container error.
      
      **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/openshift/origin/issues/15031 found in OpenShift
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      fdb3b2af
    • Kubernetes Submit Queue's avatar
      Merge pull request #48894 from juanvallejo/jvallejo/remove-hardcoded-kubectl-in-apply-warn-msg · 2610b9cf
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47066, 48892, 48933, 48854, 48894)
      
      replace hardcoded use of "kubectl" in apply warning msg
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      Removes use of hardcoded "kubectl" in the `kubectl apply ...` warning message that is printed when the `last-applied-configuration` annotation is missing on a resource. This is useful for downstream wrappers around the `apply` command.
      
      cc @stevekuznetsov @fabianofranz
      2610b9cf
    • Kubernetes Submit Queue's avatar
      Merge pull request #48854 from colemickens/msi · df47592d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47066, 48892, 48933, 48854, 48894)
      
      azure: msi: add managed identity field, logic
      
      **What this PR does / why we need it**: Enables managed service identity support for the Azure cloudprovider. "Managed Service Identity" allows us to ask the Azure Compute infra to provision an identity for the VM. Users can then retrieve the identity and assign it RBAC permissions to talk to Azure ARM APIs for the purpose of the cloudprovider needs.
      
      Per the commit text:
      ```
      The azure cloudprovider will now use the Managed Service Identity
      to retrieve access tokens for the Azure ARM APIs, rather than
      requiring hard-coded, user-specified credentials.
      ```
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: n/a 
      
      **Special notes for your reviewer**: none
      
      **Release note**:
      
      ```release-note
      azure: support retrieving access tokens via managed identity extension
      ```
      
      cc: @brendandburns @jdumars @anhowe
      df47592d
    • Kubernetes Submit Queue's avatar
      Merge pull request #48933 from karataliu/fixwinbuild · 726184ca
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47066, 48892, 48933, 48854, 48894)
      
      Fix windows build by altering go-ansiterm version
      
      **What this PR does / why we need it**:
      An attempt to fix windows build break in #48887, moves `github.com/Azure/go-ansiterm` to https://github.com/Azure/go-ansiterm/commit/70b2c90b260171e829f1ebd7c17f600c11858dbe.
      We can upgrade to new version when we pick docker 1.12
      
      See also:
      https://github.com/moby/moby/pull/22321/commits/fab67ab677e14c908f879e362f8805c8e91570c6#diff-c36e523b64f1ca41293e912113063a92L9
      
      **Which issue this PR fixes**
      Fixes #48887 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      726184ca
    • Kubernetes Submit Queue's avatar
      Merge pull request #48892 from ericchiang/client-go-canonical-import · a933551a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47066, 48892, 48933, 48854, 48894)
      
      client-go: add canonical import comment
      
      Ensure users check out client-go to the correct location. The install error now reads:
      
      ```
      can't load package: package github.com/kubernetes/client-go/kubernetes: code in directory /home/eric/src/github.com/kubernetes/client-go/kubernetes expects import "k8s.io/client-go/kubernetes"
      ```
      
      ref https://github.com/kubernetes/client-go/issues/223
      
      /cc @caesarxuchao @lavalamp 
      
      ```release-note
      NONE
      ```
      a933551a
    • Kubernetes Submit Queue's avatar
      Merge pull request #47066 from php-coder/improve_nfs_flex_volume_script · 57414d9b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      examples/volumes/flexvolume/nfs: check for jq and simplify quoting
      
      **What this PR does / why we need it**:
      
      This PR improves error reporting of the nfs flex plugin script. Before it output non-JSON error, when `jq` wasn't installed on the server:
      ```
      $ /usr/libexec/kubernetes/kubelet-plugins/volume/exec/k8s~nfs/nfs getvolumename test
      /usr/libexec/kubernetes/kubelet-plugins/volume/exec/k8s~nfs/nfs: line 87: jq: command not found
      /usr/libexec/kubernetes/kubelet-plugins/volume/exec/k8s~nfs/nfs: line 88: jq: command not found
      {"status": "Success", "volumeName": "/"}
      ```
      K8s fails to unmarshal such output to show an error in the logs:
      >E0606 19:32:30.196262   25700 driver-call.go:212] Failed to unmarshal output for command: getvolumename, output: "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/k8s\~nfs/nfs: line 87: jq: command not found\n/usr/libexec/kubernetes/kubelet-plugins/volume/exec/k8s\~nfs/nfs: line 88: jq: command not found\n{\"status\": \"Success\", \"volumeName\": \"/\"}", error: invalid character '/' looking for beginning of value
      
      After  this change:
      ```sh
      $ /usr/libexec/kubernetes/kubelet-plugins/volume/exec/k8s~nfs/nfs getvolumename test
      { "status": "Failure", "message": "'jq' binary not found. Please install jq package before using this driver"}
      ```
      and
      > E0606 19:52:07.915594   25700 driver-call.go:219] getvolumename command failed, status: Failure, reason: 'jq' binary not found. Please install jq package before using this driver
      
      Also this PR improves quoting a bit by using single quotes where it possible.
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      CC @mfojtik
      57414d9b
    • Christian Bell's avatar
      [Federation] Handle federation up timeouts · 81ba0cce
      Christian Bell authored
      Instead of relying on external timeout command.
      
      First raised in #48756
      81ba0cce
    • Kubernetes Submit Queue's avatar
      Merge pull request #48886 from mikedanese/cleanup · 8532cdfd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      remove some people from OWNERS so they don't get reviews anymore
      
      These are googlers who don't work on the project anymore but are still
      getting reviews assigned to them:
      - @bprashanth
      - @rjnagal
      - @vmarmol
      8532cdfd
    • Kubernetes Submit Queue's avatar
      Merge pull request #48862 from gyliu513/psp · 258e41ab
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Correct the comment in PSP examples.
      
      **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
      none
      ```
      258e41ab
    • Rye Terrell's avatar
      use port configuration · ece0461c
      Rye Terrell authored
      ece0461c
    • Kubernetes Submit Queue's avatar
      Merge pull request #47090 from mikedanese/bazel-integration · 87445c5c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48572, 48838, 48931, 48783, 47090)
      
      Start etcd in integration tests with TestMain
      
      https://github.com/kubernetes/kubernetes/issues/47089
      87445c5c
    • Kubernetes Submit Queue's avatar
      Merge pull request #48783 from mattmoyer/change-kubeadm-default-token-ttl · 47f86ddb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48572, 48838, 48931, 48783, 47090)
      
      kubeadm: change the default bootstrap token TTL to 24 hours
      
      **What this PR does / why we need it**:
      This PR changes the TTL for the default bootstrap token generated by `kubeadm init` (without the `--token-ttl` parameter) and `kubeadm token create` (without the `--ttl` flag). Previously, the default TTL was infinite. After this change it is 24 hours.
      
      ~~The reasoning for 2 hours as a default is that it's 1) long enough that someone manually using kubeadm (copy-pasting) shouldn't have any issues and 2) short enough that if something is going to break, it should break while the user/admin is still paying attention to the cluster. I'm open to bikeshedding about the exact value, 2 hours is a bit of a strawman.~~
      
      **Edit: updated this to 24 hours instead of 2 hours.**
      
      This is a breaking change if you rely on infinite TTL tokens (e.g., if you had an ASG group of worker nodes). The old behavior is easily restored by passing `--token-ttl 0` to `kubeadm init` or the `--ttl 0` flag to `kubeadm token create`.
      
      **Which issue this PR fixes**: fixes https://github.com/kubernetes/kubeadm/issues/343
      
      **Special notes for your reviewer**:
      This was discussed earlier today in SIG-cluster-lifecycle
      
      **Release note**:
      ```release-note
      Change the default kubeadm bootstrap token TTL from infinite to 24 hours. This is a breaking change. If you require the old behavior, use `kubeadm init --token-ttl 0` / `kubeadm token create --ttl 0`.
      ```
      
      cc @jbeda
      47f86ddb
    • Kubernetes Submit Queue's avatar
      Merge pull request #48931 from allencloud/remove-duplicated-word-file-in-error · 3bb2d12e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48572, 48838, 48931, 48783, 47090)
      
      remove duplicated word file in error
      Signed-off-by: 's avatarallencloud <allen.sun@daocloud.io>
      
      
      
      **What this PR does / why we need it**:
      
      remove duplicated word file in error
      
      **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
      ```
      3bb2d12e
    • Kubernetes Submit Queue's avatar
      Merge pull request #48838 from mattmoyer/kubeadm-add-default-token-ttl-warning · c08a6208
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48572, 48838, 48931, 48783, 47090)
      
      kubeadm: add a warning about the default token TTL changing in 1.8
      
      **What this PR does / why we need it**:
      This adds a warning to `kubeadm init` and `kubeadm token create` if they are run without the `--token-ttl` / `--ttl` flags. In 1.7 and before, the tokens generated by these commands defaulted to an infinite TTL (no expiration) in 1.8, they will generate a token with a 24 hour TTL.
      
      The actual default change is in https://github.com/kubernetes/kubernetes/pull/48783. This change is separate so we can cherry pick the warning into the `release-1.7` branch.
      
      **Which issue this PR fixes**: ref https://github.com/kubernetes/kubeadm/issues/343
      
      **Special notes for your reviewer**:
      This change is blocked on https://github.com/kubernetes/kubeadm/issues/343. These warnings should probably be removed in the 1.9 cycle.
      
      **Release note**:
      ```release-note
      Add a runtime warning about the kubeadm default token TTL changes in 1.8.
      ```
      
      /assign @luxas
      c08a6208
    • Kubernetes Submit Queue's avatar
      Merge pull request #48572 from alexandercampbell/kubectl-follow-options-pattern-in-version · fd619b04
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      cmd/version: refactor to use the -Options pattern
      
      Refactor `kubectl version` to use the prescribed pattern in [kubectl-conventions.md](https://github.com/kubernetes/community/blob/49d65710b3ef8f4326df79706daf1e59c2e4a465/contributors/devel/kubectl-conventions.md#command-implementation-conventions).
      
      ```release-note
      NONE
      ```
      
      /assign @mengqiy
      fd619b04
    • Slava Semushin's avatar
      ae147a73
    • Kubernetes Submit Queue's avatar
      Merge pull request #46360 from khenidak/azure-pd-final · 9e97b524
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Azure PD (Managed/Blob)
      
      This is exactly the same code as this [PR](https://github.com/kubernetes/kubernetes/pull/41950). It has a clean set of generated items. We created a separate PR to accelerate the accept/merge the PR
      
      CC @colemickens 
      CC @brendandburns 
      
      **What this PR does / why we need it**:
      
      1. Adds K8S support for Azure Managed Disks. 
      2. Adds support for dedicated blob disks (1:1 to storage account) in addition to shared blob disks (n:1 to storage account). 
      3. Automatically manages the underlying storage accounts. New storage accounts are created at 50% utilization. Max is 100 disks, 60 disks per storage account.    
      2. Addresses the current issues with Blob Disks:
      ..* Significantly faster attach process. Disks are now usually available for pods on nodes under 30 sec if formatted, under a min if not formatted. 
      ..* Adds support to move disks between nodes.
      ..* Adds consistent attach/detach behavior, checks if the disk is leased/attached on a different node before attempting to attach to target nodes.
      ..* Fixes a random hang behavior on Azure VMs during mount/format (for both blob + managed disks).
      ..* Fixes a potential conflict by avoiding the use of disk names for mount paths. The new plugin uses hashed disk uri for mount path.  
      
      The existing AzureDisk is used as is. Additional "kind" property was added  allowing the user to decide if the pd will be shared, dedicated or managed (Azure Managed Disks are used).
      
      Due to the change in mounting paths, existing PDs need to be recreated as PV or PVCs on the new plugin.
      9e97b524
    • Yang Guo's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #46362 from sebgoa/examplesmove · cb712e41
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Redirect all files in /examples folder to kubernetes/examples repo
      
      **What this PR does / why we need it**:
      
      Examples are being moved to their own repository: https://github.com/kubernetes/examples
      
      We need to remove them from the main repo , but first we need to keep a redirect.
      
      This is a *big* organizational change, but nothing technical (aside from e2e tests)
      
      **Which issue this PR fixes** 
      
      fixes part of #24343 
      
      **Special notes for your reviewer**:
      
      WIP, I still need to figure out what to do with the BUILD script and tests, plus take care of the e2e tests that use some of these examples.
      
      **release notes**
      ```release-note
      Redirect all examples README to the the kubernetes/examples repo
      ```
      cb712e41
    • Kubernetes Submit Queue's avatar
      Merge pull request #48915 from mattmoyer/fix-kubeadm-config-regression · b664aebb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: fix broken `kubeadm init --config` flag
      
      **What this PR does / why we need it**:
      This code was changed in ea196490 (https://github.com/kubernetes/kubernetes/pull/43558) to validate that `--config` wasn't passed along with other flags. Unfortunately, the implementation was checking `PersistentFlags()`, which was not parsed at the point it was being validated.
      
      The fix is to use `Flags()` instead, which contains the expected data.
      
      
      **Which issue this PR fixes** fixes https://github.com/kubernetes/kubeadm/issues/345
      
      **Special notes for your reviewer**:
      This is a regression that was cherry picked (https://github.com/kubernetes/kubernetes/pull/48577) into the `release-1.7` branch. We should fix this before the next 1.7 point release.
      
      This is awkward to unit test without restructuring the code. I think this command parsing code would be a good candidate for some higher level tests.
      
      **Release note**:
      ```release-note
      Fix a regression that broke the `--config` flag for `kubeadm init`.
      ```
      
      /assign @luxas
      b664aebb
    • Matt Moyer's avatar
      kubeadm: add a warning about the default token TTL changing in 1.8 · 06bd22eb
      Matt Moyer authored
      This adds a warning to `kubeadm init` and `kubeadm token create` if they are run without the `--token-ttl` / `--ttl` flags. In 1.7 and before, the tokens generated by these commands defaulted to an infinite TTL (no expiration) in 1.8, they will generate a token with a 24 hour TTL.
      
      The actual default change is in https://github.com/kubernetes/kubernetes/pull/48783. This change is separate so we can cherry pick the warning into the release-1.7 branch.
      06bd22eb
    • Sebastien Goasguen's avatar
      b0bc271e