-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dbildungs-iam-server-gha
committed
Nov 27, 2024
1 parent
b660ae5
commit 7e724a1
Showing
84 changed files
with
14,437 additions
and
204 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,6 @@ | ||
dependencies: | ||
- name: redis | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 20.3.0 | ||
digest: sha256:a42635c8459b26a7c01fd2cfeeba7cbb250bef345be41c70b8bfcd0025379057 | ||
generated: "2024-11-27T11:47:03.987767986Z" |
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
apiVersion: v2 | ||
appVersion: SPSH-1099 | ||
appVersion: SPSH-1390 | ||
dependencies: | ||
- condition: redis.enabled | ||
name: redis | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 20.3.0 | ||
description: dBildungs-IAM-server | ||
name: dbildungs-iam-server | ||
type: application | ||
version: 0.0.0-spsh-1099-20241127-1133 | ||
version: 0.0.0-spsh-1390-20241127-1147 |
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,25 @@ | ||
# 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 | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
# img folder | ||
img/ | ||
# Changelog | ||
CHANGELOG.md |
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,6 @@ | ||
dependencies: | ||
- name: common | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 2.27.0 | ||
digest: sha256:b711ab5874abf868a0c64353a790f17771758cee6f802acb9819be004c8460af | ||
generated: "2024-11-11T21:28:10.611479336Z" |
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,38 @@ | ||
annotations: | ||
category: Database | ||
images: | | ||
- name: kubectl | ||
image: docker.io/bitnami/kubectl:1.31.2-debian-12-r6 | ||
- name: os-shell | ||
image: docker.io/bitnami/os-shell:12-debian-12-r33 | ||
- name: redis | ||
image: docker.io/bitnami/redis:7.4.1-debian-12-r2 | ||
- name: redis-exporter | ||
image: docker.io/bitnami/redis-exporter:1.66.0-debian-12-r2 | ||
- name: redis-sentinel | ||
image: docker.io/bitnami/redis-sentinel:7.4.1-debian-12-r2 | ||
licenses: Apache-2.0 | ||
apiVersion: v2 | ||
appVersion: 7.4.1 | ||
dependencies: | ||
- name: common | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
tags: | ||
- bitnami-common | ||
version: 2.x.x | ||
description: Redis(R) is an open source, advanced key-value store. It is often referred | ||
to as a data structure server since keys can contain strings, hashes, lists, sets | ||
and sorted sets. | ||
home: https://bitnami.com | ||
icon: https://bitnami.com/assets/stacks/redis/img/redis-stack-220x234.png | ||
keywords: | ||
- redis | ||
- keyvalue | ||
- database | ||
maintainers: | ||
- name: Broadcom, Inc. All Rights Reserved. | ||
url: https://github.com/bitnami/charts | ||
name: redis | ||
sources: | ||
- https://github.com/bitnami/charts/tree/main/bitnami/redis | ||
version: 20.3.0 |
1,295 changes: 1,295 additions & 0 deletions
1,295
automation/dbildungs-iam-server/charts/redis/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
automation/dbildungs-iam-server/charts/redis/charts/common/.helmignore
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,26 @@ | ||
# 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 | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
# img folder | ||
img/ | ||
# Changelog | ||
CHANGELOG.md |
23 changes: 23 additions & 0 deletions
23
automation/dbildungs-iam-server/charts/redis/charts/common/Chart.yaml
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,23 @@ | ||
annotations: | ||
category: Infrastructure | ||
licenses: Apache-2.0 | ||
apiVersion: v2 | ||
appVersion: 2.27.0 | ||
description: A Library Helm Chart for grouping common logic between bitnami charts. | ||
This chart is not deployable by itself. | ||
home: https://bitnami.com | ||
icon: https://bitnami.com/downloads/logos/bitnami-mark.png | ||
keywords: | ||
- common | ||
- helper | ||
- template | ||
- function | ||
- bitnami | ||
maintainers: | ||
- name: Broadcom, Inc. All Rights Reserved. | ||
url: https://github.com/bitnami/charts | ||
name: common | ||
sources: | ||
- https://github.com/bitnami/charts/tree/main/bitnami/common | ||
type: library | ||
version: 2.27.0 |
235 changes: 235 additions & 0 deletions
235
automation/dbildungs-iam-server/charts/redis/charts/common/README.md
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,235 @@ | ||
# Bitnami Common Library Chart | ||
|
||
A [Helm Library Chart](https://helm.sh/docs/topics/library_charts/#helm) for grouping common logic between Bitnami charts. | ||
|
||
## TL;DR | ||
|
||
```yaml | ||
dependencies: | ||
- name: common | ||
version: 2.x.x | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
``` | ||
```console | ||
helm dependency update | ||
``` | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
data: | ||
myvalue: "Hello World" | ||
``` | ||
Looking to use our applications in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the commercial edition of the Bitnami catalog. | ||
## Introduction | ||
This chart provides a common template helpers which can be used to develop new charts using [Helm](https://helm.sh) package manager. | ||
Bitnami charts can be used with [Kubeapps](https://kubeapps.dev/) for deployment and management of Helm Charts in clusters. | ||
## Prerequisites | ||
- Kubernetes 1.23+ | ||
- Helm 3.8.0+ | ||
## Parameters | ||
## Special input schemas | ||
### ImageRoot | ||
```yaml | ||
registry: | ||
type: string | ||
description: Docker registry where the image is located | ||
example: docker.io | ||
|
||
repository: | ||
type: string | ||
description: Repository and image name | ||
example: bitnami/nginx | ||
|
||
tag: | ||
type: string | ||
description: image tag | ||
example: 1.16.1-debian-10-r63 | ||
|
||
pullPolicy: | ||
type: string | ||
description: Specify a imagePullPolicy.' | ||
|
||
pullSecrets: | ||
type: array | ||
items: | ||
type: string | ||
description: Optionally specify an array of imagePullSecrets (evaluated as templates). | ||
|
||
debug: | ||
type: boolean | ||
description: Set to true if you would like to see extra information on logs | ||
example: false | ||
|
||
## An instance would be: | ||
# registry: docker.io | ||
# repository: bitnami/nginx | ||
# tag: 1.16.1-debian-10-r63 | ||
# pullPolicy: IfNotPresent | ||
# debug: false | ||
``` | ||
|
||
### Persistence | ||
|
||
```yaml | ||
enabled: | ||
type: boolean | ||
description: Whether enable persistence. | ||
example: true | ||
|
||
storageClass: | ||
type: string | ||
description: Ghost data Persistent Volume Storage Class, If set to "-", storageClassName: "" which disables dynamic provisioning. | ||
example: "-" | ||
|
||
accessMode: | ||
type: string | ||
description: Access mode for the Persistent Volume Storage. | ||
example: ReadWriteOnce | ||
|
||
size: | ||
type: string | ||
description: Size the Persistent Volume Storage. | ||
example: 8Gi | ||
|
||
path: | ||
type: string | ||
description: Path to be persisted. | ||
example: /bitnami | ||
|
||
## An instance would be: | ||
# enabled: true | ||
# storageClass: "-" | ||
# accessMode: ReadWriteOnce | ||
# size: 8Gi | ||
# path: /bitnami | ||
``` | ||
|
||
### ExistingSecret | ||
|
||
```yaml | ||
name: | ||
type: string | ||
description: Name of the existing secret. | ||
example: mySecret | ||
keyMapping: | ||
description: Mapping between the expected key name and the name of the key in the existing secret. | ||
type: object | ||
|
||
## An instance would be: | ||
# name: mySecret | ||
# keyMapping: | ||
# password: myPasswordKey | ||
``` | ||
|
||
#### Example of use | ||
|
||
When we store sensitive data for a deployment in a secret, some times we want to give to users the possibility of using theirs existing secrets. | ||
|
||
```yaml | ||
# templates/secret.yaml | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
labels: | ||
app: {{ include "common.names.fullname" . }} | ||
type: Opaque | ||
data: | ||
password: {{ .Values.password | b64enc | quote }} | ||
|
||
# templates/dpl.yaml | ||
--- | ||
... | ||
env: | ||
- name: PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ include "common.secrets.name" (dict "existingSecret" .Values.existingSecret "context" $) }} | ||
key: {{ include "common.secrets.key" (dict "existingSecret" .Values.existingSecret "key" "password") }} | ||
... | ||
|
||
# values.yaml | ||
--- | ||
name: mySecret | ||
keyMapping: | ||
password: myPasswordKey | ||
``` | ||
### ValidateValue | ||
#### NOTES.txt | ||
```console | ||
{{- $validateValueConf00 := (dict "valueKey" "path.to.value00" "secret" "secretName" "field" "password-00") -}} | ||
{{- $validateValueConf01 := (dict "valueKey" "path.to.value01" "secret" "secretName" "field" "password-01") -}} | ||
|
||
{{ include "common.validations.values.multiple.empty" (dict "required" (list $validateValueConf00 $validateValueConf01) "context" $) }} | ||
``` | ||
|
||
If we force those values to be empty we will see some alerts | ||
|
||
```console | ||
helm install test mychart --set path.to.value00="",path.to.value01="" | ||
'path.to.value00' must not be empty, please add '--set path.to.value00=$PASSWORD_00' to the command. To get the current value: | ||
|
||
export PASSWORD_00=$(kubectl get secret --namespace default secretName -o jsonpath="{.data.password-00}" | base64 -d) | ||
|
||
'path.to.value01' must not be empty, please add '--set path.to.value01=$PASSWORD_01' to the command. To get the current value: | ||
|
||
export PASSWORD_01=$(kubectl get secret --namespace default secretName -o jsonpath="{.data.password-01}" | base64 -d) | ||
``` | ||
|
||
## Upgrading | ||
|
||
### To 1.0.0 | ||
|
||
[On November 13, 2020, Helm v2 support was formally finished](https://github.com/helm/charts#status-of-the-project), this major version is the result of the required changes applied to the Helm Chart to be able to incorporate the different features added in Helm v3 and to be consistent with the Helm project itself regarding the Helm v2 EOL. | ||
|
||
#### What changes were introduced in this major version? | ||
|
||
- Previous versions of this Helm Chart use `apiVersion: v1` (installable by both Helm 2 and 3), this Helm Chart was updated to `apiVersion: v2` (installable by Helm 3 only). [Here](https://helm.sh/docs/topics/charts/#the-apiversion-field) you can find more information about the `apiVersion` field. | ||
- Use `type: library`. [Here](https://v3.helm.sh/docs/faq/#library-chart-support) you can find more information. | ||
- The different fields present in the *Chart.yaml* file has been ordered alphabetically in a homogeneous way for all the Bitnami Helm Charts | ||
|
||
#### Considerations when upgrading to this version | ||
|
||
- If you want to upgrade to this version from a previous one installed with Helm v3, you shouldn't face any issues | ||
- If you want to upgrade to this version using Helm v2, this scenario is not supported as this version doesn't support Helm v2 anymore | ||
- If you installed the previous version with Helm v2 and wants to upgrade to this version with Helm v3, please refer to the [official Helm documentation](https://helm.sh/docs/topics/v2_v3_migration/#migration-use-cases) about migrating from Helm v2 to v3 | ||
|
||
#### Useful links | ||
|
||
- <https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-resolve-helm2-helm3-post-migration-issues-index.html> | ||
- <https://helm.sh/docs/topics/v2_v3_migration/> | ||
- <https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3/> | ||
|
||
## License | ||
|
||
Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
<http://www.apache.org/licenses/LICENSE-2.0> | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
Oops, something went wrong.