Skip to content

Commit 0345c41

Browse files
authored
[Dashboards] Add support for automountServiceAccountToken (#683)
* [Dashboards] Add automountServiceAccountToken to values.yaml Signed-off-by: Greg Smith <[email protected]> * [Dashboards] Add automountServiceAccountToken to serviceAccount template Signed-off-by: Greg Smith <[email protected]> * [Dashboards] Update CHANGELOG.md Signed-off-by: Greg Smith <[email protected]> * [Dashboards] Bump chart version Signed-off-by: Greg Smith <[email protected]> * [Dashboards] Updated CHANGELOG.md Signed-off-by: Greg Smith <[email protected]> * [Dashboards] Bump chart version Signed-off-by: Greg Smith <[email protected]> * Update README.md Signed-off-by: Greg Smith <[email protected]> --------- Signed-off-by: Greg Smith <[email protected]>
1 parent 092d612 commit 0345c41

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

charts/opensearch-dashboards/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Fixed
1515
### Security
1616
---
17+
## [3.2.2]
18+
### Added
19+
- Support for disabling automountServiceAccountToken
20+
---
1721
## [3.2.1]
1822
### Added
1923
### Changed
@@ -50,7 +54,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5054
### Fixed
5155
### Security
5256

53-
[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-3.2.1...HEAD
57+
[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-3.2.2...HEAD
58+
[3.2.2]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-3.2.1...opensearch-dashboards-3.2.2
5459
[3.2.1]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-3.2.0...opensearch-dashboards-3.2.1
5560
[3.2.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-3.1.0...opensearch-dashboards-3.2.0
5661
[3.1.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-3.0.0...opensearch-dashboards-3.1.0

charts/opensearch-dashboards/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 3.2.1
18+
version: 3.2.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/opensearch-dashboards/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ helm uninstall my-release
7777
| `service.ipFamilies` | Sets the preferred IP variants and in which order they are preferred, the first family you list is used for the legacy .spec.ClusterIP field, [more information on dual stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/) | `""` |
7878
| `service.metricsPort` | The metrics port (for Performance Analyzer) that Kubernetes will use for the service. | `9601` |
7979
| `service.metricsPortName` | The name of the metrics port (for Performance Analyzer) within the service | `metrics` |
80+
| `serviceAccount.automountServiceAccountToken` | Specifies whether the Kubernetes API token for the ServiceAccount should be automatically mounted to the pod. | `true` |
8081
| `tolerations` | Configurable [tolerations][] | `[]` |
8182
| `topologySpreadConstraints` | Configuration for pod [topologySpreadConstraints][] | `[]` |
8283
| `updateStrategy` | The [updateStrategy][] for the StatefulSet. By default Kubernetes will wait for the cluster to be green after upgrading each pod. Setting this to `OnDelete` will allow you to manually delete each pod during upgrades | `RollingUpdate` |

charts/opensearch-dashboards/templates/serviceaccount.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ metadata:
1010
{{- toYaml . | nindent 4 }}
1111
{{- end }}
1212
{{- end }}
13+
{{- if .Values.serviceAccount.automountServiceAccountToken }}
14+
{{- else }}
15+
automountServiceAccountToken: false
16+
{{- end -}}

charts/opensearch-dashboards/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ serviceAccount:
5353
# The name of the service account to use.
5454
# If not set and create is true, a name is generated using the fullname template
5555
name: ""
56+
# Controls whether the ServiceAccount API token is automatically mounted on pod
57+
automountServiceAccountToken: true
5658

5759
rbac:
5860
create: true

0 commit comments

Comments
 (0)