1. 14 Jul, 2016 1 commit
  2. 13 Jul, 2016 27 commits
    • k8s-merge-robot's avatar
      Merge pull request #25978 from thockin/dont-checkin-generated-code · eecbfb1a
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Don't check in generated code, part 1
      
      This PR is a first step towards not commiting generated files, which make up a huge portion of "needs rebase" errors.  It only handles deep-copy generation and conversion generation.  More will come later, if the model passes muster.
      
      This is a mega-PR.  Sorry.  It was necessary to do 2 generators to convince myself it worked, and the evolution of the techniques warranted multiple commits.  I have tried to keep the commits self-contained and reviewable.  
      
      A quick summary of the major points in the series:
      
      - Start by making everything call `make` rather than the various hack/* scripts.  The hack scripts still exist, but give a warning to use make instead, and then they do what they did before, so it should be compatible.
      
      - Move deepcopy generation into the Makefile, so it is done automatically
      
      - Move conversion generation into the Makefile, so it is done automatically
      
      - Optimize makefile for faster rebuilds
      
      - Make CI pass
      
      
      Net result: if you run "make", it will rebuild any deepcopy or conversion files it needs.  It takes a few seconds to figure out there's nothing to do, but it should be a net savings.  There is more to do, and we can follow this up with other generators being converted, some of which are MUCH slower than these 2.
      
      
      @wojtek-t @lavalamp @smarterclayton @bgrant0607 @mikedanese @madhusudancs 
      eecbfb1a
    • k8s-merge-robot's avatar
      Merge pull request #28874 from kevin-wangzefeng/fix-interpod-antiaffinity · ec47f5c9
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      check PodAntiAffinity even when pod has no AntiAffinity constraints
      
      Hard inter-pod anti-affinity is designed to be symmetric, in other word, the algorithm should check if AntiAffinity constraints from both the pod to be scheduled and pods already running are satisfied during scheduling.
      
      Current implementation skipped the checking when pod has no AntiAffinity constraints, ignored the anti-affinity constraints of existing pods , which is not correct. This PR is to fix it.
      ec47f5c9
    • Tim Hockin's avatar
      Make update-generated-runtime work · fef16dd5
      Tim Hockin authored
      fef16dd5
    • Tim Hockin's avatar
      Move make logic for generated files into a helper · 0fc46afd
      Tim Hockin authored
      This makes it a little easier to look at the main Makefile without getting
      overwhelmed by code-generation stuff.
      0fc46afd
    • Tim Hockin's avatar
      Add rules for all cmd/* subdirs · 6ee6cc84
      Tim Hockin authored
      This is sort of gravy.  There's no good way to do this for arbitrary
      directories because of the way Make works (we'd have to declare them all
      PHONY).
      
      If people hate using make directly we could wrap it in another level of
      indirection, but I didn't yet.  E.g.
      
        build/make-all.sh -> make -> make-rules/all.sh -> go install
      
      This would insulate people from 'make' atthe cost of custom build tools.  I
      prefer being able to say 'make' and having it just work.
      6ee6cc84
    • Tim Hockin's avatar
      Make debugging Makefile a bit easier · f0ef7268
      Tim Hockin authored
      f0ef7268
    • Tim Hockin's avatar
      make Jenkins pass · 6e516e1c
      Tim Hockin authored
      6e516e1c
    • Tim Hockin's avatar
      Document test procedures for Makefile · 23bbf477
      Tim Hockin authored
      23bbf477
    • Tim Hockin's avatar
      Run code-gen in a batch · 08546e50
      Tim Hockin authored
      This makes code generation MUCH MUCH faster.
      08546e50
    • Tim Hockin's avatar
      s/deep_copy/deepcopy/ · 9dd337d1
      Tim Hockin authored
      Just a naming nit that was too hard to fixup-and-rebase.
      9dd337d1
    • Tim Hockin's avatar
      Overhaul deps on generator tools · 1bd3918c
      Tim Hockin authored
      This forces a regeneration if the generation tools are rebuilt.
      
      Also clean up Makefile a bit.
      1bd3918c
    • Tim Hockin's avatar
      Fix Makefile deps to rebuild less often · a9f3ccda
      Tim Hockin authored
      This should only rebuild when ACTUALLY needed.
      a9f3ccda
    • Tim Hockin's avatar
      Make releases work · 9613e158
      Tim Hockin authored
      9613e158
    • Tim Hockin's avatar
      7e5b59b0
    • Tim Hockin's avatar
      Tighten up Makefile · 2a7b2fd3
      Tim Hockin authored
      Default SHELL and some other variables for max correctness.
      2a7b2fd3
    • Tim Hockin's avatar
      Don't check in generated conversion code · 9eb42ff1
      Tim Hockin authored
      Conversion is now generated by Makefile, on demand, rather than all at once.
      Manually verified no net change in generated code.
      9eb42ff1
    • Tim Hockin's avatar
      Add a clean_generated make rule · db42d52b
      Tim Hockin authored
      Easier to clean up the mess when needed.
      db42d52b
    • Tim Hockin's avatar
      Don't check in generated deep-copy code · 58441e87
      Tim Hockin authored
      This mostly takes the previously checked in files and removes them, and moves
      the generation to be on-demand instead of manual.  Manually verified no change
      in generated output.
      58441e87
    • Tim Hockin's avatar
      Link _output/bin/ to real binaries for this arch · 881e21c2
      Tim Hockin authored
      This makes followup commits easier wrt finding binaries during build.
      881e21c2
    • Tim Hockin's avatar
      Use make as the main build tool · faeef5c4
      Tim Hockin authored
      This allows us to start building real dependencies into Makefile.
      
      Leave old hack/* scripts in place but advise to use 'make'.  There are a few
      rules that call things like 'go run' or 'build/*' that I left as-is for now.
      faeef5c4
    • k8s-merge-robot's avatar
      Merge pull request #28679 from sttts/sttts-deepcopy-pointer-in · 708e753c
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Deepcopy: avoid struct copies and reflection Call
      
      - make signature of generated deepcopy methods symmetric with `in *type, out *type`, avoiding copies of big structs on the stack
      - switch to `in interface{}, out interface{}` which allows us to call them with without `reflect.Call`
      
      The first change reduces runtime of BenchmarkPodCopy-4 from `> 3500ns` to around `2300ns`.
      
      The second change reduces runtime to around `1900ns`.
      708e753c
    • k8s-merge-robot's avatar
      Merge pull request #28606 from dims/fix-issues-19636 · 47d06dd9
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Fix kubectl run to print object on dry run
      
      Originally Authored By tnachen in PR:
      https://github.com/kubernetes/kubernetes/pull/25842
      
      Fixes #19636
      47d06dd9
    • kevin-wangzefeng's avatar
      update inter-pod affinity predicates, check PodAntiAffinity even when pod has no… · ff6280fa
      kevin-wangzefeng authored
      update inter-pod affinity predicates, check PodAntiAffinity even when pod has no AntiAffinity constraints
      ff6280fa
    • k8s-merge-robot's avatar
      Merge pull request #27713 from kargakis/wait-for-synced-rs-in-recreate · 23f0edb8
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      controller: wait for synced old replica sets on Recreate
      
      Partially fixes https://github.com/kubernetes/kubernetes/issues/27362
      
      Any other work on it should be handled in the replica set level (and/or kubelet if it's required)
      
      @kubernetes/deployment PTAL
      23f0edb8
    • k8s-merge-robot's avatar
      Merge pull request #28677 from asalkeld/devel-e2e-doc · 92630e1a
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Fix some errors in the e2e doc and make it more consistent
      
      
      - "--tests" is not a valid argument
      - use --ginko-skip to exclude (not focus)
      - add "--check_node_count=false" to test against local cluster
      - always use "--" for long args (there was a mix of "-" and "--" and it was a bit confusing)
      92630e1a
    • k8s-merge-robot's avatar
      Merge pull request #28645 from timstclair/dev · aa9452d6
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Add development doc with go tips & tools
      
      Encourage knowledge sharing among Kubernetes developers!
      aa9452d6
    • k8s-merge-robot's avatar
      Merge pull request #28708 from euank/node-e2e-image-conf · 0cd93cfc
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      node_e2e: configure gce images via config file
      
      This file provides the abiliy to specify image project on a per-image
      basis and is more extensible for future changes.
      
      For backwards compatibility and local development convenience, the
      existing flags are kept and should work.
      
      The eventual goal is to be able to source some images, such as the CoreOS one (and possibly containervm one) from their upstream projects and do all new configuration changes via a cloud-init key added to the image config.
      
      This PR is a first step there. A following PR will add a config key of `cloud-init` or `user-data` and migrate the CoreOS e2e to use that.
      
      This motivation is driven by the fact that currently the changes needed for the CoreOS image can all be done quickly in cloud-init and this will make it much easier to update the image and ensure that changes are applied consistently.
      
      /cc @timstclair @vishh @yifan-gu @pwittrock 
      0cd93cfc
  3. 12 Jul, 2016 12 commits