Commit Graph

89 Commits (bc4b6ac397973bf7414bb7b672a9f939dbbb9112)

Author SHA1 Message Date
Jeff Grafton bc4b6ac397 Build release tarballs in bazel and add `make bazel-release` rule 2017-01-13 16:17:44 -08:00
Mike Danese 26c1cb82e7 make help should be bazel aware
currently it runs bazel build and test.
2017-01-06 14:56:01 -08:00
nikhiljindal 5424d50c03 Adding test-federation-cmd.sh to test kubectl with federation apiserver 2017-01-04 11:17:05 -08:00
spxtr 796e18f1c7 Add a build rule for the boilerplate unit test. 2017-01-01 22:54:32 -08:00
spxtr 1dbfaa8ef6 Add bazel-build and bazel-test to the Makefile. 2016-12-27 11:48:23 -08:00
Jeff Grafton 27d096d27d Rename build-tools/ back to build/ 2016-12-14 13:42:15 -08:00
xiangpengzhao a86697991f Add "make help" to list all make targets and help info 2016-12-05 02:00:46 -05:00
mdshuai 2189acdd4f [kubelet]update --cgroups-per-qos to --experimental-cgroups-per-qos 2016-11-15 15:55:47 +08:00
Kubernetes Submit Queue 649f243df0 Merge pull request #33819 from thockin/makefile-verify-generated
Automatic merge from submit-queue

Verify generated files

Fixes #33751 

Once I un-check-in generated files, this becomes moot again.
2016-11-06 15:23:06 -08:00
Kubernetes Submit Queue afa99c68b8 Merge pull request #35144 from pipejakob/generate-token
Automatic merge from submit-queue

New command: "kubeadm token generate"

As part of #33930, this PR adds a new top-level command to kubeadm to just generate a token for use with the init/join commands. Otherwise, users are left to either figure out how to generate a token on their own, or let `kubeadm init` generate a token, capture and parse the output, and then use that token for `kubeadm join`.

At this point, I was hoping for feedback on the CLI experience, and then I can add tests. I spoke with @mikedanese and he didn't like the original propose of `kubeadm util generate-token`, so here are the runners up:

```
$ kubeadm generate-token          # <--- current implementation
$ kubeadm generate token          # in case kubeadm might generate other things in the future?
$ kubeadm init --generate-token   # possibly as a subcommand of an existing one
```

Currently, the output is simply the token on one line without any padding/formatting:

```
$ kubeadm generate-token
1087fd.722b60cdd39b1a5f
```

CC: @kubernetes/sig-cluster-lifecycle 

**Release note**:

<!--  Steps to write your release note:
1. Use the release-note-* labels to set the release note state (if you have access) 
2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
-->

``` release-note
New kubeadm command: generate-token
```
2016-11-05 16:12:52 -07:00
Michail Kargakis 2bc5f45231 Add make update to update most generated stuff 2016-11-03 14:52:06 +01:00
Tim Hockin e93bbed8d9 Verify generated files 2016-11-01 22:10:25 -07:00
Jacob Beacham cf6b6778dc Adding CLI tests for kubeadm. 2016-10-31 11:12:51 -07:00
Mike Danese 27116c6818 rename build/ to build-tools/ 2016-10-24 14:41:56 -07:00
Paul Morie 3539993ee0 Make node E2E tests more transparent 2016-09-20 21:55:41 -04:00
Vish Kannan a1fe3adbc7 Revert "Revert "[kubelet] Fix oom-score-adj policy in kubelet"" 2016-09-16 16:32:58 -07:00
Vish Kannan 492ca3bc9c Revert "[kubelet] Fix oom-score-adj policy in kubelet" 2016-09-15 19:28:59 -07:00
Vishnu kannan e4acad7afb Fix oom-score-adj policy in kubelet.
Docker daemon and kubelet needs to be protected by setting oom-score-adj to -999.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-09-14 11:56:10 -07:00
mbohlool da4f824265 Don't remvove generated files in staging folder 2016-09-12 18:47:03 -07:00
deads2k 5c9df6655c choose a particular directory test-integration 2016-08-26 12:33:06 -04:00
Tim Hockin af13e1d325 Error if someone uses the sub-makefile directly 2016-08-22 15:26:08 -07:00
Marie Shaw d69252cbc2 Add GUBERNATOR flag for remote node e2e tests to produce gubernator link 2016-08-16 17:10:59 -07:00
Tim Hockin 1bb1a3b58c Small Makefile cleanup on build flags
Also add a TODO for myself.
2016-08-05 09:14:31 -07:00
Tim St. Clair 9abdf719b8
Add a verbosity concept to kubernetes scripts
The KUBE_VERBOSE environment variable sets the verbosity level to
use. Log messages can specify a verbosity by setting the V
variable. e.g.

    V=2 kube::log::info foo bar

Would only print "foo bar" if $KUBE_VERBOSE >= 2.
2016-08-04 22:01:22 -07:00
Kubernetes Submit Queue 5841f6e164 Merge pull request #29795 from xiangpengzhao/fix-makefile-cleanup
Automatic merge from submit-queue

Makefile cleanup

Keep the same style for each PHONY and rule.

cc @thockin
2016-08-04 09:37:25 -07:00
k8s-merge-robot ca7ad6896b Merge pull request #29185 from soltysh/make_verify
Automatic merge from submit-queue

Fix make verify

@thockin this fixes `make verify` which was previously failing due to undefined `BRANCH` and `VERBOSE` variables, ptal
2016-08-02 01:53:44 -07:00
xiangpengzhao aa47880db3 Makefile cleanup 2016-07-29 15:01:45 -04:00
xiangpengzhao 6ad631b278 Add rules for all directories in plugin/cmd/ 2016-07-29 02:57:45 -04:00
xiangpengzhao 5f66662cf3 Add rules for all directories in federation/cmd/ 2016-07-25 22:45:33 -04:00
Vishnu kannan d31608fcc8 Make it possible to run node e2e with GCI via make
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-07-25 12:21:37 -07:00
Maciej Szulik 2a2b46a105 Fix make verify 2016-07-25 15:34:00 +02:00
k8s-merge-robot 46e3611502 Merge pull request #29320 from thockin/makefile-fixes-and-speed
Automatic merge from submit-queue

Makefile fixes and speed

A few fixes that, together, make the 'make' experience smoother and more seamless.
    * `make clean all` works (@soltysh)
    * `make clean` does no spend 5 seconds loading deps just to remove them
    * deps building is faster

Fixes #28890
Ref #8830
2016-07-22 06:40:35 -07:00
Tim Hockin 5315fd6786 Make 'make clean' not depend on genfiles metadata
Previously even 'make clean' would first produce dependency information (slow)
and sinclude all the metadata, possibly restarting the make, before removing
the things it just did.

Now dependencies are only processed when something explicitly depends on them,
by calling 'make' on the rules around generated files, rather than sincluding
them.

Net result: make clean is faster and safer.  Additionally, bash tab-completion
for 'make' does not run the slow 'find' any more.
2016-07-21 09:31:33 -07:00
k8s-merge-robot 13b93ce656 Merge pull request #28363 from mikebrow/enable-debug-build-options
Automatic merge from submit-queue

adds source debug build options

See issue & discussion here: #28227

Enables source debugging the Kubernetes binaries with tools like delve by providing the user with the ability to provide debug build options to the glang compiler.

Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2016-07-20 21:48:27 -07:00
Tim Hockin 5930c57378 Remove Makefile undefined variables logic
It didn't do what I thought it did and was just noise.  Specifically, it only
kicks in for recursive `make` invocations.
2016-07-20 15:23:46 -07:00
Tim Hockin 8fb8f3d41b Cleanup unneeded deps on generated_files 2016-07-20 15:23:45 -07:00
Bryan Boreham b3b30ff01f Make the FOCUS= example do something
Since several of the test suite descriptions spell "Kubernetes" with a
capital K, but none match with a lower-case k.
2016-07-20 09:01:24 +01:00
k8s-merge-robot e576a2f760 Merge pull request #29017 from thockin/undelete-generated-files
Automatic merge from submit-queue

Undelete generated files

There's been enough people broken by not committing generated code, that we
should undo that until we have a proper client that is `go get` compatible.

This is temporary.

Fixes #28920
2016-07-15 16:27:14 -07:00
Tim Hockin ab29a25591 Prep to re-commit generated files 2016-07-15 10:27:14 -07:00
Buddha Prakash 5000e74664 Inject top level QoS cgroup creation in the Kubelet 2016-07-15 10:02:22 -07:00
Mike Brown 6ca905ac37 adds source debug build options
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2016-07-13 11:01:30 -05:00
Tim Hockin 0fc46afda6 Move make logic for generated files into a helper
This makes it a little easier to look at the main Makefile without getting
overwhelmed by code-generation stuff.
2016-07-12 21:52:54 -07:00
Tim Hockin 6ee6cc843a Add rules for all cmd/* subdirs
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.
2016-07-12 21:52:54 -07:00
Tim Hockin f0ef726813 Make debugging Makefile a bit easier 2016-07-12 21:52:54 -07:00
Tim Hockin 6e516e1c8a make Jenkins pass 2016-07-12 21:52:54 -07:00
Tim Hockin 23bbf477f8 Document test procedures for Makefile 2016-07-12 21:52:54 -07:00
Tim Hockin 08546e5016 Run code-gen in a batch
This makes code generation MUCH MUCH faster.
2016-07-12 21:52:54 -07:00
Tim Hockin 9dd337d119 s/deep_copy/deepcopy/
Just a naming nit that was too hard to fixup-and-rebase.
2016-07-12 21:52:54 -07:00
Tim Hockin 1bd3918c15 Overhaul deps on generator tools
This forces a regeneration if the generation tools are rebuilt.

Also clean up Makefile a bit.
2016-07-12 21:52:54 -07:00
Tim Hockin a9f3ccdaa4 Fix Makefile deps to rebuild less often
This should only rebuild when ACTUALLY needed.
2016-07-12 21:52:54 -07:00