This commit is contained in:
Stavros kois
2023-02-13 19:28:34 +02:00
parent 349f05a587
commit 4fa91b806c
11 changed files with 37 additions and 23 deletions

View File

@@ -105,8 +105,8 @@ jobs:
- job-values.yaml
- cronjob-values.yaml
- statefulset-values.yaml
- persistence-values.yaml
# - extra-containers-values.yaml
# - persistence-values.yaml
# - rbac-values.yaml
steps:

View File

@@ -12,6 +12,9 @@ service:
workload:
main:
enabled: true
primary: true
type: Deployment
podSpec:
containers:
main:

View File

@@ -12,6 +12,9 @@ service:
workload:
main:
enabled: true
primary: true
type: Deployment
podSpec:
containers:
main:

View File

@@ -13,7 +13,9 @@ service:
workload:
main:
type: CronJob
schedule: "*/1 * * * *"
podSpec:
restartPolicy: OnFailure
containers:
main:
args:

View File

@@ -12,6 +12,8 @@ service:
workload:
main:
enabled: true
primary: true
type: DaemonSet
podSpec:
containers:

View File

@@ -12,6 +12,9 @@ service:
workload:
main:
enabled: true
primary: true
type: Deployment
podSpec:
containers:
main:

View File

@@ -14,6 +14,7 @@ workload:
main:
type: Job
podSpec:
restartPolicy: Never
containers:
main:
args:

View File

@@ -1,7 +1,7 @@
image:
repository: traefik/whoami
repository: tccr.io/truecharts/whoami
pullPolicy: IfNotPresent
tag: latest
tag: 1.8.7@sha256:8c61f0ca92fd806fcb4ed1465cb793c05443f37951554b105b0f2dc686a95772
service:
main:
@@ -9,22 +9,30 @@ service:
main:
port: 8080
controllers:
workload:
main:
pod:
enabled: true
primary: true
type: Deployment
podSpec:
containers:
main:
args:
- --port
- '8080'
- "8080"
probes:
liveness:
enabled: true
type: http
port: "{{ .Values.service.main.ports.main.port }}"
readiness:
enabled: true
type: http
port: "{{ .Values.service.main.ports.main.port }}"
startup:
enabled: true
type: http
port: "{{ .Values.service.main.ports.main.port }}"
persistence:
pvc-stock:
@@ -38,12 +46,6 @@ persistence:
mountPath: /pvcsize
size: 1Gi
pvc-forcedname:
enabled: true
type: pvc
forceName: "testname"
mountPath: /pvcfn
pvc-readonly:
enabled: true
type: pvc
@@ -64,13 +66,6 @@ persistence:
readOnly: false
storageClass: ""
pvc-auto:
enabled: true
setPermissions: true
type: pvc
mountPath: /autotest
readOnly: false
emptydir:
enabled: true
type: emptyDir
@@ -86,14 +81,14 @@ persistence:
enabled: true
type: emptyDir
mountPath: /emptydirsize
sizeLimit: 1Gi
size: 1Gi
emptydir-memsize:
enabled: true
type: emptyDir
mountPath: /emptydirmemsize
medium: Memory
sizeLimit: 1Gi
size: 1Gi
hostpath-stock:
enabled: true

View File

@@ -12,6 +12,9 @@ service:
workload:
main:
enabled: true
primary: true
type: Deployment
podSpec:
containers:
main:

View File

@@ -12,6 +12,8 @@ service:
workload:
main:
enabled: true
primary: true
type: DaemonSet
podSpec:
containers:

View File

@@ -33,7 +33,7 @@
{{/* Set the podSpec so it doesn't fail on nil pointer */}}
{{- if not (hasKey $objectData "podSpec") -}}
{{- fail "Workload - Expeced <podSpec> key to exist" -}}
{{- fail "Workload - Expected <podSpec> key to exist" -}}
{{- end -}}
{{/* Call class to create the object */}}