Commit Graph

398 Commits

Author SHA1 Message Date
Clayton Coleman
e9e02bdd50 Review comments 2015-11-26 11:53:38 -05:00
Clayton Coleman
9d19238f6c Fix tests to pass with changed external types 2015-11-26 11:53:37 -05:00
Clayton Coleman
af7e7f146d Generated code 2015-11-26 11:53:36 -05:00
Clayton Coleman
1d592e4c28 Unversioned types should not use ambiguous go-int
All external types that are not int64 are now marked as int32,
including
IntOrString. Prober is now int32 (43 years should be enough of an initial
probe time for anyone).

Did not change the metadata fields for now.
2015-11-26 11:45:25 -05:00
k8s-merge-robot
fc694ea787 Merge pull request #16725 from wojtek-t/update_ugorji
Auto commit by PR queue bot
2015-11-25 22:14:20 -08:00
deads2k
8679925847 update RESTMapping API to be properly typed 2015-11-25 14:02:37 -05:00
deads2k
ed95a6d77f update scheme to use GroupVersion 2015-11-25 12:15:48 -05:00
deads2k
68b0572974 internal versions 2015-11-25 12:14:06 -05:00
Wojciech Tyczynski
58062bc347 Regenerate files 2015-11-25 12:34:05 +01:00
Michail Kargakis
99fc35880b kubectl: Support scaling deployments
This commit adds support for using kubectl scale to scale deployments. Makes use of the
deployments/scale endpoint instead of updating deployment.spec.replicas directly.
2015-11-25 11:26:40 +01:00
k8s-merge-robot
3e56ce6490 Merge pull request #17327 from deads2k/gv-restmapper
Auto commit by PR queue bot
2015-11-24 19:08:49 -08:00
k8s-merge-robot
431c67710b Merge pull request #17247 from thockin/airplane_validation_pt3
Auto commit by PR queue bot
2015-11-24 18:37:09 -08:00
deads2k
c40dd0335a make DefaultRESTMapper methods type correct 2015-11-24 14:17:37 -05:00
Janet Kuo
c0c02c95c4 kubectl run to produce deployment and job 2015-11-24 10:21:31 -08:00
deads2k
5077e9b644 make register.GroupVersion use GroupVersion 2015-11-24 09:45:36 -05:00
Mike Danese
65b8d43543 remove code that puts kube-proxy into a special cgroup since it runs in a container now 2015-11-23 10:20:58 -08:00
Tim Hockin
ceee678b29 Rename validation 'New' funcs 2015-11-23 10:01:43 -08:00
Tim Hockin
682f2a5a79 Stronger typing for validation ErrorList 2015-11-23 10:01:43 -08:00
Tim Hockin
f8ad75df44 Clarify invalid vs not-supported 2015-11-23 08:07:17 -08:00
Tim Hockin
48b49a5cae s/ValidationErrorList/ErrorList/ 2015-11-22 20:13:20 -08:00
Tim Hockin
d64d1fbb3d s/ValidationError/Error/ 2015-11-22 20:12:46 -08:00
Tim Hockin
0ff66da346 Move fielderrors into validation 2015-11-22 20:12:20 -08:00
Wojciech Tyczynski
8594c20333 Merge pull request #16677 from DirectXMan12/feature/add-scale-validator
[WIP] Add Validators for Scale Objects
2015-11-20 12:03:45 +01:00
Solly Ross
e5ef9e1406 Add Validators for Scale Objects
This commit introduces a validator for use with Scale updates.
The validator checks that we have > 0 replica count, as well
as the normal ObjectMeta checks (some of which have to be
faked since they don't exist on the Scale object).
2015-11-18 13:53:56 -05:00
k8s-merge-robot
cd236c32c8 Merge pull request #17203 from brendandburns/fix3
Auto commit by PR queue bot
2015-11-17 07:08:42 -08:00
k8s-merge-robot
125ab2cad1 Merge pull request #17232 from deads2k/gv-restmapping-2
Auto commit by PR queue bot
2015-11-17 03:33:24 -08:00
Tim Hockin
ba383bcfeb Refactor IntOrString into a new pkg
pkg/util/intstr is a cleaner encapsulation for this type and supporting
functions.  No behavioral change.
2015-11-16 10:57:52 -08:00
deads2k
303bcad398 use groupversion in RESTMapping 2015-11-16 09:22:11 -05:00
Brendan Burns
749d5932f4 Switch to using the real metadata validate function 2015-11-13 15:29:34 -08:00
Mike Danese
066d13d047 autogenerated 2015-11-13 10:37:46 -08:00
Mike Danese
7a7f31ead1 move daemonset to generalized label selector 2015-11-13 10:31:50 -08:00
eulerzgy
501c2825cf Make order of fun consistent 2015-11-10 17:43:54 +08:00
Tim St. Clair
1e88a682da Add liveness/readiness probe parameters
- PeriodSeconds - How often to probe
- SuccessThreshold - Number of successful probes to go from failure to success state
- FailureThreshold - Number of failing probes to go from success to failure state

This commit includes to changes in behavior:

1. InitialDelaySeconds now defaults to 10 seconds, rather than the
kubelet sync interval (although that also defaults to 10 seconds).
2. Prober only retries on probe error, not failure. To compensate, the
default FailureThreshold is set to the maxRetries, 3.
2015-11-06 10:46:40 -08:00
Jordan Liggitt
b3157d1445 Ensure HPA has valid resource/name/subresource, validate path segments 2015-11-03 14:46:17 -05:00
deads2k
fd1c8e096a eliminate cross-namespace HPA escalation attack 2015-11-03 08:05:26 -05:00
k8s-merge-robot
f371b3d891 Merge pull request #16621 from timstclair/metrics-lite
Auto commit by PR queue bot
2015-11-03 02:13:19 -08:00
k8s-merge-robot
990c0184be Merge pull request #16330 from mikedanese/deploy-ptr
Auto commit by PR queue bot
2015-11-02 20:41:34 -08:00
Tim St. Clair
5cd5b80f9e Set up new "metrics" API group.
This commit only adds 2 placeholder structs to the API, for the purposes
of separating the API group setup from the API discussion.
2015-11-02 09:49:02 -08:00
Mike Danese
67f46aa1f1 autogenerated 2015-10-31 12:26:54 -07:00
Mike Danese
9bdb860eeb add apigroup installer and tests 2015-10-31 11:42:38 -07:00
Mike Danese
82111a7cb5 add component config api group 2015-10-31 11:42:38 -07:00
Mike Danese
6bbc2448c9 autogenerated 2015-10-28 00:13:40 -07:00
Mike Danese
b0a41108af move deployment PodTemplate to be not a pointer 2015-10-28 00:13:40 -07:00
k8s-merge-robot
fea0a7d753 Merge pull request #15850 from mqliang/refactorValidation
Auto commit by PR queue bot
2015-10-25 05:42:49 -07:00
mqliang
57faaf4f96 refactor validation.go to avoid duplicating 2015-10-23 14:23:55 +08:00
Paul Morie
3cd12f5e05 FSGroup implementation 2015-10-22 16:40:59 -04:00
Paul Morie
393e2bc019 Inline some SecurityContext fields into PodSecurityContext 2015-10-21 19:01:17 -04:00
Sami Wagiaalla
030f882f06 Add Support for supplemental groups 2015-10-20 12:44:32 -04:00
Mike Danese
ac5524d84d Merge pull request #14496 from kargakis/deep-copies-fix
deep-copies: Structs cannot be nil
2015-10-19 10:28:55 -07:00
k8s-merge-robot
3ee1c58756 Merge pull request #15773 from mqliang/BE1-ErrMsg
Auto commit by PR queue bot
2015-10-19 00:37:19 -07:00
Clayton Coleman
e929baf91a Support stdinOnce, which allows run-once STDIN injection
This allows containers to wait for input before startup by listening
on STDIN, and after STDIN is closed, continue running. Matches the
Docker syntax.
2015-10-16 20:33:50 -04:00
k8s-merge-robot
35e4c64034 Merge pull request #15646 from mikedanese/ds
Auto commit by PR queue bot
2015-10-16 12:37:09 -07:00
mqliang
b6f19b140e fix validation for HorizontalPodAutoscalerSpec 2015-10-16 18:32:57 +08:00
Wojciech Tyczynski
d51965bf00 Autogenerate files. 2015-10-16 10:20:02 +02:00
Jerzy Szczepkowski
df732f061a HorizontalPodAutoscaler API: removal of ResourceConsumption target, introduction of CPU request utilization & other cleanups. 2015-10-16 07:15:50 +02:00
Mike Danese
5f55be5dc1 autogenerated api changes 2015-10-15 07:42:57 -07:00
Mike Danese
29c50cdc1a plumb PodSelector through the api 2015-10-15 07:42:57 -07:00
k8s-merge-robot
351cc2040e Merge pull request #15491 from derekwaynecarr/ingress_status
Auto commit by PR queue bot
2015-10-15 06:04:38 -07:00
k8s-merge-robot
081f05c207 Merge pull request #14575 from soltysh/jobs_podtemplate_not_pointer
Auto commit by PR queue bot
2015-10-15 03:28:19 -07:00
Prashanth Balasubramanian
5ab8d1e9ba Ingress scrub 2015-10-14 14:24:25 -07:00
derekwaynecarr
eae56c3b2d Add status subresource to Ingress 2015-10-14 14:36:29 -04:00
Mike Danese
94f793d10b use correct function to validate daemonset name 2015-10-14 10:41:08 -07:00
Maciej Szulik
98fa29adfd Make PodTemplateSpec for Job not a pointer, since it's a required field 2015-10-14 11:37:11 +02:00
Dawn Chen
593878f1d2 Merge pull request #15350 from mikedanese/gls-api
add generalized label selector to the experimental API
2015-10-12 16:24:21 -07:00
Dawn Chen
00eb2e7bfc Merge pull request #15267 from nikhiljindal/deploymentRCSelector
Deployment: Fixing the selector for new RC created by deployment
2015-10-12 14:40:30 -07:00
Mike Danese
3645d2f02b add generalized label selector to the experimental API 2015-10-12 14:03:08 -07:00
nikhiljindal
0829bcc8fc Defaulting deployment selector and label 2015-10-12 11:00:29 -07:00
derekwaynecarr
3c012db30f Add status subresource to HorizontalPodAutoscaler 2015-10-12 11:27:56 -04:00
kargakis
ef36b3e4f6 deep-copies: Structs cannot be nil 2015-10-12 15:21:30 +02:00
Chao Xu
7c9f4cc42f experimental. -> extensions. 2015-10-09 15:49:10 -07:00
Chao Xu
2816eb0f8a run update-generated-conversions 2015-10-09 15:42:00 -07:00
Chao Xu
4b7344919b manual fix package name 2015-10-09 15:41:29 -07:00
Chao Xu
3b178542b6 manual fix of v1beta1/conversions.go 2015-10-09 15:36:08 -07:00
Chao Xu
c9ad3e20b5 _experimental_ -> _extenstions_ 2015-10-09 15:17:38 -07:00
Chao Xu
80f213c376 "experimental" -> "extensions" 2015-10-09 15:14:03 -07:00
Chao Xu
138eeaef8c v1alpa1->v1beta1 2015-10-09 15:11:01 -07:00
Chao Xu
347d53ff2e v1alpa1->v1beta1 2015-10-09 15:06:28 -07:00
Chao Xu
67f316dd19 apis/experimental->apis/extensions 2015-10-09 15:04:41 -07:00
Chao Xu
0b7e3c7dd1 experimental/v1alpha1->extensions/v1beta1 2015-10-09 15:01:33 -07:00
Chao Xu
983f056514 move folders 2015-10-09 14:57:44 -07:00
k8s-merge-robot
86fdc3f85c Merge pull request #15240 from mikedanese/job-fix-1
Auto commit by PR queue bot
2015-10-08 16:58:06 -07:00
k8s-merge-robot
79b70df747 Merge pull request #15273 from nikhiljindal/deploymentAPI
Auto commit by PR queue bot
2015-10-08 16:28:53 -07:00
nikhiljindal
119150fd33 Updating API comments 2015-10-08 13:55:45 -07:00
k8s-merge-robot
8982776b54 Merge pull request #15237 from mikedanese/ds-bug-3
Auto commit by PR queue bot
2015-10-08 10:50:59 -07:00
Mike Danese
73f7242027 rename JobStatus.Unsuccessful => JobStatus.Failed, JobStatus.Successful => JobStatus.Succeeded 2015-10-08 10:41:22 -07:00
Piotr Szczesniak
dcfc63e181 Merge pull request #15133 from mqliang/ErrMsg
Use string constant instead of duplicating
2015-10-08 11:41:19 +02:00
Mike Danese
e5fe0c0c6e revise meaning of DaemonsSpecStatus.CurrentNumberScheduled 2015-10-07 14:29:34 -07:00
Mike Danese
0d9d81ff57 fix master swagger spec 2015-10-07 10:23:22 -07:00
Derek Carr
87fe1f4af8 Merge pull request #13939 from pmorie/pod-sc-minimal
Add PodSecurityContext and backward compatibility tests
2015-10-07 09:56:58 -04:00
Marcin Wielgus
b9f13ded6f Experimental Cluster Autoscaler configuration object 2015-10-07 12:01:20 +02:00
mqliang
3c15fc0901 use string constant instead of duplicating 2015-10-06 10:49:17 +08:00
Paul Morie
227dd82119 Add PodSecurityContext and backward compatibility tests 2015-10-05 21:05:27 -04:00
k8s-merge-robot
0291668748 Merge pull request #14761 from mikedanese/job-doc-fix
Auto commit by PR queue bot
2015-10-02 18:08:14 -07:00
Tim Hockin
6260759c51 Merge pull request #14328 from agonzalezro/flocker
Add flocker volume plugin
2015-10-02 16:02:18 -07:00
k8s-merge-robot
e330b1197e Merge pull request #14459 from bprashanth/l7_ingress_resource_refactor
Auto commit by PR queue bot
2015-10-02 10:20:48 -07:00
Álex González
fa39c2b032 Add flocker volume plugin
Flocker [1] is an open-source container data volume manager for
Dockerized applications.

This PR adds a volume plugin for Flocker.
The plugin interfaces the Flocker Control Service REST API [2] to
attachment attach the volume to the pod.

Each kubelet host should run Flocker agents (Container Agent and Dataset
Agent).

The kubelet will also require environment variables that contain the
host and port of the Flocker Control Service. (see Flocker architecture
[3] for more).

- `FLOCKER_CONTROL_SERVICE_HOST`
- `FLOCKER_CONTROL_SERVICE_PORT`

The contribution introduces a new 'flocker' volume type to the API with
fields:

- `datasetName`: which indicates the name of the dataset in Flocker
  added to metadata;
- `size`: a human-readable number that indicates the maximum size of the
  requested dataset.

Full documentation can be found docs/user-guide/volumes.md and examples
can be found at the examples/ folder

[1] https://clusterhq.com/flocker/introduction/
[2] https://docs.clusterhq.com/en/1.3.1/reference/api.html
[3] https://docs.clusterhq.com/en/1.3.1/concepts/architecture.html
2015-10-01 01:10:00 +01:00
Prashanth Balasubramanian
9779bf68ef Validation 2015-09-29 18:51:24 -07:00
Prashanth Balasubramanian
16921f961a Ingress registry 2015-09-29 18:51:24 -07:00
Prashanth Balasubramanian
20a8caa369 Ingress V0.2 boilerplate 2015-09-29 18:51:24 -07:00
Prashanth Balasubramanian
707b1f72a5 Ingress V0.2 2015-09-29 18:51:24 -07:00
Mike Danese
076d2de3c6 make jobstatus documenation more accurate 2015-09-29 11:41:52 -07:00
Jerzy Szczepkowski
a5194c5ff4 HorizontalPodAutoscaler.Status kept by value, not by pointer.
HorizontalPodAutoscaler.Status kept by value, not by pointer. Fixes #14567.
2015-09-29 14:25:46 +02:00
Brian Grant
e3abcf7198 Merge pull request #14535 from derekwaynecarr/daemon_sets_status
DaemonSets adds a Status subresource
2015-09-25 13:30:55 -07:00
Brian Grant
51a3b80b99 Merge pull request #13372 from thockin/strict-compat-external-ip
easier auto-conversion, strict compat with deprecatedPublicIPs
2015-09-25 11:10:28 -07:00
derekwaynecarr
aead9d3291 DaemonSets adds a Status subresource 2015-09-25 12:13:54 -04:00
Eric Tune
bf9e93250e Job and DaemonSet documentation. 2015-09-24 17:51:25 -07:00
Tim Hockin
fd91d3f0ec Make patch-up conversions simpler
Rather than an "all or nothing" approach to defining a custom conversion
function (which seems destined to cause problems eventually), this is an
attempt to make it possible to call the auto-generated code and then "fix it
up".

Specifically, consider you have a fooBar struct.  If you don't define a
conversion for FooBar, you will get a generated function like:
    convert_v1_FooBar_To_api_FooBar()

Before this PR, if you define your own conversion function, you get no
generated function.  After this PR you get:
    autoconvert_v1_FooBar_To_api_FooBar()
...which you can call yourself in your custom function.
2015-09-24 17:21:07 -07:00
Chao Xu
ae1293418b move experimental/v1 to experimental/v1alpha1;
use "group/version" in many places where used to expect "version" only.
2015-09-24 15:32:11 -07:00
Eric Tune
a518a27354 Merge pull request #14417 from soltysh/issue14385
Issue 14385: job's parallelism defaults to completions.
2015-09-24 14:25:22 -07:00
Maciej Szulik
a984eb3760 Issue 14385: job's parallelism defaults to completions. 2015-09-23 13:25:58 +02:00
Eric Tune
95a44be2ef Job status updates.
Added status REST storage.
Added validation for Status Updates.
Changed job controller to update status rather than just job
(which ignores status updates).
2015-09-22 11:39:35 -07:00
k8s-merge-robot
6c30a0e170 Merge pull request #13955 from caesarxuchao/API-discovery
Auto commit by PR queue bot
2015-09-21 14:01:36 -07:00
k8s-merge-robot
98ed2ca28a Merge pull request #14267 from soltysh/job_defaults_fix
Auto commit by PR queue bot
2015-09-21 12:41:47 -07:00
Chao Xu
1278771b34 let apiserver support api discovery 2015-09-21 12:20:24 -07:00
k8s-merge-robot
843134885e Merge pull request #12470 from simon3z/add-host-ipc
Auto commit by PR queue bot
2015-09-21 09:15:01 -07:00
Maciej Szulik
5d3b4de435 Extended defaults for jobs.
Currently jobs will only default completions and parallelism. This adds
copying labels map for pod's template as selectors, similarly how it's done
in replication controller.
2015-09-21 17:18:32 +02:00
k8s-merge-robot
6dad530a1f Merge pull request #12599 from rootfs/fc_volume
Auto commit by PR queue bot
2015-09-20 17:20:26 -07:00
k8s-merge-robot
c2f76e4ce7 Merge pull request #14106 from jszczepkowski/hpa-api
Auto commit by PR queue bot
2015-09-19 22:23:06 -07:00
Eric Paris
c02d5117af Merge pull request #14229 from gmarek/update-swagger-docs
Fix swagger docs
2015-09-19 17:34:39 -05:00
gmarek
a5de60f985 Fix swagger docs 2015-09-19 20:16:45 +02:00
Jian Huang
44477b246b Add Ingress API resource type - auto generated files 2015-09-19 17:40:52 +08:00
Jian Huang
a5e23ef5ca Add Ingress API Resource Type for L7 loadbalancing 2015-09-19 17:40:49 +08:00
Huamin Chen
ed9a1bbd3a support fibre channel volume
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-18 19:15:31 -04:00
Tim Hockin
e07eb387bb Merge pull request #14142 from mikedanese/job-update
Various fixes to job
2015-09-18 14:44:41 -07:00
k8s-merge-robot
9537c43a62 Merge pull request #14092 from nikhiljindal/deploymentAPI
Auto commit by PR queue bot
2015-09-18 13:03:34 -07:00
Federico Simoncelli
f21d9ac9e4 Support pods with containers using host ipc
Add a HostIPC field to the Pod Spec to create containers sharing
the same ipc of the host.

This feature must be explicitly enabled in apiserver using the
option host-ipc-sources.

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-09-18 21:13:39 +02:00
Mike Danese
9d1838fb64 only allow updates of parrallelism in jobspec 2015-09-18 11:48:47 -07:00
Daniel Martí
586cb9126a Move pkg/util.Time to pkg/api/unversioned.Time
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Kris
c5f22a025a Regenerating everything 2015-09-17 14:09:53 -07:00
Kris
f4ad00d9ae Moving Status object to a common package 2015-09-17 14:09:53 -07:00
k8s-merge-robot
36eb7372c8 Merge pull request #13259 from soltysh/job_controller_logic
Auto commit by PR queue bot
2015-09-17 13:22:34 -07:00
Jerzy Szczepkowski
7fcf7f1177 Cleanups in HorizontalPodAutoscaler API.
Cleanups in HorizontalPodAutoscaler API: renamed Min/MaxCount to Min/MaxReplicas as Replicas is the proper name used in other objects.
2015-09-17 14:16:43 +02:00
k8s-merge-robot
e83bf49f86 Merge pull request #13957 from ghodss/rename-deployment-structs
Auto commit by PR queue bot
2015-09-17 04:23:13 -07:00
Maciej Szulik
8cefa2ee55 Job controller logic 2015-09-17 10:05:33 +02:00
k8s-merge-robot
445fde3dc5 Merge pull request #13447 from pweil-/pid-mode
Auto commit by PR queue bot
2015-09-16 23:34:35 -07:00
nikhiljindal
c56a415bb7 Updating MaxSurge and unavailable to be on desired replicas 2015-09-16 17:33:47 -07:00
liguangbo
4df68f03a3 change iff to if and only if to improve annotation readability 2015-09-16 08:29:36 +00:00
Sam Ghods
cc6754f8d9 Rename Deployment API structs 2015-09-15 14:46:41 -07:00
Paul Weil
ed80c2b940 pid mode 2015-09-15 13:51:44 -04:00
k8s-merge-robot
8189460809 Merge pull request #13844 from tummychow/label-deps-2
Auto commit by PR queue bot
2015-09-14 12:56:24 -07:00
tummychow
a21c52a766 Move util/validation files to their own package 2015-09-13 00:46:52 -07:00
Chao Xu
ca803fc504 address lavalamp's comment on using testapi instead of latest, and adding comments for public method. 2015-09-12 15:48:44 -07:00
Chao Xu
f2e12b765b move things around because we move expapi to apis/experimental now 2015-09-12 15:27:21 -07:00
Chao Xu
fbde485548 remove pkg/expapi/testapi/testapi.go 2015-09-11 17:33:54 -07:00
Chao Xu
dd6c121d7f massive changes 2015-09-11 17:31:47 -07:00
Daniel Smith
ccd9e3e247 Run all automated tools 2015-09-11 16:11:08 -07:00
Daniel Smith
7a0fc719fb Fix tooling for apis/experimental's new home
* fix package name
* add a script to auto-gofmt everything, useful after grep/sed incantations
* update conversion/deep copy generation
* doc update
2015-09-11 16:06:10 -07:00
Daniel Smith
4c2adabf42 move; sed replace 2015-09-11 16:03:22 -07:00