Skip to content

Commit 33304d8

Browse files
authored
Merge branch 'main' into chore/add-more-linters
2 parents 2d92dc9 + 87b69eb commit 33304d8

File tree

11 files changed

+92
-49
lines changed

11 files changed

+92
-49
lines changed

.github/workflows/codeql-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757

5858
# Initializes the CodeQL tools for scanning.
5959
- name: Initialize CodeQL
60-
uses: github/codeql-action/init@4fa2a7953630fd2f3fb380f21be14ede0169dd4f # v3.25.12
60+
uses: github/codeql-action/init@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
6161
with:
6262
languages: ${{ matrix.language }}
6363
build-mode: ${{ matrix.build-mode }}
@@ -69,6 +69,6 @@ jobs:
6969
# queries: security-extended,security-and-quality
7070

7171
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@4fa2a7953630fd2f3fb380f21be14ede0169dd4f # v3.25.12
72+
uses: github/codeql-action/analyze@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
7373
with:
7474
category: "/language:${{matrix.language}}"

.github/workflows/scorecards.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ jobs:
5656

5757
# Upload the results to GitHub's code scanning dashboard.
5858
- name: "Upload to code-scanning"
59-
uses: github/codeql-action/upload-sarif@4fa2a7953630fd2f3fb380f21be14ede0169dd4f # v3.25.12
59+
uses: github/codeql-action/upload-sarif@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
6060
with:
6161
sarif_file: results.sarif

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,11 @@ repos:
5656
hooks:
5757
- id: yamllint
5858

59+
- repo: https://github.com/thlorenz/doctoc
60+
rev: v2.2.0
61+
hooks:
62+
- id: doctoc
63+
args: [--update-only, --title, "## Table of Contents"]
64+
5965
ci:
6066
skip: [golangci-lint-full]

CONTRIBUTING.md

+17-14
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
The following is a set of guidelines for contributing to the NGINX AWS Auto-Scale Group Sync tool. We really appreciate
44
that you are considering contributing!
55

6-
## Table Of Contents
7-
8-
[Ask a Question](#ask-a-question)
9-
10-
[Getting Started](#getting-started)
11-
12-
[Contributing](#contributing)
13-
14-
[Style Guides](#style-guides)
15-
16-
- [Git Style Guide](#git-style-guide)
17-
- [Go Style Guide](#go-style-guide)
18-
19-
[Code of Conduct](CODE_OF_CONDUCT.md)
6+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
7+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
8+
## Table of Contents
9+
10+
- [Ask a Question](#ask-a-question)
11+
- [Getting Started](#getting-started)
12+
- [Project Structure](#project-structure)
13+
- [Contributing](#contributing)
14+
- [Report a Bug](#report-a-bug)
15+
- [Suggest an Enhancement](#suggest-an-enhancement)
16+
- [Open a Pull Request](#open-a-pull-request)
17+
- [Issue lifecycle](#issue-lifecycle)
18+
- [Style Guides](#style-guides)
19+
- [Git Style Guide](#git-style-guide)
20+
- [Go Style Guide](#go-style-guide)
21+
22+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2023

2124
## Ask a Question
2225

README.md

+23-19
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@ scaling group of a cloud provider. The following providers are supported:
1919
When the number of instances changes, nginx-asg-sync adds the new instances to the NGINX Plus configuration and removes
2020
the terminated ones.
2121

22+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
23+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
24+
## Table of Contents
25+
26+
- [How It Works](#how-it-works)
27+
- [Documentation](#documentation)
28+
- [Supported Operating Systems and Architectures](#supported-operating-systems-and-architectures)
29+
- [Installation](#installation)
30+
- [Manual Installation](#manual-installation)
31+
- [Snap Installation](#snap-installation)
32+
- [NGINX Plus Configuration](#nginx-plus-configuration)
33+
- [Configuration for Cloud Providers](#configuration-for-cloud-providers)
34+
- [Usage](#usage)
35+
- [Troubleshooting](#troubleshooting)
36+
- [Building a Software Package](#building-a-software-package)
37+
- [Contacts](#contacts)
38+
- [Contributing](#contributing)
39+
- [Support](#support)
40+
41+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
42+
2243
## How It Works
2344

2445
nginx-asg-sync is an agent process that runs on the same instance as NGINX Plus. It polls for changes to the backend
@@ -41,25 +62,8 @@ Below you will find documentation on how to use nginx-asg-sync.
4162

4263
## Documentation
4364

44-
> **Note**
45-
>
46-
> The documentation for **the latest stable release** is available via a link in the description of the release. See the
47-
> [releases page](https://github.com/nginxinc/nginx-asg-sync/releases).
48-
49-
**Contents:**
50-
51-
- [NGINX Plus Integration with Cloud Autoscaling --
52-
nginx-asg-sync](#nginx-plus-integration-with-cloud-autoscaling----nginx-asg-sync)
53-
- [How It Works](#how-it-works)
54-
- [Documentation](#documentation)
55-
- [Supported Operating Systems](#supported-operating-systems-and-architectures)
56-
- [Installation](#installation)
57-
- [NGINX Plus Configuration](#nginx-plus-configuration)
58-
- [Configuration for Cloud Providers](#configuration-for-cloud-providers)
59-
- [Usage](#usage)
60-
- [Troubleshooting](#troubleshooting)
61-
- [Building a Software Package](#building-a-software-package)
62-
- [Support](#support)
65+
The documentation for **the latest stable release** is available via a link in the description of the release. See the
66+
[releases page](https://github.com/nginxinc/nginx-asg-sync/releases).
6367

6468
## Supported Operating Systems and Architectures
6569

examples/aws.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Configuration for AWS
22

3+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
4+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5+
## Table of Contents
6+
7+
- [Setting up Access to AWS API](#setting-up-access-to-aws-api)
8+
- [nginx-asg-sync Configuration](#nginx-asg-sync-configuration)
9+
10+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
11+
312
## Setting up Access to AWS API
413

514
nginx-asg-sync uses the AWS API to get the list of IP addresses of the instances of an Auto Scaling group. To access the

examples/azure.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Configuration for Azure
22

3+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
4+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5+
## Table of Contents
6+
7+
- [Setting up Access to Azure API](#setting-up-access-to-azure-api)
8+
- [nginx-asg-sync Configuration](#nginx-asg-sync-configuration)
9+
10+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
11+
312
## Setting up Access to Azure API
413

514
nginx-asg-sync uses the Azure API to get the list of IP addresses of the instances of a Virtual Machine Scale Set. To

go.mod

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ require (
66
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
77
github.com/Azure/go-autorest/autorest/azure/auth v0.5.13
88
github.com/aws/aws-sdk-go-v2 v1.30.3
9-
github.com/aws/aws-sdk-go-v2/config v1.27.26
9+
github.com/aws/aws-sdk-go-v2/config v1.27.27
1010
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11
1111
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.3
12-
github.com/aws/aws-sdk-go-v2/service/ec2 v1.170.0
12+
github.com/aws/aws-sdk-go-v2/service/ec2 v1.171.0
1313
github.com/nginxinc/nginx-plus-go-client v1.2.2
1414
gopkg.in/yaml.v2 v2.4.0
1515
)
@@ -24,13 +24,13 @@ require (
2424
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
2525
github.com/Azure/go-autorest/logger v0.2.1 // indirect
2626
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
27-
github.com/aws/aws-sdk-go-v2/credentials v1.17.26 // indirect
27+
github.com/aws/aws-sdk-go-v2/credentials v1.17.27 // indirect
2828
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 // indirect
2929
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 // indirect
3030
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
3131
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect
3232
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 // indirect
33-
github.com/aws/aws-sdk-go-v2/service/sso v1.22.3 // indirect
33+
github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 // indirect
3434
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect
3535
github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect
3636
github.com/aws/smithy-go v1.20.3 // indirect

go.sum

+8-8
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUM
2626
github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
2727
github.com/aws/aws-sdk-go-v2 v1.30.3 h1:jUeBtG0Ih+ZIFH0F4UkmL9w3cSpaMv9tYYDbzILP8dY=
2828
github.com/aws/aws-sdk-go-v2 v1.30.3/go.mod h1:nIQjQVp5sfpQcTc9mPSr1B0PaWK5ByX9MOoDadSN4lc=
29-
github.com/aws/aws-sdk-go-v2/config v1.27.26 h1:T1kAefbKuNum/AbShMsZEro6eRkeOT8YILfE9wyjAYQ=
30-
github.com/aws/aws-sdk-go-v2/config v1.27.26/go.mod h1:ivWHkAWFrw/nxty5Fku7soTIVdqZaZ7dw+tc5iGW3GA=
31-
github.com/aws/aws-sdk-go-v2/credentials v1.17.26 h1:tsm8g/nJxi8+/7XyJJcP2dLrnK/5rkFp6+i2nhmz5fk=
32-
github.com/aws/aws-sdk-go-v2/credentials v1.17.26/go.mod h1:3vAM49zkIa3q8WT6o9Ve5Z0vdByDMwmdScO0zvThTgI=
29+
github.com/aws/aws-sdk-go-v2/config v1.27.27 h1:HdqgGt1OAP0HkEDDShEl0oSYa9ZZBSOmKpdpsDMdO90=
30+
github.com/aws/aws-sdk-go-v2/config v1.27.27/go.mod h1:MVYamCg76dFNINkZFu4n4RjDixhVr51HLj4ErWzrVwg=
31+
github.com/aws/aws-sdk-go-v2/credentials v1.17.27 h1:2raNba6gr2IfA0eqqiP2XiQ0UVOpGPgDSi0I9iAP+UI=
32+
github.com/aws/aws-sdk-go-v2/credentials v1.17.27/go.mod h1:gniiwbGahQByxan6YjQUMcW4Aov6bLC3m+evgcoN4r4=
3333
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 h1:KreluoV8FZDEtI6Co2xuNk/UqI9iwMrOx/87PBNIKqw=
3434
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11/go.mod h1:SeSUYBLsMYFoRvHE0Tjvn7kbxaUhl75CJi1sbfhMxkU=
3535
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 h1:SoNJ4RlFEQEbtDcCEt+QG56MY4fm4W8rYirAmq+/DdU=
@@ -40,14 +40,14 @@ github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7
4040
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY=
4141
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.3 h1:y4kBd6IXizNoJ1QnVa1kFFmonxnv6mm6z+q7z0Jkdhg=
4242
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.3/go.mod h1:j2WsKJ/NQS+y8JUgpv+BBzyzddNZP2SG60fB5aQBZaA=
43-
github.com/aws/aws-sdk-go-v2/service/ec2 v1.170.0 h1:zPwhEYn3Y83mnnr9QG+i6NTiAbVbcJe6RpCSJKHIQNE=
44-
github.com/aws/aws-sdk-go-v2/service/ec2 v1.170.0/go.mod h1:9KdiRVKTZyPRTlbX3i41FxTV+5OatZ7xOJCN4lleX7g=
43+
github.com/aws/aws-sdk-go-v2/service/ec2 v1.171.0 h1:r398oizT1O8AdQGpnxOMOIstEAAb3PPW5QZsL8w4Ujc=
44+
github.com/aws/aws-sdk-go-v2/service/ec2 v1.171.0/go.mod h1:9KdiRVKTZyPRTlbX3i41FxTV+5OatZ7xOJCN4lleX7g=
4545
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 h1:dT3MqvGhSoaIhRseqw2I0yH81l7wiR2vjs57O51EAm8=
4646
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3/go.mod h1:GlAeCkHwugxdHaueRr4nhPuY+WW+gR8UjlcqzPr1SPI=
4747
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 h1:HGErhhrxZlQ044RiM+WdoZxp0p+EGM62y3L6pwA4olE=
4848
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17/go.mod h1:RkZEx4l0EHYDJpWppMJ3nD9wZJAa8/0lq9aVC+r2UII=
49-
github.com/aws/aws-sdk-go-v2/service/sso v1.22.3 h1:Fv1vD2L65Jnp5QRsdiM64JvUM4Xe+E0JyVsRQKv6IeA=
50-
github.com/aws/aws-sdk-go-v2/service/sso v1.22.3/go.mod h1:ooyCOXjvJEsUw7x+ZDHeISPMhtwI3ZCB7ggFMcFfWLU=
49+
github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 h1:BXx0ZIxvrJdSgSvKTZ+yRBeSqqgPM89VPlulEcl37tM=
50+
github.com/aws/aws-sdk-go-v2/service/sso v1.22.4/go.mod h1:ooyCOXjvJEsUw7x+ZDHeISPMhtwI3ZCB7ggFMcFfWLU=
5151
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 h1:yiwVzJW2ZxZTurVbYWA7QOrAaCYQR72t0wrSBfoesUE=
5252
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4/go.mod h1:0oxfLkpz3rQ/CHlx5hB7H69YUpFiI1tql6Q6Ne+1bCw=
5353
github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 h1:ZsDKRLXGWHk8WdtyYMoGNO7bTudrvuKpDKgMVRlepGE=

tests/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ Note: for now this is for internal use only, as AWS stack configuration is done
88

99
Below you will find the instructions on how to run the tests against a cloud provider.
1010

11+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
12+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
13+
## Table of Contents
14+
15+
- [Running Tests](#running-tests)
16+
- [Prerequisites](#prerequisites)
17+
- [Step 1 - Set up the environment](#step-1---set-up-the-environment)
18+
- [Step 2 - Run the Tests](#step-2---run-the-tests)
19+
- [Configuring the Tests](#configuring-the-tests)
20+
21+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
22+
1123
## Running Tests
1224

1325
### Prerequisites

tests/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
boto3==1.34.131
2-
pytest==8.2.2
2+
pytest==8.3.1
33
requests==2.32.3

0 commit comments

Comments
 (0)