Commit Graph

529 Commits (7a725418af4661067b56506faabc2d44c6d7703a)

Author SHA1 Message Date
Jordan Liggitt b3157d1445 Ensure HPA has valid resource/name/subresource, validate path segments 2015-11-03 14:46:17 -05:00
feihujiang f7bfb04665 Add a comment that not return an error for rootscoped resources with namesapce 2015-11-03 11:00:01 +08:00
mqliang ce384e62ed fix conflict after rebase 2015-10-23 14:28:09 +08:00
mqliang 57faaf4f96 refactor validation.go to avoid duplicating 2015-10-23 14:23:55 +08:00
Filip Grzadkowski 8e07d2fc93 Merge pull request #15975 from liggitt/validate_before_create
Validate ObjectMeta in BeforeCreate
2015-10-22 14:47:40 +02:00
Janet Kuo e36121ae9b Increase the annotation size limit to 256k 2015-10-21 16:16:55 -07:00
Jordan Liggitt 63fb6c07a5 Validate names in BeforeCreate 2015-10-21 14:11:41 -04:00
mqliang b6be9b9684 use string constant instead of duplicating 2015-10-19 22:00:41 +08:00
eulerzgy f8f9afb874 alias local packagename for pkg/util/errors 2015-10-18 09:37:46 +08:00
k8s-merge-robot 72235d6607 Merge pull request #15709 from derekwaynecarr/ingress_status
Auto commit by PR queue bot
2015-10-17 00:40:35 -07:00
k8s-merge-robot f5afa634ff Merge pull request #15574 from derekwaynecarr/resource_quota_fractional
Auto commit by PR queue bot
2015-10-16 07:38:26 -07:00
derekwaynecarr 65efc784cb Fix error message in validate load balancer status 2015-10-15 11:06:41 -04: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 8c753c84eb Merge pull request #15191 from caesarxuchao/validate-UID
Auto commit by PR queue bot
2015-10-15 04:20:24 -07:00
derekwaynecarr eae56c3b2d Add status subresource to Ingress 2015-10-14 14:36:29 -04:00
derekwaynecarr 62b4467c69 Resource Quota should not let fractional values for API resources 2015-10-14 09:47:38 -04:00
Chao Xu be0754750f add common fields validation before updaing a resource; make the repair of malformed update request flippable by a flag. 2015-10-13 16:28:32 -07:00
k8s-merge-robot 6d7d7080df Merge pull request #14411 from feihujiang/removeUselessTodoNotes
Auto commit by PR queue bot
2015-10-13 15:49:12 -07:00
Chao Xu 347d53ff2e v1alpa1->v1beta1 2015-10-09 15:06:28 -07:00
k8s-merge-robot 1f764fcd3f Merge pull request #14726 from linzichang/validation-on-list
Auto commit by PR queue bot
2015-10-08 23:38:53 -07:00
derekwaynecarr 544b453e31 Add replication controller status subresource 2015-10-07 14:39:33 -04:00
Zichang Lin 755d740fed Add validate support for list kind 2015-10-06 18:42:36 +08:00
Paul Morie 227dd82119 Add PodSecurityContext and backward compatibility tests 2015-10-05 21:05:27 -04: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
Brian Grant 7bd741b93b Merge pull request #14495 from derekwaynecarr/improve_quota_validation
Ensure ResourceQuota values are non-negative
2015-09-25 11:00:19 -07:00
Chao Xu 3473212ea5 remove thirdParty API from api/v1/ and api/ 2015-09-24 16:31:00 -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
derekwaynecarr b29722c728 Ensure ResourceQuota values are non-negative 2015-09-24 10:15:40 -04:00
feihujiang 4a126e7297 Remove useless todo notes that handle required fields 2015-09-23 17:45:22 +08:00
k8s-merge-robot 34ef11321c Merge pull request #14341 from mikedanese/not-ready
Auto commit by PR queue bot
2015-09-22 08:53:42 -07:00
k8s-merge-robot e535e27e82 Merge pull request #14279 from pweil-/ipc-followup
Auto commit by PR queue bot
2015-09-22 07:28:07 -07:00
Mike Danese edda776b4a fix validation for notReadyAddress subsets 2015-09-22 01:08:26 -07:00
k8s-merge-robot c96c76b729 Merge pull request #13780 from smarterclayton/pod_logs
Auto commit by PR queue bot
2015-09-21 17:02:47 -07:00
Clayton Coleman c2e90cd154 Support extended pod logging options
Increase the supported controls on pod logging. Add validaiton to pod
log options. Ensure the Kubelet is using a consistent, structured way to
process pod log arguments.

Add ?sinceSeconds=<durationInSeconds>, &sinceTime=<RFC3339>, ?timestamps=<bool>,
?tailLines=<number>, and ?limitBytes=<number>
2015-09-21 15:39:32 -04:00
Paul Weil 20361e33f2 use infra container ns for ipc 2015-09-21 12:47:19 -04: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
Huamin Chen ed9a1bbd3a support fibre channel volume
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-18 19:15:31 -04: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
k8s-merge-robot 73d71d6a67 Merge pull request #14096 from mvdan/util-duration
Auto commit by PR queue bot
2015-09-18 00:20:43 -07:00
k8s-merge-robot 5577430785 Merge pull request #13852 from hurf/lr_ratio_validation
Auto commit by PR queue bot
2015-09-17 21:51:31 -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
feihujiang 51f59f3c78 Fix the wrong path of document 2015-09-17 20:38:08 +08:00
eulerzgy d312c30847 fix the change of hostDir to hostPath 2015-09-16 22:31:17 +08:00
hurf daeae81e1e Add validation to MaxLimitRequestRatio in LimitRange
MaxLimitRequestRatio should >=1
MaxLimitRequestRatio should <= max/min(if both are specified)
2015-09-16 11:41:48 +08:00
k8s-merge-robot bf641078eb Merge pull request #13785 from wojtek-t/minion_to_node_2
Auto commit by PR queue bot
2015-09-14 23:23:06 -07: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
Wojciech Tyczynski 53ae56f205 Replace "minion" with "node" in bunch of places. 2015-09-14 11:07:11 +02:00
k8s-merge-robot 86b4e777e1 Merge pull request #13834 from derekwaynecarr/more_improvements_to_limit_range_validation
Auto commit by PR queue bot
2015-09-13 17:01:56 -07:00
tummychow a21c52a766 Move util/validation files to their own package 2015-09-13 00:46:52 -07:00
derekwaynecarr 9bc48f699d Validate LimitRange default and defaultRequest are not supported for limits of type Pod 2015-09-11 12:22:30 -04:00
k8s-merge-robot f8804ed166 Merge pull request #13798 from hurf/lr_dup
Auto commit by PR queue bot
2015-09-10 19:11:27 -07:00
tummychow 78ce5da988 Move util.StringSet into its own package
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
hurf f61d434e1f Remove duplicate value assginment when validating limitrange
It's unnecessary to get the quantities again from limit.
2015-09-10 21:26:53 +08:00
derekwaynecarr ea919f6d1e Fix precision handling in validating LimitRange 2015-09-09 15:52:29 -04:00
Chao Xu 9fc79e9d99 refactor testapi and test scripts to prepare for multiple API groups. 2015-09-04 18:01:32 -07:00
Brendan Burns 2df5010834 Merge branch 'sdminonne-container_sidecar' 2015-09-02 10:42:08 -07:00
Salvatore Dario Minonne f4dc0653aa adding downward api volume plugin 2015-09-01 22:23:03 +02:00
Huamin Chen fe559f2726 implement Ceph FS volume plugin and add to e2e volume test
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-01 14:05:17 -04:00
Sreekanth Pothanis f5da6b34ce Cinder Volume Plugin 2015-08-30 19:56:27 -07:00
k8s-merge-robot e5ac413311 Merge pull request #13286 from nikhiljindal/validateDeployment
Auto commit by PR queue bot
2015-08-28 22:37:55 -07:00
nikhiljindal 92f373a4b6 Validate deployment 2015-08-28 12:47:33 -07:00
Prashanth B 52f7833cd3 Revert "Revert "LimitRange updates for Resource Requirements Requests"" 2015-08-28 09:26:36 -07:00
Mike Danese 8460e3913d move daemon controller to the experimental api 2015-08-27 11:47:35 -07:00
Piotr Szczesniak 6e05b9e3a3 Revert "LimitRange updates for Resource Requirements Requests" 2015-08-27 10:50:50 +02:00
Yu-Ju Hong 1bae2b677d Merge pull request #12492 from derekwaynecarr/limit_range_api
LimitRange updates for Resource Requirements Requests
2015-08-26 13:02:57 -07:00
Janet Kuo 5823ef771b Make --validate default on and shows how to turn if off 2015-08-25 03:18:32 -07:00
derekwaynecarr 8fbe4645e3 Add fields to LimitRange object 2015-08-24 15:18:45 -04:00
Brendan Burns 5d664892f2 Add a storage implementation for thirdpartyresources. 2015-08-21 17:21:40 -07:00
k8s-merge-robot 44c76d5319 Merge pull request #12957 from smarterclayton/handle_terminating_pods
Auto commit by PR queue bot
2015-08-20 21:47:00 -07:00
Abhishek Shah b6b8e99393 External IPs support. 2015-08-20 16:10:01 -07:00
Clayton Coleman 02dbb95447 Add TerminationGracePeriodSeconds to API
Set defaulting for pod spec
2015-08-20 11:03:38 -04:00
Tim Hockin 86f4535871 Check loopback and link-local multicast endpoints
Previously we just disallowed link-local (unicast).  This disallows loopback
and link-local multicast.
2015-08-18 21:50:27 -07:00
Robert Bailey 08e6a43c1d Revert "Merge pull request #9165 from smarterclayton/graceful"
This reverts commit 4f856b595d, reversing
changes made to d78525a83b.

Conflicts:
	pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Clayton Coleman 89f1f3b1b8 Alter graceful deletion to not use TTL
Avoid TTL by deleting pods immediately when they aren't
scheduled, and letting the Kubelet delete them otherwise.

Ensure the Kubelet uses pod.Spec.TerminationGracePeriodSeconds
when no pod.DeletionGracePeriodSeconds is available.
2015-08-18 09:08:43 -04:00
Clayton Coleman b842a7dd15 Revert "Revert "Gracefully delete pods from the Kubelet""
This reverts commit 98115facfd.
2015-08-18 08:57:02 -04:00
Clayton Coleman 01f3785426 Add status.podIP as a valid downward API target
Getting the public IP a container is supposed to use is O(hard),
and usually involves ugly gyrations in python or with interfaces.
Using the downward API means that the IP Kube is announcing to
other endpoints is also visible inside the container for pods to
identify themselves.
2015-08-14 17:51:55 -04:00
Brendan Burns b29311ba2b Merge pull request #11781 from brendandburns/schema-api
RFC: Add initial plugin schema types.
2015-08-14 09:44:12 -07:00
Brendan Burns 1055eed9b6 Add initial storage types to the Kubernetes API 2015-08-13 09:25:02 -07:00
Jordan Liggitt d7a50c4778 Limit field errors to a single field name 2015-08-12 14:10:26 -04:00
Kris Rousey 565189f5b8 Correcting all go vet errors 2015-08-11 13:55:37 -07:00
Veres Lajos 9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
Satnam Singh bee48f4ce5 Merge pull request #12035 from AnanyaKumar/requests
Add support for request
2015-08-07 14:27:34 -07:00
AnanyaKumar d9b85652ae Add Daemon API 2015-08-06 13:15:19 -07:00
Dawn Chen 536313c82c Merge pull request #9472 from deads2k/expose-name-validation
expose common name validation methods
2015-08-06 10:51:51 -07:00
Ananya Kumar ef1e576810 Add support for request 2015-08-05 19:00:19 -07:00
Mike Danese 17defc7383 run gofmt on everything we touched 2015-08-05 17:52:56 -07:00
Mike Danese 8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Manan Saraf b2ebfeef25 Fixed empty name error and also changed tests 2015-08-04 14:09:42 -07:00
Chao Xu 18d32751fd improve the error message of update pod 2015-08-02 13:41:53 -07:00
Mike Danese 739fc1a572 Merge pull request #11914 from nikhiljindal/missingSwagger
Swagger validation: stop ignoring unknown fields
2015-07-31 10:42:18 -07:00
nikhiljindal 8cdd403d9d stricter swagger validation 2015-07-29 22:25:09 -07:00
deads2k d73faa8272 expose common name validation methods 2015-07-27 13:12:28 -04:00
markturansky 0a0af48e51 added validation for AccessModes 2015-07-27 13:02:16 -04:00
Tim Hockin 1c3233a1d4 Remove v1beta3 2015-07-23 17:21:27 -07:00
Brendan Burns a8f02e5472 Automatically open a firewall when creating a GCE load balancer. 2015-07-10 14:35:29 -07:00
nikhiljindal 274792d7bb Stop exposing v1beta3 by default 2015-07-01 14:38:02 -07:00
Marek Biskup 88c70d2ae0 correct typo 2015-06-30 11:23:48 +02:00
Tim Hockin 08f66f04d6 Fix error message 2015-06-28 14:49:38 -07:00
Robert Bailey 54a3ebef3c Merge pull request #10315 from nikhiljindal/invalidValue
Updating the "invalid value" error message to include the list of valid values
2015-06-26 10:46:59 -07:00
Robert Bailey 0048eae8eb Merge pull request #9965 from stevekuznetsov/skuznets/allow-https
Allowing for HTTPS Probes
2015-06-26 10:43:37 -07:00
Maxwell Forbes 712f303350 Merge pull request #9736 from sdminonne/bug_fix2
To add validation for service ports when defined as string
2015-06-25 19:37:04 -07:00
Steve Kuznetsov 3008ff6150 Changed HTTPGetAction to allow user-defined schemes 2015-06-25 16:59:12 -04:00
nikhiljindal 3b3ee0ed77 Improving an error message 2015-06-25 13:08:09 -07:00
Kris Rousey d13421e084 Removing ContainerManifest 2015-06-24 11:31:34 -07:00
Salvatore Dario Minonne 4b13faa346 To add validation for service ports when defined as string (fixing issue #9734) 2015-06-22 17:21:51 +02:00
Satnam Singh b964f3c911 Merge pull request #9739 from bprashanth/sno
Fix kubectl stop rc with sequence numbers
2015-06-19 15:30:26 -07:00
Satnam Singh 3591a543d1 Merge pull request #9919 from liggitt/port_protocol_validation
Validate port protocol case strictly
2015-06-19 15:18:03 -07:00
Prashanth Balasubramanian 9ed9bd1c4f Add a generation number to the object meta of all objects, and status of rcs 2015-06-19 14:32:08 -07:00
Satnam Singh f02c685532 Merge pull request #10007 from feihujiang/improveCreateSchemaValidate
improve kubectl create --validate, aggregate errors and handle requir…
2015-06-19 11:43:44 -07:00
Jordan Liggitt 68a8a25494 Rename pod.spec.serviceAccount -> pod.spec.serviceAccountName for v1 2015-06-18 22:38:00 -04:00
Satnam Singh 59a96f1028 Merge pull request #9688 from liggitt/validate_pod_spec
Validate service account name in pod spec
2015-06-18 17:18:09 -07:00
feihujiang a7b22e3773 Delete TODO notes (The syntax here is the reverse of the (old, new) pattern in most other validation. Fix this.) 2015-06-18 20:13:17 +08:00
feihujiang d5fcd9f153 improve kubectl create --validate, aggregate errors and handle require fields 2015-06-18 16:22:09 +08:00
Saad Ali 9da215e085 Merge pull request #9897 from derekwaynecarr/limit_range_validation
Add LimitRange range validation
2015-06-17 17:20:18 -07:00
markturansky 0a6b7b61ec Changed PVClaimVolumeSource name to match other volume names 2015-06-17 16:17:49 -04:00
Saad Ali 641f8d47d3 Merge pull request #9828 from caesarxuchao/remove-testdata-v1beta1
remove pkg/api/validation/testdata/v1beta1/*
2015-06-17 11:36:03 -07:00
derekwaynecarr 2518d8c0fc Add LimitRange range validation 2015-06-17 10:24:31 -04:00
Jordan Liggitt 2b840279d9 Validate service account name in pod spec 2015-06-16 21:09:01 -04:00
Jordan Liggitt ee4cd972e0 Validate port protocol case strictly 2015-06-16 20:28:11 -04:00
Chao Xu d9e8939ae4 remove pkg/api/validation/testdata/v1beta1/* 2015-06-15 16:20:14 -07:00
Fabio Yeon 4e6bd63256 Merge pull request #9597 from mikedanese/fix-swagger-validate-panic
fix panic in kubectl --validate when no apiVersion is passed
2015-06-15 13:05:11 -07:00
Filip Grzadkowski cdc5034ce4 Fix error message for missing imagePullPolicy 2015-06-15 16:02:32 +02:00
Mike Danese 2bbb78d50a actually return validation errors instead of just creating them 2015-06-10 12:45:10 -07:00
feihujiang 5867b5ce6b remove useless glog.Infof 2015-06-10 11:02:28 +08:00
krousey d7f7d84a5e Merge pull request #9387 from jsdir/9340-signature
Improve signature consistency for ValidateObjectMetaUpdate
2015-06-09 10:20:18 -07:00
feihujiang 37abe11f8a kubetcl create --validate crashes when no apiVersion or kind is provided 2015-06-09 10:38:43 +08:00
Jason Sommer aa892b7143 Replace meta with new 2015-06-08 17:06:56 -05:00
Jason Sommer d59a8ff7f8 Improve signature consistency for ValidateObjectMetaUpdate
Fixes #9340

Signed-off-by: Jason Sommer <jsdirv@gmail.com>
2015-06-08 02:56:38 -05:00
Tim Hockin 1aa9b0b86a Don't allow link-local Endpoints 2015-06-03 11:40:04 -07:00
Chao Xu d52cef11a4 add v1 tests to hack/test-go; let default value of Container.SecurityContext to be nil 2015-06-03 09:50:41 -07:00
Filip Grzadkowski 98115facfd Revert "Gracefully delete pods from the Kubelet" 2015-06-02 23:40:05 +02:00
Clayton Coleman 72ee028cab Gracefully delete pods from the Kubelet
This commit wires together the graceful delete option for pods
on the Kubelet.  When a pod is deleted on the API server, a
grace period is calculated that is based on the
Pod.Spec.TerminationGracePeriodInSeconds, the user's provided grace
period, or a default.  The grace period can only shrink once set.
The value provided by the user (or the default) is set onto metadata
as DeletionGracePeriod.

When the Kubelet sees a pod with DeletionTimestamp set, it uses the
value of ObjectMeta.GracePeriodSeconds as the grace period
sent to Docker.  When updating status, if the pod has DeletionTimestamp
set and all containers are terminated, the Kubelet will update the
status one last time and then invoke Delete(pod, grace: 0) to
clean up the pod immediately.
2015-06-01 19:23:59 -04:00
Tim Hockin da78ab6b63 Merge pull request #8740 from thockin/nix-portal
Rename "portalIP" to "clusterIP"
2015-05-28 16:52:02 -07:00
Kris Rousey 22b2c68c02 Update go-restful to get stable sorting in spec
This reverts commit 4a7071e7f7.
2015-05-28 16:43:13 -07:00
Tim Hockin 4318ca5a8b Rename 'portal IP' to 'cluster IP' most everywhere
This covers obvious transforms, but not --portal_net, $PORTAL_NET and
similar.
2015-05-28 16:10:44 -07:00
Tim Hockin 4a7071e7f7 Revert "Update go-restful to get stable sorting in spec" 2015-05-28 16:04:11 -07:00
Tim Hockin 081ab3abac Merge pull request #8853 from caesarxuchao/HostToNodeName
update PodSpec.Host to PodSpec.NodeName
2015-05-28 15:50:12 -07:00
Chao Xu 9c1153322e update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go 2015-05-28 14:10:06 -07:00
Kris Rousey 05eaaa99e1 Update go-restful to get stable sorting in spec 2015-05-28 13:40:23 -07:00
Tim Hockin d0249aac75 Merge pull request #8133 from markturansky/iscsi_pv2
added ISCSI volume plugin to PersistentVolumeSource
2015-05-27 08:36:37 -07:00
Justin Santa Barbara 19c0d82edc Include the actual failing value in a validation error message 2015-05-22 19:14:28 -04:00
Justin Santa Barbara a271771341 Richer errors for validation 2015-05-22 19:14:28 -04:00
Justin Santa Barbara 7346cc8042 Add ServiceType = NodePort; wire everything up 2015-05-22 19:14:28 -04:00
Justin Santa Barbara e49ad95462 Mark PublicIPs as deprecated & rename to DeprecatedPublicIPs in the latest API
We need to keep them in the API so that we can round-trip between versions.
2015-05-22 19:14:27 -04:00
Justin Santa Barbara 2197c8da5a Add NodePort to ServicePort
We prevent it from being set by validation
2015-05-22 19:14:27 -04:00
Justin Santa Barbara 973c2e4819 Add Type to ServiceSpec: ClusterIP or LoadBalancer 2015-05-22 19:14:21 -04:00
Dawn Chen 677a4aa1a7 Merge pull request #8164 from cjcullen/cloudprovider
Route creation reconciler loop.
2015-05-22 12:27:50 -07:00
markturansky 5b23fc39b2 added ISCSI volume plugin to PersistentVolumeSource 2015-05-22 15:18:20 -04:00
Huamin Chen 4a800fd10e add rados block device(rbd) volume plugin
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-05-21 14:51:31 -04:00
Dawn Chen 0710976d43 Merge pull request #8490 from thockin/diff-proto
Allow same-hostport-different-protocol
2015-05-21 09:16:16 -07:00