Skip to content

Commit 201e186

Browse files
committed
feat: resolve load balancer hostname to A/AAAA records
1 parent 2683d3e commit 201e186

90 files changed

Lines changed: 1536 additions & 1747 deletions

File tree

Some content is hidden

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

.github/workflows/codeql-analysis.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
- cron: '35 13 * * 5'
1111
workflow_dispatch:
1212

13-
permissions: {}
14-
1513
jobs:
1614
analyze:
1715
name: Analyze
@@ -35,7 +33,7 @@ jobs:
3533

3634
# Initializes the CodeQL tools for scanning.
3735
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
36+
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
3937
with:
4038
languages: ${{ matrix.language }}
4139
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -47,4 +45,4 @@ jobs:
4745
make build
4846
4947
- name: Perform CodeQL Analysis
50-
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
48+
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1

.github/workflows/dependency-update.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@ on:
88
# once a day
99
- cron: '0 0 * * *'
1010

11-
permissions: {}
11+
permissions:
12+
contents: write
13+
pull-requests: write
1214

1315
jobs:
1416
update-versions-with-renovate:
1517
runs-on: ubuntu-latest
1618
if: github.repository == 'kubernetes-sigs/external-dns'
17-
permissions:
18-
contents: write
19-
pull-requests: write
2019
steps:
2120
- name: checkout
2221
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2322
# https://github.com/renovatebot/github-action
2423
- name: self-hosted renovate
25-
uses: renovatebot/github-action@f66d8679fcfcfa051abde6e7a623007173bf5164 # v46.1.12
24+
uses: renovatebot/github-action@3633cede7d4d4598438e654eac4a695e46004420 # v46.1.7
2625
with:
2726
# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication
2827
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/gh-workflow-approve.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
branches:
99
- master
1010

11-
permissions: {}
12-
1311
jobs:
1412
approve:
1513
name: Approve ok-to-test
@@ -19,7 +17,7 @@ jobs:
1917
actions: write
2018
steps:
2119
- name: Update PR
22-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
20+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2321
continue-on-error: true
2422
with:
2523
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
pull_request:
55
branches: [ master ]
66

7-
permissions: {}
8-
97
jobs:
108
lint:
119
name: Markdown and Go

.github/workflows/validate-crd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131

3232
- name: Set up Go
33-
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.2.0
33+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.2.0
3434
with:
3535
go-version-file: 'go.mod'
3636

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ helm-lint:
203203
scripts/helm-tools.sh --docs
204204

205205
.PHONY: go-dependency
206-
#? go-dependency: Dependency maintenance
206+
#? go-dependency: Dependency maintanance
207207
go-dependency:
208208
go mod tidy
209209

charts/external-dns/CHANGELOG.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818

1919
## [UNRELEASED]
2020

21-
## [v1.21.1]
22-
23-
### Added
24-
25-
- Add value `.sourceNamespace` to watch a namespace which is different from the one that external-dns is installed into when `.namespaced` is true. ([#6297](https://github.com/kubernetes-sigs/external-dns/pull/6297)) _@jplitza_
26-
- Add option to enable Gateway API ListenerSet support. ([#6381](https://github.com/kubernetes-sigs/external-dns/pull/6381)) _@speer_
27-
- Add support for bool in extraArgs. ([#6179](https://github.com/kubernetes-sigs/external-dns/pull/6179)) _@farodin91_
28-
- Add value `.namespaceOverride` to render chart resources into a namespace different from the release namespace, for subchart installs that want their own namespace. ([#6389](https://github.com/kubernetes-sigs/external-dns/pull/6389)) _@alliasgher_
29-
30-
### Changed
31-
32-
- Update _ExternalDNS_ OCI image version to [v0.21.0](https://github.com/kubernetes-sigs/external-dns/releases/tag/v0.21.0). ([#6354](https://github.com/kubernetes-sigs/external-dns/pull/6354)) _@vflaux_
33-
3421
### Fixed
3522

3623
- Avoid creating cluster-scoped RBAC for Gateway API sources when running namespaced with `gatewayNamespace` set. Namespace listing permissions are now only added when `gatewayNamespace` is unset. ([#5843](https://github.com/kubernetes-sigs/external-dns/pull/5843)) _@TobyTheHutt_
37-
- Ensure container arguments are passed in as strings ([#6264](https://github.com/kubernetes-sigs/external-dns/pull/6264)) _@KhooHaoYit_
38-
- Ensure container arguments are passed in as strings when extraArgs is a map ([#6284](https://github.com/kubernetes-sigs/external-dns/pull/6284)) _@vflaux_
3924

4025
## [v1.20.0]
4126

@@ -325,7 +310,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
325310
RELEASE LINKS
326311
-->
327312
[UNRELEASED]: https://github.com/kubernetes-sigs/external-dns/tree/master/charts/external-dns
328-
[v1.21.1]: https://github.com/kubernetes-sigs/external-dns/releases/tag/external-dns-helm-chart-1.21.1
329313
[v1.20.0]: https://github.com/kubernetes-sigs/external-dns/releases/tag/external-dns-helm-chart-1.20.0
330314
[v1.19.0]: https://github.com/kubernetes-sigs/external-dns/releases/tag/external-dns-helm-chart-1.19.0
331315
[v1.18.0]: https://github.com/kubernetes-sigs/external-dns/releases/tag/external-dns-helm-chart-1.18.0

charts/external-dns/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: external-dns
33
description: ExternalDNS synchronizes exposed Kubernetes Services and Ingresses with DNS providers.
44
type: application
5-
version: 1.21.1
6-
appVersion: 0.21.0
5+
version: 1.20.0
6+
appVersion: 0.20.0
77
keywords:
88
- kubernetes
99
- k8s

charts/external-dns/README.md

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- markdownlint-disable MD060 -->
44

5-
![Version: 1.21.1](https://img.shields.io/badge/Version-1.21.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.21.0](https://img.shields.io/badge/AppVersion-0.21.0-informational?style=flat-square)
5+
![Version: 1.20.0](https://img.shields.io/badge/Version-1.20.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.20.0](https://img.shields.io/badge/AppVersion-0.20.0-informational?style=flat-square)
66

77
ExternalDNS synchronizes exposed Kubernetes Services and Ingresses with DNS providers.
88

@@ -29,7 +29,7 @@ helm repo add external-dns https://kubernetes-sigs.github.io/external-dns/
2929
After you've installed the repo you can install the chart.
3030

3131
```shell
32-
helm upgrade --install external-dns external-dns/external-dns --version 1.21.1
32+
helm upgrade --install external-dns external-dns/external-dns --version 1.20.0
3333
```
3434

3535
## Providers
@@ -60,7 +60,7 @@ For set up for a specific provider using the Helm chart, see the following links
6060
## Namespace Scoped Installation
6161

6262
`external-dns` supports running on a namespace-only scope, too.
63-
If `namespaced=true` is defined, the Helm chart will setup `Roles` and `RoleBindings` instead of `ClusterRoles` and `ClusterRoleBindings`. By default, they are set up in the same namespace that `external-dns` itself is installed to. This can be changed via the `sourceNamespace` value.
63+
If `namespaced=true` is defined, the Helm chart will setup `Roles` and `RoleBindings` instead of `ClusterRoles` and `ClusterRoleBindings`.
6464

6565
Note: When using Gateway API sources in namespaced mode, a cluster-scoped permission to list namespaces is required, unless you also set `gatewayNamespace`. If you set `gatewayNamespace`, all RBAC remains namespaced and no `ClusterRole`/`ClusterRoleBinding` is created.
6666

@@ -105,7 +105,6 @@ If `namespaced` is set to `true`, please ensure that `sources` only contains sup
105105
| dnsConfig | object | `nil` | [DNS config](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config) for the pod, if not set the default will be used. |
106106
| dnsPolicy | string | `nil` | [DNS policy](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy) for the pod, if not set the default will be used. |
107107
| domainFilters | list | `[]` | Limit possible target zones by domain suffixes. |
108-
| enableGatewayListenerSets | bool | `false` | if `true`, the Gateway API ListenerSet flag will be enabled. |
109108
| enabled | bool | `nil` | No effect - reserved for use in sub-charting. |
110109
| env | list | `[]` | [Environment variables](https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/) for the `external-dns` container. |
111110
| excludeDomains | list | `[]` | Intentionally exclude domains from being managed. |
@@ -128,7 +127,6 @@ If `namespaced` is set to `true`, please ensure that `sources` only contains sup
128127
| logLevel | string | `"info"` | Log level. |
129128
| managedRecordTypes | list | `[]` | Record types to manage (default: A, AAAA, CNAME) |
130129
| nameOverride | string | `nil` | Override the name of the chart. |
131-
| namespaceOverride | string | `nil` | Override the namespace that chart resources are rendered into. Defaults to the release namespace. Useful when installing the chart as a subchart that should live in its own namespace, separate from the umbrella release namespace. |
132130
| namespaced | bool | `false` | if `true`, _ExternalDNS_ will run in a namespaced scope (`Role`` and `Rolebinding`` will be namespaced too). |
133131
| nodeSelector | object | `{}` | Node labels to match for `Pod` [scheduling](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/). |
134132
| podAnnotations | object | `{}` | Annotations to add to the `Pod`. |
@@ -182,7 +180,6 @@ If `namespaced` is set to `true`, please ensure that `sources` only contains sup
182180
| serviceMonitor.targetLabels | list | `[]` | Provide target labels for the `ServiceMonitor`. |
183181
| serviceMonitor.tlsConfig | object | `{}` | Configure the `ServiceMonitor` [TLS config](https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#tlsconfig). |
184182
| shareProcessNamespace | bool | `false` | If `true`, the `Pod` will have [process namespace sharing](https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/) enabled. |
185-
| sourceNamespace | string | `nil` | Source namespace to watch for Kubernetes resources other than Gateway API gateways. Used only when `namespaced=true`. Defaults to Release.Namespace |
186183
| sources | list | `["service","ingress"]` | _Kubernetes_ resources to monitor for DNS entries. |
187184
| terminationGracePeriodSeconds | int | `nil` | Termination grace period for the `Pod` in seconds. |
188185
| tolerations | list | `[]` | Node taints which will be tolerated for `Pod` [scheduling](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/). |
@@ -192,34 +189,6 @@ If `namespaced` is set to `true`, please ensure that `sources` only contains sup
192189
| txtPrefix | string | `nil` | Specify a prefix for the domain names of TXT records created for the `txt` registry. Mutually exclusive with `txtSuffix`. |
193190
| txtSuffix | string | `nil` | Specify a suffix for the domain names of TXT records created for the `txt` registry. Mutually exclusive with `txtPrefix`. |
194191

195-
## Usage
196-
197-
### Configure `extraArgs`
198-
199-
An array or map can be used, with maps allowing for value overrides; maps also support slice values to use the same arg multiple times.
200-
201-
Example array:
202-
203-
```yaml
204-
extraArgs:
205-
- --zone-id-filter=/hostedzone/Z00001
206-
- --zone-id-filter=/hostedzone/Z00002
207-
- --zone-id-filter=/hostedzone/Z00003
208-
```
209-
210-
Eample map: (supported values for map are strings, list of strings, and boolean)
211-
212-
```yaml
213-
extraArgs:
214-
extraArgA: valueA # results: "--extraArgA=valueA"
215-
extraArgB: # rendered: "--extraArgB=valueB-1 --extraArgB=valueB-2"
216-
- valueB-1
217-
- valueB-2
218-
extraArgC: true # results: "--extraArgC"
219-
extraArgD: false # results: "--no-extraArgD"
220-
extraArgE: # results: "--extraArgE"
221-
```
222-
223192
----------------------------------------------
224193

225194
Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs/).

charts/external-dns/README.md.gotmpl

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ For set up for a specific provider using the Helm chart, see the following links
5454
## Namespace Scoped Installation
5555

5656
`external-dns` supports running on a namespace-only scope, too.
57-
If `namespaced=true` is defined, the Helm chart will setup `Roles` and `RoleBindings` instead of `ClusterRoles` and `ClusterRoleBindings`. By default, they are set up in the same namespace that `external-dns` itself is installed to. This can be changed via the `sourceNamespace` value.
57+
If `namespaced=true` is defined, the Helm chart will setup `Roles` and `RoleBindings` instead of `ClusterRoles` and `ClusterRoleBindings`.
5858

5959
Note: When using Gateway API sources in namespaced mode, a cluster-scoped permission to list namespaces is required, unless you also set `gatewayNamespace`. If you set `gatewayNamespace`, all RBAC remains namespaced and no `ClusterRole`/`ClusterRoleBinding` is created.
6060

@@ -90,34 +90,6 @@ If `namespaced` is set to `true`, please ensure that `sources` only contains sup
9090

9191
{{ template "chart.valuesSection" . }}
9292

93-
## Usage
94-
95-
### Configure `extraArgs`
96-
97-
An array or map can be used, with maps allowing for value overrides; maps also support slice values to use the same arg multiple times.
98-
99-
Example array:
100-
101-
```yaml
102-
extraArgs:
103-
- --zone-id-filter=/hostedzone/Z00001
104-
- --zone-id-filter=/hostedzone/Z00002
105-
- --zone-id-filter=/hostedzone/Z00003
106-
```
107-
108-
Eample map: (supported values for map are strings, list of strings, and boolean)
109-
110-
```yaml
111-
extraArgs:
112-
extraArgA: valueA # results: "--extraArgA=valueA"
113-
extraArgB: # rendered: "--extraArgB=valueB-1 --extraArgB=valueB-2"
114-
- valueB-1
115-
- valueB-2
116-
extraArgC: true # results: "--extraArgC"
117-
extraArgD: false # results: "--no-extraArgD"
118-
extraArgE: # results: "--extraArgE"
119-
```
120-
12193
----------------------------------------------
12294

12395
Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs/).

0 commit comments

Comments
 (0)