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

Commit

Permalink
Feature/add service accounts for each tenant (#148)
Browse files Browse the repository at this point in the history
* add serviceaccount for each tenant to use in pipelines

* bump version to 0.4.0

* fix typo
  • Loading branch information
isihu authored Jul 30, 2024
1 parent 3ddcee5 commit dbb4229
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
7 changes: 6 additions & 1 deletion charts/dvpe-tenants/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.0]
### Added
* ServiceAccount for each tenant to be used in pipelines

## [0.3.0]
### Changed
* Add parameter to configure ClusterRole in RoleBinding
*

## [0.2.0]
### Changed
* Fixed missing document separator in rolebindings template
Expand All @@ -22,3 +26,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[0.1.0]: https://github.com/DVPE-cloud/dvpe-helm/tree/dvpe-tenant-0.1.0/charts/dvpe-tenant
[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
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.3.0
version: 0.4.0
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.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square)
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-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
3 changes: 3 additions & 0 deletions charts/dvpe-tenants/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ subjects:
kind: User
name: {{ $.Values.oidcIssuerUrl }}#{{ $user }}
{{- end }}
- kind: ServiceAccount
name: {{ $tenant.name }}
namespace: {{ $.Release.Namespace }}
---
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/dvpe-tenants/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- range $_, $tenant := .Values.tenants }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ $tenant.name }}
namespace: {{ $.Release.Namespace }}
---
{{- end }}


0 comments on commit dbb4229

Please sign in to comment.