diff --git a/add-ons/capsule/Chart.yaml b/add-ons/capsule/Chart.yaml new file mode 100644 index 0000000..a875412 --- /dev/null +++ b/add-ons/capsule/Chart.yaml @@ -0,0 +1,20 @@ +apiVersion: v2 +name: capsule +description: A Helm chart for capsule + +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +type: application + +# The chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +version: 0.4.6 + +# Version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. +appVersion: "0.3.3" + +dependencies: +- name: capsule + version: 0.4.6 + repository: https://clastix.github.io/charts diff --git a/add-ons/capsule/README.md b/add-ons/capsule/README.md new file mode 100644 index 0000000..e940181 --- /dev/null +++ b/add-ons/capsule/README.md @@ -0,0 +1,19 @@ +# capsule + +![Version: 0.4.6](https://img.shields.io/badge/Version-0.4.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.3](https://img.shields.io/badge/AppVersion-0.3.3-informational?style=flat-square) + +A Helm chart for capsule + +## Requirements + +| Repository | Name | Version | +|------------|------|---------| +| https://clastix.github.io/charts | capsule | 0.4.6 | + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| capsule.manager.resources.limits.memory | string | `"256Mi"` | | +| capsule.tolerations[0].operator | string | `"Exists"` | | + diff --git a/add-ons/capsule/values.yaml b/add-ons/capsule/values.yaml new file mode 100644 index 0000000..c0bb4de --- /dev/null +++ b/add-ons/capsule/values.yaml @@ -0,0 +1,13 @@ +capsule : + manager: + resources: +# Max memory limit needed for the pod initialization process + limits: + memory: 256Mi + +# This parameter is responsible for ensuring that the pod can cope with +# any existing taint on a node, without taking into account the taint's +# specific properties, such as its key, value or impact. As a consequence, +# it allows the pod to be allocated to any node, regardless of any associated taints. + tolerations: + - operator: Exists \ No newline at end of file diff --git a/chart/README.md b/chart/README.md index c206d9e..12b43a1 100644 --- a/chart/README.md +++ b/chart/README.md @@ -24,6 +24,8 @@ EDP Cluster Addons that extend the Kubernetes Cluster Functionality | argo-cd | object | `{"createNamespace":false,"enable":false}` | ArgoCD Deployment | | argo-cd.createNamespace | bool | `false` | whether to create the namespace or not | | aws-efs-csi-driver | object | `{"enable":false}` | AWS EFS CSI Driver | +| capsule | object | `{"createNamespace":false,"enable":false}` | Capsule | +| capsule.createNamespace | bool | `false` | whether to create the namespace or not | | certmanager | object | `{"createNamespace":false,"enable":false}` | Cert Manager | | certmanager.createNamespace | bool | `false` | whether to create the namespace or not | | defectdojo | object | `{"createNamespace":false,"enable":false}` | DefectDojo | diff --git a/chart/templates/capsule.yaml b/chart/templates/capsule.yaml new file mode 100644 index 0000000..326f912 --- /dev/null +++ b/chart/templates/capsule.yaml @@ -0,0 +1,33 @@ +{{- if and (.Values.capsule) (.Values.capsule.enable) -}} +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: capsule + namespace: {{ .Values.argoNamespace | default "argocd" }} + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: {{ .Values.argoProject | default "default" }} + source: + repoURL: {{ .Values.repoUrl }} + path: add-ons/capsule + targetRevision: {{ .Values.targetRevision }} + helm: + values: | + capsule: + {{- toYaml .Values.capsule | nindent 10 }} + destination: + server: {{ .Values.destinationServer | default "https://kubernetes.default.svc" }} + namespace: capsule-system + syncPolicy: + automated: + prune: true + syncOptions: + - CreateNamespace={{ .Values.capsule.createNamespace }} + retry: + limit: 1 + backoff: + duration: 5s + factor: 2 + maxDuration: 1m +{{- end -}} diff --git a/chart/values.yaml b/chart/values.yaml index b3aeecc..caa743d 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -10,6 +10,12 @@ argo-cd: aws-efs-csi-driver: enable: false +# -- Capsule +capsule: + # -- whether to create the namespace or not + createNamespace: false + enable: false + # -- Cert Manager certmanager: # -- whether to create the namespace or not