From 2a1be9740e8f470d92f5066c4789e8f326f0906e Mon Sep 17 00:00:00 2001 From: Dev Jadeja Date: Tue, 11 Feb 2025 19:43:48 +0530 Subject: [PATCH] feature: capability to add extra kubernetes manifests example usage: ```yaml extraManifests: - apiVersion: v1 kind: LimitRange metadata: annotations: argocd.argoproj.io/sync-wave: "10" name: default-limit-range spec: limits: - default: memory: 700Mi defaultRequest: cpu: 50m memory: 500Mi type: Container ``` --- charts/py-app/templates/extra-objects.yaml | 6 ++++++ charts/py-app/values.yaml | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 charts/py-app/templates/extra-objects.yaml diff --git a/charts/py-app/templates/extra-objects.yaml b/charts/py-app/templates/extra-objects.yaml new file mode 100644 index 0000000..ee0aeb3 --- /dev/null +++ b/charts/py-app/templates/extra-objects.yaml @@ -0,0 +1,6 @@ +{{- if .Values.extraManifests }} +{{- range .Values.extraManifests }} +--- +{{ toYaml . }} +{{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/py-app/values.yaml b/charts/py-app/values.yaml index 2a11b42..a840187 100644 --- a/charts/py-app/values.yaml +++ b/charts/py-app/values.yaml @@ -125,3 +125,5 @@ autoscaling: maxReplicas: 20 targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 + +extraManifests: [] \ No newline at end of file