Skip to content

Commit 5039af0

Browse files
authored
Release 1.0.0 (#777)
1 parent aa0358d commit 5039af0

File tree

8 files changed

+58
-56
lines changed

8 files changed

+58
-56
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ jobs:
109109
mkdir -p $HOME/.cache/snapcraft/stage-packages
110110
if: github.ref_type == 'tag'
111111

112-
- name: Build binaries
112+
- name: Run GoReleaser
113113
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
114114
with:
115-
version: latest
115+
version: v2.2.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
116116
args: ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean
117117
env:
118118
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
Starting with version 1.0.0 an automatically generated list of changes can be found on the [GitHub Releases page](https://github.com/nginxinc/nginx-asg-sync/releases).
4+
35
## 0.5.0 (February 24, 2021)
46

57
IMPROVEMENTS:
@@ -56,8 +58,8 @@ recommended steps to follow:
5658
status API.
5759
3. Reload NGINX Plus to apply the updated configuration
5860
4. Modify the /etc/nginx/aws.yaml file:
59-
- Remove the `upstream_conf_endpoint` and `status_endpoint` fields.
60-
- Add the `api_endpoint` field. See an example in the configuration section of the README.md
61+
- Remove the `upstream_conf_endpoint` and `status_endpoint` fields.
62+
- Add the `api_endpoint` field. See an example in the configuration section of the README.md
6163
5. Download the Release 0.2 nginx-asg-sync package for your OS and upgrade the package using the OS tools (dpkg or rpm).
6264
6. Check the logs of nginx-asg-sync to make sure that it is working properly after the upgrade.
6365
7. Finally remove the upstream_conf and the status API from NGINX Plus configuration.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ lint:
1616

1717
nginx-asg-sync:
1818
@go version || (code=$$?; printf "\033[0;31mError\033[0m: unable to build locally, try using the parameter TARGET=container or TARGET=download\n"; exit $$code)
19-
CGO_ENABLED=0 GOFLAGS="-gcflags=-trimpath=$(shell go env GOPATH) -asmflags=-trimpath=$(shell go env GOPATH)" GOOS=linux go build -trimpath -ldflags "-s -w" -o nginx-asg-sync github.com/nginxinc/nginx-asg-sync/cmd/sync
19+
CGO_ENABLED=0 GOFLAGS="-gcflags=-trimpath=$(shell go env GOPATH) -asmflags=-trimpath=$(shell go env GOPATH)" GOOS=linux go build -trimpath -ldflags "-s -w -X main.version=devel" -o nginx-asg-sync github.com/nginxinc/nginx-asg-sync/cmd/sync
2020

2121
.PHONY: build-goreleaser
2222
build-goreleaser:

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ Support for other operating systems or architectures can be added.
7777
### Manual Installation
7878

7979
1. Get a software package for your OS:
80-
- For a stable release, download a package from the [releases page](https://github.com/nginxinc/nginx-asg-sync/releases).
81-
- For the latest source code from the main branch, build a software package by following [these
82-
instructions](#building-a-software-package).
80+
- For a stable release, download a package from the [releases page](https://github.com/nginxinc/nginx-asg-sync/releases).
81+
- For the latest source code from the main branch, build a software package by following [these
82+
instructions](#building-a-software-package).
8383
2. Install the package:
84-
- For CentOS/RHEL based OSs, run: `sudo rpm -i <package-name>.rpm`
85-
- For Debian based OSs, run: `sudo dpkg -i <package-name>.deb`
84+
- For CentOS/RHEL based OSs, run: `sudo rpm -i <package-name>.rpm`
85+
- For Debian based OSs, run: `sudo dpkg -i <package-name>.deb`
8686

8787
### Snap Installation
8888

@@ -198,12 +198,12 @@ parameter ensures NGINX Plus won't consider a newly added instance healthy until
198198
When using AWS it's possible to filter out the instances that are not in a `InService` state of the
199199
[Lifecycle](https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html) with the parameter
200200
`in_service` set to `true`. This will ensure that the IP won't be added until the instance is ready to accept requests.
201-
This also works when an instance is being terminated: the asg-sync will remove the IP of an instance that went from the
201+
This also works when an instance is being terminated: the asg-sync will remove the IP of an instance that went from the
202202
`InService` state to one of the terminating states.
203203

204204
> **Note**
205205
>
206-
> Because the asg-sync works on a polling-based model, there will be a delay between the instance going to a
206+
> Because the asg-sync works on a polling-based model, there will be a delay between the instance going to a
207207
> terminating state and the asg-sync removing its IP from NGINX Plus. To guarantee that NGINX Plus doesn't send any
208208
> requests to a terminated instance, make sure the instance goes to the `Terminating:Wait` state for a period greater
209209
> than the interval `sync_interval`.

build/config.yaml.example

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
# api_endpoint: http://127.0.0.1:8080/api
66
# sync_interval: 5s
77
# upstreams:
8-
# - name: backend1
9-
# autoscaling_group: backend-group-1
8+
# - name: backend-one
9+
# autoscaling_group: backend-one-group
1010
# port: 80
1111
# kind: http
12-
# - name: backend2
13-
# autoscaling_group: backend-group-2
12+
# - name: backend-two
13+
# autoscaling_group: backend-two-group
1414
# port: 80
1515
# kind: http
1616
# - name: tcp-backend
17-
# autoscaling_group: backend-group-3
17+
# autoscaling_group: backend-three-group
1818
# port: 80
1919
# kind: stream
2020

@@ -26,15 +26,15 @@
2626
# api_endpoint: http://127.0.0.1:8080/api
2727
# sync_interval: 5s
2828
# upstreams:
29-
# - name: backend1
30-
# virtual_machine_scale_set: backend-group-1
29+
# - name: backend-one
30+
# virtual_machine_scale_set: backend-one-group
3131
# port: 80
3232
# kind: http
33-
# - name: backend2
34-
# virtual_machine_scale_set: backend-group-2
33+
# - name: backend-two
34+
# virtual_machine_scale_set: backend-two-group
3535
# port: 80
3636
# kind: http
3737
# - name: tcp-backend
38-
# virtual_machine_scale_set: backend-group-3
38+
# virtual_machine_scale_set: backend-three-group
3939
# port: 80
4040
# kind: stream

cmd/sync/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
var (
1818
configFile = flag.String("config_path", "/etc/nginx/config.yaml", "Path to the config file")
1919
logFile = flag.String("log_path", "", "Path to the log file. If the file doesn't exist, it will be created")
20-
version = "0.5.0"
20+
version string
2121
)
2222

2323
const connTimeoutInSecs = 10

examples/aws.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ sync_interval: 5s
2929
cloud_provider: AWS
3030
profile: default
3131
upstreams:
32-
- name: backend-one
33-
autoscaling_group: backend-one-group
34-
port: 80
35-
kind: http
36-
max_conns: 0
37-
max_fails: 1
38-
fail_timeout: 10s
39-
slow_start: 0s
40-
- name: backend-two
41-
autoscaling_group: backend-two-group
42-
port: 80
43-
kind: http
44-
max_conns: 0
45-
max_fails: 1
46-
fail_timeout: 10s
47-
slow_start: 0s
48-
in_service: true
32+
- name: backend-one
33+
autoscaling_group: backend-one-group
34+
port: 80
35+
kind: http
36+
max_conns: 0
37+
max_fails: 1
38+
fail_timeout: 10s
39+
slow_start: 0s
40+
- name: backend-two
41+
autoscaling_group: backend-two-group
42+
port: 80
43+
kind: http
44+
max_conns: 0
45+
max_fails: 1
46+
fail_timeout: 10s
47+
slow_start: 0s
48+
in_service: true
4949
```
5050
5151
- The `api_endpoint` key defines the NGINX Plus API endpoint.

examples/azure.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ cloud_provider: Azure
3131
subscription_id: my_subscription_id
3232
resource_group_name: my_resource_group
3333
upstreams:
34-
- name: backend-one
35-
virtual_machine_scale_set: backend-one-group
36-
port: 80
37-
kind: http
38-
max_conns: 0
39-
max_fails: 1
40-
fail_timeout: 10s
41-
slow_start: 0s
42-
- name: backend-two
43-
virtual_machine_scale_set: backend-two-group
44-
port: 80
45-
kind: http
46-
max_conns: 0
47-
max_fails: 1
48-
fail_timeout: 10s
49-
slow_start: 0s
34+
- name: backend-one
35+
virtual_machine_scale_set: backend-one-group
36+
port: 80
37+
kind: http
38+
max_conns: 0
39+
max_fails: 1
40+
fail_timeout: 10s
41+
slow_start: 0s
42+
- name: backend-two
43+
virtual_machine_scale_set: backend-two-group
44+
port: 80
45+
kind: http
46+
max_conns: 0
47+
max_fails: 1
48+
fail_timeout: 10s
49+
slow_start: 0s
5050
```
5151
5252
- The `api_endpoint` key defines the NGINX Plus API endpoint.

0 commit comments

Comments
 (0)