Skip to content

Commit

Permalink
*: rename project to "aws-k8s-tester"
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Oct 30, 2018
1 parent 3e402a6 commit 1512e69
Show file tree
Hide file tree
Showing 112 changed files with 640 additions and 558 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/.DS_Store
/awstester
/aws-k8-tester
/*.yaml
/kubetest/*.yaml
*generated.yaml
Expand Down
170 changes: 85 additions & 85 deletions CHANGELOG-0.0.md

Large diffs are not rendered by default.

43 changes: 26 additions & 17 deletions CHANGELOG-0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,26 @@
<hr>


## [0.1.2](https://github.com/aws/awstester/releases/tag/0.1.2) (2018-10-30)
## [0.1.2](https://github.com/aws/aws-k8s-tester/releases/tag/0.1.2) (2018-10-30)

See [code changes](https://github.com/aws/awstester/compare/0.1.1...0.1.2).
See [code changes](https://github.com/aws/aws-k8s-tester/compare/0.1.1...0.1.2).

### `awstester` CLI
### Project

- Rename to [`aws-k8s-tester`](TODO).

### `aws-k8s-tester` CLI

- Remove [`awstester ec2 wait`](https://github.com/aws/awstester/commit/36a74c699819d92abdf7f89028ea95b54f19fc98) command.
- Rename to [`aws-k8s-tester` from `awstester`](TODO).
- Remove [`aws-k8s-tester ec2 wait`](https://github.com/aws/aws-k8s-tester/commit/36a74c699819d92abdf7f89028ea95b54f19fc98) command.

### `internal`

- Add [`internal/ec2/config.Config.Wait`](https://github.com/aws/awstester/commit/6073c2de289e352c5454d4b17380022168bcbac6) flag.
- Add [`internal/ec2/config.Config.Wait`](https://github.com/aws/aws-k8s-tester/commit/6073c2de289e352c5454d4b17380022168bcbac6) flag.

### Dependency

- Upgrade [`github.com/aws/aws-sdk-go`](https://github.com/aws/aws-sdk-go/releases) from [`v1.15.64`](https://github.com/aws/aws-sdk-go/releases/tag/v1.15.64) to [`v1.15.65`](https://github.com/aws/aws-sdk-go/releases/tag/v1.15.65).

### Go

Expand All @@ -23,25 +32,25 @@ See [code changes](https://github.com/aws/awstester/compare/0.1.1...0.1.2).
<hr>


## [0.1.1](https://github.com/aws/awstester/releases/tag/0.1.1) (2018-10-29)
## [0.1.1](https://github.com/aws/aws-k8s-tester/releases/tag/0.1.1) (2018-10-29)

See [code changes](https://github.com/aws/awstester/compare/0.1.0...0.1.1).
See [code changes](https://github.com/aws/aws-k8s-tester/compare/0.1.0...0.1.1).

### `awstester` CLI

- Add [`awstester ec2 wait`](https://github.com/aws/awstester/commit/8f66f7413f8f32a8479888ba3ae53449e75d05cc) command.
- Use EC2 metadata to name [`awstester wrk` output](https://github.com/aws/awstester/commit/03ec0af6e12d4ca85e539905b7ec3da2729c1f3f).
- Split [`awstester eks prow status-serve/get` to `awstester eks prow status serve` and `awstester eks prow status get`](https://github.com/aws/awstester/commit/297bf2795c4bc62c55de121b47e0a1bb62ad6108).
- Add [`awstester ec2 wait`](https://github.com/aws/aws-k8s-tester/commit/8f66f7413f8f32a8479888ba3ae53449e75d05cc) command.
- Use EC2 metadata to name [`awstester wrk` output](https://github.com/aws/aws-k8s-tester/commit/03ec0af6e12d4ca85e539905b7ec3da2729c1f3f).
- Split [`awstester eks prow status-serve/get` to `awstester eks prow status serve` and `aws-k8s-tester eks prow status get`](https://github.com/aws/aws-k8s-tester/commit/297bf2795c4bc62c55de121b47e0a1bb62ad6108).

### `eksconfig`

- Add [`eksconfig.Instance.LaunchTime`](https://github.com/aws/awstester/commit/d886cbeb0d7ea9b8e71f0b9bf57e04923985202d) field.
- Add [`eksconfig.Instance.LaunchTime`](https://github.com/aws/aws-k8s-tester/commit/d886cbeb0d7ea9b8e71f0b9bf57e04923985202d) field.

### `internal`

- Add [`"install-kubeadm"` plugin to `internal/ec2/config/plugins`](https://github.com/aws/awstester/commit/e103c1ca68742bb56a8c43d3508d0c09423bb6b5).
- Add [`internal/ec2/config.Config.InitScriptCreated`](https://github.com/aws/awstester/commit/793935db2418a7c960d89512372f534996adcb19) flag.
- Add [`internal/ec2/config.Instance.LaunchTime`](https://github.com/aws/awstester/commit/36fe5579ffb719d108272640c22f478127295dac) field.
- Add [`"install-kubeadm"` plugin to `internal/ec2/config/plugins`](https://github.com/aws/aws-k8s-tester/commit/e103c1ca68742bb56a8c43d3508d0c09423bb6b5).
- Add [`internal/ec2/config.Config.InitScriptCreated`](https://github.com/aws/aws-k8s-tester/commit/793935db2418a7c960d89512372f534996adcb19) flag.
- Add [`internal/ec2/config.Instance.LaunchTime`](https://github.com/aws/aws-k8s-tester/commit/36fe5579ffb719d108272640c22f478127295dac) field.

### Go

Expand All @@ -51,13 +60,13 @@ See [code changes](https://github.com/aws/awstester/compare/0.1.0...0.1.1).
<hr>


## [0.1.0](https://github.com/aws/awstester/releases/tag/0.1.0) (2018-10-29)
## [0.1.0](https://github.com/aws/aws-k8s-tester/releases/tag/0.1.0) (2018-10-29)

See [code changes](https://github.com/aws/awstester/compare/0.0.9...0.1.0).
See [code changes](https://github.com/aws/aws-k8s-tester/compare/0.0.9...0.1.0).

### `awstester` CLI

- Add [`awstester eks prow status-get --data-dir`](https://github.com/aws/awstester/commit/034b9f6667b664368bace942b2e8f160c1eadf9f) flag.
- Add [`awstester eks prow status-get --data-dir`](https://github.com/aws/aws-k8s-tester/commit/034b9f6667b664368bace942b2e8f160c1eadf9f) flag.

### Go

Expand Down
16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Contributing Guidelines

Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
documentation, we greatly value feedback and contributions from our community.

Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
information to effectively respond to your bug report or contribution.


## Reporting Bugs/Feature Requests

We welcome you to use the GitHub issue tracker to report bugs or suggest features.

When filing an issue, please check [existing open](https://github.com/aws/awstester/issues), or [recently closed](https://github.com/aws/awstester/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
When filing an issue, please check [existing open](https://github.com/aws/aws-k8s-tester/issues), or [recently closed](https://github.com/aws/aws-k8s-tester/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:

* A reproducible test case or series of steps
Expand All @@ -36,17 +36,17 @@ To send us a pull request, please:
5. Send us a pull request, answering any default questions in the pull request interface.
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.

GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).


## Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/aws/awstester/labels/help%20wanted) issues is a great place to start.
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/aws/aws-k8s-tester/labels/help%20wanted) issues is a great place to start.


## Code of Conduct
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
[email protected] with any additional questions or comments.


Expand All @@ -56,6 +56,6 @@ If you discover a potential security issue in this project we ask that you notif

## Licensing

See the [LICENSE](https://github.com/aws/awstester/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
See the [LICENSE](https://github.com/aws/aws-k8s-tester/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.

We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,27 @@ RUN git clone https://github.com/wg/wrk.git \
RUN curl -o /workspace/aws-bin/kubectl \
https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-07-26/bin/linux/amd64/kubectl

COPY /bin/awstester /workspace/aws-bin/
COPY /bin/aws-k8-tester /workspace/aws-bin/
RUN chmod +x /workspace/aws-bin/*
##########################################

##########################################
RUN kubectl version --short --client || true && which kubectl \
&& aws --version || true && which aws \
&& wrk --version || true && which wrk \
&& awstester -h || true && which awstester
&& aws-k8-tester -h || true && which aws-k8-tester
##########################################

##########################################
# add source code and vendor to run e2e tests implemented in "awstester"
# add source code and vendor to run e2e tests implemented in "aws-k8-tester"
# remove this once tests are contributed back to upstream
RUN mkdir -p ${GOPATH}/src/github.com/aws/awstester
ADD . ${GOPATH}/src/github.com/aws/awstester
RUN mkdir -p ${GOPATH}/src/github.com/aws/aws-k8s-tester
ADD . ${GOPATH}/src/github.com/aws/aws-k8s-tester

# clean up locally built binaries
RUN rm -f ${GOPATH}/src/github.com/aws/awstester/awstester
RUN rm -f ${GOPATH}/src/github.com/aws/aws-k8s-tester/aws-k8-tester
##########################################

##########################################
WORKDIR ${GOPATH}/src/github.com/aws/awstester
WORKDIR ${GOPATH}/src/github.com/aws/aws-k8s-tester
##########################################
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

.PHONY: build
build:
go build -v ./cmd/awstester
go build -v ./cmd/aws-k8s-tester

clean:
rm -f ./awstester
rm -f ./aws-k8s-tester
find **/*.generated.yaml -print0 | xargs -0 rm -f || true
find **/*.coverprofile -print0 | xargs -0 rm -f || true
find **/*.log -print0 | xargs -0 rm -f || true
90 changes: 45 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,33 @@ WARNING: Pre-alpha. Do not use this in production. Only for testing.



# awstester
# aws-k8s-tester

[![Go Report Card](https://goreportcard.com/badge/github.com/aws/awstester)](https://goreportcard.com/report/github.com/aws/awstester)
[![Godoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/aws/awstester)
[![Releases](https://img.shields.io/github/release/aws/awstester/all.svg?style=flat-square)](https://github.com/aws/awstester/releases)
[![LICENSE](https://img.shields.io/github/license/aws/awstester.svg?style=flat-square)](https://github.com/aws/awstester/blob/master/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/aws/aws-k8s-tester)](https://goreportcard.com/report/github.com/aws/aws-k8s-tester)
[![Godoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/aws/aws-k8s-tester)
[![Releases](https://img.shields.io/github/release/aws/aws-k8s-tester/all.svg?style=flat-square)](https://github.com/aws/aws-k8s-tester/releases)
[![LICENSE](https://img.shields.io/github/license/aws/aws-k8s-tester.svg?style=flat-square)](https://github.com/aws/aws-k8s-tester/blob/master/LICENSE)

## `awstester eks`
## `aws-k8s-tester eks`

To install

```bash
go install -v ./cmd/awstester
awstester eks create cluster -h
go install -v ./cmd/aws-k8s-tester
aws-k8s-tester eks create cluster -h
```

To create an EKS testing cluster with ALB Ingress Controller

```bash
awstester eks create config --path ./awstester-eks.yaml
aws-k8s-tester eks create config --path ./aws-k8s-tester-eks.yaml

# change default configurations
vi ./awstester-eks.yaml
vi ./aws-k8s-tester-eks.yaml
```

```bash
awstester eks create cluster --path ./awstester-eks.yaml
aws-k8s-tester eks create cluster --path ./aws-k8s-tester-eks.yaml
```

This will create an EKS cluster with ALB Ingress Controller (takes about 20 minutes).
Expand All @@ -40,7 +40,7 @@ Once cluster is created, check cluster state using AWS CLI:

```bash
aws eks describe-cluster \
--name awstester-20180928-efeaantamazonco-Os0xhhKodH \
--name aws-k8s-tester-20180928-efeaantamazonco-Os0xhhKodH \
--query cluster.status

"ACTIVE"
Expand All @@ -49,10 +49,10 @@ aws eks describe-cluster \
Cluser states are persisted on disk as well. EKS tester uses this file to track status.

```bash
cat ./awstester-eks.yaml
cat ./aws-k8s-tester-eks.yaml
```

Once complete, get the DNS names from `./awstester-eks.yaml`.
Once complete, get the DNS names from `./aws-k8s-tester-eks.yaml`.

And `curl` the `kube-system` namespace's `/metrics` endpoint, to see if it works.

Expand All @@ -64,42 +64,42 @@ curl -L http://e5de0f6b-kubesystem-ingres-6aec-38954145.us-west-2.elb.amazonaws.
Tear down the cluster (takes about 10 minutes):

```bash
awstester eks delete cluster --path ./awstester-eks.yaml
aws-k8s-tester eks delete cluster --path ./aws-k8s-tester-eks.yaml
```

### `awstester eks` e2e tests
### `aws-k8s-tester eks` e2e tests

To test locally:

```bash
# set "AWSTESTER_EKS_TAG" to avoid S3 bucket conflicts
# or just disable log uploads with "AWSTESTER_EKS_UPLOAD_TESTER_LOGS=false"
cd ${GOPATH}/src/github.com/aws/awstester
AWSTESTER_EKS_TEST_MODE=embedded \
AWSTESTER_EKS_KUBERNETES_VERSION=1.10 \
AWSTESTER_EKS_WAIT_BEFORE_DOWN=1m \
AWSTESTER_EKS_DOWN=true \
AWSTESTER_EKS_ENABLE_WORKER_NODE_HA=true \
AWSTESTER_EKS_ENABLE_NODE_SSH=true \
AWSTESTER_EKS_ENABLE_LOG_ACCESS=true \
AWSTESTER_EKS_UPLOAD_TESTER_LOGS=false \
AWSTESTER_EKS_UPLOAD_WORKER_NODE_LOGS=false \
AWSTESTER_EKS_WORKER_NODE_INSTANCE_TYPE=m3.xlarge \
AWSTESTER_EKS_WORKER_NODE_ASG_MIN=1 \
AWSTESTER_EKS_WORKER_NODE_ASG_MAX=1 \
AWSTESTER_EKS_ALB_ENABLE=true \
AWSTESTER_EKS_ALB_UPLOAD_TESTER_LOGS=false \
AWSTESTER_EKS_ALB_TARGET_TYPE=ip \
AWSTESTER_EKS_ALB_TEST_MODE=nginx \
AWSTESTER_EKS_ALB_TEST_SCALABILITY=true \
AWSTESTER_EKS_ALB_TEST_METRICS=true \
AWSTESTER_EKS_ALB_TEST_SERVER_REPLICAS=3 \
AWSTESTER_EKS_ALB_TEST_SERVER_ROUTES=1 \
AWSTESTER_EKS_ALB_TEST_CLIENTS=20 \
AWSTESTER_EKS_ALB_TEST_CLIENT_REQUESTS=200 \
AWSTESTER_EKS_ALB_TEST_RESPONSE_SIZE=20000 \
AWSTESTER_EKS_ALB_TEST_CLIENT_ERROR_THRESHOLD=50 \
AWSTESTER_EKS_ALB_TEST_EXPECT_QPS=100 \
AWSTESTER_EKS_ALB_INGRESS_CONTROLLER_IMAGE=quay.io/coreos/alb-ingress-controller:1.0-beta.7 \
# set "AWS_K8S_TESTER_EKS_TAG" to avoid S3 bucket conflicts
# or just disable log uploads with "AWS_K8S_TESTER_EKS_UPLOAD_TESTER_LOGS=false"
cd ${GOPATH}/src/github.com/aws/aws-k8s-tester
AWS_K8S_TESTER_EKS_TEST_MODE=embedded \
AWS_K8S_TESTER_EKS_KUBERNETES_VERSION=1.10 \
AWS_K8S_TESTER_EKS_WAIT_BEFORE_DOWN=1m \
AWS_K8S_TESTER_EKS_DOWN=true \
AWS_K8S_TESTER_EKS_ENABLE_WORKER_NODE_HA=true \
AWS_K8S_TESTER_EKS_ENABLE_NODE_SSH=true \
AWS_K8S_TESTER_EKS_ENABLE_LOG_ACCESS=true \
AWS_K8S_TESTER_EKS_UPLOAD_TESTER_LOGS=false \
AWS_K8S_TESTER_EKS_UPLOAD_WORKER_NODE_LOGS=false \
AWS_K8S_TESTER_EKS_WORKER_NODE_INSTANCE_TYPE=m3.xlarge \
AWS_K8S_TESTER_EKS_WORKER_NODE_ASG_MIN=1 \
AWS_K8S_TESTER_EKS_WORKER_NODE_ASG_MAX=1 \
AWS_K8S_TESTER_EKS_ALB_ENABLE=true \
AWS_K8S_TESTER_EKS_ALB_UPLOAD_TESTER_LOGS=false \
AWS_K8S_TESTER_EKS_ALB_TARGET_TYPE=ip \
AWS_K8S_TESTER_EKS_ALB_TEST_MODE=nginx \
AWS_K8S_TESTER_EKS_ALB_TEST_SCALABILITY=true \
AWS_K8S_TESTER_EKS_ALB_TEST_METRICS=true \
AWS_K8S_TESTER_EKS_ALB_TEST_SERVER_REPLICAS=3 \
AWS_K8S_TESTER_EKS_ALB_TEST_SERVER_ROUTES=1 \
AWS_K8S_TESTER_EKS_ALB_TEST_CLIENTS=20 \
AWS_K8S_TESTER_EKS_ALB_TEST_CLIENT_REQUESTS=200 \
AWS_K8S_TESTER_EKS_ALB_TEST_RESPONSE_SIZE=20000 \
AWS_K8S_TESTER_EKS_ALB_TEST_CLIENT_ERROR_THRESHOLD=50 \
AWS_K8S_TESTER_EKS_ALB_TEST_EXPECT_QPS=100 \
AWS_K8S_TESTER_EKS_ALB_INGRESS_CONTROLLER_IMAGE=quay.io/coreos/alb-ingress-controller:1.0-beta.7 \
./tests/ginkgo.sh
```
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

alblog "github.com/aws/awstester/internal/alb-log"
alblog "github.com/aws/aws-k8s-tester/internal/alb-log"

"github.com/spf13/cobra"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

alblog "github.com/aws/awstester/internal/alb-log"
alblog "github.com/aws/aws-k8s-tester/internal/alb-log"

"github.com/spf13/cobra"
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"os"

"github.com/aws/awstester/pkg/fileutil"
"github.com/aws/aws-k8s-tester/pkg/fileutil"

"github.com/spf13/cobra"
)
Expand Down
20 changes: 10 additions & 10 deletions cmd/awstester/main.go → cmd/aws-k8-tester/main.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// awstester is a set of AWS test commands.
// aws-k8s-tester is a set of AWS test commands.
package main

import (
"fmt"
"os"

alblog "github.com/aws/awstester/cmd/awstester/alb-log"
"github.com/aws/awstester/cmd/awstester/csi"
"github.com/aws/awstester/cmd/awstester/ec2"
"github.com/aws/awstester/cmd/awstester/ecr"
"github.com/aws/awstester/cmd/awstester/eks"
"github.com/aws/awstester/cmd/awstester/version"
"github.com/aws/awstester/cmd/awstester/wrk"
alblog "github.com/aws/aws-k8s-tester/cmd/alb-log"
"github.com/aws/aws-k8s-tester/cmd/csi"
"github.com/aws/aws-k8s-tester/cmd/ec2"
"github.com/aws/aws-k8s-tester/cmd/ecr"
"github.com/aws/aws-k8s-tester/cmd/eks"
"github.com/aws/aws-k8s-tester/cmd/version"
"github.com/aws/aws-k8s-tester/cmd/wrk"

"github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
Use: "awstester",
Use: "aws-k8s-tester",
Short: "AWS test CLI",
SuggestFor: []string{"awstest"},
}
Expand All @@ -40,7 +40,7 @@ func init() {

func main() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "awstester failed %v\n", err)
fmt.Fprintf(os.Stderr, "aws-k8s-tester failed %v\n", err)
os.Exit(1)
}
os.Exit(0)
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1512e69

Please sign in to comment.