Skip to content

Commit

Permalink
feat(csi-secret-provider-class): intialize chart (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Dec 3, 2020
1 parent 112999c commit 2b722ef
Show file tree
Hide file tree
Showing 11 changed files with 133 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ HELM_DOCS_TEMPLATE_FILE="../../hack/config/helm-docs/README.md.gotmpl"
# infra tools
ADFINIS_CHARTS_ARGOCD_VERSION="1.5.2"
ADFINIS_CHARTS_PROMETHEUS_OPERATOR_VERSION="0.38"
ADFINIS_CHARTS_SECRETS_STORE_CSI_DRIVER_VERSION="0.0.17"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ helm repo add adfinis https://charts.adfinis.com
| [barman](charts/barman) | Chart for Barman PostgreSQL Backup and Recovery Manager | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 2.1.x](https://img.shields.io/badge/app%20version-2.1.x-brightgreen) |
| [caasperli](charts/caasperli) | Deploy Caasperli to a Kubernetes Cluster | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: latest](https://img.shields.io/badge/app%20version-latest-brightgreen) |
| [common](charts/common) | Common chartbuilding components and helpers, based on incubator/common | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 0.x](https://img.shields.io/badge/app%20version-0.x-brightgreen) |
| [csi-secret-provider-class](charts/csi-secret-provider-class) | A Helm chart to create a SecretProviderClass resource | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 0.x](https://img.shields.io/badge/app%20version-0.x-brightgreen) |
| [infra-apps](charts/infra-apps) | Argo CD app-of-apps config for infrastructure components | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 0.x](https://img.shields.io/badge/app%20version-0.x-brightgreen) |
| [logging-apps](charts/logging-apps) | Argo CD app-of-apps config for logging applications | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 0.x](https://img.shields.io/badge/app%20version-0.x-brightgreen) |
| [misc-apps](charts/misc-apps) | Argo CD app-of-apps config for miscellaneous small tools | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 0.x](https://img.shields.io/badge/app%20version-0.x-brightgreen) |
Expand Down
23 changes: 23 additions & 0 deletions charts/csi-secret-provider-class/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions charts/csi-secret-provider-class/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://charts.adfinis.com
version: 0.0.5
digest: sha256:9ee68395c06e42a72b7e849e1df7b3be6c658ade9aa4911d195d8e380981f7fb
generated: "2020-12-03T16:06:53.437610587+01:00"
17 changes: 17 additions & 0 deletions charts/csi-secret-provider-class/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v2
name: csi-secret-provider-class
description: A Helm chart to create a SecretProviderClass resource
type: application
version: 0.1.0
appVersion: 0.1.0
home: https://github.com/adfinis-sygroup/helm-charts/tree/master/charts/csi-secret-provider-class
sources:
- https://github.com/adfinis-sygroup/helm-charts
maintainers:
- name: adfinis-sygroup
email: [email protected]
url: https://adfinis.com
dependencies:
- name: common
repository: https://charts.adfinis.com
version: 0.0.5
47 changes: 47 additions & 0 deletions charts/csi-secret-provider-class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# csi-secret-provider-class

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

A Helm chart to create a SecretProviderClass resource

**Homepage:** <https://github.com/adfinis-sygroup/helm-charts/tree/master/charts/csi-secret-provider-class>

## Maintainers
This chart is maintained by [Adfinis](https://adfinis.com/?pk_campaign=github&pk_kwd=helm-charts).

## Source Code

* <https://github.com/adfinis-sygroup/helm-charts>

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| https://charts.adfinis.com | common | 0.0.5 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| parameters | object | `{}` | parameters for provider |
| parametersTpl | string | raw values from `parameters` | template to generate parameters |
| provider | string | `nil` | specify secret provider |
| secretObjects | list | `[]` | secretObjects for for SecretProviderClass |
| secretObjectsTpl | string | raw values from `secretObjects` | template to generate secretObjects |

## About this chart

Adfinis fights for a software world that is more open, where the quality is
better and where software must be accessible to everyone. This chart
is part of the action behind this commitment. Feel free to
[contact](https://adfinis.com/kontakt/?pk_campaign=github&pk_kwd=helm-charts)
us if you have any questions.

## License

This Helm chart is free software: you can redistribute it and/or modify it under the terms
of the GNU Affero General Public License as published by the Free Software Foundation,
version 3 of the License.

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.4.0](https://github.com/norwoodj/helm-docs/releases/v1.4.0)
5 changes: 5 additions & 0 deletions charts/csi-secret-provider-class/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
provider: dummy
parameters:
foo: bar
secretObjects:
- secretName: test
1 change: 1 addition & 0 deletions charts/csi-secret-provider-class/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The {{ template "common.fullname" . }} SecretProviderClass was installed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: secrets-store.csi.x-k8s.io/v1alpha1
kind: SecretProviderClass
{{ template "common.metadata" $ }}
spec:
provider: {{ required "Specify a valid provider." .Values.provider }}
{{- if .Values.parameters }}
parameters:
{{- tpl .Values.parametersTpl . | nindent 4 }}
{{- end }}
{{- if .Values.secretObjects }}
secretObjects:
{{- tpl .Values.secretObjectsTpl . | nindent 4 }}
{{- end }}
16 changes: 16 additions & 0 deletions charts/csi-secret-provider-class/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# provider -- specify secret provider
provider: ~

# parameters -- parameters for provider
parameters: {}

# parametersTpl -- template to generate parameters
# @default -- raw values from `parameters`
parametersTpl: "{{ .Values.parameters | toYaml }}"

# secretObjects -- secretObjects for for SecretProviderClass
secretObjects: []

# secretObjectsTpl -- template to generate secretObjects
# @default -- raw values from `secretObjects`
secretObjectsTpl: "{{ .Values.secretObjects | toYaml }}"
3 changes: 3 additions & 0 deletions hack/deploy/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ source hack/sh/rc.sh
readonly infra_ns=$ADFINIS_CHARTS_INFRA_NS
readonly argocd_version=$ADFINIS_CHARTS_ARGOCD_VERSION
readonly prometheus_operator_version=$ADFINIS_CHARTS_PROMETHEUS_OPERATOR_VERSION
readonly secrets_store_csi_driver_version=$ADFINIS_CHARTS_SECRETS_STORE_CSI_DRIVER_VERSION

set +x

Expand All @@ -19,3 +20,5 @@ kubectl apply -f https://raw.githubusercontent.com/argoproj/argo-cd/v$argocd_ver

kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/release-$prometheus_operator_version/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/release-$prometheus_operator_version/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml

kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/secrets-store-csi-driver/v$secrets_store_csi_driver_version/deploy/secrets-store.csi.x-k8s.io_secretproviderclasses.yaml

0 comments on commit 2b722ef

Please sign in to comment.