diff --git a/.github/workflows/lint-test-chart.yaml b/.github/workflows/lint-test-chart.yaml index 064d2de31..b8425afa7 100644 --- a/.github/workflows/lint-test-chart.yaml +++ b/.github/workflows/lint-test-chart.yaml @@ -15,10 +15,19 @@ jobs: with: fetch-depth: 0 + - name: Run Artifact Hub lint + shell: bash + run: | + set -euo pipefail + curl -Lo ah_linux_amd64.tar.gz https://github.com/artifacthub/hub/releases/download/v1.6.0/ah_1.6.0_linux_amd64.tar.gz + tar -xzvf ah_linux_amd64.tar.gz ah + ./ah lint --kind helm || exit 1 + rm -f ./ah ./ah_linux_amd64.tar.gz + - name: Set up Helm uses: azure/setup-helm@v1 with: - version: v3.6.3 + version: 3.* - name: Set up Python uses: actions/setup-python@v2 @@ -26,7 +35,7 @@ jobs: python-version: 3.7 - name: Set up chart-testing - uses: helm/chart-testing-action@v2.1.0 + uses: helm/chart-testing-action@v2.2.0 - name: Run chart-testing (list-changed) id: list-changed diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index 34bd1e779..c0b16e7c6 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -17,6 +17,29 @@ jobs: with: fetch-depth: 0 + - name: Get chart version + id: chart_version + shell: bash + run: | + set -euo pipefail + chart_version="$(grep -Po "(?<=^version: ).+" charts/external-dns/Chart.yaml)" + echo "::set-output name=version::${chart_version}" + + - name: Get changelog entry + id: changelog_reader + uses: mindsers/changelog-reader-action@v2 + with: + path: charts/external-dns/CHANGELOG.md + version: "v${{ steps.chart_version.outputs.version }}" + + - name: Create release notes + shell: bash + run: | + set -euo pipefail + cat <<"EOF" > charts/external-dns/_release-notes.md + ${{ steps.changelog_reader.outputs.changes }} + EOF + - name: Configure Git run: | git config user.name "$GITHUB_ACTOR" @@ -28,7 +51,8 @@ jobs: version: v3.6.3 - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.2.1 + uses: helm/chart-releaser-action@v1.3.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" CR_RELEASE_NAME_TEMPLATE: "external-dns-helm-chart-{{ .Version }}" + CR_RELEASE_NOTES_FILE: _release-notes.md diff --git a/charts/external-dns/CHANGELOG.md b/charts/external-dns/CHANGELOG.md new file mode 100644 index 000000000..39f0df3c9 --- /dev/null +++ b/charts/external-dns/CHANGELOG.md @@ -0,0 +1,24 @@ +# ExternalDNS Helm Chart Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +--- + + + +## [v1.8.0] - UNRELEASED + +### Added + +- Add annotations to Deployment. [#2477](https://github.com/kubernetes-sigs/external-dns/pull/2477) from @beastob + +### Changed + +- Fix RBAC for `istio-virtualservice` source when `istio-gateway` isn't also added. [#2564](https://github.com/kubernetes-sigs/external-dns/pull/2564) from @mcwarman diff --git a/charts/external-dns/Chart.yaml b/charts/external-dns/Chart.yaml index 612755951..7d61a3c69 100644 --- a/charts/external-dns/Chart.yaml +++ b/charts/external-dns/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: external-dns description: ExternalDNS synchronizes exposed Kubernetes Services and Ingresses with DNS providers. type: application -version: 1.7.1 +version: 1.8.0 appVersion: 0.10.2 keywords: - kubernetes @@ -18,8 +18,6 @@ maintainers: annotations: artifacthub.io/changes: | - kind: added - description: "Allow custom ClusterRole rules to be specified for sources without defaults." + description: "Add annotations to Deployment." - kind: changed - description: "Update ExternalDNS version to v0.10.2." - - kind: changed - description: "Set ClusterRole rules based more enabled sources." + description: "Fix RBAC for istio-virtualservice source when istio-gateway isn't also added." diff --git a/docs/contributing/chart.md b/docs/contributing/chart.md index da16c6d14..5d653725f 100644 --- a/docs/contributing/chart.md +++ b/docs/contributing/chart.md @@ -3,3 +3,5 @@ ## Chart Changes When contributing chart changes please follow the same process as when contributing other content but also please **DON'T** modify _Chart.yaml_ in the PR as this would result in a chart release when merged and will mean that your PR will need modifying before it can be accepted. The chart version will be updated as part of the PR to release the chart. + +Please **DO** add your changes to the _CHANGELOG.md_ file in the chart directory under the `## [UNRELEASED]` section, if there isn't an uncommented `## [UNRELEASED]` section please copy the commented out template and use that. diff --git a/docs/ttl.md b/docs/ttl.md index 861c863e1..1a0fb9650 100644 --- a/docs/ttl.md +++ b/docs/ttl.md @@ -36,7 +36,7 @@ Providers ========= - [x] AWS (Route53) -- [ ] Azure +- [x] Azure - [ ] Cloudflare - [x] DigitalOcean - [x] DNSimple @@ -58,6 +58,10 @@ When the `external-dns.alpha.kubernetes.io/ttl` annotation is not provided, the The AWS Provider overrides the value to 300s when the TTL is 0. This value is a constant in the provider code. +## Azure +TTL value should be between 1 and 2,147,483,647 seconds. +By default it will be 300s. + ### DigitalOcean Provider The DigitalOcean Provider overrides the value to 300s when the TTL is 0. This value is a constant in the provider code. @@ -82,5 +86,5 @@ The TransIP Provider minimal TTL is used when the TTL is 0. The minimal TTL is 6 ### Vultr Provider The Vultr provider minimal TTL is used when the TTL is 0. The default is 1 hour. -### UltraDNS +### UltraDNS The UltraDNS provider minimal TTL is used when the TTL is not provided. The default TTL is account level default TTL, if defined, otherwise 24 hours. diff --git a/go.mod b/go.mod index 11398fb0e..aefd07cd7 100644 --- a/go.mod +++ b/go.mod @@ -45,7 +45,7 @@ require ( github.com/sirupsen/logrus v1.8.1 github.com/stretchr/testify v1.7.0 github.com/transip/gotransip/v6 v6.14.0 - github.com/ukfast/sdk-go v1.4.23 + github.com/ukfast/sdk-go v1.4.34 github.com/ultradns/ultradns-sdk-go v0.0.0-20200616202852-e62052662f60 github.com/vinyldns/go-vinyldns v0.0.0-20200211145900-fe8a3d82e556 github.com/vultr/govultr/v2 v2.14.1 @@ -131,7 +131,7 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/objx v0.3.0 // indirect github.com/terra-farm/udnssdk v1.3.5 // indirect - github.com/ukfast/go-durationstring v1.0.0 // indirect + github.com/ukfast/go-durationstring v1.1.0 // indirect go.etcd.io/etcd/client/pkg/v3 v3.5.0 // indirect go.opencensus.io v0.23.0 // indirect go.uber.org/atomic v1.7.0 // indirect diff --git a/go.sum b/go.sum index b4e99dcff..ebc30518e 100644 --- a/go.sum +++ b/go.sum @@ -1198,10 +1198,10 @@ github.com/tsaarni/x500dn v0.0.0-20210331182804-14283c7f5a16/go.mod h1:RquKZ5rER github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ukfast/go-durationstring v1.0.0 h1:kgPuA7XjLjgLDfkG8j0MpolxcZh/eMdiVoOIFD/uc5I= -github.com/ukfast/go-durationstring v1.0.0/go.mod h1:Ci81n51kfxlKUIaLY9cINIKRO94VTqV+iCGbOMTb0V8= -github.com/ukfast/sdk-go v1.4.23 h1:dLZmHW2jgV0QQ2TGGdbL2tYVdtQPcuUub7Rzh+6Cqic= -github.com/ukfast/sdk-go v1.4.23/go.mod h1:tspweEP77MHhVEYgEEieKAKGITFgwkYl1q5fLh4HZAo= +github.com/ukfast/go-durationstring v1.1.0 h1:Ki0ubc5jqSt7XuAs+gkPNpHYolIwbcsRW4LS239tIHA= +github.com/ukfast/go-durationstring v1.1.0/go.mod h1:Ci81n51kfxlKUIaLY9cINIKRO94VTqV+iCGbOMTb0V8= +github.com/ukfast/sdk-go v1.4.34 h1:xuNbJ+WxsUqBfrm6eEdnTi6GcKL3R1cLxSN0jMk+4Rc= +github.com/ukfast/sdk-go v1.4.34/go.mod h1:vxlI1IHy2pp04AYqRMm0MHWSWOF0lwTkPJXHxTDLPok= github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= github.com/ultradns/ultradns-sdk-go v0.0.0-20200616202852-e62052662f60 h1:n7unetnX8WWTc0U85h/0+dJoLWLqoaJwowXB9RkBdxU= github.com/ultradns/ultradns-sdk-go v0.0.0-20200616202852-e62052662f60/go.mod h1:43vmy6GEvRuVMpGEWfJ/JoEM6RIqUQI1/tb8JqZR1zI= diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index df5f4aa2a..943b16717 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -3,7 +3,7 @@ kind: Kustomization images: - name: k8s.gcr.io/external-dns/external-dns - newTag: v0.10.2 + newTag: v0.11.0 resources: - ./external-dns-deployment.yaml