Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions charts/external-dns/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Changed

- Set defaults for `automountServiceAccountToken` and `serviceAccount.automountServiceAccountToken` to `true` in helm chart values ([#5207](https://github.com/kubernetes-sigs/external-dns/pull/5207)) _@t3mi_

### Fixed

- Add missing types in the schema for empty values ([#5207](https://github.com/kubernetes-sigs/external-dns/pull/5207)) _@t3mi_

## [v1.16.0] - 2025-03-20

### Added
Expand Down
4 changes: 2 additions & 2 deletions charts/external-dns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ If `namespaced` is set to `true`, please ensure that `sources` my only contains
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | Affinity settings for `Pod` [scheduling](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/). If an explicit label selector is not provided for pod affinity or pod anti-affinity one will be created from the pod selector labels. |
| automountServiceAccountToken | bool | `nil` | Set this to `false` to [opt out of API credential automounting](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting) for the `Pod`. |
| automountServiceAccountToken | bool | `true` | Set this to `false` to [opt out of API credential automounting](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting) for the `Pod`. |
| commonLabels | object | `{}` | Labels to add to all chart resources. |
| deploymentAnnotations | object | `{}` | Annotations to add to the `Deployment`. |
| deploymentStrategy | object | `{"type":"Recreate"}` | [Deployment Strategy](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy). |
Expand Down Expand Up @@ -155,7 +155,7 @@ If `namespaced` is set to `true`, please ensure that `sources` my only contains
| service.ipFamilyPolicy | string | `nil` | Service IP family policy. |
| service.port | int | `7979` | Service HTTP port. |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account. Templates are allowed in both the key and the value. Example: `example.com/annotation/{{ .Values.nameOverride }}: {{ .Values.nameOverride }}` |
| serviceAccount.automountServiceAccountToken | string | `nil` | Set this to `false` to [opt out of API credential automounting](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting) for the `ServiceAccount`. |
| serviceAccount.automountServiceAccountToken | bool | `true` | Set this to `false` to [opt out of API credential automounting](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting) for the `ServiceAccount`. |
| serviceAccount.create | bool | `true` | If `true`, create a new `ServiceAccount`. |
| serviceAccount.labels | object | `{}` | Labels to add to the service account. |
| serviceAccount.name | string | `nil` | If this is set and `serviceAccount.create` is `true` this will be used for the created `ServiceAccount` name, if set and `serviceAccount.create` is `false` then this will define an existing `ServiceAccount` to use. |
Expand Down
3 changes: 2 additions & 1 deletion charts/external-dns/tests/deployment-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ tests:
- equal:
path: metadata.namespace
value: default
- notExists:
- equal:
path: spec.template.spec.automountServiceAccountToken
value: true

- it: should provide expected defaults for securityContext
asserts:
Expand Down
2 changes: 1 addition & 1 deletion charts/external-dns/tests/serviceaccount_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tests:
count: 1
- equal:
path: automountServiceAccountToken
value: null
value: true

- it: should provide a way to disable service account
set:
Expand Down
74 changes: 58 additions & 16 deletions charts/external-dns/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "object"
},
"automountServiceAccountToken": {
"type": "null"
"type": "boolean"
},
"commonLabels": {
"properties": {},
Expand All @@ -33,10 +33,16 @@
"type": "object"
},
"dnsConfig": {
"type": "null"
"type": [
"object",
"null"
]
},
"dnsPolicy": {
"type": "null"
"type": [
"string",
"null"
]
},
"domainFilters": {
"type": "array"
Expand Down Expand Up @@ -68,7 +74,10 @@
"type": "array"
},
"fullnameOverride": {
"type": "null"
"type": [
"string",
"null"
]
},
"global": {
"properties": {
Expand Down Expand Up @@ -188,7 +197,10 @@
"uniqueItems": true
},
"nameOverride": {
"type": "null"
"type": [
"string",
"null"
]
},
"namespaced": {
"type": "boolean"
Expand Down Expand Up @@ -235,7 +247,10 @@
]
},
"priorityClassName": {
"type": "null"
"type": [
"string",
"null"
]
},
"provider": {
"properties": {
Expand All @@ -259,10 +274,16 @@
"type": "string"
},
"repository": {
"type": "null"
"type": [
"string",
"null"
]
},
"tag": {
"type": "null"
"type": [
"string",
"null"
]
}
},
"type": "object"
Expand Down Expand Up @@ -594,7 +615,7 @@
"type": "object"
},
"automountServiceAccountToken": {
"type": "null"
"type": "boolean"
},
"create": {
"type": "boolean"
Expand All @@ -604,7 +625,10 @@
"type": "object"
},
"name": {
"type": "null"
"type": [
"string",
"null"
]
}
},
"type": "object"
Expand All @@ -620,28 +644,43 @@
"type": "object"
},
"bearerTokenFile": {
"type": "null"
"type": [
"string",
"null"
]
},
"enabled": {
"type": "boolean"
},
"interval": {
"type": "null"
"type": [
"string",
"null"
]
},
"metricRelabelings": {
"type": "array"
},
"namespace": {
"type": "null"
"type": [
"string",
"null"
]
},
"relabelings": {
"type": "array"
},
"scheme": {
"type": "null"
"type": [
"string",
"null"
]
},
"scrapeTimeout": {
"type": "null"
"type": [
"string",
"null"
]
},
"targetLabels": {
"type": "array"
Expand All @@ -663,7 +702,10 @@
"type": "array"
},
"terminationGracePeriodSeconds": {
"type": "null"
"type": [
"integer",
"null"
]
},
"tolerations": {
"type": "array"
Expand Down
32 changes: 16 additions & 16 deletions charts/external-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ image: # @schema additionalProperties: false
imagePullSecrets: [] # @schema item: object

# -- (string) Override the name of the chart.
nameOverride:
nameOverride: # @schema type:[string, null]; default: null

# -- (string) Override the full name of the chart.
fullnameOverride:
fullnameOverride: # @schema type:[string, null]; default: null

# -- Labels to add to all chart resources.
commonLabels: {}
Expand All @@ -34,9 +34,9 @@ serviceAccount:
# -- Annotations to add to the service account. Templates are allowed in both the key and the value. Example: `example.com/annotation/{{ .Values.nameOverride }}: {{ .Values.nameOverride }}`
annotations: {}
# -- (string) If this is set and `serviceAccount.create` is `true` this will be used for the created `ServiceAccount` name, if set and `serviceAccount.create` is `false` then this will define an existing `ServiceAccount` to use.
name:
name: # @schema type:[string, null]; default: null
# -- Set this to `false` to [opt out of API credential automounting](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting) for the `ServiceAccount`.
automountServiceAccountToken:
automountServiceAccountToken: true

service:
# -- Service annotations.
Expand Down Expand Up @@ -76,7 +76,7 @@ podLabels: {}
podAnnotations: {}

# -- (bool) Set this to `false` to [opt out of API credential automounting](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting) for the `Pod`.
automountServiceAccountToken:
automountServiceAccountToken: true

# -- If `true`, the `Pod` will have [process namespace sharing](https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/) enabled.
shareProcessNamespace: false
Expand All @@ -90,16 +90,16 @@ podSecurityContext:
type: RuntimeDefault

# -- (string) Priority class name for the `Pod`.
priorityClassName:
priorityClassName: # @schema type:[string, null]; default: null

# -- (int) Termination grace period for the `Pod` in seconds.
terminationGracePeriodSeconds:
terminationGracePeriodSeconds: # @schema type:[integer, null]

# -- (string) [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.
dnsPolicy:
dnsPolicy: # @schema type:[string, null]; default: null

# -- (object) [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.
dnsConfig:
dnsConfig: # @schema type:[object, null]; default: null

# -- [Init containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) to add to the `Pod` definition.
initContainers: []
Expand Down Expand Up @@ -172,17 +172,17 @@ serviceMonitor:
# -- Annotations to add to the `ServiceMonitor`.
annotations: {}
# -- (string) If set create the `ServiceMonitor` in an alternate namespace.
namespace:
namespace: # @schema type:[string, null]; default: null
# -- (string) If set override the _Prometheus_ default interval.
interval:
interval: # @schema type:[string, null]; default: null
# -- (string) If set override the _Prometheus_ default scrape timeout.
scrapeTimeout:
scrapeTimeout: # @schema type:[string, null]; default: null
# -- (string) If set overrides the _Prometheus_ default scheme.
scheme:
scheme: # @schema type:[string, null]; default: null
# -- Configure the `ServiceMonitor` [TLS config](https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#tlsconfig).
tlsConfig: {}
# -- (string) Provide a bearer token file for the `ServiceMonitor`.
bearerTokenFile:
bearerTokenFile: # @schema type:[string, null]; default: null
# -- [Relabel configs](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config) to apply to samples before ingestion.
relabelings: []
# -- [Metric relabel configs](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs) to apply to samples before ingestion.
Expand Down Expand Up @@ -243,9 +243,9 @@ provider:
webhook:
image:
# -- (string) Image repository for the `webhook` container.
repository:
repository: # @schema type:[string, null]; default: null
# -- (string) Image tag for the `webhook` container.
tag:
tag: # @schema type:[string, null]; default: null
# -- Image pull policy for the `webhook` container.
pullPolicy: IfNotPresent
# -- [Environment variables](https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/) for the `webhook` container.
Expand Down
Loading