Commit Graph

47 Commits (e8d1cba8758d2888198b72b660edbe44961ae375)

Author SHA1 Message Date
Kubernetes Submit Queue b0b6f3c256 Merge pull request #38401 from liggitt/addressable-deep-copy
Automatic merge from submit-queue (batch tested with PRs 36071, 32752, 37998, 38350, 38401)

Pass addressable values to DeepCopy

Extracted from https://github.com/kubernetes/kubernetes/pull/35728

These are the places we are currently calling DeepCopy incorrectly, and we need to fix, even if we don't pick up the changes to DeepCopy in #35728:
* creating a new cloner means we have no generated functions registered
* passing non-addressable values doesn't pick up generated deep copy functions, and forces us into reflective mode
2016-12-08 16:26:00 -08:00
Jordan Liggitt 6819706adf
Pass addressable values to DeepCopy 2016-12-08 14:16:01 -05:00
Madhusudan.C.S c1cede22cf Use the `serviceShard` variable in the service shard block, not the `service` variable. 2016-12-08 11:13:30 -08:00
Madhusudan.C.S ae03433a70 Added a comment about the reasoning. 2016-12-05 10:33:16 -08:00
Madhusudan.C.S bcddb157e4 [Federation] Separate the cleanup phases of service and service shards so that service shards can be cleaned up even after the service is deleted elsewhere.
This separation is necessary because "Federated Service DNS should be
able to discover a federated service" e2e test recently added a case
where it deletes the service from federation but not the shards from
the underlying clusters.

Because of the way cleanup was implemented in the AfterEach block
currently, we did not cleanup any of the underlying shards. However,
separating the two phases of the cleanup needs this separation.
2016-12-05 10:33:15 -08:00
Kubernetes Submit Queue d51f07b60d Merge pull request #37353 from nikhiljindal/serviceDelete
Automatic merge from submit-queue

Stop deleting underlying services when federation service is deleted

Fixes https://github.com/kubernetes/kubernetes/issues/36799

Fixing federation service controller to not delete services from underlying clusters when federated service is deleted.
None of the federation controller should do this unless explicitly asked by the user using DeleteOptions. This is the only federation controller that does that.

cc @kubernetes/sig-cluster-federation @madhusudancs

```release-note
federation service controller: stop deleting services from underlying clusters when federated service is deleted.
```
2016-11-30 06:02:39 -08:00
nikhiljindal 6b8d0caac2 Creating configmap for kube-dns 2016-11-29 00:31:33 -08:00
nikhiljindal 34eae2207e Stop deleting underlying services when federation service is deleted 2016-11-23 13:02:39 -08:00
Jan Chaloupka 4fde09d308 Replace client with clientset in code 2016-10-23 22:00:35 +02:00
Chao Xu 75cc05de82 manual changes to let client-gen use versioned options 2016-10-04 20:39:29 -07:00
Kubernetes Submit Queue f272a1f8d7 Merge pull request #32810 from madhusudancs/fed-svc-lb-cleanup
Automatic merge from submit-queue

Implement cleanup methods to cleanup underlying cluster resources in federated service tests.

cc @kubernetes/sig-cluster-federation @colhom
2016-09-20 05:56:52 -07:00
Madhusudan.C.S 81ac19a99b Address review comments and minor panic fixes. 2016-09-19 12:18:10 -07:00
Mike Danese a765d59932 move informer and controller to pkg/client/cache
Signed-off-by: Mike Danese <mikedanese@google.com>
2016-09-15 12:50:08 -07:00
Madhusudan.C.S 557ed2f12f Implement cleanup methods to cleanup underlying cluster resources in federated service tests. 2016-09-15 11:30:54 -07:00
nikhiljindal db7af6c0d7 Fixing/updating e2e tests 2016-08-22 21:49:34 -07:00
mfanjie 6ecea5944c extract common function in service, ingress and federation e2e to util, to be reused. 2016-08-19 09:53:38 +08:00
Madhusudan.C.S a91182ae3c Remove unversioned federation client, clientset and versioned release_1_3 clientset and all their accesses in e2e tests. Switch everything to federation release_1_4 external client. 2016-08-10 13:53:43 -07:00
Matt Liggett 5b8113dffd code review fixes 2016-07-06 15:10:29 -07:00
Matt Liggett 55e642cb9f Use a pointer. Duh. 2016-07-06 15:10:29 -07:00
Matt Liggett 088b871729 Switch to a map. 2016-07-06 15:10:29 -07:00
Matt Liggett 49a69b17f7 add clusterNamespaceCreated to it 2016-07-06 15:10:29 -07:00
Matt Liggett 36c34af2fa cluster type 2016-07-06 15:10:29 -07:00
Quinton Hoole bc6e626588 Federated Services e2e: Simplify logic and logging around verification of services in underlying clusters. Fixes #28269 2016-06-30 14:19:42 -07:00
David McMahon ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Quinton Hoole 3e65d07584 I think I fixed all of the Federation e2e tests! 2016-06-29 00:34:43 -07:00
Quinton Hoole 28fab489ea Refactored, expanded and fixed federated-services e2e tests. 2016-06-28 13:01:28 -07:00
Matt Liggett c16416d6b4 fg 2016-06-24 13:54:05 -07:00
Matt Liggett e2021ef241 A few changes to federated-service e2e test.
Most of the changes that get the test to pass have been made already or
elsewhere.  Here we restructure a bit fixing a nesting problem, extend
the timeouts, and start creating distinct backend pods that I'll delete
in the non-local test (coming shortly).

Also some extra debugging info in the DNS code.  I made some upstream
changes to skydns in https://github.com/skynetservices/skydns/pull/283
2016-06-23 17:40:54 -07:00
Madhusudan.C.S 6add478b26 Create the e2e test namespace in each of the individual clusters in the federation. 2016-06-23 12:44:14 -07:00
k8s-merge-robot d1115dc184 Merge pull request #27636 from mml/fed-dns-followup
Automatic merge from submit-queue

Cleanups following #27587

- Add back the negative assertions, but mark them [Slow].
- Use the current DNS TTL of 180 sec as our timeout for all DNS tests.
- Assorted cleanups and refactoring.
2016-06-17 22:05:39 -07:00
Quinton Hoole 4445dc2b59 Improve e2e tests for Cluster Federation. 2016-06-17 12:39:10 -07:00
Matt Liggett b0a4fdea4d tidy 2016-06-17 12:08:36 -07:00
Matt Liggett 7cf7717d4c Move the slow part of the test into a Slow block. 2016-06-17 12:08:36 -07:00
Matt Liggett dd7626bbf1 refactor and re-add exists 2016-06-17 12:08:36 -07:00
Matt Liggett 2b3e9d5a98 Add a "this should not work" comment. 2016-06-17 12:07:20 -07:00
Matt Liggett 011b2cde33 Use DNS TTL 2016-06-17 12:07:20 -07:00
Matt Liggett 6ae801f5b8 Re-work the DNS part of the test for #26762
- Dropped the regex test and just test for nslookup exiting 0.
- Moved more setup into BeforeEach and used nested Context for non-local
  case.
- Poll inside the container using a bash loop.
- Aim for less console noise unless something goes wrong.
- Commented out the tests trying to verify that a DNS name is absent.
2016-06-16 18:13:06 -07:00
k8s-merge-robot b41405ed22 Merge pull request #27480 from mml/fed-service-clusterip
Automatic merge from submit-queue

Clear ClusterIP in the local service before comparison.

For #26762
2016-06-16 17:09:56 -07:00
k8s-merge-robot 0856e1dd43 Merge pull request #27390 from mml/fed-service-type
Automatic merge from submit-queue

Compare v1.Service to v1.Service.
2016-06-16 12:45:00 -07:00
k8s-merge-robot 947f60843e Merge pull request #27481 from mml/fed-nslookup
Automatic merge from submit-queue

fix nslookup invocation

The old way with 'sh -c' was not correct.

For #26762
2016-06-16 10:55:08 -07:00
Matt Liggett adbd4d8029 Clear ClusterIP in the local service before comparison. 2016-06-15 17:17:55 -07:00
Matt Liggett 2c35ce6b8f fix nslookup invocation 2016-06-15 14:33:31 -07:00
Matt Liggett 4f388d8aad Compare v1.Service to v1.Service. 2016-06-15 12:49:45 -07:00
Matt Liggett 8a48aad07a One more place we need a secret. 2016-06-15 11:32:04 -07:00
nikhiljindal 33291bd52a choosing a default federation name in test instead of failing 2016-06-14 23:55:05 -07:00
Madhusudan.C.S 839d98adfb Address review comments. 2016-06-13 11:17:53 -07:00
Madhusudan.C.S c4dcb42078 Implement first set of federated service e2e tests.
Note that these tests are untested and there is no guarantee that they work.
The ongoing auth problems is blocking these e2es from being tested and upon
@quinton-hoole's request I am submitting them now.
2016-06-13 11:17:52 -07:00