Skip to content

Commit

Permalink
brokencrystals charts
Browse files Browse the repository at this point in the history
  • Loading branch information
gasRU76 committed Jul 30, 2024
1 parent a0901ef commit 6af4f41
Show file tree
Hide file tree
Showing 24 changed files with 5,789 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/brokencrystals-unstable/.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/
10 changes: 10 additions & 0 deletions charts/brokencrystals-unstable/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: brokencrystals-unstable
description: |
Benchmark application that uses modern technologies and implements a set of
common security vulnerabilities
type: application
version: 0.0.79
keywords:
- brokencrystals-unstable
- brkn-unstbl
1 change: 1 addition & 0 deletions charts/brokencrystals-unstable/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://{{ .Values.ingress.url }}
62 changes: 62 additions & 0 deletions charts/brokencrystals-unstable/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "brokencrystals.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "brokencrystals.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 50 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 50 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 50 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "brokencrystals.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "brokencrystals.labels" -}}
helm.sh/chart: {{ include "brokencrystals.chart" . }}
{{ include "brokencrystals.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "brokencrystals.selectorLabels" -}}
app.kubernetes.io/name: {{ include "brokencrystals.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "brokencrystals.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "brokencrystals.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "brokencrystals.fullname" . }}-kc-db
namespace: {{ .Release.Namespace }}
data:
postgresql.conf.sample: |
listen_addresses = '*'
port = 5433
Loading

0 comments on commit 6af4f41

Please sign in to comment.