Commit Graph

388 Commits (ce988c8d75054deea8715570c37b5bb898977c7a)

Author SHA1 Message Date
Eric Tune 733d1fce88 Add conversion functions.
This is needed for Job because it uses PodSpec and PodSpec
does not have auto-generatable conversion for some reason.

Copied pkg/apis/extensions/v1beta1/conversion.go, and removed
non-Job things.
2016-02-19 09:20:56 -08:00
Eric Tune 98a801a37b Created batch API group and copied Job there
Modeled after on first commit (2fbc5bb) of piosz:hpa-ga (#20501).
2016-02-19 09:20:56 -08:00
k8s-merge-robot 17325ef6ef Merge pull request #20501 from piosz/hpa-ga
Auto commit by PR queue bot
2016-02-18 06:52:39 -08:00
k8s-merge-robot 1a2f811a3b Merge pull request #20063 from mqliang/imageGC-config
Auto commit by PR queue bot
2016-02-17 06:16:45 -08:00
Madhusudan.C.S 688cae77cb Don't call DaemonSet and HPA type variables controller, it is just confusing to the reader.
This was likely due to a copy-paste replication controller validation code.
2016-02-15 12:52:41 -08:00
Piotr Szczesniak e96515f590 Autogenerated conversions, deep copies, types 2016-02-15 21:39:00 +01:00
Piotr Szczesniak 90c647eff9 API changes in HPA required for going to GA 2016-02-15 21:39:00 +01:00
Piotr Szczesniak 2fbc5bb767 Created autoscaling API group and copied HPA there 2016-02-15 21:39:00 +01:00
mqliang 641ba92aa3 move minGCAge to ImageGCPolicy and make it configurable 2016-02-15 22:54:54 +08:00
Paul Morie 8323bb1727 Regen for ConfigMap volume 2016-02-14 16:28:59 -05:00
k8s-merge-robot 44d12a1389 Merge pull request #20782 from nickschuch/readonly_container_2
Auto commit by PR queue bot
2016-02-14 13:18:24 -08:00
k8s-merge-robot ee33ed2cf5 Merge pull request #20981 from madhusudancs/labelselector-error-string-fix
Auto commit by PR queue bot
2016-02-14 03:14:46 -08:00
Nick Schuch 5d511aeb54 Adds ReadOnlyRootFilesystem support for containers 2016-02-14 15:39:51 +10:00
Jordan Liggitt dd5d98d80a regen codecs 2016-02-13 09:15:39 -05:00
k8s-merge-robot 14e9b3cff2 Merge pull request #21101 from madhusudancs/daemonset-dontprohibit-update
Auto commit by PR queue bot
2016-02-12 19:20:44 -08:00
Mike Danese 5516b8684f Merge pull request #20937 from madhusudancs/daemonset-update-type-revert
Revert DaemonSet update.
2016-02-12 10:36:04 -08:00
Madhusudan.C.S 8c558088ee Allow a DaemonSet pod template to be updated in storage.
This should allow users to update DaemonSet pods by manually deleting
the corresponding running pods. Users can use this mechanism for
DaemonSet updates until we implement Deployment style rolling update
for DaemonSet.
2016-02-11 16:07:32 -08:00
Mike Danese 33c4332b28 autogenerated 2016-02-11 13:14:47 -08:00
Mike Danese 31b8905da7 move controller manager to compoenent config 2016-02-11 13:13:03 -08:00
k8s-merge-robot f6ae6b47ae Merge pull request #20687 from vishh/systemd-support
Auto commit by PR queue bot
2016-02-11 13:06:29 -08:00
Vishnu kannan 575812787d Replace `--resource-container` and `--system-container` with
`--kubelet-cgroups` and `--system-cgroups` respectively.
Updated `--runtime-container` to `--runtime-cgroups`.
Cleaned up most of the kubelet code that consumes these flags to match
the flag name changes.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-10 17:33:28 -08:00
Chao Xu 1c84552757 generate the versioned clientset 2016-02-10 17:22:46 -08:00
Vishnu kannan 38efc837b9 Make container runtime's cgroup configurable.
Use the real cgroups for metrics generation.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-10 16:02:34 -08:00
Madhusudan.C.S ad9ba23995 Comment out DaemonSet update type fields and remove the code that depends on it.
Leaving the type fields as comments for reference and reminder. But
deleting the conversion, defaulting and validation code. They can
always be brough back from the previous PR once the types are
introduced. Because builds break without them anyway that serves as a
reminder, so there is no need to leave them commented out.
2016-02-10 15:44:01 -08:00
Mike Danese e0ab7f43e7 autogenerated 2016-02-10 11:41:05 -08:00
Mike Danese b3172a4ccf kubelet: add a pidfile 2016-02-10 11:38:50 -08:00
Madhusudan.C.S 525d7a7732 Fix the label selector to selector conversion error string.
The message as it is framed right now does not make any sense for the
end users of our system. It might even lead to confusion. So this is
attempt to make the error message less confusing.
2016-02-10 09:43:30 -08:00
k8s-merge-robot 41a98b43e4 Merge pull request #19840 from madhusudancs/replicaset-deployment
Auto commit by PR queue bot
2016-02-09 18:57:42 -08:00
Madhusudan.C.S e7a9f30936 Address review comments. 2016-02-09 15:50:01 -08:00
Prashanth Balasubramanian c3a3a2bacd Pipe hairpin-mode flag through kubelet, enable on soak. 2016-02-09 12:12:19 -08:00
Madhusudan.C.S f358402623 Auto-generated code. 2016-02-08 21:27:49 -08:00
Madhusudan.C.S ed7ad6dcf3 Make deployments work. 2016-02-08 21:27:49 -08:00
Madhusudan.C.S 518f08aa7c Move Deployments to ReplicaSets and switch the Deployment selector to the new LabelSelector.
Update the Deployments' API types, defaulting code, conversions, helpers
and validation to use ReplicaSets instead of ReplicationControllers and
LabelSelector instead of map[string]string for selectors.

Also update the Deployment controller, registry, kubectl subcommands,
client listers package and e2e tests to use ReplicaSets and
LabelSelector for Deployments.
2016-02-08 21:27:38 -08:00
Huamin Chen d7e4b826b9 support Azure File Service volume
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-02-09 01:07:12 +00:00
Jordan Liggitt 545f6be573 Regenerate types.go 2016-02-08 17:19:15 -05:00
k8s-merge-robot b32078d89b Merge pull request #20496 from matthewdupre/masquerade-config
Auto commit by PR queue bot
2016-02-08 10:49:20 -08:00
Paul Weil 619ccb7023 don't enable psp by default and fix comment 2016-02-08 08:56:52 -05:00
Matt Dupre 9925cddc11 Change iptables fwmark to use single configurable bit instead of whole mark space 2016-02-08 11:12:09 +00:00
k8s-merge-robot e76caf43aa Merge pull request #20703 from mwielgus/hpa-cm-validation
Auto commit by PR queue bot
2016-02-06 21:16:51 -08:00
k8s-merge-robot 3f1c99f013 Merge pull request #20515 from mikedanese/fix-proxy-mode
Auto commit by PR queue bot
2016-02-06 07:49:30 -08:00
k8s-merge-robot b45a94bc78 Merge pull request #20765 from janetkuo/remove-podtemplate-key
Auto commit by PR queue bot
2016-02-06 00:44:47 -08:00
k8s-merge-robot fcf9c4a1e4 Merge pull request #19741 from pwittrock/syncfsmetrics
Auto commit by PR queue bot
2016-02-05 17:54:22 -08:00
Mike Danese b1743a6887 this is a manual reversion of #20702
I can't revert with github which says "Sorry, this pull request couldn’t be
reverted automatically. It may have already been reverted, or the content may
have changed since it was merged."

Reverts commit: 0c191e787b
2016-02-05 16:34:02 -08:00
Janet Kuo 7e9fb97b7d Remove UniqueLabelKey from deployment spec 2016-02-05 16:21:44 -08:00
Phillip Wittrock 3de94cd23c Supply volume fs metrics to server/stats/handler.go
* Metrics will not be expose until they are hooked up to a handler
* Metrics are not cached and expose a dos vector, this must be fixed before release or the stats should not be exposed through an api endpoint
2016-02-05 16:00:24 -08:00
Daniel Smith 5fe99f44c8 Merge pull request #20542 from mikedanese/kube-proxy-defaulting
componentconfig: move kube proxy defaulting into the exetrnal api
2016-02-05 15:51:12 -08:00
k8s-merge-robot 6b20879a7f Merge pull request #20142 from bprashanth/ing_tls
Auto commit by PR queue bot
2016-02-05 15:07:09 -08:00
Daniel Smith 1c7b5e126a Merge pull request #20609 from erictune/add-api-package
Cleanup borrowed conversion functions.
2016-02-05 14:02:30 -08:00
Prashanth Balasubramanian c56bebf594 Basic TLS support. 2016-02-05 11:00:04 -08:00
Rudi Chiarito a2d1bb7acf Add httpHeaders to httpGet liveness probe
Also update existing documentation and try to steer users away from 'host'.
Add validation.
2016-02-05 11:20:04 -05:00
k8s-merge-robot 3cfb090939 Merge pull request #7893 from pweil-/security-policy
Auto commit by PR queue bot
2016-02-05 07:14:37 -08:00
k8s-merge-robot ae15a4437b Merge pull request #19944 from mwielgus/simple-cm
Auto commit by PR queue bot
2016-02-05 06:41:28 -08:00
Paul Weil 03261146b0 api 2016-02-05 08:45:50 -05:00
Eric Tune ff35d97663 Cleanup borrowed conversion functions.
In pkg/apis/extensions/v1beta1/conversion.go,
some conversion code was copied from the
legacy api because Pod conversions cannot be
automatically generated because of something
about deprecatedServiceAccount.

This PR fixes two problems due to that copying.

First, the copied code could drift from its source
To fix that, I replaced the Convert_api_ and Convert_v1
implementations with a call to the original function.
I left a wrapper in case something needed to have
a package-local function name.

Second, the copied Convert_* functions, were copied,
in a way that they refer to other conversion functions
that aren't in the current package.  This prevented
genconverion from working from a clean start
(no conversion_generated.go).  Perhaps the person
who wrote this in the first place had copied
the conversion_generated.go file from legacy,
so it worked.   So, I added the v1
package name to calls to Convert_* functions.
So, when someone Cargo-Cult copies the conversion.go
file, like I did, they now will not have to
wonder why genconversion complains about missing
Convert_ functions.

Deleted the conversion_generated.go and reran genconversion
and it worked, no diffs old vs new conversion_generated.go.
2016-02-05 05:42:47 -08:00
gmarek 0c191e787b Split controller flags between controllers 2016-02-05 12:17:51 +01:00
Marcin Wielgus bf0c881263 Set Docker custom metric label for cAdvisor if custom metric volume is mounted 2016-02-05 12:00:02 +01:00
Marcin Wielgus 9a74a60413 Validation of HPA custom metrics annotation 2016-02-05 11:31:51 +01:00
k8s-merge-robot ce6fd46637 Merge pull request #20539 from mikedanese/kube-scheduler-external
Auto commit by PR queue bot
2016-02-05 01:56:43 -08:00
Eric Tune fead374844 Regenerate types, conversions. 2016-02-04 13:46:34 -08:00
Eric Tune 6133cb1f21 Move extensions.LabelSelector to unversioned.
Move type LabelSelector and type LabelSelectorRequirement from pkg/apis/extensions
This avoids an import loop when Job (and later DaemonSet, Deployment, ReplicaSet)
are moved out of extensions to new api groups.

Also Move LabelSelectorAsSelector utility from pkg/apis/extensions/ to pkg/api/unversioned/
Also its test.
Also LabelSelectorOp* constants.
Also the pkg/apis/extensions/validation functions ValidateLabelSelectorRequirement and
ValidateLabelSelector move to pkg/api/unversioned

The related type in pkg/apis/extensions/v1beta1/ is staying there.  I might move
it in another PR if neccessary.
2016-02-04 13:46:34 -08:00
Saad Ali 0952dcd349 Merge pull request #20389 from mqliang/deployment-MinReadySeconds
Move MinReadySeconds out of RollingUpdateDeployment
2016-02-03 22:44:14 -08:00
Mike Danese ee4e60d78c componentconfig: move kube proxy defaulting into the exetrnal api 2016-02-03 11:04:24 -08:00
k8s-merge-robot a7ef693f84 Merge pull request #20464 from thockin/proxymode-iptables
Auto commit by PR queue bot
2016-02-03 00:17:38 -08:00
Mike Danese 097a1d6dd1 autogenerated 2016-02-02 23:17:21 -08:00
Mike Danese 7df86e1ecf create external api for scheduler config
move defaulting into external pacakge
2016-02-02 23:17:18 -08:00
mqliang c4a1ab42e3 Move MinReadySeconds out of RollingUpdateDeployment 2016-02-03 11:38:11 +08:00
Mike Danese 044b69cbda componentconfig: fix proxy mode set func 2016-02-02 13:31:49 -08:00
Tim Hockin 7ed83ad4f9 Make kube-proxy default to iptables (regression)
This was accidentally introduced as part of the component config changes.
2016-02-02 12:45:11 -08:00
k8s-merge-robot 71727385e8 Merge pull request #20069 from BugRoger/cephfs_subtree_mount_master
Auto commit by PR queue bot
2016-02-02 02:15:35 -08:00
Mike Danese c5ab2cae15 autogenerated 2016-02-01 16:01:19 -08:00
Michael Schmidt 92d814725b add generated code 2016-02-01 22:31:44 +01:00
Chao Xu 7722a50647 generate client for replicaset 2016-01-31 15:42:03 -08:00
Marcin 23e74368b9 HPA annotation structs for Custom Metrics 2016-01-31 17:27:03 +01:00
Janet Kuo 3396db9510 Add rollback subresource; add rollback logic to deployment controller 2016-01-30 16:00:34 -08:00
mqliang c5cda2012a cleanup-policy 2016-01-30 09:57:21 +08:00
k8s-merge-robot c3a9b77d41 Merge pull request #19669 from mikedanese/scheduler-config
Auto commit by PR queue bot
2016-01-29 15:44:00 -08:00
k8s-merge-robot 8b66e93127 Merge pull request #19510 from madhusudancs/daemonset-nonpointer-template
Auto commit by PR queue bot
2016-01-29 02:17:23 -08:00
Mike Danese bb108fb03c autogenerated 2016-01-29 00:00:59 -08:00
Mike Danese 126b1df879 Create componentconfig object for scheduler configuration.
Signed-off-by: Mike Danese <mikedanese@google.com>
2016-01-28 23:17:00 -08:00
Madhusudan.C.S c2fd8bd7c5 Auto-generated code. 2016-01-28 22:57:20 -08:00
Madhusudan.C.S 559bf168ff Fix tests. 2016-01-28 22:51:58 -08:00
Madhusudan.C.S 73fb6dca62 DaemonSetSpec.Template should not be a pointer.
Pod template for DaemonSets isn't optional, like Deployments and Jobs,
so the DaemonSetSpec.Template field should not be a pointer.
2016-01-28 22:51:58 -08:00
Mike Danese 3ebbeb3c8c autogenerated 2016-01-28 15:46:40 -08:00
Mike Danese 309eac5f7f update proxy server 2016-01-28 15:46:40 -08:00
Mike Danese 60c5db5e87 update api types 2016-01-28 15:46:40 -08:00
Paul Morie f2d1a20178 Regen for ConfigMap API move 2016-01-28 17:17:24 -05:00
Paul Morie 7be3bbb694 Remove old generated code for ConfigMap 2016-01-28 17:07:05 -05:00
Paul Morie 9030f16071 Move ConfigMap to main API 2016-01-28 17:07:05 -05:00
k8s-merge-robot bd7255a27e Merge pull request #18901 from kargakis/inert-deployments
Auto commit by PR queue bot
2016-01-27 05:14:38 -08:00
Michail Kargakis 06c0a4718a extensions: generated code for paused deployments 2016-01-26 18:40:05 +01:00
k8s-merge-robot 8c821700f3 Merge pull request #19389 from justinsb/internal_cidr
Auto commit by PR queue bot
2016-01-26 03:58:48 -08:00
Michail Kargakis 436d2677f9 extensions: support paused deployments
This commit adds support for paused deployments so a user can choose
when to run a deployment that exists in the system instead of having
the deployment controller automatically reconciling it after every
change or sync interval.
2016-01-26 12:42:26 +01:00
k8s-merge-robot a14d0fd641 Merge pull request #19382 from janetkuo/deployment-status
Auto commit by PR queue bot
2016-01-26 03:24:37 -08:00
k8s-merge-robot 88a72c2c9d Merge pull request #19938 from mikedanese/ipvalidate
Auto commit by PR queue bot
2016-01-25 21:09:51 -08:00
Janet Kuo 9739a67833 Deployment status: number of available/unavailable pods 2016-01-25 14:30:15 -08:00
k8s-merge-robot d7d601b2fc Merge pull request #18876 from erictune/dynamic-job
Auto commit by PR queue bot
2016-01-25 08:06:22 -08:00
Eric Tune 53ee76fe1a Support Work Queue jobs with variable parallelism
When job.spec.completions is nil, only
one task needs to succeed for the job to succeed,
and parallelism can be scaled freely during runtime.

Added tests.

Release Note:

This causes two minor changes to the API.

First, unset parallelism previously was defaulted to be
equal to completions.  Now it always defaults to 1 if unset.

Second, having parallelism=N and completions unset would previously
be defaulted to 1 completion and N parallelism.
(this is not something we expect people to do, though)
Now, no defaulting occurs in that case, and the job's
behavior is different (any completion causes success).
2016-01-22 14:57:51 -08:00
Clayton Coleman 3262d8efd8 GENERATED: all 2016-01-22 13:27:28 -05:00
Clayton Coleman 33085c0cf2 Update tests to handle codec changes 2016-01-22 13:27:26 -05:00
Clayton Coleman 4d127dc969 Initialize API servers with negotiated serializers
Pass down into the server initialization the necessary interface for
handling client/server content type negotiation. Add integration tests
for the negotiation.
2016-01-22 01:10:22 -05:00