Skip to content

Commit db3197c

Browse files
authored
Migrating PGO CLI kuttl tests to chainsaw (#138)
* Kyverno policies We can use Kyverno policies to facilitate testing with different image repos. * initial set of templates These are helpful templates to use when testing the PGO CLI * default config and values YAML files * Chainsaw test for PGO CLI backup * Chainsaw test for PGO CLI backup * Chainsaw tests for PGO CLI create * Chainsaw tests for PGO CLI delete * Chainsaw test for PGO CLI show * Chainsaw tests for PGO CLI version * Add Chainsaw README Instructions for how to run the tests * remove skipDelete The chainsaw-show Test should remove resources after it completes. * Chainsaw test for PGO CLI start-stop * Chainsaw test for PGO CLI restore * Update chainsaw tests with helpful sleeps * Update template with better check for backup complete * added newlines at the end * renamed steps in version test * refactored backupSelector The way we defined the selector for backups was quite terse. This refactor simplifies the logic. * Chainsaw test for PGO CLI support export
1 parent 683c1e1 commit db3197c

22 files changed

+3701
-0
lines changed

testing/chainsaw/README

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# README
3+
4+
## Install PGO
5+
6+
```shell
7+
kubectl apply -k kustomize/install/namespace
8+
kubectl apply --server-side -k kustomize/install/default
9+
```
10+
11+
## Configure Image Pull Secrets
12+
13+
If your images are not publicly accessible, you will need to configure ImagePullSecrets.
14+
Kyverno Policies can be used to inject them into the tests for you.
15+
See [README](./policies/README) for the details.
16+
17+
18+
## Run Chainsaw
19+
20+
```shell
21+
chainsaw test --config ./e2e/config.yaml --values ./e2e/values.yaml --test-dir e2e
22+
```

0 commit comments

Comments
 (0)