Commit Graph

3754 Commits

Author SHA1 Message Date
Hannes Hörl 7bced00e1f Have the APIServer take a *url.URL to Etcd
Instead of creating, starting and stopping Etcd from within APIServer,
the APIServer now only gets the coordinates of an Etcd handed in.

The setup and wiring of both Etcd and APIServer is implemented in the
ControlPlane.
2018-01-16 14:09:09 +00:00
Gareth Smith ca719c861d Remove obsolete tests, examples & fakes 2018-01-15 17:18:52 +00:00
Gareth Smith 01c1b7e190 Remove Start/Stop funcs in favour of methods 2018-01-15 17:18:52 +00:00
Gareth Smith 5f60d519e9 Make the start message a member of the ProcessState 2018-01-15 17:18:52 +00:00
Gareth Smith 29f17a4569 Introduce DefaultedProcessInput
This intermediate structure can be constructed without reference to
external URLs.
2018-01-15 17:18:52 +00:00
Hannes Hörl 2c1fea7616 Make Start/Stop methods of ProcessState 2018-01-15 17:18:52 +00:00
Hannes Hörl ba978619bc Move session to the ProcessState 2018-01-15 17:18:52 +00:00
Hannes Hörl 57dae09fc2 Test NewProcessState() function
... with some integrationy unit tests
2018-01-15 17:18:52 +00:00
Hannes Hörl 44fd7ffa55 Test Stop() function
... with some integrationy unit tests
2018-01-15 17:18:52 +00:00
Hannes Hörl 9ff0bc948a Test Start() function
... with some integrationy unit tests
2018-01-15 17:18:52 +00:00
Hannes Hörl 9990f29acd Rename CommonStuff to ProcessState 2018-01-15 17:18:52 +00:00
Hannes Hörl 4022e2b56f Convert methods to functions and remove Process{} 2018-01-15 17:18:52 +00:00
Gareth Smith ae971bb91e Deduplicate methods in Etcd & APIServer 2018-01-15 17:18:52 +00:00
Gareth Smith 12403c5eaf Simplify and clean more 2018-01-15 17:18:51 +00:00
Gareth Smith 284bf217da Ignore unit tests, simplify interfaces 2018-01-15 17:18:51 +00:00
Hannes Hörl a656304e55 Fix formatting issues as suggested by gofmt 2018-01-15 17:15:58 +00:00
k8s-ci-robot 9ab04c5381
Merge pull request #205 from mengqiy/cm_secret
more support for configmap and secret
2018-01-12 09:11:24 -08:00
ymqytw e3ca383a35 add test for kinflate 2018-01-10 14:23:52 -08:00
ymqytw bf2ba35a03 more support for configmap and secret 2018-01-10 14:23:07 -08:00
k8s-ci-robot c61d60e246
Merge pull request #204 from mengqiy/update_helper
add one more update helper function
2018-01-10 09:24:10 -08:00
ymqytw 72bee8b87b add one more update helper function 2018-01-10 09:16:25 -08:00
k8s-ci-robot 7dcee36477
Merge pull request #203 from mengqiy/update_helpers
Add some update helpers for kinflate
2018-01-09 16:48:11 -08:00
ymqytw 611389d2a0 update helpers 2018-01-09 15:51:49 -08:00
ymqytw 627e10582f move update metadata function 2018-01-09 15:49:31 -08:00
k8s-ci-robot 7fdbf30305
Merge pull request #200 from mengqiy/configmap_secret
configmap and secret helper functions
2018-01-09 15:25:11 -08:00
ymqytw 603854a7a6 configmap and secret helper functions 2018-01-09 14:55:16 -08:00
k8s-ci-robot e3aac9630d
Merge pull request #201 from mengqiy/update_example
update simple example
2018-01-09 14:53:11 -08:00
ymqytw 56387b7189 update simple example 2018-01-08 16:53:35 -08:00
k8s-ci-robot 61ee51fef8
Merge pull request #199 from mengqiy/ptv
pod template visitor
2018-01-08 15:46:16 -08:00
k8s-ci-robot 5d2a97840d
Merge pull request #195 from mengqiy/types_comments
format comments for types.go
2018-01-08 15:27:10 -08:00
ymqytw 372384e412 pod template visitor 2018-01-08 14:49:06 -08:00
k8s-ci-robot 5615ad85a1
Merge pull request #198 from mengqiy/copy_some_cm_scret_pkgs
copy some configmap and secret related pkgs for kinflate
2018-01-08 14:43:10 -08:00
ymqytw 772e40be49 copy some pkgs for kinflate 2018-01-08 14:16:55 -08:00
k8s-ci-robot 143e500116
Merge pull request #196 from totherme/hide_internals
Hide test framework internals
2018-01-08 09:36:10 -08:00
k8s-ci-robot 6d8a68098e
Merge pull request #194 from hoegaarden/simplify_addr_handling
Simplify address handling
2018-01-08 09:35:11 -08:00
k8s-ci-robot a6e056c00e
Merge pull request #193 from hoegaarden/simplify_dir_handling
Simplify directory handling
2018-01-08 09:34:11 -08:00
Hannes Hörl 10ba636acd We no longer need Buffer() on APIServer or Etcd 2018-01-08 12:22:11 +00:00
Hannes Hörl a6eb5bc2f5 We no-longer need Exit() on APIServer or Etcd 2018-01-08 12:22:11 +00:00
Hannes Hörl 4e6d80ef73 Rename Directory to CleanableDirectory
... and refactor Etcd tests for the Etcd's data directory
2018-01-08 12:22:11 +00:00
Hannes Hörl b786202c38 Move AddressManager to an internal package 2018-01-08 12:22:11 +00:00
Hannes Hörl 40566a76e1 Hide the BinPathFinder in our internal package 2018-01-08 10:58:34 +00:00
Hannes Hörl 58961be445 Make go fmt happy 2018-01-07 12:40:02 +00:00
ymqytw 5c9c85eed9 format comments for types.go 2018-01-05 16:42:03 -08:00
k8s-ci-robot 399b199e0c
Merge pull request #191 from mengqiy/update_manifest_types
update manifest types
2018-01-05 10:34:12 -08:00
Hannes Hörl 6b036f740a Use Address instead of AddressManager for the APIServer 2018-01-05 16:34:47 +00:00
Hannes Hörl 32821b2077 Simplify Address handling for Etcd
For Etcd, make the address it should listen on configurable via
```
ectd := &Etcd{
  Address: &url.URL{Scheme: "http", Host: "localhost:12345"},
}
```

If not specified, it will internally use the `DefaultAddressManager` do
find a free port to listen on.
2018-01-05 13:25:54 +00:00
Hannes Hörl f370ccb496 Remove `TempDirManager` 2018-01-05 13:24:46 +00:00
Gareth Smith f5262c2954 Use new Directory management mechanism in Etcd
Instead of the `DataDirManager`...
2018-01-05 10:36:23 +00:00
Gareth Smith 4f380559fe Rename `CertDir` to `Directory` 2018-01-05 10:33:42 +00:00
Gareth Smith 3dcb758f8e Use `CertDir` instead of `CertDirManager` in APIServer
To make our framework easier to use, we now use a `CertDir` struct
instead of the `CertDirManager` to create and destroy (potentially
temporary) directories.

This `CertDir` holds either one of or both a path to a dir (as string)
and a function which can clean up the directory. In the default case a
temporary directory is created and cleaned up. For any other use case
users can just specify the path to an existing directory or override the
cleanup function.
2018-01-05 09:54:50 +00:00