Commit Graph

632 Commits

Author SHA1 Message Date
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
ymqytw 862066e7fb update manifest types 2018-01-03 13:56:26 -08:00
k8s-ci-robot 4ec5f3d889
Merge pull request #187 from spiffxp/update-code-of-conduct
Update code-of-conduct.md
2017-12-28 09:40:36 -08:00
Aaron Crickenberger 7cb849c4f8 Update code-of-conduct.md
Refer to kubernetes/community as authoritative source for code of conduct
2017-12-20 13:33:17 -05:00
k8s-ci-robot a2ce8ed844
Merge pull request #184 from totherme/simplify-paths
Integration Framework: Simplify paths
2017-12-18 09:13:34 -08:00
k8s-ci-robot 8d29b4b462
Merge pull request #180 from hoegaarden/examples
Examples
2017-12-18 09:08:34 -08:00
Gareth Smith e7b219a333 Replace ApiServer.PathFinder with ApiServer.Path 2017-12-18 15:06:11 +00:00
Gareth Smith 3f26c08fd0 Replace Etcd.PathFinder with Etcd.Path 2017-12-18 14:41:49 +00:00
k8s-ci-robot 558408ce07
Merge pull request #183 from mengqiy/update_vendor
update vendor
2017-12-15 15:12:30 -08:00
ymqytw d59625a7b9 update vendor 2017-12-15 13:51:41 -08:00
k8s-ci-robot b2eef9aa4a
Merge pull request #181 from mengqiy/kinflate
check in kinflate
2017-12-15 12:32:29 -08:00
Jonathan Berkhahn c8581b7ccd Add framework to init config in a plugin 2017-12-15 12:03:25 -08:00
ymqytw 3f074d06cf create an instance of scheme 2017-12-15 11:42:48 -08:00
ymqytw 0428188ea6 add example 2017-12-15 11:20:37 -08:00
ymqytw 2a68351c95 implement initial kinflate 2017-12-15 11:20:37 -08:00
Gareth Smith 2b25091098 Add examples and more detailed docs
- Mostly documenting properties of APIServer (for the most part Etcd has
  the same properties).
- Adding executable examples, some off which run as additional test
  cases.
2017-12-15 16:19:50 +00:00
Gareth Smith 08cb5b2ee7 Give AddressManager responsibility for its host
You no longer have to pass a hostname to initialise the addressmanager.
The DefaultAddressManager always listens on localhost. If you want to
listen on some other interface, you can use a different AddressManager.
2017-12-15 16:07:24 +00:00
k8s-ci-robot 129504ba58
Merge pull request #178 from totherme/control-pane-process-timeouts
Control pane process timeouts
2017-12-14 20:40:29 -08:00
k8s-ci-robot 0e690228fc
Merge pull request #177 from hoegaarden/zero-conf-structs
Zero conf structs
2017-12-14 16:18:29 -08:00
k8s-ci-robot 9afcb2bc07
Merge pull request #176 from totherme/162-apiserver-sane-default-constructor
162 apiserver sane default constructor
2017-12-14 16:03:29 -08:00
k8s-ci-robot 2e18103b69
Merge pull request #168 from totherme/163-fixtures-sane-0-value-default
Finalize the interface of the Fixtures struct
2017-12-14 15:21:28 -08:00
Gareth Smith 57c5c42731 Backfil tests for apiserver and etcd start timeout 2017-12-14 15:22:31 +00:00
Hannes Hörl 0263f2b034 Return error for timeout on process stop
We now return an error when stopping of a process times out, before that
resulted in a panic. Now a caller of `Stop()` can catch an handle this
error.

Also, the timeouts for stopping and starting a process is now
configurable, for example by:
```
etcd := &test.APIServer{
  StartTimeout: 12 * time.Second,
  StopTimeout: 5 * time.Second,
}
```
2017-12-14 13:55:53 +00:00