Skip to content

Commit

Permalink
🔥 (portfolio): Remove old envs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 29, 2023
1 parent cb010b4 commit fb83976
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
6 changes: 3 additions & 3 deletions charts/portfolio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: My personal portfolio website
home: https://charts.gabe565.com/charts/portfolio
icon: https://raw.githubusercontent.com/gabe565/portfolio/0f0e80ce2f29e9382a64e7fc6fe2ed1a9993971b/public/android-chrome-512x512.png
type: application
version: 0.7.2
version: 0.7.3
# renovate datasource=docker depName=ghcr.io/gabe565/portfolio
appVersion: latest
kubeVersion: ">=1.22.0-0"
Expand All @@ -16,5 +16,5 @@ sources:
- https://github.com/gabe565/portfolio
annotations:
artifacthub.io/changes: |-
- kind: changed
description: Clean up chart sources
- kind: removed
description: Remove old envs
2 changes: 1 addition & 1 deletion charts/portfolio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img src="https://raw.githubusercontent.com/gabe565/portfolio/0f0e80ce2f29e9382a64e7fc6fe2ed1a9993971b/public/android-chrome-512x512.png" align="right" width="92" alt="portfolio logo">

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

Expand Down
26 changes: 0 additions & 26 deletions charts/portfolio/templates/common.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1 @@
{{/* Append the hardcoded settings */}}
{{- define "portfolio.harcodedValues" -}}
env:
{{- with .Values.ingress.main }}
{{- if .enabled }}
APP_URL: http{{ if .tls }}s{{ end }}://{{ (first .hosts).host }}
{{- end }}
{{- end }}

{{- with .Values.postgresql }}
{{- if .enabled }}
DB_CONNECTION: pgsql
DB_HOST: {{ $.Release.Name }}-postgresql
DB_PORT: "5432"
DB_DATABASE: {{ .auth.database }}
DB_USERNAME: {{ default "postgres" .auth.username }}
DB_PASSWORD:
secretKeyRef:
name: {{ $.Release.Name }}-postgresql
key: {{ if not .auth.password }}postgres-{{ end }}password
{{- end }}
{{- end }}
{{- end -}}
{{- $_ := merge .Values (include "portfolio.harcodedValues" . | fromYaml) -}}

{{/* Render the templates */}}
{{ include "bjw-s.common.loader.all" . }}

0 comments on commit fb83976

Please sign in to comment.