fix(helm): Update helm value schema to allow create-only policy type (#5627)

* fix(helm): Update schema for helm to allow `create-only`

* fix(docs): Update changelog to reflect addition of `create-only` policy.

* chore(docs): Update changelog with PR

* fix(helm): Undo improper spacing on comments

* chore(docs): Update README.md with new option

* fix(helm): Add EOF newline since format-on-save removed it
This commit is contained in:
Colton Hughes 2025-07-14 04:18:31 -05:00 committed by GitHub
parent a270a32bf6
commit 73b8fb0da7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 4 deletions

View File

@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [UNRELEASED]
### Fixed
- Fixed the lack of schema support for `create-only` dns policy in helm values ([#5627](https://github.com/kubernetes-sigs/external-dns/pull/5627)) _@coltonhughes_
### Changed
- Update RBAC for `Service` source to support `EndpointSlices`. ([#5493](https://github.com/kubernetes-sigs/external-dns/pull/5493)) _@vflaux_

View File

@ -128,7 +128,7 @@ If `namespaced` is set to `true`, please ensure that `sources` my only contains
| podAnnotations | object | `{}` | Annotations to add to the `Pod`. |
| podLabels | object | `{}` | Labels to add to the `Pod`. |
| podSecurityContext | object | See _values.yaml_ | [Pod security context](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#podsecuritycontext-v1-core), this supports full customisation. |
| policy | string | `"upsert-only"` | How DNS records are synchronized between sources and providers; available values are `sync` & `upsert-only`. |
| policy | string | `"upsert-only"` | How DNS records are synchronized between sources and providers; available values are `create-only`, `sync`, & `upsert-only`. |
| priorityClassName | string | `nil` | Priority class name for the `Pod`. |
| provider.name | string | `"aws"` | _ExternalDNS_ provider name; for the available providers and how to configure them see [README](https://github.com/kubernetes-sigs/external-dns/blob/master/charts/external-dns/README.md#providers). |
| provider.webhook.args | list | `[]` | Extra arguments to provide for the `webhook` container. |

View File

@ -270,12 +270,13 @@
}
},
"policy": {
"description": "How DNS records are synchronized between sources and providers; available values are `sync` \u0026 `upsert-only`.",
"description": "How DNS records are synchronized between sources and providers; available values are `create-only`, `sync`, \u0026 `upsert-only`.",
"default": "upsert-only",
"type": [
"string"
],
"enum": [
"create-only",
"sync",
"upsert-only"
]

View File

@ -213,8 +213,8 @@ sources:
- service
- ingress
# -- How DNS records are synchronized between sources and providers; available values are `sync` & `upsert-only`.
policy: upsert-only # @schema enum:[sync, upsert-only]; type:string; default: "upsert-only"
# -- How DNS records are synchronized between sources and providers; available values are `create-only`, `sync`, & `upsert-only`.
policy: upsert-only # @schema enum:[create-only, sync, upsert-only]; type:string; default: "upsert-only"
# -- Specify the registry for storing ownership and labels.
# Valid values are `txt`, `aws-sd`, `dynamodb` & `noop`.