-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: docs & verbose tests to find failure
- Loading branch information
Showing
3 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,5 @@ jobs: | |
make e2e-deploy | ||
- name: Run End2End Tests | ||
run: | | ||
go mod download | ||
make test-e2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,17 +103,29 @@ public key used to sign the image you're deploying. | |
|
||
# Test | ||
|
||
Based on the signed image and the corresponding key, the demo app should appear or denied (check event log) | ||
To test the webhook, you may run the following command(s): | ||
|
||
```bash | ||
kubectl create namespace cosignwebhook | ||
kubectl -n cosignwebhook apply -f manifests/demoapp.yaml | ||
# unit tests | ||
make test-unit | ||
# E2E tests | ||
make e2e-prep | ||
make test-e2e | ||
``` | ||
|
||
## E2E tests | ||
|
||
The E2E tests require a running kubernetes cluster. Currently, the namespace and webhook are deployed via helper make targets. To run the tests the following is required: | ||
|
||
- docker | ||
- cosign (v2) | ||
|
||
# TODO | ||
|
||
* [x] Support private images | ||
* [x] Support multiple container/keys | ||
* [ ] Support COSING_REPOSITORY | ||
|
||
# Local build | ||
|
||
|
@@ -124,6 +136,7 @@ CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o cosignw | |
## Credits | ||
|
||
Frank Kloeker [email protected] | ||
Bruno Bressi, [email protected] | ||
|
||
Life is for sharing. If you have an issue with the code or want to improve it, feel free to open an issue or an pull | ||
request. | ||
|