Skip to content

Commit 7737994

Browse files
authored
feat: allow extraObjects and ports (#7)
1 parent f0738c5 commit 7737994

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

charts/simple-krr-dashboard/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ helm show values simple-krr-dashboard/simple-krr-dashboard
7575
| envFromConfigMap | object | `{}` | Variables from configMap |
7676
| envFromFiles | list | `[]` | Variables from files managed by you </br> Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#configure-all-key-value-pairs-in-a-configmap-as-container-environment-variables |
7777
| envFromSecrets | object | `{}` | Variables from secrets |
78+
| extraObjects | list | `[]` | Extra Kubernetes manifests to deploy |
7879
| fullnameOverride | string | `""` | String to fully override simple-krr-dashboard.fullname template |
7980
| hostAliases | list | `[]` | Configure hostAliases </br> Ref: https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/ |
8081
| image | object | `{"pullPolicy":"IfNotPresent","repository":"ghcr.io/devops-ia/simple-krr-dashboard","tag":""}` | Image registry The image configuration for the base service |

charts/simple-krr-dashboard/templates/deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ spec:
6060
- name: http
6161
containerPort: {{ .Values.service.targetPort | default .Values.service.port }}
6262
protocol: TCP
63+
{{- range $port := .Values.service.extraPorts }}
64+
- name: {{ $port.name }}
65+
containerPort: {{ $port.targetPort }}
66+
protocol: TCP
67+
{{- end }}
6368
{{- with .Values.lifecycle }}
6469
lifecycle:
6570
{{- toYaml . | nindent 12 }}

charts/simple-krr-dashboard/values.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,3 +604,25 @@ job:
604604

605605
# -- Configure DNS policy
606606
dnsPolicy: ClusterFirst
607+
608+
# -- Extra Kubernetes manifests to deploy
609+
extraObjects: []
610+
# - apiVersion: batch/v1
611+
# kind: CronJob
612+
# metadata:
613+
# name: hello
614+
# spec:
615+
# schedule: "* * * * *"
616+
# jobTemplate:
617+
# spec:
618+
# template:
619+
# spec:
620+
# containers:
621+
# - name: hello
622+
# image: busybox:1.28
623+
# imagePullPolicy: IfNotPresent
624+
# command:
625+
# - /bin/sh
626+
# - -c
627+
# - date; echo Hello from the Kubernetes cluster
628+
# restartPolicy: OnFailure

0 commit comments

Comments
 (0)