Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Litmus 2.0 to Kubesphere App Store #150

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/main/litmus-2-0-0-beta/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
21 changes: 21 additions & 0 deletions src/main/litmus-2-0-0-beta/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
appVersion: "2.0.0"
description: A Helm chart to install litmus portal
name: litmus-2-0-0-beta
version: 2.0.22-Beta8
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
- https://github.com/litmuschaos/litmus
keywords:
- chaos-engineering
- resiliency
- kubernetes
maintainers:
- name: rajdas98
email: [email protected]
- name: ispeakc0de
email: [email protected]
- name: jasstkn
email: [email protected]
icon: https://raw.githubusercontent.com/litmuschaos/icons/master/litmus.png
111 changes: 111 additions & 0 deletions src/main/litmus-2-0-0-beta/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# litmus-2-0-0-beta

![Version: 2.0.22-Beta8](https://img.shields.io/badge/Version-2.0.22--Beta8-informational?style=flat-square) ![AppVersion: 2.0.0](https://img.shields.io/badge/AppVersion-2.0.0-informational?style=flat-square)

A Helm chart to install litmus portal

**Homepage:** <https://litmuschaos.io>

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| rajdas98 | [email protected] | |
| ispeakc0de | [email protected] | |
| jasstkn | [email protected] | |

## Source Code

* <https://github.com/litmuschaos/litmus>

## Requirements

Kubernetes: `>=1.16.0-0`

## Installing the Chart

To install this chart with the release name `litmus-portal`:

```console
$ helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update this URL with:
helm repo add main https://charts.kubesphere.io/main

$ helm install litmus-portal litmuschaos/litmus-2-0-0-beta
```

***Note***: This chart is in its beta release. To find it using `helm search` add `--devel` option.

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| adminConfig.DBPASSWORD | string | `"1234"` | |
| adminConfig.DBUSER | string | `"admin"` | |
| adminConfig.DB_PORT | string | `"27017"` | |
| adminConfig.DB_SERVER | string | `""` | leave empty if uses Mongo DB deployed by this chart |
| adminConfig.JWTSecret | string | `"litmus-portal@123"` | |
| customLabels | object | `{}` | Additional labels |
| image.imagePullSecrets | list | `[]` | |
| image.imageRegistryName | string | `"litmuschaos"` | |
| ingress.annotations | object | `{}` | |
| ingress.enabled | bool | `false` | |
| ingress.host | string | `""` | |
| ingress.name | string | `"litmus-ingress"` | |
| ingress.tls | list | `[]` | |
| mongo.containerPort | int | `27017` | |
| mongo.image.pullPolicy | string | `"Always"` | |
| mongo.image.repository | string | `"mongo"` | |
| mongo.image.tag | string | `"4.2.8"` | |
| mongo.persistence.accessMode | string | `"ReadWriteOnce"` | |
| mongo.persistence.size | string | `"20Gi"` | |
| mongo.replicas | int | `1` | |
| mongo.resources | object | `{}` | |
| mongo.service.port | int | `27017` | |
| mongo.service.targetPort | int | `27017` | |
| mongo.service.type | string | `"ClusterIP"` | |
| openshift.route.annotations | object | `{}` | |
| openshift.route.enabled | bool | `false` | |
| openshift.route.host | string | `""` | |
| openshift.route.name | string | `"litmus-portal"` | |
| portal.frontend.containerPort | int | `8080` | |
| portal.frontend.image.pullPolicy | string | `"Always"` | |
| portal.frontend.image.repository | string | `"litmusportal-frontend"` | |
| portal.frontend.image.tag | string | `"2.0.0-Beta8"` | |
| portal.frontend.replicas | int | `1` | |
| portal.frontend.resources | object | `{}` | |
| portal.frontend.service.port | int | `9091` | |
| portal.frontend.service.targetPort | int | `8080` | |
| portal.frontend.service.type | string | `"NodePort"` | |
| portal.server.authServer.containerPort | int | `3000` | |
| portal.server.authServer.env.ADMIN_PASSWORD | string | `"litmus"` | |
| portal.server.authServer.env.ADMIN_USERNAME | string | `"admin"` | |
| portal.server.authServer.image.pullPolicy | string | `"Always"` | |
| portal.server.authServer.image.repository | string | `"litmusportal-auth-server"` | |
| portal.server.authServer.image.tag | string | `"2.0.0-Beta8"` | |
| portal.server.authServer.resources | object | `{}` | |
| portal.server.graphqlServer.containerPort | int | `8080` | |
| portal.server.graphqlServer.genericEnv.CONTAINER_RUNTIME_EXECUTOR | string | `"k8sapi"` | |
| portal.server.graphqlServer.genericEnv.HUB_BRANCH_NAME | string | `"v1.13.x"` | |
| portal.server.graphqlServer.genericEnv.PORTAL_ENDPOINT | string | `"http://litmusportal-server-service:9002"` | |
| portal.server.graphqlServer.genericEnv.SELF_CLUSTER | string | `"true"` | |
| portal.server.graphqlServer.genericEnv.SERVER_SERVICE_NAME | string | `"litmusportal-server-service"` | |
| portal.server.graphqlServer.image.pullPolicy | string | `"Always"` | |
| portal.server.graphqlServer.image.repository | string | `"litmusportal-server"` | |
| portal.server.graphqlServer.image.tag | string | `"2.0.0-Beta8"` | |
| portal.server.graphqlServer.imageEnv.ARGO_WORKFLOW_CONTROLLER_IMAGE | string | `"workflow-controller:v2.9.3"` | |
| portal.server.graphqlServer.imageEnv.ARGO_WORKFLOW_EXECUTOR_IMAGE | string | `"argoexec:v2.9.3"` | |
| portal.server.graphqlServer.imageEnv.EVENT_TRACKER_IMAGE | string | `"litmusportal-event-tracker:2.0.0-Beta8"` | |
| portal.server.graphqlServer.imageEnv.LITMUS_CHAOS_EXPORTER_IMAGE | string | `"chaos-exporter:1.13.5"` | |
| portal.server.graphqlServer.imageEnv.LITMUS_CHAOS_OPERATOR_IMAGE | string | `"chaos-operator:1.13.5"` | |
| portal.server.graphqlServer.imageEnv.LITMUS_CHAOS_RUNNER_IMAGE | string | `"chaos-runner:1.13.5"` | |
| portal.server.graphqlServer.imageEnv.SUBSCRIBER_IMAGE | string | `"litmusportal-subscriber:2.0.0-Beta8"` | |
| portal.server.graphqlServer.resources | object | `{}` | |
| portal.server.replicas | int | `1` | |
| portal.server.service.authServer.port | int | `9003` | |
| portal.server.service.authServer.targetPort | int | `3000` | |
| portal.server.service.graphqlServer.port | int | `9002` | |
| portal.server.service.graphqlServer.targetPort | int | `8080` | |
| portal.server.service.type | string | `"NodePort"` | |
| portal.server.serviceAccountName | string | `"litmus-server-account"` | |
| portalScope | string | `"cluster"` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
28 changes: 28 additions & 0 deletions src/main/litmus-2-0-0-beta/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{ template "chart.header" . }}

{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}

{{ template "chart.description" . }}

{{ template "chart.homepageLine" . }}

{{ template "chart.maintainersSection" . }}

{{ template "chart.sourcesSection" . }}

{{ template "chart.requirementsSection" . }}

## Installing the Chart

To install this chart with the release name `litmus-portal`:

```console
$ helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/
$ helm install litmus-portal litmuschaos/litmus-2-0-0-beta
```

***Note***: This chart is in its beta release. To find it using `helm search` add `--devel` option.

{{ template "chart.valuesSection" . }}

{{ template "helm-docs.versionFooter" . }}
5 changes: 5 additions & 0 deletions src/main/litmus-2-0-0-beta/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Thank you for installing {{ .Chart.Name }} 😀

Your release is named {{ .Release.Name }} and it's installed to namespace: {{ .Release.Namespace }}.

Visit https://litmusdocs-beta.netlify.app/docs/introduction to find more info.
56 changes: 56 additions & 0 deletions src/main/litmus-2-0-0-beta/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "litmus-portal.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "litmus-portal.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "litmus-portal.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Specify default labels
*/}}
{{- define "litmus-portal.labels" -}}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/name: {{ include "litmus-portal.name" . }}
app.kubernetes.io/part-of: {{ template "litmus-portal.name" . }}
app.kubernetes.io/version: "{{ .Chart.Version }}"
helm.sh/chart: {{ include "litmus-portal.chart" . }}
litmuschaos.io/version: {{ .Chart.AppVersion }}
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels }}
{{- end }}
{{- end -}}

{{/*
Specify default selectors
*/}}
{{- define "litmus-portal.selectors" -}}
app.kubernetes.io/name: {{ include "litmus-portal.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
19 changes: 19 additions & 0 deletions src/main/litmus-2-0-0-beta/templates/admin-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "litmus-portal.fullname" . }}-admin-config
namespace: {{ .Release.Namespace }}
labels:
{{- include "litmus-portal.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-admin-config
data:
AgentScope: "{{ .Values.portalScope }}"
AgentNamespace: "{{ .Release.Namespace }}"
{{- if .Values.adminConfig.DB_SERVER }}
DB_SERVER: "mongodb://{{ .Values.adminConfig.DB_SERVER }}:{{ .Values.adminConfig.DB_PORT }}"
{{- else }}
DB_SERVER: "mongodb://{{ include "litmus-portal.fullname" . }}-mongo:{{ .Values.adminConfig.DB_PORT }}"
{{- end }}
JWTSecret: "{{ .Values.adminConfig.JWTSecret }}"
DB_USER: "{{ .Values.adminConfig.DBUSER }}"
DB_PASSWORD: "{{ .Values.adminConfig.DBPASSWORD }}"
38 changes: 38 additions & 0 deletions src/main/litmus-2-0-0-beta/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "litmus-portal.fullname" . }}-frontend
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-frontend
{{- include "litmus-portal.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.portal.frontend.replicas }}
selector:
matchLabels:
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-frontend
template:
metadata:
labels:
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-frontend
{{- include "litmus-portal.labels" . | nindent 8 }}
spec:
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.imagePullSecrets | indent 8 }}
{{- end }}
containers:
- name: litmusportal-frontend
image: {{ .Values.image.imageRegistryName }}/{{ .Values.portal.frontend.image.repository }}:{{ .Values.portal.frontend.image.tag }}
imagePullPolicy: {{ .Values.portal.frontend.image.pullPolicy }}
resources:
{{- toYaml .Values.portal.frontend.resources | nindent 12 }}
ports:
- containerPort: {{ .Values.portal.frontend.containerPort }}
name: http
env:
- name: AGENT_SCOPE
valueFrom:
configMapKeyRef:
name: {{ include "litmus-portal.fullname" . }}-admin-config
key: AgentScope
26 changes: 26 additions & 0 deletions src/main/litmus-2-0-0-beta/templates/frontend-route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if .Values.openshift.route.enabled -}}
{{ $fullName := include "litmus-portal.fullname" . }}
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: {{ $fullName }}-route
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/part-of: {{ $fullName }}-server
app.kubernetes.io/part-of: {{ $fullName }}-frontend
{{- with .Values.openshift.route.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.openshift.route.host }}
host: {{ .Values.openshift.route.host }}
{{- end }}
port:
targetPort: http
tls:
termination: edge
to:
kind: Service
name: litmusportal-frontend-service
{{- end }}
20 changes: 20 additions & 0 deletions src/main/litmus-2-0-0-beta/templates/frontend-svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
name: litmusportal-frontend-service
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-frontend
{{- include "litmus-portal.labels" . | nindent 4 }}
spec:
{{- if .Values.ingress.enabled }}
type: ClusterIP
{{- else }}
type: {{ .Values.portal.frontend.service.type }}
{{- end }}
ports:
- name: http
port: {{ .Values.portal.frontend.service.port }}
targetPort: {{ .Values.portal.frontend.service.targetPort }}
selector:
app.kubernetes.io/component: {{ include "litmus-portal.name" . }}-frontend
Loading