-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: enhance chart * fix(values): spaces * feat(charts/portals): add maintainers * fiyx(charts/portals): maintainer name * fix(ci): remove install test due to missing db * fix(charts/portals): no fresh migration * feat(charts/portals): add csv configmap ref * fix(charts/portals): seed-job * feat(charts/portals): add hpa * feat(charts/portals): add app_env_type to match newest image * fix(charts/portals): migrate seed uses fresh * feat(charts/portals): adjust and document default values
- Loading branch information
1 parent
f9a6a45
commit 5b8729a
Showing
9 changed files
with
156 additions
and
40 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 |
---|---|---|
|
@@ -28,9 +28,3 @@ jobs: | |
- name: Run chart-testing (lint) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --target-branch ${{ github.event.repository.default_branch }} | ||
- name: Create kind cluster | ||
if: steps.list-changed.outputs.changed == 'true' | ||
uses: helm/[email protected] | ||
- name: Run chart-testing (install) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --target-branch ${{ github.event.repository.default_branch }} |
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 |
---|---|---|
|
@@ -2,6 +2,10 @@ apiVersion: v2 | |
name: portals | ||
description: Portals is a group allocation tool for the first week of the Department of Electrical Engineering and Information Technology at the FH Aachen - University of Applied Sciences. | ||
type: application | ||
version: 0.0.2 | ||
version: 0.0.3 | ||
appVersion: "2.1.0" | ||
home: github.com/fsr5-fhaachen/portals | ||
maintainers: | ||
- name: fsr5-fhaachen | ||
email: [email protected] | ||
url: https://fsr5.de/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Thank you for installing {{ .Chart.Name }}. | ||
|
||
Your release is named {{ .Release.Name }}. | ||
|
||
{{- if .Values.ingress.enabled }} | ||
You can access your site on your configured domain by visiting {{ index .Values.ingress.hosts 0 }}. | ||
{{- else }} | ||
You can access your site by port-forwarding to the service: "kubectl port-forward -n {{ .Release.Namespace }} svc/{{ include "portals.fullname" . }} 8000:8000" | ||
{{- end }} | ||
|
||
|
||
|
||
Learn more about portals at https://github.com/fsr5-fhaachen/portals. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if .Values.hpa.enabled }} | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ include "portals.fullname" . }} | ||
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: {{ include "portals.fullname" . }} | ||
minReplicas: {{ .Values.hpa.minReplicas }} | ||
maxReplicas: {{ .Values.hpa.maxReplicas }} | ||
metrics: | ||
- type: Resource | ||
resource: | ||
name: cpu | ||
target: | ||
type: Utilization | ||
averageUtilization: {{ .Values.hpa.averageCPUUtilization }} | ||
{{- end }} |
This file was deleted.
Oops, something went wrong.
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,59 @@ | ||
{{- if or .Values.migrateJob.onInstall .Values.migrateJob.onUpgrade -}} | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: {{ include "portals.fullname" . }}-migrate-job | ||
labels: | ||
{{- include "portals.labels" . | nindent 4 }} | ||
annotations: | ||
helm.sh/hook: {{ if .Values.migrateJob.onInstall }}pre-install{{ end }}{{ if and .Values.migrateJob.onInstall .Values.migrateJob.onUpgrade }},{{ end }}{{ if .Values.migrateJob.onUpgrade }}pre-upgrade{{ end }} | ||
helm.sh/hook-weight: "1" | ||
helm.sh/hook-delete-policy: hook-succeeded | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
resources: | ||
{{- toYaml .Values.resources | nindent 12 }} | ||
env: | ||
{{- range $key, $value := .Values.environment }} | ||
- name: {{ $key }} | ||
value: {{ $value | quote }} | ||
{{- end }} | ||
{{- if .Values.migrateJob.seed }} | ||
command: ["php", "artisan", "migrate:fresh", "--seed", "--no-interaction", "--force"] | ||
{{- else }} | ||
command: ["php", "artisan", "migrate", "--no-interaction", "--force"] | ||
{{- end }} | ||
{{- if or (ne .Values.migrateJob.tutorsCsvConfigMapName "") (ne .Values.migrateJob.studentsCsvConfigMapName "") }} | ||
volumeMounts: | ||
{{- if ne .Values.migrateJob.tutorsCsvConfigMapName "" }} | ||
- name: tutors-csv | ||
mountPath: /var/www/html/database/seeders/tutors.csv | ||
subPath: tutors.csv | ||
{{- end }} | ||
{{- if ne .Values.migrateJob.studentsCsvConfigMapName "" }} | ||
- name: students-csv | ||
mountPath: /var/www/html/database/seeders/students.csv | ||
subPath: students.csv | ||
{{- end }} | ||
{{- end }} | ||
{{- if or (ne .Values.migrateJob.tutorsCsvConfigMapName "") (ne .Values.migrateJob.studentsCsvConfigMapName "") }} | ||
volumes: | ||
{{- if ne .Values.migrateJob.tutorsCsvConfigMapName "" }} | ||
- name: tutors-csv | ||
configMap: | ||
name: {{ .Values.migrateJob.tutorsCsvConfigMapName }} | ||
{{- end }} | ||
{{- if ne .Values.migrateJob.studentsCsvConfigMapName "" }} | ||
- name: students-csv | ||
configMap: | ||
name: {{ .Values.migrateJob.studentsCsvConfigMapName }} | ||
{{- end }} | ||
{{- end }} | ||
restartPolicy: Never | ||
backoffLimit: 1 | ||
{{- end }} |
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