1. 28 Feb, 2018 26 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #60358 from CaoShuFeng/make_test_load · 5d0e7c1e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60376, 55584, 60358, 54631, 60291). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      fix "make test"
      
      Before this pr, we get this in linux:
      ```
      $ make test
      Running tests for APIVersion: v1,admissionregistration.k8s.io/v1alpha1,admissionregistration.k8s.io/v1beta1,admission.k8s.io/v1beta1,apps/v1beta1,apps/v1beta2,apps/v1,authentication.k8s.io/v1,authentication.k8s.io/v1beta1,authorization.k8s.io/v1,authorization.k8s.io/v1beta1,autoscaling/v1,autoscaling/v2beta1,batch/v1,batch/v1beta1,batch/v2alpha1,certificates.k8s.io/v1beta1,extensions/v1beta1,events.k8s.io/v1beta1,imagepolicy.k8s.io/v1alpha1,networking.k8s.io/v1,policy/v1beta1,rbac.authorization.k8s.io/v1,rbac.authorization.k8s.io/v1beta1,rbac.authorization.k8s.io/v1alpha1,scheduling.k8s.io/v1alpha1,settings.k8s.io/v1alpha1,storage.k8s.io/v1beta1,storage.k8s.io/v1,storage.k8s.io/v1alpha1,
      +++ [0224 16:10:13] Running tests without code coverage
      can't load package: package k8s.io/kubernetes/pkg/kubelet/winstats: build constraints exclude all Go files in /home/fujitsu/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/kubelet/winstats
      !!! [0224 16:10:15] Call tree:
      !!! [0224 16:10:15]  1: hack/make-rules/test.sh:402 runTests(...)
      Makefile:182: recipe for target 'test' failed
      make: *** [test] Error 1
      ```
      
      ```release-note
      NONE
      ```
      5d0e7c1e
    • Kubernetes Submit Queue's avatar
      Merge pull request #55584 from zhangxiaoyu-zidif/move-check-pod-forward · 907329e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60376, 55584, 60358, 54631, 60291). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      move pod-check forward
      
      **What this PR does / why we need it**:
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      907329e2
    • Kubernetes Submit Queue's avatar
      Merge pull request #60376 from mikedanese/fixup · 5be121ac
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60376, 55584, 60358, 54631, 60291). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      remove gcloud docker -- since it's deprecated
      
      docker handles this now and it raises an error.
      
      try 3
      
      ```release-note
      NONE
      ```
      5be121ac
    • Kubernetes Submit Queue's avatar
      Merge pull request #57408 from zouyee/kubelet-1 · b1ef631e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60236, 60332, 57375, 60451, 57408). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      improve code comment
      
      **What this PR does / why we need it**:
      improve code comment
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```NONE
      
      ```
      b1ef631e
    • Kubernetes Submit Queue's avatar
      Merge pull request #60451 from jiayingz/e2e_node_enable · 2023c019
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60236, 60332, 57375, 60451, 57408). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Update device plugin e2e_node test to not changing Kubelet config
      
      as DevicePlugins feature is enabled by default now.
      
      
      
      **What this PR does / why we need it**:
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      
      ```
      2023c019
    • Kubernetes Submit Queue's avatar
      Merge pull request #57375 from tianshapjq/cleanup-useless-func-core/services.go · be041a54
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60236, 60332, 57375, 60451, 57408). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      cleanup useless functions in pkg/quota/evaluator/core/services.go
      
      **What this PR does / why we need it**:
      cleanup useless functions in pkg/quota/evaluator/core/services.go
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      be041a54
    • Kubernetes Submit Queue's avatar
      Merge pull request #60332 from yguo0905/sched · 1aee9fd9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60236, 60332, 57375, 60451, 57408). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      kube-scheduler: Support extender managed extended resources in kube-scheduler
      
      **What this PR does / why we need it**:
      
      This is the continuation of https://github.com/kubernetes/kubernetes/pull/58851.
      
      - This PR adds new extender configurations in scheduler policy config.
          - A set of extended resource names can be specified in an extender config. They are the resources that are managed by the extender. The scheduler will only send pods to the extender if the pod requests at least one of the extended resources in the set.
          - An `IgnoredByScheduler` flag can be set along with each of such resources. If this flag is set to true, the scheduler will not check the resource in the `PodFitsResources` predicate.
      - This PR also changes the default behavior of the `PodFitsResources` predicate. Now, by default, `PodFitsResources` will ignore the extended resources that are not in node status. This is required to support extender managed extended resources (including cluster-level resources) on node. Note that in kube-scheduler we override the default behavior by not ignoring such missing extended resources.
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes https://github.com/kubernetes/kubernetes/issues/53616 https://github.com/kubernetes/kubernetes/issues/58850 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      Support extender managed extended resources in kube-scheduler
      ```
      1aee9fd9
    • Kubernetes Submit Queue's avatar
      Merge pull request #60236 from immutableT/kms-mock · efdc6802
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60236, 60332, 57375, 60451, 57408). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Adding Data Encryption Key (DEK) Key Encryption Key (KEK) integration…
      
      … tests via KMS Plugin Mock.
      
      
      
      **What this PR does / why we need it**:
      Adding integration tests between KubeAPI and KMS Plugin.
      Concretely, this test verifies the following integration contracts:
      1. Raw records in ETCD that were processed by KMS Provider should be prefixed with k8s:enc:kms:v1:grpc-kms-provider-name:
      2. Data Encryption Key (DEK) should be generated by envelopeTransformer and passed to KMS gRPC Plugin
      3. KMS gRPC Plugin should encrypt the DEK with a Key Encryption Key (KEK) and pass it back to envelopeTransformer
      4. The payload (ex. Secret) should be encrypted via AES CBC transform
      5. Prefix-EncryptedDEK-EncryptedPayload structure should be deposited to ETCD
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      efdc6802
    • Mike Danese's avatar
      c0b73645
    • Kubernetes Submit Queue's avatar
      Merge pull request #60249 from mikedanese/id-gce · cd78e999
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53689, 56880, 55856, 59289, 60249). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      gce: add support for enabling TokenRequest feature
      
      ref #58790
      
      ```release-note
      NONE
      ```
      cd78e999
    • Kubernetes Submit Queue's avatar
      Merge pull request #59289 from rmmh/semantic-check · aa13f3fa
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53689, 56880, 55856, 59289, 60249). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
       Add test/typecheck, a fast typecheck for all build platforms.
      
      Add test/typecheck, a fast typecheck for all build platforms.
      
      Most of the time spent compiling is spent optimizing and linking
      binary code. Most errors occur at the syntax or semantic (type) layers.
      Go's compiler is importable as a normal package, so we can do fast
      syntax and type checking for the 10 platforms we build on.
      
      This currently takes ~6 minutes of CPU time (parallelized).
      
      This makes presubmit cross builds superfluous, since it should catch
      most cross-build breaks (generally Unix and 64-bit assumptions).
      
      Example output:
      
      ```$ time go run test/typecheck/main.go
      type-checking:  linux/amd64, windows/386, darwin/amd64, linux/arm, 
          linux/386, windows/amd64, linux/arm64, linux/ppc64le, linux/s390x, darwin/386
      ERROR(windows/amd64) pkg/proxy/ipvs/proxier.go:1708:27: ENXIO not declared by package unix
      ERROR(windows/386) pkg/proxy/ipvs/proxier.go:1708:27: ENXIO not declared by package unix
      
      real    0m45.083s
      user    6m15.504s
      sys     1m14.000s
      ```
      
      
      ```release-note
      NONE
      ```
      aa13f3fa
    • Kubernetes Submit Queue's avatar
      Merge pull request #55856 from miaoyq/replace-for-with-sets · 88cfcb45
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53689, 56880, 55856, 59289, 60249). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Use `sets` instead of `for` statement in "IsValidAuthorizationMode"
      
      **What this PR does / why we need it**:
      Use `sets` instead of `for` statement in "IsValidAuthorizationMode", that will make the code more clearly and concisely.
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      none
      ```
      88cfcb45
    • Kubernetes Submit Queue's avatar
      Merge pull request #56880 from MrHohn/kube-proxy-ipv6-fix · f45f4a4e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53689, 56880, 55856, 59289, 60249). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Harden kube-proxy for unmatched IP versions
      
      **What this PR does / why we need it**:
      This PR makes kube-proxy omits & logs & emits event for unmatched IP versions configuration (IPv6 address in IPv4 mode or IPv4 address in IPv6 mode). 
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes #57219
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      Fix the issue in kube-proxy iptables/ipvs mode to properly handle incorrect IP version.
      ```
      f45f4a4e
    • Kubernetes Submit Queue's avatar
      Merge pull request #53689 from foxyriver/fix-defer · 231874c7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53689, 56880, 55856, 59289, 60249). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      simplify defer statement
      
      **What this PR does / why we need it**:
      
      simplify defer statement
      231874c7
    • Kubernetes Submit Queue's avatar
      Merge pull request #60501 from johscheuer/fix-ipvs-kubeadm-readme · 24516c5a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Remove old featureGate flag in Readme
      
      **What this PR does / why we need it**:
      
      This PR corrects the Readme for ipvs mode: https://github.com/kubernetes/kubernetes/blob/master/pkg/proxy/ipvs/README.md. `kubeadm init` doesn't support the `--feature-gates=SupportIPVSProxyMode=true` flag anymore since IPVS is in beta and not alpha anymore.
      
      
      ```
      sudo kubeadm init --help
      Run this command in order to set up the Kubernetes master.
      
      Usage:
        kubeadm init [flags]
      
      Flags:
            --apiserver-advertise-address string      The IP address the API Server will advertise it's listening on. Specify '0.0.0.0' to use the address of the default network interface.
            --apiserver-bind-port int32               Port for the API Server to bind to. (default 6443)
            --apiserver-cert-extra-sans stringSlice   Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names.
            --cert-dir string                         The path where to save and store the certificates. (default "/etc/kubernetes/pki")
            --config string                           Path to kubeadm config file. WARNING: Usage of a configuration file is experimental.
            --cri-socket string                       Specify the CRI socket to connect to. (default "/var/run/dockershim.sock")
            --dry-run                                 Don't apply any changes; just output what would be done.
            --feature-gates string                    A set of key=value pairs that describe feature gates for various features. Options are:
      CoreDNS=true|false (ALPHA - default=false)
      DynamicKubeletConfig=true|false (ALPHA - default=false)
      SelfHosting=true|false (ALPHA - default=false)
      StoreCertsInSecrets=true|false (ALPHA - default=false)
            --ignore-preflight-errors stringSlice     A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.
            --kubernetes-version string               Choose a specific Kubernetes version for the control plane. (default "stable-1.9")
            --node-name string                        Specify the node name.
            --pod-network-cidr string                 Specify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node.
            --service-cidr string                     Use alternative range of IP address for service VIPs. (default "10.96.0.0/12")
            --service-dns-domain string               Use alternative domain for services, e.g. "myorg.internal". (default "cluster.local")
            --skip-token-print                        Skip printing of the default bootstrap token generated by 'kubeadm init'.
            --token string                            The token to use for establishing bidirectional trust between nodes and masters.
            --token-ttl duration                      The duration before the bootstrap token is automatically deleted. If set to '0', the token will never expire. (default 24h0m0s)
      ```
      
      **Special notes for your reviewer**:
      Used kubeadm version:
      
      ```bash
      sudo kubeadm version
      kubeadm version: &version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T11:55:20Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
      ```
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      24516c5a
    • Kubernetes Submit Queue's avatar
      Merge pull request #51925 from zhanghuidinah/fix-broken-link · 9a34516f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      fix broken link
      
      **What this PR does / why we need it**:
      fix broken link
      **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
      ```
      9a34516f
    • Kubernetes Submit Queue's avatar
      Merge pull request #59940 from mikedanese/id-authenticator · 14bdeeb9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 59333, 59940). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      implement token authenticator for new id tokens
      
      part of https://github.com/kubernetes/kubernetes/issues/58790
      
      ```release-note
      NONE
      ```
      14bdeeb9
    • Kubernetes Submit Queue's avatar
      Merge pull request #59333 from feiskyer/win · a21a7502
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      kubelet: setup WindowsContainerResources for windows containers
      
      **What this PR does / why we need it**:
      
      This PR setups WindowsContainerResources for windows containers. It implements proposal here: https://github.com/kubernetes/community/pull/1510.
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes #56734
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      WindowsContainerResources is set now for windows containers
      ```
      a21a7502
    • Mike Danese's avatar
      857690ba
    • Pengfei Ni's avatar
      Update godeps · 45d1a128
      Pengfei Ni authored
      45d1a128
    • Pengfei Ni's avatar
      Update unit tests and bazel files · b0a49e19
      Pengfei Ni authored
      b0a49e19
    • Pengfei Ni's avatar
      18c55a1d
    • Pengfei Ni's avatar
      Setup windows container config to kubelet CRI · 3c5e4934
      Pengfei Ni authored
      3c5e4934
    • Yang Guo's avatar
      8d880506
    • Mike Danese's avatar
      024f57af
    • Mike Danese's avatar
      1fbf8b8f
  2. 27 Feb, 2018 14 commits