1. 07 Aug, 2018 28 commits
    • Avesh Agarwal's avatar
      Fix incorrect reporting of total request including current pod in the · ea7f711a
      Avesh Agarwal authored
      resource allocation priority function.
      ea7f711a
    • Kubernetes Submit Queue's avatar
      Merge pull request #67023 from OddBloke/sysrq · 733a381e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 66196, 67016, 66807, 67023). 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>.
      
      e2e: Ensure that sysrq-trigger is enabled before use
      
      **What this PR does / why we need it**:
      
      On Ubuntu (and, presumably, other distros too), the default configuration prohibits some sysrq operations.  Before performing sysrq operations in the e2e testing, ensure that all operations are permitted.
      
      ```release-note
      NONE
      ```
      733a381e
    • Kubernetes Submit Queue's avatar
      Merge pull request #66807 from caesarxuchao/remove-connectrequest · d1636b80
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 66196, 67016, 66807, 67023). 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>.
      
      Make admission webhooks conversion convert CONNECT body correctly
      
      Fix #59759.
      
      1. Make apiserver pass connectRequest.Options directly to the admission layer. All other information in rest.ConnectRequest is present in admission attributes.
      2. Make the scope.Kind of pod/attach, pod/exec, pod/portforward, node/proxy, service/proxy to their respective options Kind, instead of the parent Kind.
      
      I've tested it locally, the conversion is working correctly for "kubectl attach". I'll add e2e tests.
      
      I'll keep this to myself until I add the tests, but cc @mikedanese @liggitt RE. https://github.com/kubernetes/kubernetes/pull/66633.
      d1636b80
    • Kubernetes Submit Queue's avatar
      Merge pull request #67016 from dims/use-busybox-from-dockerhub · 13ed041f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 66196, 67016, 66807, 67023). 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>.
      
      e2e test harness - use busybox from dockerhub
      
      **What this PR does / why we need it**:
      
      Use the same pattern used everywhere in the e2e test
      harness, just use "busybox" (from dockerhub) instead
      of using the one from k8s.gcr.io registry.
      
      Change-Id: I700b59f73fd31f2ed6d7f995cd9441839857dd44
      
      **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
      ```
      13ed041f
    • Kubernetes Submit Queue's avatar
      Merge pull request #66196 from tanshanshan/fixspell1 · 5ed156d6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 66196, 67016, 66807, 67023). 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 spelling  mistakes
      
      **What this PR does / why we need it**:
      fix spelling  mistakes
      
      **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
      ```
      5ed156d6
    • Kubernetes Submit Queue's avatar
      Merge pull request #66834 from brandondr96/nscheck · 7a901417
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 62727, 66834). 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>.
      
      Added check for namespace file
      
      **What this PR does / why we need it**:
      This PR cleans up a bit of the code in the iks/shutdown file, so that is checks for a possible file prior to attempting to delete it. It is a very minor fix.
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      This was not previously labelled as an issue.
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      7a901417
    • Kubernetes Submit Queue's avatar
      Merge pull request #62727 from xiangpengzhao/remove-flag · 972e1549
      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 the kubeadm `--skip-preflight-checks` flag
      
      **What this PR does / why we need it**:
      As per deprecation policy, it's ok to remove this flag. (two releases: deprecated in 1.9 and removed in 1.11)
      
      **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
      The flag `--skip-preflight-checks` of kubeadm has been removed. Please use `--ignore-preflight-errors` instead.
      ```
      972e1549
    • Davanum Srinivas's avatar
      e2e test harness - use busybox from dockerhub · 6cd8bd62
      Davanum Srinivas authored
      Use the same pattern everywhere in the e2e test
      harness, use busybox (from dockerhub) instead
      of using the one from k8s.gcr.io registry.
      
      Change-Id: I57c3b867408c1f9478a8909c26744ea0368ff003
      6cd8bd62
    • Kubernetes Submit Queue's avatar
      Merge pull request #65147 from liggitt/watch-prefix-deprecation · 6bea053e
      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>.
      
      document /watch prefix deprecation
      
      closes #65133
      
      these have been marked as deprecated in code for many releases, and all client accesses have switched to using the ?watch=true access method, but documentation was never updated
      
      @kubernetes/sig-api-machinery-api-reviews @kubernetes/api-reviewers
      
      ```release-note
      The watch API endpoints prefixed with `/watch` are deprecated and will be removed in a future release. These standard method for watching resources (supported since v1.0) is to use the list API endpoints with a `?watch=true` parameter. All client-go clients have used the parameter method since v1.6.0.
      ```
      6bea053e
    • Kubernetes Submit Queue's avatar
      Merge pull request #67010 from RA489/addinglicense · e0f967ef
      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>.
      
      Create LICENSE
      
      Adding license file for logo.
      Related to  https://github.com/kubernetes/minikube/issues/3030
      e0f967ef
    • Kubernetes Submit Queue's avatar
      Merge pull request #67074 from kawych/master · ce63916a
      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>.
      
      Bump Heapster to v1.6.0-beta.1
      
      **What this PR does / why we need it**:
      Bump Heapster to version v1.6.0-beta.1
      
      **Release note**:
      ```release-note
      Bump Heapster to v1.6.0-beta.1
      ```
      ce63916a
    • Jordan Liggitt's avatar
      document /watch prefix deprecation · c31faf25
      Jordan Liggitt authored
      c31faf25
    • xiangpengzhao's avatar
      9e204fe7
    • Kubernetes Submit Queue's avatar
      Merge pull request #66736 from hanxiaoshuai/cleanup0728 · 83f6efce
      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>.
      
      use func WaitForCompletionRef replace of deprecated func WaitForCompletion
      
      **What this PR does / why we need it**:
      use func WaitForCompletionRef replace of deprecated func WaitForCompletion
      
      ```
      // WaitForCompletion will return when one of the following conditions is met: the long
      // running operation has completed, the provided context is cancelled, or the client's
      // polling duration has been exceeded.  It will retry failed polling attempts based on
      // the retry value defined in the client up to the maximum retry attempts.
      // Deprecated: Please use WaitForCompletionRef() instead.
      func (f Future) WaitForCompletion(ctx context.Context, client autorest.Client) error {
      	return f.WaitForCompletionRef(ctx, client)
      }
      ```
      
      **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
      ```
      83f6efce
    • Kubernetes Submit Queue's avatar
      Merge pull request #67046 from liggitt/limit-libressl-check · 4602f0e1
      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>.
      
      move easyrsa check to gce prereq check
      
      fixes #67044
      
      the check added in https://github.com/kubernetes/kubernetes/pull/66690 was broader than required... only paths that use easyrsa need to be so restrictive
      
      this restores local-up-cluster.sh on osx
      
      /assign @spiffxp 
      
      ```release-note
      NONE
      ```
      4602f0e1
    • RA489's avatar
      Create LICENSE · aa842cc5
      RA489 authored
      aa842cc5
    • Kubernetes Submit Queue's avatar
      Merge pull request #66386 from yue9944882/refactor/etcd-options-config · db9545e6
      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>.
      
      Refactor storage factory config with Complete().New() flow
      
      **What this PR does / why we need it**:
      
      1. Split `BuildStorageFactory` constructor into `Complete().New()` flow to build an instance for etcd storage.
      
      2. Put `EtcdOptions` and `StorageSerializationOptions` into a `StorageFactoryOptions` for a more reasonable structured config object.
      
      **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**:
      
      Generally, my idea is to split the huge code in [https://github.com/kubernetes/kubernetes/blob/master/cmd/kube-apiserver/app/server.go](https://github.com/kubernetes/kubernetes/blob/master/cmd/kube-apiserver/app/server.go) into somewhere else making more sense :)
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      db9545e6
    • Kubernetes Submit Queue's avatar
      Merge pull request #66083 from jennybuckley/connect-dry-run · e69cc51a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 66512, 66946, 66083). 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>.
      
      Explicitly disable dry run for connect
      
      **What this PR does / why we need it**:
      It isn't clear whether or not dry run would work on connect. I think we should explicitly disable it so no one can try to dry run a connect request and accidentally open a connection.
      
      **Release note**:
      ```release-note
      kube-apiserver: setting a `dryRun` query parameter on a CONNECT request will now cause the request to be rejected, consistent with behavior of other mutating API requests. Examples of CONNECT APIs are the `nodes/proxy`, `services/proxy`, `pods/proxy`, `pods/exec`, and `pods/attach` subresources. Note that this prevents sending a `dryRun` parameter to backends via `{nodes,services,pods}/proxy` subresources.
      ```
      e69cc51a
    • Kubernetes Submit Queue's avatar
      Merge pull request #66946 from LinEricYang/unused-variable · 60ac4339
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 66512, 66946, 66083). 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/cm/cpumanager: Fix unused variable "skipIfPermissionsError"
      
      The variable "skipIfPermissionsError" is not needed even when
      permission error happened.
      60ac4339
    • Kubernetes Submit Queue's avatar
      Merge pull request #66512 from jennybuckley/openapi-ignore-prefix · 235badbe
      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>.
      
      Skip building openapi for ignored paths
      
      alternative to #66286
      
      /kind bug
      Fixes #66285
      
      ```release-note
      NONE
      ```
      235badbe
    • Chao Xu's avatar
      generated · d89c8dd8
      Chao Xu authored
      d89c8dd8
    • Chao Xu's avatar
    • Chao Xu's avatar
      Fix scope.Kind of CONNECT subresources. · 64bd0e45
      Chao Xu authored
      Make scope.Kind of pod/attach, pod/exec, pod/portforward, node/proxy,
      service/proxy to their respective subresource Kind, instead of the
      parent Kind. The kind is used by the admission webhook controller to
      determine how to convert the object.
      64bd0e45
    • Chao Xu's avatar
      Remove rest.ConnectRequest. · 355691d3
      Chao Xu authored
      Make apiserver pass connectRequest.Options directly to the admission layer. All
      the information in rest.ConnectRequest is present in admission attributes.
      355691d3
    • Kubernetes Submit Queue's avatar
      Merge pull request #66391 from jennybuckley/dry-run-admission · 6fe7f9f4
      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>.
      
      Support dry run in admission plugins
      
      **What this PR does / why we need it**:
      Adds support for dry run to admission controllers as outlined by https://github.com/kubernetes/community/pull/2387
      
      - [x] add IsDryRun() to admission.Attributes interface
      - [x] add dry run support to NamespaceAutoProvision
      - [x] add dry run support to ResourceQuota
      - [x] add dry run support to EventRateLimit
      
      The following is being done in a follow up PR:
      - [x] add DryRun to ```admission.k8s.io/v1beta1.AdmissionReview```
      - [x] add DryRunnable to ```admissionregistration.k8s.io/v1beta1.(Valid|Mut)atingWebhookConfiguration```
      - [x] add dry run support to (Valid|Mut)atingAdmissionWebhook
      
      /sig api-machinery
      
      **Release note**:
      ```release-note
      In clusters where the DryRun feature is enabled, dry-run requests will go through the normal admission chain. Because of this, ImagePolicyWebhook authors should especially make sure that their webhooks do not rely on side effects.
      ```
      
      Here is a list of the admission controllers that were considered when making this PR:
      - AlwaysAdmit: No side effects
      - AlwaysPullImages: No side effects
      - LimitPodHardAntiAffinityTopology: No side effects
      - DefaultTolerationSeconds: No side effects
      - AlwaysDeny: No side effects
      - EventRateLimit: Has side possible effect of affecting the rate, skipping this entire plugin in dry-run case since it won't correspond to an actual write to etcd anyway
      - DenyEscalatingExec: No side effects
      - DenyExecOnPrivileged: Deprecated, and has no side effects
      - ExtendedResourceToleration: No side effects
      - OwnerReferencesPermissionEnforcement: No side effects
      - ImagePolicyWebhook: No side effects* (*this uses a webhook but it is very specialized. It only sees pod container images, for the purpose of accepting or rejecting certain image sources, so it is very unlikely that it would rely on side effects.)
      - LimitRanger: No side effects
      - NamespaceAutoProvision: Has possible side effect of creating a namespace, skipping the create in the dry-run case
      - NamespaceExists: No side effects
      - NodeRestriction: No side effects
      - PodNodeSelector: No side effects
      - PodPreset: No side effects
      - PodTolerationRestriction: No side effects
      - Priority: No side effects
      - ResourceQuota: Has side possible effect of taking up quota, will only check quota but skip changing quota in the dry-run case
      - PodSecurityPolicy: No side effects
      - SecurityContextDeny: No side effects
      - ServiceAccount: No side effects
      - PersistentVolumeLabel: No side effects
      - PersistentVolumeClaimResize: No side effects
      - DefaultStorageClass: No side effects
      - StorageObjectInUseProtection: No side effects
      - Initializers: No side effects
      - NamespaceLifecycle: No side effects
      - MutatingAdmissionWebhook: Same as below
      - ValidatingAdmissionWebhook: Has possible side effects depending on if webhook authors depend on side effects and a reconciliation mechanism. To fix this we will expose whether or not a request is dry-run to webhooks through AdmissionReview, and require that all called webhooks understand the field by checking if DryRunnable true is specified in the webhook config. This will be done in a separate PR because it requires an api-change
      6fe7f9f4
    • Kubernetes Submit Queue's avatar
      Merge pull request #66956 from mgdevstack/master-gc-orphandependent · f04a7fa9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 58058, 67033, 66921, 66956). 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>.
      
      Added comment to track deleteOptions.OrphanDependents e2e for conformance promotion in future
      
      **What this PR does / why we need it**:
      - Added a comment to track below mentioned e2e tests for conformance promotion in future.
      - Prevents additional effort to evaluate again for promotion.
      
      **E2E -**
      - Garbage collector should orphan pods created by rc if deleteOptions.OrphanDependents is nil
      
      **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 #65427 
      
      **Special notes for your reviewer**:
      https://github.com/kubernetes/kubernetes/issues/65427#issuecomment-409642330
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      /area conformance
      @kubernetes/sig-architecture-pr-reviews
      f04a7fa9
    • Kubernetes Submit Queue's avatar
      Merge pull request #66921 from mgdevstack/NodeConformance-InitContainer · 1b033f64
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 58058, 67033, 66921, 66956). 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>.
      
      Promoting InitContainer [NodeConformance] e2e tests for Conformance
      
      **What this PR does / why we need it**:
      
      1. Promotes mentioned 4 InitContainer [NodeConformance] tests for Conformance
      2. Validates different PodPhases effectively
      3. Improves API coverage mentioned in #66124 .
      
      E2E tests -
      1. InitContainer [NodeConformance] should invoke init containers on a RestartNever pod
      2. InitContainer [NodeConformance] should invoke init containers on a RestartAlways pod
      3. InitContainer [NodeConformance] should not start app containers if init containers fail on a RestartAlways pod
      4. InitContainer [NodeConformance] should not start app containers and fail the pod if init containers fail on a RestartNever pod
      
      **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 #66124 
      
      **Special notes for your reviewer**:
      
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      /area conformance
      @kubernetes/sig-node-pr-reviews
      1b033f64
    • Kubernetes Submit Queue's avatar
      Merge pull request #67033 from juanvallejo/jvallejo/add-corev1-pod-kubectl-conditions · dda37a52
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 58058, 67033, 66921, 66956). 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>.
      
      expose default LogsForObject consumeRequest func
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      Expose the `consumeRequest` func to make it reusable for other consumers of the `LogsForObject` polymorphic func
      dda37a52
  2. 06 Aug, 2018 12 commits
    • Jordan Liggitt's avatar
      move easyrsa check to gce prereq check · cc1a7735
      Jordan Liggitt authored
      cc1a7735
    • Kubernetes Submit Queue's avatar
      Merge pull request #58058 from tianshapjq/cleanup-useless-var-deviceplugin/types.go · d114692a
      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>.
      
      clean up useless variables in deviceplugin/types.go
      
      **What this PR does / why we need it**:
      some variables is useless for reasons, I think we need a clean up.
      
      **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
      d114692a
    • Kubernetes Submit Queue's avatar
      Merge pull request #67024 from juanvallejo/jvallejo/add-cancel-req-discovery-rt · a945b5d9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 66958, 67024). 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 CancelRequest to discovery round-tripper
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      Make discovery roundtripper implement the RequestCanceler interface
      
      cc @deads2k
      a945b5d9
    • Kubernetes Submit Queue's avatar
      Merge pull request #66958 from yue9944882/chore/homogenize-controller-keyfunc · 72860eb2
      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>.
      
      Reference common keyfunc in endpoints controller
      
      **What this PR does / why we need it**:
      As the title
      **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
      ```
      72860eb2
    • juanvallejo's avatar
      0c4bb643
    • Kubernetes Submit Queue's avatar
      Merge pull request #66813 from DylanBLE/pprof · 6afd783d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 59030, 64666, 66251, 66485, 66813). 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 apiserver pprof redirect bug
      
      **What this PR does / why we need it**:
      fix apiserver pprof redirect bug
      
      **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 #66812
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      None
      ```
      6afd783d
    • Kubernetes Submit Queue's avatar
      Merge pull request #66485 from bmoyles0117/apply-latest-stackdriver-fixes · 51faf6eb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 59030, 64666, 66251, 66485, 66813). 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>.
      
      A large set of improvements to the Stackdriver components.
      
      **What this PR does / why we need it**:
      This PR delivers a large set of improvements for both the Stackdriver Logging agent and the Stackdriver Metadata agent.
      
      **Release note**:
      ```release-note
      Metadata Agent Improvements
      Bump metadata agent version to 0.2-0.0.21-1.
      Expand the metadata agent's access to all API groups.
      Remove metadata agent config maps in favor of command line flags.
      Update the metadata agent's liveness probe to a new /healthz handler.
      
      Logging Agent Improvements
      Bump logging agent version to 0.2-1.5.33-1-k8s-1.
      Appropriately set log severity for k8s_container.
      Fix detect exceptions plugin to analyze message field instead of log field.
      Fix detect exceptions plugin to analyze streams based on local resource id.
      Disable the metadata agent for monitored resource construction in logging.
      Disable timestamp adjustment in logs to optimize performance.
      Reduce logging agent buffer chunk limit to 512k to optimize performance.
      ```
      51faf6eb
    • Kubernetes Submit Queue's avatar
      Merge pull request #66251 from p0lyn0mial/generate_register_file · c06e76ce
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 59030, 64666, 66251, 66485, 66813). 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>.
      
      register.go generator for external types
      
      **What this PR does / why we need it**: This pull brings a new generator that creates `register.go` file, initially only for the external types. The app takes only one argument `--input-dirs` and outputs `zz_generated.register.go` file in the same directory. The name of the generated file can be controlled by passing `output-file-base` flag.
      
      See: https://github.com/kubernetes/kubernetes/issues/65612
      
      **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**:
      
      Passing https://github.com/openshift-evangelists/crd-code-generation/blob/master/pkg/apis/example.com/v1/types.go  to register-gen produces the following output:
      
      
      ```
      /*
      Copyright The Kubernetes Authors.
      
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
      
          http://www.apache.org/licenses/LICENSE-2.0
      
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
      */
      
      // Code generated by ___debug_register_gen. DO NOT EDIT.
      
      package v1
      
      import (
              v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
              "k8s.io/apimachinery/pkg/runtime"
              "k8s.io/apimachinery/pkg/runtime/schema"
      )
      
      // GroupName specifies the group name used to register the objects.
      const GroupName = "example.com"
      
      // GroupVersion specifies the group and the version used to register the objects.
      var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1"}
      
      // SchemeGroupVersion is group version used to register these objects
      // Deprecated: use GroupName instead.
      var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
      
      // Resource takes an unqualified resource and returns a Group qualified GroupResource
      func Resource(resource string) schema.GroupResource {
              return SchemeGroupVersion.WithResource(resource).GroupResource()
      }
      
      var (
              // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
              SchemeBuilder      runtime.SchemeBuilder
              localSchemeBuilder = &SchemeBuilder
              // Depreciated: use Install instead
              AddToScheme = localSchemeBuilder.AddToScheme
              Install     = localSchemeBuilder.AddToScheme
      )
      
      func init() {
              // We only register manually written functions here. The registration of the
              // generated functions takes place in the generated files. The separation
              // makes the code compile even when the generated files are missing.
              localSchemeBuilder.Register(addKnownTypes)
      }
      
      // Adds the list of known types to Scheme.
      func addKnownTypes(scheme *runtime.Scheme) error {
              scheme.AddKnownTypes(SchemeGroupVersion,
                      &Database{},
                      &DatabaseList{},
              )
              // AddToGroupVersion allows the serialization of client types like ListOptions.
              v1.AddToGroupVersion(scheme, SchemeGroupVersion)
              return nil
      }
      ```
      
      
      **Release note**:
      
      ```
      NONE
      ```
      c06e76ce
    • Kubernetes Submit Queue's avatar
      Merge pull request #64666 from CaoShuFeng/admissionregistration_cleanup · 3ba90d4f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 59030, 64666, 66251, 66485, 66813). 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>.
      
      clean up empty dir for admissionregistration
      
      **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
      ```
      3ba90d4f
    • Kubernetes Submit Queue's avatar
      Merge pull request #59030 from flonn/fix_typo_help · 364ff39a
      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>.
      
      typo fix in 'kubectl run'´s help
      
      **What this PR does / why we need it**:
      fix typo in cmd help
      **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
      
      ```
      364ff39a
    • jennybuckley's avatar
      Support dry run in admission plugins · adafb136
      jennybuckley authored
      adafb136
    • Kubernetes Submit Queue's avatar
      Merge pull request #66692 from m1kola/66456_waitcmd__error_for_selectors · 55441873
      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>.
      
      Makes kubectl wait exit with status 1 and print an error message, if there is no resources matching selectors
      
      **What this PR does / why we need it**:
      
      It makes the `kubectl wait` command print an error message and exit with exit code 1, if there is no resource matching users's query. This can happen when user specifies selectors. Example:
      
      ```
      kubectl wait deployment -l app=something-that-does-not-exist --for condition=available --timeout=5s
      ```
      
      **Which issue(s) this PR fixes**:
      Fixes #66456
      
      **Special notes for your reviewer**:
      
      This is my first contribution into the project (except one line change in docs) and don't have much experience with Go. I learned a lot while working on this (about resource finders and the `Visitor` interface and it's implementations), but it is very likely that I'm doing something wrong :)
      
      I'm keen to continue contributing into the project (into the cli part for now), so I will really appreciate detailed feedback, if you have a chance to provide it (point me into a right direction and/or explain why it's not a good idea to do something in a certain way).
      
      Thanks!
      
      **Release note**:
      ```release-note
      kubectl: the wait command now prints an error message and exits with the code 1, if there is no resources matching selectors
      ```
      55441873