Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
add secret containing serviceaccount token (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
isihu authored Aug 1, 2024
1 parent dbb4229 commit cb0c6c3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions charts/dvpe-tenants/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion charts/dvpe-tenants/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion charts/dvpe-tenants/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
9 changes: 9 additions & 0 deletions charts/dvpe-tenants/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}


0 comments on commit cb0c6c3

Please sign in to comment.