From cb0c6c392ff0c7df5b11c250157207c6af52baf6 Mon Sep 17 00:00:00 2001 From: isihu <62214125+isihu@users.noreply.github.com> Date: Thu, 1 Aug 2024 10:32:33 +0200 Subject: [PATCH] add secret containing serviceaccount token (#149) --- charts/dvpe-tenants/CHANGELOG.md | 5 +++++ charts/dvpe-tenants/Chart.yaml | 2 +- charts/dvpe-tenants/README.md | 2 +- charts/dvpe-tenants/templates/serviceaccount.yaml | 9 +++++++++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/charts/dvpe-tenants/CHANGELOG.md b/charts/dvpe-tenants/CHANGELOG.md index 135f76a..f4b29ec 100644 --- a/charts/dvpe-tenants/CHANGELOG.md +++ b/charts/dvpe-tenants/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.1] +### Added +* Secret containing the token of the ServiceAccount + ## [0.4.0] ### Added * ServiceAccount for each tenant to be used in pipelines @@ -27,3 +31,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [0.2.0]: https://github.com/DVPE-cloud/dvpe-helm/tree/dvpe-tenant-0.2.0/charts/dvpe-tenant [0.3.0]: https://github.com/DVPE-cloud/dvpe-helm/tree/dvpe-tenant-0.3.0/charts/dvpe-tenant [0.4.0]: https://github.com/DVPE-cloud/dvpe-helm/tree/dvpe-tenant-0.4.0/charts/dvpe-tenant +[0.4.1]: https://github.com/DVPE-cloud/dvpe-helm/tree/dvpe-tenant-0.4.1/charts/dvpe-tenant diff --git a/charts/dvpe-tenants/Chart.yaml b/charts/dvpe-tenants/Chart.yaml index e497f5c..402ecb2 100644 --- a/charts/dvpe-tenants/Chart.yaml +++ b/charts/dvpe-tenants/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 description: Helm chart for creating the resources with information readable from the the GitHub API. For the beginning, this includes only the ArgoCD resources. name: dvpe-tenants -version: 0.4.0 +version: 0.4.1 home: https://github.com/dvpe-cloud/dvpe-helm diff --git a/charts/dvpe-tenants/README.md b/charts/dvpe-tenants/README.md index ccfea22..2f9b467 100644 --- a/charts/dvpe-tenants/README.md +++ b/charts/dvpe-tenants/README.md @@ -1,6 +1,6 @@ # dvpe-tenants -![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) +![Version: 0.4.1](https://img.shields.io/badge/Version-0.4.1-informational?style=flat-square) Helm chart for creating the resources with information readable from the the GitHub API. For the beginning, this includes only the ArgoCD resources. diff --git a/charts/dvpe-tenants/templates/serviceaccount.yaml b/charts/dvpe-tenants/templates/serviceaccount.yaml index e269c99..511b80a 100644 --- a/charts/dvpe-tenants/templates/serviceaccount.yaml +++ b/charts/dvpe-tenants/templates/serviceaccount.yaml @@ -5,6 +5,15 @@ metadata: name: {{ $tenant.name }} namespace: {{ $.Release.Namespace }} --- +apiVersion: v1 +kind: Secret +metadata: + name: {{ $tenant.name }}-sa + namespace: {{ $.Release.Namespace }} + annotations: + kubernetes.io/service-account.name: {{ $.Release.Namespace }} +type: kubernetes.io/service-account-token +--- {{- end }}