You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for Ready, Hostname and Nodename Endpoint attributes. And some other refactoring changes. (#210)
* Add support for Ready, Hostname and Nodename Endpoint attributes. And some other refactoring changes.
Changes:
* Add support for Ready, Hostname and Nodename Endpoint attributes.
* Refactor cluster properties changes - move to model package, simplify code.
* Add controller watches for Service event. Filter out events if cluster properties is not defined.
* Improve kind integration test - add curl test, use dnsutils pod for dig, use ngnix app for deployment
* Fix build command test
* Update the Leader resource name
# customresourcedefinition.apiextensions.k8s.io/clusterproperties.about.k8s.io created
163
+
# customresourcedefinition.apiextensions.k8s.io/serviceexports.multicluster.x-k8s.io created
140
164
# customresourcedefinition.apiextensions.k8s.io/serviceimports.multicluster.x-k8s.io created
141
165
# ...
142
166
# deployment.apps/cloud-map-mcs-controller-manager created
@@ -152,38 +176,13 @@ To remove the controller from your cluster, run:
152
176
make undeploy
153
177
```
154
178
155
-
#### Run unit tests
156
-
157
-
Use command below to run the unit test:
158
-
```sh
159
-
make test
160
-
```
161
-
162
-
#### Cleanup
163
-
164
-
Use the command below to perform cleanup:
165
-
```sh
166
-
make clean
167
-
```
168
-
169
-
Use the command below to remove the CRDs from the cluster:
170
-
```sh
171
-
make uninstall
172
-
```
173
-
174
179
Use the command below to delete the cluster `my-cluster`:
175
180
```sh
176
181
kind delete cluster --name my-cluster
177
182
```
178
183
179
-
### Deploying to a cluster
180
-
181
-
You must first push a Docker image containing the changes to a Docker repository like ECR, Github packages, or DockerHub. The repo is configured to use Github Actions to automatically publish the docker image upon push to `main` branch. The image URI will be `ghcr.io/[Your forked repo name here]` You can enable this for forked repos by enabling Github actions on your forked repo in the "Actions" tab of forked repo.
182
-
183
-
If you are deploying to cluster using kustomize templates from the `config` directory, you will need to override the image URI away from `ghcr.io/aws/aws-cloud-map-mcs-controller-for-k8s` in order to use your own docker images.
184
-
184
+
### Local integration testing
185
185
186
-
## Local integration testing
187
186
The end-to-end integration test suite can be run locally to validate controller core functionality. This will provision a local Kind cluster and build and run the AWS Cloud Map MCS Controller for K8s. The test will verify service endpoints sync with AWS Cloud Map. If successful, the suite will then de-provision the local test cluster and delete AWS Cloud Map namespace `aws-cloud-map-mcs-e2e` along with test service and service instance resources:
188
187
```sh
189
188
make kind-integration-suite
@@ -194,10 +193,15 @@ If integration test suite fails for some reason, you can perform a cleanup:
194
193
make kind-integration-cleanup
195
194
```
196
195
197
-
## Build and push docker image to ECR
196
+
## Build and push docker image
197
+
198
+
You must first push a Docker image containing the changes to a Docker repository like ECR, Github packages, or DockerHub. The repo is configured to use Github Actions to automatically publish the docker image upon push to `main` branch. The image URI will be `ghcr.io/[Your forked repo name here]` You can enable this for forked repos by enabling Github actions on your forked repo in the "Actions" tab of forked repo.
199
+
200
+
If you are deploying to cluster using kustomize templates from the `config` directory, you will need to override the image URI away from `ghcr.io/aws/aws-cloud-map-mcs-controller-for-k8s` in order to use your own docker images.
198
201
202
+
To push the docker image into personal repo:
199
203
```sh
200
-
make docker-build docker-push IMG=<YOUR ACCOUNT ID>.dkr.ecr.<ECR REGION>.amazonaws.com/<ECR REPOSITORY>
204
+
make docker-build docker-push IMG=[Your personal repo]
0 commit comments