Skip to content

Commit

Permalink
com-pas#190 added deployment structure with helmfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bauheinzi committed Jan 13, 2025
1 parent baf3a9c commit c8cbabe
Show file tree
Hide file tree
Showing 45 changed files with 7,077 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ target
# IDE specific
.idea
*.iml
.vscode/

# Data Directories for Docker Compose
# Ignore all files, except the README.md
Expand Down
6 changes: 6 additions & 0 deletions helm/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# CoMPAS Helm deployment

## Deploy to specific stage

export STAGE_NAME=local
helmfile apply --namespace ${STAGE_NAME}--validate -f compas.yaml
29 changes: 29 additions & 0 deletions helm/WORK.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

## Links

- https://helmfile.readthedocs.io/en/latest/
- https://kubedeploy.app/examples/helmfile.html#templating-releases
- https://github.com/roboll/helmfile/blob/master/docs/writing-helmfile.md
- https://github.com/roboll/helmfile/tree/master/examples



helm plugin install https://github.com/databus23/helm-diff



https://quarkus.io/guides/config-reference


(400) System properties

(300) Environment variables

(295) .env file in the current working directory

(260) Quarkus Application configuration file in $PWD/config/application.properties

(250) Quarkus Application configuration file application.properties in classpath

(100) MicroProfile Config configuration file META-INF/microprofile-config.properties in classpath

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions helm/charts/keycloak/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
description: CoMPAS PostgreSQL keycloak helm chart
name: keycloak
version: 0.0.1
appVersion: "1.0.0"
25 changes: 25 additions & 0 deletions helm/charts/keycloak/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "service.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 "chart-name" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
Loading

0 comments on commit c8cbabe

Please sign in to comment.