Skip to content

Commit

Permalink
k8s-tester/csi-ebs: initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed May 30, 2021
1 parent 9e0a909 commit 075fe22
Show file tree
Hide file tree
Showing 17 changed files with 2,957 additions and 52 deletions.
23 changes: 16 additions & 7 deletions k8s-tester/README.config.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
*--------------------------------------------------*----------------------*---------------------------------------*---------*
*--------------------------------------------*----------------------*---------------------------------*---------*
| ENVIRONMENTAL VARIABLE | FIELD TYPE | TYPE | GO TYPE |
*--------------------------------------------*----------------------*---------------------------------*---------*
| K8S_TESTER_ADD_ON_FLUENT_BIT_ENABLE | SETTABLE VIA ENV VAR | *fluent_bit.Config.Enable | bool |
| K8S_TESTER_ADD_ON_FLUENT_BIT_MINIMUM_NODES | SETTABLE VIA ENV VAR | *fluent_bit.Config.MinimumNodes | int |
| K8S_TESTER_ADD_ON_FLUENT_BIT_NAMESPACE | SETTABLE VIA ENV VAR | *fluent_bit.Config.Namespace | string |
*--------------------------------------------*----------------------*---------------------------------*---------*
*------------------------------------------------*----------------------*-------------------------------------*---------*
| ENVIRONMENTAL VARIABLE | FIELD TYPE | TYPE | GO TYPE |
*------------------------------------------------*----------------------*-------------------------------------*---------*
Expand All @@ -41,13 +50,13 @@
*------------------------------------------------*----------------------*-------------------------------------*---------*
*--------------------------------------------*----------------------*---------------------------------*---------*
| ENVIRONMENTAL VARIABLE | FIELD TYPE | TYPE | GO TYPE |
*--------------------------------------------*----------------------*---------------------------------*---------*
| K8S_TESTER_ADD_ON_FLUENT_BIT_ENABLE | SETTABLE VIA ENV VAR | *fluent_bit.Config.Enable | bool |
| K8S_TESTER_ADD_ON_FLUENT_BIT_MINIMUM_NODES | SETTABLE VIA ENV VAR | *fluent_bit.Config.MinimumNodes | int |
| K8S_TESTER_ADD_ON_FLUENT_BIT_NAMESPACE | SETTABLE VIA ENV VAR | *fluent_bit.Config.Namespace | string |
*--------------------------------------------*----------------------*---------------------------------*---------*
*-----------------------------------------------*----------------------*----------------------------------*---------*
| ENVIRONMENTAL VARIABLE | FIELD TYPE | TYPE | GO TYPE |
*-----------------------------------------------*----------------------*----------------------------------*---------*
| K8S_TESTER_ADD_ON_CSI_EBS_ENABLE | SETTABLE VIA ENV VAR | *csi_ebs.Config.Enable | bool |
| K8S_TESTER_ADD_ON_CSI_EBS_MINIMUM_NODES | SETTABLE VIA ENV VAR | *csi_ebs.Config.MinimumNodes | int |
| K8S_TESTER_ADD_ON_CSI_EBS_HELM_CHART_REPO_URL | SETTABLE VIA ENV VAR | *csi_ebs.Config.HelmChartRepoURL | string |
*-----------------------------------------------*----------------------*----------------------------------*---------*
*------------------------------------------------------*----------------------*-------------------------------------------*---------*
Expand Down
25 changes: 14 additions & 11 deletions k8s-tester/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ Each test case:
- MAY implement a CLI with the sub-commands of "apply" and "delete"

To add a new tester,
1. Create a new directory under `github.com/aws/aws-k8s-tester/k8s-tester`.
2. Implement `github.com/aws/aws-k8s-tester/k8s-tester/tester.Tester` interface within the new package `github.com/aws/aws-k8s-tester/k8s-tester/NEW-TESTER`.
3. (Optional) Implement a stand-alone CLI for the test case under `github.com/aws/aws-k8s-tester/k8s-tester/NEW-TESTER/cmd/k8s-tester-NEW-TESTER`.
4. Import the new configuration struct to `k8s-tester/config.go` with test cases in `k8s-tester/config_test.go`.
5. Add the new tester to `github.com/aws/aws-k8s-tester/k8s-tester/tester.go`.
6. Run `github.com/aws/aws-k8s-tester/k8s-tester/vend.sh`.
7. Add the new tester to `github.com/aws/aws-k8s-tester/k8s-tester/cmd/readme-gen/main.go`.
8. Run `github.com/aws/aws-k8s-tester/k8s-tester/cmd/readme-gen/vend.sh`.
9. Update and run `github.com/aws/aws-k8s-tester/k8s-tester/fmt.sh`.
10. Run `github.com/aws/aws-k8s-tester/k8s-tester/cmd/k8s-tester/vend.sh`.
11. Run `github.com/aws/aws-k8s-tester/k8s-tester/gen.sh`.
- Create a new directory under `github.com/aws/aws-k8s-tester/k8s-tester`.
- Implement `github.com/aws/aws-k8s-tester/k8s-tester/tester.Tester` interface within the new package `github.com/aws/aws-k8s-tester/k8s-tester/NEW-TESTER`.
- (Optional) Implement a stand-alone CLI for the test case under `github.com/aws/aws-k8s-tester/k8s-tester/NEW-TESTER/cmd/k8s-tester-NEW-TESTER`.
- Import the new configuration struct to `k8s-tester/config.go` with test cases in `k8s-tester/config_test.go`.
- Add the new tester to `github.com/aws/aws-k8s-tester/k8s-tester/tester.go`.
- Update `github.com/aws/aws-k8s-tester/k8s-tester/go.mod`.
- Run `github.com/aws/aws-k8s-tester/k8s-tester/vend.sh`.
- Add the new tester to `github.com/aws/aws-k8s-tester/k8s-tester/cmd/readme-gen/main.go`.
- Update `github.com/aws/aws-k8s-tester/k8s-tester/cmd/readme-gen/go.mod`.
- Run `github.com/aws/aws-k8s-tester/k8s-tester/cmd/readme-gen/vend.sh`.
- Update and run `github.com/aws/aws-k8s-tester/k8s-tester/fmt.sh`.
- Update `github.com/aws/aws-k8s-tester/k8s-tester/cmd/k8s-tester/go.mod`.
- Run `github.com/aws/aws-k8s-tester/k8s-tester/cmd/k8s-tester/vend.sh`.
- Run `github.com/aws/aws-k8s-tester/k8s-tester/gen.sh`.

### Examples

Expand Down
1 change: 1 addition & 0 deletions k8s-tester/cmd/k8s-tester/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ replace (
github.com/aws/aws-k8s-tester/k8s-tester => ../..
github.com/aws/aws-k8s-tester/k8s-tester/cloudwatch-agent => ../../cloudwatch-agent
github.com/aws/aws-k8s-tester/k8s-tester/fluent-bit => ../../fluent-bit
github.com/aws/aws-k8s-tester/k8s-tester/csi-ebs => ../../csi-ebs
github.com/aws/aws-k8s-tester/k8s-tester/helm => ../../helm
github.com/aws/aws-k8s-tester/k8s-tester/jobs-echo => ../../jobs-echo
github.com/aws/aws-k8s-tester/k8s-tester/jobs-pi => ../../jobs-pi
Expand Down
2 changes: 2 additions & 0 deletions k8s-tester/cmd/readme-gen/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.16
require (
github.com/aws/aws-k8s-tester/k8s-tester v0.0.0-00010101000000-000000000000
github.com/aws/aws-k8s-tester/k8s-tester/cloudwatch-agent v0.0.0-00010101000000-000000000000
github.com/aws/aws-k8s-tester/k8s-tester/csi-ebs v0.0.0-00010101000000-000000000000
github.com/aws/aws-k8s-tester/k8s-tester/fluent-bit v0.0.0-00010101000000-000000000000
github.com/aws/aws-k8s-tester/k8s-tester/jobs-echo v0.0.0-00010101000000-000000000000
github.com/aws/aws-k8s-tester/k8s-tester/jobs-pi v0.0.0-00010101000000-000000000000
Expand All @@ -19,6 +20,7 @@ replace (

github.com/aws/aws-k8s-tester/k8s-tester => ../..
github.com/aws/aws-k8s-tester/k8s-tester/cloudwatch-agent => ../../cloudwatch-agent
github.com/aws/aws-k8s-tester/k8s-tester/csi-ebs => ../../csi-ebs
github.com/aws/aws-k8s-tester/k8s-tester/fluent-bit => ../../fluent-bit
github.com/aws/aws-k8s-tester/k8s-tester/helm => ../../helm
github.com/aws/aws-k8s-tester/k8s-tester/jobs-echo => ../../jobs-echo
Expand Down
Loading

0 comments on commit 075fe22

Please sign in to comment.