Skip to content

Commit

Permalink
Bump v0.11.0
Browse files Browse the repository at this point in the history
Signed-off-by: Xabier Larrakoetxea <me@slok.dev>
  • Loading branch information
slok committed Oct 21, 2020
1 parent 40ddd9e commit 03067ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [Unreleased]

## [0.11.0] - 2020-10-21

### Added

- Add validation allowed Prometheus metrics.
Expand Down Expand Up @@ -113,7 +115,8 @@ Breaking: Webhook constructors now need a tracer.
- Static mutating webhook.
- Handler creator for webhooks.

[unreleased]: https://github.com/slok/kubewebhook/compare/v0.10.0...HEAD
[unreleased]: https://github.com/slok/kubewebhook/compare/v0.11.0...HEAD
[0.10.0]: https://github.com/slok/kubewebhook/compare/v0.10.0...v0.11.0
[0.10.0]: https://github.com/slok/kubewebhook/compare/v0.9.1...v0.10.0
[0.9.1]: https://github.com/slok/kubewebhook/compare/v0.9.0...v0.9.1
[0.9.0]: https://github.com/slok/kubewebhook/compare/v0.8.0...v0.9.0
Expand Down
12 changes: 6 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ that other Kubewebhook versions different to the matched ones to Kubernetes vers
work (e.g k8s v1.15 with Kubewebhook v0.3). You can try it and check if they work for you.

| k8s version | Kubewebhook version | Supported admission reviews | Support dynamic webhooks |
| ------------| ------------------- | --------------------------- | ------------------------ |
| ----------- | ------------------- | --------------------------- | ------------------------ |
| 1.19 | v0.11 | v1beta1 ||
| 1.18 | v0.10 | v1beta1 ||
| 1.18 | v0.9 | v1beta1 ||
| 1.17 | v0.8 | v1beta1 ||
Expand All @@ -124,7 +125,6 @@ Tools required

- [mkcert] (optional if you want to create new certificates).
- [kind] (option1, to run the cluster).
- [k3s] (option2, to run the cluster)
- ssh (to expose our webhook to the internet).

### (Optional) Certificates
Expand All @@ -146,19 +146,19 @@ Go integration tests require this env vars:
- `TEST_WEBHOOK_URL`: The url where the apiserver should make the webhook requests.
- `TEST_LISTEN_PORT`: The port where our webhook will be listening the requests.

There are 2 ways of bootstrapping the integration tests, one using kind and another using [k3s].
Kind is what is used to bootstrap the integration tests.

To run the integration tests do:

```bash
make integration-test
```

This it will bootstrap a cluster with [kind] by default and a [k3s] cluster if `K3S=true` env var is set. A ssh tunnel in a random address, and finally use the precreated certificates (see previous step), after this will execute the tests, and do it's best effort to tear down the clusters (on k3s could be problems, so have a check on k3s processes).
This it will bootstrap a cluster with [kind] by default. A ssh tunnel in a random address, and finally use the precreated certificates (see previous step), after this will execute the tests, and do it's best effort to tear down the clusters.

### Developing integration tests

To develop integration test is handy to run a k3s cluster and a serveo tunnel, then check out [/tests/integration/helper/config] and use this development settings on the integration tests.
To develop integration test is handy to run a [k3s] cluster and a Ngrok tunnel, then check out [/tests/integration/helper/config] and use this development settings on the integration tests.

[ci-image]: https://github.com/slok/kubewebhook/workflows/CI/badge.svg
[ci-url]: https://github.com/slok/kubewebhook/actions
Expand All @@ -178,4 +178,4 @@ To develop integration test is handy to run a k3s cluster and a serveo tunnel, t
[ngrok]: https://ngrok.com/
[mutating-cfg]: https://pkg.go.dev/github.com/slok/kubewebhook/pkg/webhook/mutating?tab=doc#WebhookConfig
[validating-cfg]: https://pkg.go.dev/github.com/slok/kubewebhook/pkg/webhook/validating?tab=doc#WebhookConfig
[runtime-unstructured]: https://pkg.go.dev/k8s.io/apimachinery/pkg/runtime?tab=doc#Unstructured
[runtime-unstructured]: https://pkg.go.dev/k8s.io/apimachinery/pkg/runtime?tab=doc#Unstructured

0 comments on commit 03067ff

Please sign in to comment.