Skip to content

Commit 0164bcd

Browse files
authored
Merge branch 'master' into cloudmap-1
2 parents 0ec4c31 + 4eaf810 commit 0164bcd

File tree

15 files changed

+146
-1241
lines changed

15 files changed

+146
-1241
lines changed

Makefile

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ GO111MODULE=on
77
IMAGE=amazon/app-mesh-controller
88
REPO=$(AWS_ACCOUNT).dkr.ecr.$(AWS_REGION).amazonaws.com/$(IMAGE)
99
VERSION=v0.3.0
10+
DEV_VERSION=$(shell git describe --dirty --tags)
1011

1112
.PHONY: eks-appmesh-controller
1213
eks-appmesh-controller:
@@ -23,7 +24,6 @@ linux:
2324
mkdir -p _output/bin
2425
CGO_ENABLED=0 GOOS=linux go build -ldflags ${LDFLAGS} -o _output/bin/app-mesh-controller ./cmd/app-mesh-controller
2526

26-
2727
.PHONY: code-gen
2828
code-gen:
2929
./scripts/update-codegen.sh
@@ -34,7 +34,7 @@ verify-codegen:
3434

3535
.PHONY: image
3636
image:
37-
docker build -t $(IMAGE):latest .
37+
docker build -t $(IMAGE):$(DEV_VERSION) .
3838

3939
.PHONY: image-release
4040
image-release:
@@ -45,8 +45,8 @@ push:
4545
ifeq ($(AWS_ACCOUNT),)
4646
$(error AWS_ACCOUNT is not set)
4747
endif
48-
docker tag $(IMAGE):latest $(REPO):latest
49-
docker push $(REPO):latest
48+
docker tag $(IMAGE):$(DEV_VERSION) $(REPO):$(DEV_VERSION)
49+
docker push $(REPO):$(DEV_VERSION)
5050

5151
.PHONY: push-release
5252
push-release:
@@ -55,15 +55,7 @@ push-release:
5555

5656
.PHONY: deploy
5757
deploy:
58-
./scripts/deploy.sh
59-
60-
.PHONY: example
61-
example:
62-
./scripts/example.sh
63-
64-
.PHONY: release-example-gen
65-
release-example-gen:
66-
RELEASE=1 ./scripts/example.sh
58+
./scripts/deploy.sh ${REPO}:${DEV_VERSION}
6759

6860
.PHONY: clean
6961
clean:

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ AWS App Mesh Controller For K8s is a controller to help manage [App Mesh](https:
1111

1212
## Getting started
1313

14-
Check out the [example](docs/example.md) application, and read [design and usage](docs/design.md).
15-
16-
To begin using it in your cluster, follow the [install instructions](docs/install.md).
14+
- Install using steps under [install.md](./docs/install.md)
15+
- Follow the walkthroughs under [aws-app-mesh-examples](https://github.com/aws/aws-app-mesh-examples/tree/master/walkthroughs), e.g. [howto-k8s-fargate](https://github.com/aws/aws-app-mesh-examples/tree/master/walkthroughs/howto-k8s-fargate), [howto-k8s-retry-policy](https://github.com/aws/aws-app-mesh-examples/tree/master/walkthroughs/howto-k8s-retry-policy).
1716

1817
## Custom Resource Examples
1918

deploy/controller-deployment.yaml.template

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/design.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ spec:
9494
```
9595
the corresponding virtual node names in the App Mesh backend are, `colorteller-appmesh-demo`, `colorteller-blue-appmesh-demo`, and `colorteller-black-appmesh-demo` respectively.
9696

97-
Check out the [example](example.md) application for more details.
98-
9997
## Cloud Map Service Discovery
10098

10199
Cloud Map service discovery can be used in place of DNS. See this [App Mesh road map item](https://github.com/aws/aws-app-mesh-roadmap/issues/47). In order to use it, you must specify the service discovery type as "cloudMap" in your virtual node definition. For example,

docs/development.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Development
2+
3+
## Before you get started
4+
5+
Please read the [contributing](../CONTRIBUTING.md) guidelines before getting started.
6+
7+
## Guide
8+
9+
Following steps will help you get ready with a local development stack to contribute and test your changes before publishing a PR.
10+
11+
- Follow the [installation](install.md) steps. It is recommended to use the Helm to setup App Mesh controller.
12+
- Clone and checkout aws-app-mesh-controller-for-k8s.
13+
- Make code or configuration changes.
14+
- Run go-fmt
15+
```
16+
make go-fmt
17+
```
18+
- Build and push container image.
19+
```
20+
make image push
21+
```
22+
- Deploy latest changes to appmesh-controller
23+
```
24+
make deploy
25+
```
26+
- Use examples from [aws-app-mesh-examples](https://github.com/aws/aws-app-mesh-examples/tree/master/walkthroughs) to verify the controller behavior.
27+
28+
## Updating App Mesh CRD
29+
30+
Following steps can be used as a checklist when updating CRD to use the latest features available via App Mesh.
31+
32+
- [ ] Update `aws-go-sdk` in go.mod to use the latest types from App Mesh
33+
- [ ] Update CRD schema in `deploy/all.yaml`
34+
- [ ] Update CRD structs in `pkg/apis/appmesh/v1beta1/types.go`
35+
- [ ] Update deepcopy functions using `make code-gen`
36+
- [ ] Update App Mesh client wrapper `pkg/aws/appmesh.go`
37+
- [ ] Update controller(s) under `pkg/controller/`
38+

docs/example.md

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)