Skip to content

Commit

Permalink
feat: Add capsule (#16)
Browse files Browse the repository at this point in the history
Jira EPMDEDP-12592

Related #16

Change-Id: Ic7247da439f692f6f6e4d207a9862c0ef1d55c4a
  • Loading branch information
Oleksandr Taruraiev committed Sep 25, 2023
1 parent 8cb49a5 commit 4a05f09
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 0 deletions.
20 changes: 20 additions & 0 deletions add-ons/capsule/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions add-ons/capsule/README.md
Original file line number Diff line number Diff line change
@@ -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"` | |

13 changes: 13 additions & 0 deletions add-ons/capsule/values.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
33 changes: 33 additions & 0 deletions chart/templates/capsule.yaml
Original file line number Diff line number Diff line change
@@ -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 -}}
6 changes: 6 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a05f09

Please sign in to comment.