-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from cloud-pi-native/feat/add-ns-chart
feat: 🚀 second chart to deploy ns resources
- Loading branch information
Showing
8 changed files
with
83 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# CPiN Charts | ||
|
||
## Description | ||
|
||
Ce dépôt héberge les Helm Charts développés et maintenus par Cloud Pi Native. | ||
|
||
Il expose également un Helm Repository sur [cloud-pi-native.github.io/helm-charts](https://cloud-pi-native.github.io/helm-charts/index.yaml) grâce à Github Pages et la Github Action [chart releaser](https://github.com/helm/chart-releaser-action). | ||
|
||
|
||
## Utilisation | ||
|
||
### CLI | ||
```sh | ||
helm repo add cpin https://cloud-pi-native.github.io/helm-charts | ||
helm search repo dso | ||
helm install dso-env cpin/dso-env | ||
``` | ||
|
||
### ArgoCD | ||
|
||
```yaml | ||
[...] | ||
sources: | ||
- repoURL: https://github.com/cloud-pi-native/helm-charts.git | ||
targetRevision: dso-env-1.0.0 | ||
path: charts/dso-env | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v2 | ||
name: dso-ns | ||
description: A Helm chart to create all the necessary resources for deploying applications by the DSO console (namespace, secrets, quota, ...). | ||
version: 1.0.0 | ||
appVersion: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# dso-ns | ||
|
||
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) | ||
|
||
A Helm chart to create all the necessary resources for deploying applications by the DSO console (namespace, secrets, quota, ...). | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| application.destination.namespace | string | `"app1"` | Nom du namespace applicatif cible | | ||
| application.quota.cpu | int | `nil` | Quota CPU pour le namespace | | ||
| application.quota.memory | string | `nil` | Quota mémoire pour le namespace | | ||
| commonLabels | object | `{}` | Labels appliqués sur les différents objets | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: {{ .Values.application.destination.namespace }} | ||
labels: | ||
app.kubernetes.io/managed-by: dso-console | ||
{{- .Values.commonLabels | toYaml | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: ResourceQuota | ||
metadata: | ||
name: dso-quota | ||
namespace: {{ .Values.application.destination.namespace }} | ||
labels: | ||
app.kubernetes.io/managed-by: dso-console | ||
{{- .Values.commonLabels | toYaml | nindent 4 }} | ||
spec: | ||
hard: | ||
limits.cpu: {{ .Values.application.quota.cpu | quote }} | ||
limits.memory: {{ .Values.application.quota.memory }} | ||
requests.cpu: {{ .Values.application.quota.cpu | quote }} | ||
requests.memory: {{ .Values.application.quota.memory }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -- Labels appliqués sur les différents objets | ||
commonLabels: {} | ||
application: | ||
destination: | ||
# -- Nom du namespace applicatif cible | ||
namespace: app1 | ||
quota: | ||
# -- (int) Quota CPU pour le namespace | ||
cpu: | ||
# -- Quota mémoire pour le namespace | ||
memory: | ||
|