Skip to content

Commit

Permalink
Fix subchart issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jun 8, 2024
1 parent 31314b4 commit 18a9484
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions charts/mammatus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: mammatus
description: MammatusPHP Chart
type: application
version: 0.0.1
appVersion: 0.0.1
version: 0.0.2
appVersion: 0.0.2
maintainers:
- name: WyriHaximus
email: helm@ceesjankiewiet.nl
Expand Down
4 changes: 2 additions & 2 deletions charts/mammatus/templates/_pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- define "mammatus.pod" -}}
containers:
- name: {{ .name }}
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- php
Expand All @@ -25,7 +25,7 @@ containers:
{{- define "mammatus.env" -}}
env:
- name: RELEASE_TAG
value: {{ .Chart.AppVersion }}
value: {{ .Values.image.tag }}
- name: POD_NAME
valueFrom:
fieldRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/mammatus/templates/cronjobs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- range .Values.mammatus.cronjobs }}
{{- range .Values.cronjobs }}
---
apiVersion: batch/v1
kind: CronJob
Expand Down
2 changes: 1 addition & 1 deletion charts/mammatus/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- range .Values.mammatus.deployments }}
{{- range .Values.deployments }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down
30 changes: 15 additions & 15 deletions charts/mammatus/values.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
mammatus:
cronjobs: []
# - name: some_job
# class: Some\Class\FQCN
# schedule: "0 3 * * *"
deployments: []
# - name: some_worker
# command: mammatus-queue
# arguments:
# - Some\Class\FQCN
# - name: some_service
# command: mammatus-vhost
# arguments:
# - Some\Class\FQCN
# post: 666
cronjobs: []
# - name: some_job
# class: Some\Class\FQCN
# schedule: "0 3 * * *"
deployments: []
# - name: some_worker
# command: mammatus-queue
# arguments:
# - Some\Class\FQCN
# - name: some_service
# command: mammatus-vhost
# arguments:
# - Some\Class\FQCN
# post: 666

env: {}
# key: value
Expand All @@ -23,6 +22,7 @@ secrets: []
image:
repository: ghcr.io/LOGIN/REPO
pullPolicy: IfNotPresent
tag: dev

resources:
cpu: 100m
Expand Down
2 changes: 1 addition & 1 deletion ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ target-branch: main
chart-dirs:
- charts
chart-repos:
- "WyriHaximusNet=https://helm.wyrihaximus.net"
- "MammatusPHP=https://mammatusphp.github.io/helm-charts/"
debug: true

0 comments on commit 18a9484

Please sign in to comment.