Skip to content

Commit 24c0056

Browse files
Merge branch 'master' into chore-update-reviewers
* master: (97 commits) chore(formatting): fix infected files with correct formatting (kubernetes-sigs#5099) docs: Fix managed-record-type argument docs(proposal): support multiple replicas with leader election (kubernetes-sigs#5051) feat(chart): automate helm json schema (kubernetes-sigs#5075) docs(proposal): update proposal template, add statuses test(aws): introduce first fixture-based (kubernetes-sigs#5092) chore(makefile): add helper and document targets feat: Updated chart for v1.15.2 release chore(makefile): add helper and document targets chore(filter-tags): pre-process filter tags chore(filter-tags): pre-process filter tags chore(filter-tags): pre-process filter tags chore(deps): bump the dev-dependencies group across 1 directory with 21 updates test(domain-filter): simple filters on domain exclusion (kubernetes-sigs#5064) chore(deps): bump nosborn/github-action-markdown-cli ci(docs): add markdown linters and editorconfig (kubernetes-sigs#5055) Address PR comments docs: update and refactor contribution part (kubernetes-sigs#5073) fix(chart): update rbac for F5 transportserver source (kubernetes-sigs#5066) fix(chart): non-string types on svcaccount annotations (kubernetes-sigs#5067) ...
2 parents 141e05f + 99b9d0d commit 24c0056

File tree

148 files changed

+9568
-1857
lines changed

Some content is hidden

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

148 files changed

+9568
-1857
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: 24 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@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.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:
@@ -52,31 +71,25 @@ jobs:
5271
- name: Run Artifact Hub lint
5372
run: ah lint --kind helm || exit 1
5473

55-
- name: Install Helm
56-
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
57-
with:
58-
token: ${{ github.token }}
59-
version: latest
60-
6174
- name: Install Python
62-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
75+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
6376
with:
6477
token: ${{ github.token }}
6578
python-version: "3.x"
6679

6780
- name: Set-up chart-testing
68-
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
81+
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
6982

7083
- name: Check for changes
7184
id: changes
7285
run: |
73-
changed=$(ct list-changed)
86+
changed=$(ct list-changed --target-branch=master)
7487
if [[ -n "$changed" ]]; then
7588
echo "changed=true" >> "${GITHUB_OUTPUT}"
7689
fi
7790
7891
- name: Run chart-testing lint
79-
run: ct lint --check-version-increment=false
92+
run: ct lint --target-branch=master --check-version-increment=false
8093

8194
- name: Create Kind cluster
8295
if: steps.changes.outputs.changed == 'true'
@@ -86,4 +99,4 @@ jobs:
8699

87100
- name: Run chart-testing install
88101
if: steps.changes.outputs.changed == 'true'
89-
run: ct install
102+
run: ct install --target-branch=master

.github/workflows/lint.yaml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,48 @@
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
3647
version: v1.63
3748

.github/workflows/release-chart.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ jobs:
5353
- name: Install Helm
5454
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.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)