Skip to content

Commit a4e72e1

Browse files
Merge branch 'master' into chore/added-renovate
* master: (198 commits) fix(aws-sd): service instances registration and deregistration (kubernetes-sigs#5135) chore(docs): generate docs/monitoring/metrics.md file (kubernetes-sigs#5117) feat(chart): add helm-unittest framework (kubernetes-sigs#5137) feat(chart): add helm-unittest framework feat(aws): always create AAAA alias records in route53 (kubernetes-sigs#5111) feat(aws): fetch zones with tags batching (kubernetes-sigs#5058) docs: openwrt webhook (kubernetes-sigs#5132) docs(proposal): ipv6 internal node ip rollback plan (kubernetes-sigs#5081) docs(proposal): update date format chore(deps): bump the dev-dependencies group across 1 directory with 7 updates Update README.md with proper link to dev guide Add OpenStack Designate webook provider to readme chore(deps): bump the dev-dependencies group with 3 updates chore(deps): bump the dev-dependencies group with 20 updates chore(deps): bump azure/setup-helm in the dev-dependencies group style: formatting fix: remove broken test fix test name chore: upgrade ExternalDNS to go 1.24 chore-makefile-coverage ...
2 parents 5c12bda + 66a3885 commit a4e72e1

File tree

205 files changed

+13747
-2485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+13747
-2485
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
# Change these settings to your own preference
10+
indent_style = space
11+
indent_size = 2
12+
13+
# We recommend you to keep these unchanged
14+
end_of_line = lf
15+
charset = utf-8
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true
18+
19+
# https://github.com/editorconfig/editorconfig-core-go/blob/master/.editorconfig
20+
[{Makefile,go.mod,go.sum,*.go}]
21+
indent_style = tab
22+
indent_size = 4

.github/ISSUE_TEMPLATE/---bug-report.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ assignees: ''
2020
**Anything else we need to know?**:
2121

2222
**Environment**:
23+
2324
- External-DNS version (use `external-dns --version`):
2425
- DNS provider:
2526
- Others:

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
22+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2323
with:
2424
python-version: "3.12"
2525
cache: "pip"

.github/workflows/json-yaml-validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: json-yaml-validate
1+
name: json-yaml-validate
22
on:
33
push:
44
branches: [ master ]

.github/workflows/lint-test-chart.yaml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,25 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020

21+
- name: Install Helm
22+
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
23+
with:
24+
token: ${{ github.token }}
25+
version: latest
26+
27+
- name: Run Helm Schema check
28+
working-directory: charts/external-dns
29+
run: |
30+
set -euo pipefail
31+
32+
helm plugin install https://github.com/losisin/helm-values-schema-json.git
33+
helm schema
34+
if [[ -n "$(git status --porcelain --untracked-files=no)" ]]
35+
then
36+
echo "Schema not up to date. Please run helm schema and commit changes!" >&2
37+
exit 1
38+
fi
39+
2140
- name: Install Helm Docs
2241
uses: action-stars/install-tool-from-github-release@ece2623611b240002e0dd73a0d685505733122f6 # v0.2.4
2342
with:
@@ -39,6 +58,12 @@ jobs:
3958
exit 1
4059
fi
4160
61+
- name: Run Helm Unit Tests
62+
run: |
63+
set -euo pipefail
64+
helm plugin install https://github.com/helm-unittest/helm-unittest.git >/dev/null 2>&1
65+
helm unittest -f 'tests/*_test.yaml' --color charts/external-dns
66+
4267
- name: Install Artifact Hub CLI
4368
uses: action-stars/install-tool-from-github-release@ece2623611b240002e0dd73a0d685505733122f6 # v0.2.4
4469
with:
@@ -52,31 +77,25 @@ jobs:
5277
- name: Run Artifact Hub lint
5378
run: ah lint --kind helm || exit 1
5479

55-
- name: Install Helm
56-
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
57-
with:
58-
token: ${{ github.token }}
59-
version: latest
60-
6180
- name: Install Python
62-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
81+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
6382
with:
6483
token: ${{ github.token }}
6584
python-version: "3.x"
6685

6786
- name: Set-up chart-testing
68-
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
87+
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
6988

7089
- name: Check for changes
7190
id: changes
7291
run: |
73-
changed=$(ct list-changed)
92+
changed=$(ct list-changed --target-branch=master)
7493
if [[ -n "$changed" ]]; then
7594
echo "changed=true" >> "${GITHUB_OUTPUT}"
7695
fi
7796
7897
- name: Run chart-testing lint
79-
run: ct lint --check-version-increment=false
98+
run: ct lint --target-branch=master --check-version-increment=false
8099

81100
- name: Create Kind cluster
82101
if: steps.changes.outputs.changed == 'true'
@@ -86,4 +105,4 @@ jobs:
86105

87106
- name: Run chart-testing install
88107
if: steps.changes.outputs.changed == 'true'
89-
run: ct install
108+
run: ct install --target-branch=master

.github/workflows/lint.yaml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,50 @@
11
name: Lint
22

33
on:
4-
push:
5-
branches: [ master ]
64
pull_request:
75
branches: [ master ]
86

9-
permissions:
10-
contents: read # to fetch code (actions/checkout)
11-
checks: write
12-
137
jobs:
14-
15-
build:
8+
lint:
9+
name: Markdown, Go and OAS
10+
runs-on: ubuntu-latest
1611
permissions:
1712
contents: read # to fetch code (actions/checkout)
18-
checks: write # to create a new check based on the results (shogo82148/actions-goveralls)
19-
20-
name: Build
21-
runs-on: ubuntu-latest
13+
checks: write
2214
steps:
2315

2416
- name: Check out code into the Go module directory
2517
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2618

19+
- name: Lint markdown
20+
uses: nosborn/[email protected]
21+
with:
22+
files: '.'
23+
config_file: ".markdownlint.json"
24+
2725
- name: Set up Go 1.x
2826
uses: actions/setup-go@v5
2927
with:
3028
go-version-file: go.mod
3129

32-
- name: Lint go code
30+
- name: Go formatting
31+
run: |
32+
if [ -z "$(gofmt -l .)" ]; then
33+
echo -e "All '*.go' files are properly formatted."
34+
else
35+
echo -e "Please run 'make go-lint' to fix. Some files need formatting:"
36+
gofmt -d -l .
37+
exit 1
38+
fi
39+
40+
41+
# https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#verify
42+
- name: Verify linter configuration and Lint go code
3343
uses: golangci/golangci-lint-action@v6
3444
with:
45+
verify: true
3546
args: --timeout=30m
36-
version: v1.60
47+
version: v1.64
3748

3849
# Run Spectral
3950
- name: Lint OpenAPI spec

.github/workflows/release-chart.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ jobs:
5151
git config user.email "[email protected]"
5252
5353
- name: Install Helm
54-
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
54+
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
5555
with:
56-
token: ${{ secrets.GITHUB_TOKEN }}
5756
version: latest
5857

5958
- name: Run chart-releaser
60-
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0
59+
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
6160
env:
6261
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
6362
CR_RELEASE_NAME_TEMPLATE: "external-dns-helm-chart-{{ .Version }}"

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,6 @@ docs/code-of-conduct.md
6060
docs/CONTRIBUTING.md
6161
docs/index.md
6262
docs/redirect
63-
site
63+
site
64+
_scratch
65+
Pipfile

.golangci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ linters-settings:
33
default-signifies-exhaustive: false
44
goimports:
55
local-prefixes: sigs.k8s.io/external-dns
6-
maligned:
7-
suggest-new: true
86
misspell:
97
locale: US
108
revive:
@@ -36,6 +34,8 @@ linters:
3634

3735
issues:
3836
# Excluding configuration per-path, per-linter, per-text and per-source
37+
exclude-files:
38+
- endpoint/zz_generated.deepcopy.go
3939
exclude-rules:
4040
- path: _test\.go
4141
linters:
@@ -67,7 +67,3 @@ issues:
6767
linters: [ typecheck ]
6868
- path: source/kong_tcpingress.go
6969
linters: [ typecheck ]
70-
71-
run:
72-
exclude-files:
73-
- endpoint/zz_generated.deepcopy.go

.markdownlint.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"default": true,
3+
"MD010": { "code_blocks": false },
4+
"MD013": { "line_length": "300" },
5+
"MD033": false,
6+
"MD036": false,
7+
"MD024": false,
8+
"MD041": false,
9+
"MD029": false,
10+
"MD034": false,
11+
"MD038": false,
12+
"MD046": false
13+
}

0 commit comments

Comments
 (0)