Janet Kuo
076fd62056
Add DaemonSet templateGeneration validation and tests, and fix a bunch of validation test errors
...
1. Validate that templateGeneration is increased when and only when template is changed
2. Validate that templateGeneration is never decreased
3. Added validation tests for templateGeneration
4. Fix a bunch of errors in validate tests, for example, all validation test error cases failed
on lack of resource version, or on name changes, not on the real validation we wanted to test
2017-03-08 16:37:09 -08:00
Maciej Szulik
c272630b1b
Deployments under apps/v1beta1 with new defaults
2017-03-01 15:14:41 +01:00
Łukasz Oleś
620310c12f
Move TemplateGeneration to the Spec
2017-02-27 09:15:56 +01:00
Łukasz Oleś
b27308c317
DaemonSet updates
...
It implements https://github.com/kubernetes/community/blob/master/contributors/design-proposals/daemonset-update.md
Feature https://github.com/kubernetes/features/issues/124
2017-02-27 09:15:56 +01:00
Michail Kargakis
f7fa286b65
Add status validation unit tests, validate updatedReplicas
2017-02-25 13:47:29 +01:00
Michail Kargakis
e0288342ef
Fix availableReplicas validation
2017-02-25 12:53:31 +01:00
deads2k
c9a008dff3
move util/intstr to apimachinery
2017-01-30 12:46:59 -05:00
Kubernetes Submit Queue
c776d0978b
Merge pull request #39769 from danwinship/networkpolicy-validation
...
Automatic merge from submit-queue (batch tested with PRs 40497, 39769, 40554, 40569, 40597)
NetworkPolicy validation improvements
I noticed while implementing NetworkPolicy that I we weren't validating the "Ports" field at all.
The docs are actually completely silent about what a string-valued Port field is supposed to mean. I had guessed it meant to call `net.LookupPort()` on it (ie, map it from /etc/services) but in every other case where we have an IntOrString-valued Port field in an API struct, it refers to a named ContainerPort. But that would be extremely awkward to implement in this case; a policy specifying a named port could end up mapping to a different numeric port on every container in the namespace... Do other people actually implement string-valued ports that way? Or, for that matter, implement string-valued ports at all? (Related: I hadn't noticed until now that you can leave the Port value unspecified, allowing you to say "allow to all UDP ports, but no TCP ports" or "allow to all TCP ports, but no UDP ports". That seems like something that ended up in the spec just because it was possible, not because it was actually useful...)
@kubernetes/sig-network-misc
2017-01-27 17:38:25 -08:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
Clayton Coleman
6ea557d4b2
Fix tests after new defaulted value added
2017-01-23 12:37:21 -05:00
Dan Winship
1f6735c518
Validate NetworkPolicy Ports
...
Protocol must be "TCP", "UDP", or nil.
Integer-valued port must be 1-65535.
String-valued port must be a syntactically valid ContainerPort name.
2017-01-20 09:26:42 -05:00
Dan Winship
83ac613b89
Fix up existing NetworkPolicy validation
...
Paths were wrong for most errors.
Field name was wrong for namespaceSelector.
2017-01-20 09:19:17 -05:00
Clayton Coleman
9a2a50cda7
refactor: use metav1.ObjectMeta in other types
2017-01-17 16:17:19 -05:00
deads2k
dd7cd951ce
move meta/v1/validation to apimachinery
2017-01-16 13:40:13 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Kubernetes Submit Queue
124b3a7943
Merge pull request #36243 from kargakis/validate-status-replicas-correctly
...
Automatic merge from submit-queue (batch tested with PRs 39394, 38270, 39473, 39516, 36243)
Update status validation for ds/deploy/rs/rc
2017-01-09 12:05:25 -08:00
Jeff Grafton
20d221f75c
Enable auto-generating sources rules
2017-01-05 14:14:13 -08:00
Łukasz Oleś
9c0d28e359
Add ObservedGeneration to DaemonSet status
2017-01-02 14:47:16 +01:00
Michail Kargakis
6ce2d4e7f3
Update status validation for ds/deploy/rs/rc
2017-01-02 13:54:24 +01:00
Michail Kargakis
ce04ee6170
extensions: add readyReplicas in Deployments
2017-01-02 11:59:15 +01:00
Mike Danese
161c391f44
autogenerated
2016-12-29 13:04:10 -08:00
Kubernetes Submit Queue
c200f27245
Merge pull request #38090 from xingzhou/kube-37654
...
Automatic merge from submit-queue (batch tested with PRs 38920, 38090)
Improve error message for name/label validation.
Instead of just providing regex in name/label validation error output, we need to add the naming rules of the name/label, which is more end-user readable.
Fixed #37654
2016-12-22 22:00:30 -08:00
Łukasz Oleś
e1a19fecf8
Validate numberReady in DaemonSet status
...
In #32781 numberReady was introduced but it wasn't validated.
2016-12-21 13:37:26 +01:00
Xing Zhou
cfe1599983
Improve error message for name/label validation.
...
This patch added user readable naming rules to the output of
the error messages for name/label validation.
2016-12-19 02:53:26 +00:00
Mike Danese
c87de85347
autoupdate BUILD files
2016-12-12 13:30:07 -08:00
Clayton Coleman
3454a8d52c
refactor: update bazel, codec, and gofmt
2016-12-03 19:10:53 -05:00
Clayton Coleman
5df8cc39c9
refactor: generated
2016-12-03 19:10:46 -05:00
Jordan Liggitt
7a5461a17c
Require at least one version in ThirdPartyResource objects
2016-11-17 22:51:06 -05:00
Michail Kargakis
365cfa1ef3
extensions: invalidate progress deadline less than minreadyseconds
2016-11-04 16:40:20 +01:00
Michail Kargakis
7bb68bc434
extensions: api changes for perma-failed deployments
2016-10-27 12:41:04 +02:00
Mike Danese
3b6a067afc
autogenerated
2016-10-21 17:32:32 -07:00
pweil-
49e14744db
support seccomp in psp
2016-10-17 14:49:02 -04:00
Łukasz Oleś
5d2e215652
Add NumberReady to DaemonSet status
...
Fixes #25605
2016-10-12 15:15:10 +02:00
Michail Kargakis
f7c232b8c6
extensions: add minReadySeconds/availableReplicas to replica sets
2016-09-28 11:06:40 +02:00
deads2k
cd5b6cc491
move StorageClass to its own group
2016-09-06 08:41:17 -04:00
Tim St. Clair
4f25651973
Fix PSP update validation
2016-09-01 17:04:57 -07:00
Dr. Stefan Schimanski
ed36baed20
Add sysctl PodSecurityPolicy support
2016-08-25 13:22:01 +02:00
Tim St. Clair
293770ef31
AppArmor PodSecurityPolicy implementation
2016-08-21 23:10:45 -07:00
Manuel de Brito Fontes
60f4fbf4f2
Allow leading * in ingress hostname
2016-08-03 20:16:58 -04:00
childsb
f5bd7d471e
API Changes for StorageClass
2016-07-28 19:01:01 -04:00
Tim Hockin
bb208a02b3
Make IsValidPercent return error strings
2016-07-02 17:34:32 -07:00
Tim Hockin
14bece550f
Make IsValidPortNum/Name return error strings
2016-07-02 17:32:05 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Michail Kargakis
f3d2e3ff22
controller: proportionally scale paused and rolling deployments
...
Enable paused and rolling deployments to be proportionally scaled.
Also have cleanup policy work for paused deployments.
2016-06-20 12:13:35 +02:00
k8s-merge-robot
6b9400d789
Merge pull request #26388 from caseydavenport/cd-networkpolicy-uts
...
Automatic merge from submit-queue
NetworkPolicy unit tests
- [x] Validation tests
- [x] storage tests
- [x] strategy tests
- [ ] test-cmd.sh
CC @thockin
2016-06-18 00:30:00 -07:00
Janet Kuo
c160f75157
Fix deployment strategy validation
2016-06-10 11:14:32 -07:00
Janet Kuo
5d582501b4
Add unit test for deployment strategy validation
2016-06-10 10:16:49 -07:00
Casey Davenport
9f2c3a677b
Validation, etcd, strategy UTs for NetworkPolicy
2016-06-09 15:16:31 -07:00
Casey Davenport
6fe7da72b4
Fix NetworkPolicy validation bug
2016-06-08 16:31:29 -07:00
Casey Davenport
47248f3698
v1beta1 NetworkPolicy API definition and client support
2016-05-19 19:02:54 -07:00