-
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 26, 2024
1 parent
cea3fb2
commit fffd992
Showing
102 changed files
with
6,397 additions
and
12,304 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: redis | ||
- name: redis-cluster | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 20.3.0 | ||
digest: sha256:a42635c8459b26a7c01fd2cfeeba7cbb250bef345be41c70b8bfcd0025379057 | ||
generated: "2024-11-25T17:47:11.228128284Z" | ||
version: 11.0.6 | ||
digest: sha256:790bafa04fe9c1cc9f772dc12fada16eb847c282f738fd23df09f665af93ec74 | ||
generated: "2024-11-26T08:21:13.960213712Z" |
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,11 +1,11 @@ | ||
apiVersion: v2 | ||
appVersion: DBP-0000 | ||
appVersion: SPSH-1288 | ||
dependencies: | ||
- condition: redis.enabled | ||
name: redis | ||
- condition: redis-cluster.enabled | ||
name: redis-cluster | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 20.3.0 | ||
version: 11.0.6 | ||
description: dBildungs-IAM-server | ||
name: dbildungs-iam-server | ||
type: application | ||
version: 0.0.0-dbp-0000-20241125-1747 | ||
version: 0.0.0-spsh-1288-20241126-0821 |
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
automation/dbildungs-iam-server/charts/redis-cluster/Chart.lock
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.23.0 | ||
digest: sha256:fbd6439f12ded949c04553b9c52a4c8153a8f2790147d972b314ddcd46921a14 | ||
generated: "2024-09-30T07:56:23.042500342Z" |
34 changes: 34 additions & 0 deletions
34
automation/dbildungs-iam-server/charts/redis-cluster/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,34 @@ | ||
annotations: | ||
category: Database | ||
images: | | ||
- name: os-shell | ||
image: docker.io/bitnami/os-shell:12-debian-12-r30 | ||
- name: redis-cluster | ||
image: docker.io/bitnami/redis-cluster:7.4.1-debian-12-r0 | ||
- name: redis-exporter | ||
image: docker.io/bitnami/redis-exporter:1.63.0-debian-12-r1 | ||
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, scalable, distributed in-memory cache for | ||
applications. It can be used to store and serve data in the form of 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-cluster | ||
sources: | ||
- https://github.com/bitnami/charts/tree/main/bitnami/redis-cluster | ||
version: 11.0.6 |
790 changes: 790 additions & 0 deletions
790
automation/dbildungs-iam-server/charts/redis-cluster/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
113 changes: 113 additions & 0 deletions
113
...bildungs-iam-server/charts/redis-cluster/charts/common/templates/validations/_mongodb.tpl
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,113 @@ | ||
{{/* | ||
Copyright Broadcom, Inc. All Rights Reserved. | ||
SPDX-License-Identifier: APACHE-2.0 | ||
*/}} | ||
|
||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Validate MongoDB® required passwords are not empty. | ||
Usage: | ||
{{ include "common.validations.values.mongodb.passwords" (dict "secret" "secretName" "subchart" false "context" $) }} | ||
Params: | ||
- secret - String - Required. Name of the secret where MongoDB® values are stored, e.g: "mongodb-passwords-secret" | ||
- subchart - Boolean - Optional. Whether MongoDB® is used as subchart or not. Default: false | ||
*/}} | ||
{{- define "common.validations.values.mongodb.passwords" -}} | ||
{{- $existingSecret := include "common.mongodb.values.auth.existingSecret" . -}} | ||
{{- $enabled := include "common.mongodb.values.enabled" . -}} | ||
{{- $authPrefix := include "common.mongodb.values.key.auth" . -}} | ||
{{- $architecture := include "common.mongodb.values.architecture" . -}} | ||
{{- $valueKeyRootPassword := printf "%s.rootPassword" $authPrefix -}} | ||
{{- $valueKeyUsername := printf "%s.username" $authPrefix -}} | ||
{{- $valueKeyDatabase := printf "%s.database" $authPrefix -}} | ||
{{- $valueKeyPassword := printf "%s.password" $authPrefix -}} | ||
{{- $valueKeyReplicaSetKey := printf "%s.replicaSetKey" $authPrefix -}} | ||
{{- $valueKeyAuthEnabled := printf "%s.enabled" $authPrefix -}} | ||
|
||
{{- $authEnabled := include "common.utils.getValueFromKey" (dict "key" $valueKeyAuthEnabled "context" .context) -}} | ||
|
||
{{- if and (or (not $existingSecret) (eq $existingSecret "\"\"")) (eq $enabled "true") (eq $authEnabled "true") -}} | ||
{{- $requiredPasswords := list -}} | ||
|
||
{{- $requiredRootPassword := dict "valueKey" $valueKeyRootPassword "secret" .secret "field" "mongodb-root-password" -}} | ||
{{- $requiredPasswords = append $requiredPasswords $requiredRootPassword -}} | ||
|
||
{{- $valueUsername := include "common.utils.getValueFromKey" (dict "key" $valueKeyUsername "context" .context) }} | ||
{{- $valueDatabase := include "common.utils.getValueFromKey" (dict "key" $valueKeyDatabase "context" .context) }} | ||
{{- if and $valueUsername $valueDatabase -}} | ||
{{- $requiredPassword := dict "valueKey" $valueKeyPassword "secret" .secret "field" "mongodb-password" -}} | ||
{{- $requiredPasswords = append $requiredPasswords $requiredPassword -}} | ||
{{- end -}} | ||
|
||
{{- if (eq $architecture "replicaset") -}} | ||
{{- $requiredReplicaSetKey := dict "valueKey" $valueKeyReplicaSetKey "secret" .secret "field" "mongodb-replica-set-key" -}} | ||
{{- $requiredPasswords = append $requiredPasswords $requiredReplicaSetKey -}} | ||
{{- end -}} | ||
|
||
{{- include "common.validations.values.multiple.empty" (dict "required" $requiredPasswords "context" .context) -}} | ||
|
||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Auxiliary function to get the right value for existingSecret. | ||
Usage: | ||
{{ include "common.mongodb.values.auth.existingSecret" (dict "context" $) }} | ||
Params: | ||
- subchart - Boolean - Optional. Whether MongoDb is used as subchart or not. Default: false | ||
*/}} | ||
{{- define "common.mongodb.values.auth.existingSecret" -}} | ||
{{- if .subchart -}} | ||
{{- .context.Values.mongodb.auth.existingSecret | quote -}} | ||
{{- else -}} | ||
{{- .context.Values.auth.existingSecret | quote -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Auxiliary function to get the right value for enabled mongodb. | ||
Usage: | ||
{{ include "common.mongodb.values.enabled" (dict "context" $) }} | ||
*/}} | ||
{{- define "common.mongodb.values.enabled" -}} | ||
{{- if .subchart -}} | ||
{{- printf "%v" .context.Values.mongodb.enabled -}} | ||
{{- else -}} | ||
{{- printf "%v" (not .context.Values.enabled) -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Auxiliary function to get the right value for the key auth | ||
Usage: | ||
{{ include "common.mongodb.values.key.auth" (dict "subchart" "true" "context" $) }} | ||
Params: | ||
- subchart - Boolean - Optional. Whether MongoDB® is used as subchart or not. Default: false | ||
*/}} | ||
{{- define "common.mongodb.values.key.auth" -}} | ||
{{- if .subchart -}} | ||
mongodb.auth | ||
{{- else -}} | ||
auth | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Auxiliary function to get the right value for architecture | ||
Usage: | ||
{{ include "common.mongodb.values.architecture" (dict "subchart" "true" "context" $) }} | ||
Params: | ||
- subchart - Boolean - Optional. Whether MongoDB® is used as subchart or not. Default: false | ||
*/}} | ||
{{- define "common.mongodb.values.architecture" -}} | ||
{{- if .subchart -}} | ||
{{- .context.Values.mongodb.architecture -}} | ||
{{- else -}} | ||
{{- .context.Values.architecture -}} | ||
{{- end -}} | ||
{{- end -}} |
Oops, something went wrong.