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

Added support for proxy envs in litmus chart #390

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion charts/litmus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.9.0"
description: A Helm chart to install ChaosCenter
name: litmus
version: 3.9.0
version: 3.9.1
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
7 changes: 6 additions & 1 deletion charts/litmus/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# litmus

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

A Helm chart to install ChaosCenter

Expand Down Expand Up @@ -240,6 +240,11 @@ We separated service configuration from `portal.server.service` to `portal.serve
| portal.server.waitForMongodb.resources.requests.ephemeral-storage | string | `"500Mi"` | |
| portal.server.waitForMongodb.resources.requests.memory | string | `"150Mi"` | |
| portal.server.waitForMongodb.securityContext | object | `{}` | |
| proxy.components[0] | string | `"auth-server"` | |
| proxy.components[1] | string | `"gql-server"` | |
| proxy.httpProxy | string | `nil` | |
| proxy.httpsProxy | string | `nil` | |
| proxy.noProxy | string | `nil` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
8 changes: 8 additions & 0 deletions charts/litmus/templates/auth-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ spec:
value: "{{ (index .Values.portal.server.authServer.ports 1).containerPort }}"
- name: ALLOWED_ORIGINS
value: "{{ .Values.allowedOrigins }}"
{{- if has "auth-server" .Values.proxy.components }}
- name: HTTP_PROXY
value: "{{ .Values.proxy.httpProxy }}"
- name: HTTPS_PROXY
value: "{{ .Values.proxy.httpsProxy }}"
- name: NO_PROXY
value: "{{ .Values.proxy.noProxy }}"
{{- end }}
{{- range $key, $val := .Values.portal.server.authServer.env }}
- name: {{ $key }}
value: {{ $val | quote }}
Expand Down
8 changes: 8 additions & 0 deletions charts/litmus/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ spec:
value: "{{ (index .Values.portal.server.graphqlServer.ports 1).containerPort }}"
- name: ALLOWED_ORIGINS
value: "{{ .Values.allowedOrigins }}"
{{- if has "gql-server" .Values.proxy.components }}
- name: HTTP_PROXY

Choose a reason for hiding this comment

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

which apis calls or url will use this proxy variables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Users can use this incase of air-gapped setup where they can provide access to external resources like github or to an external cluster using proxy only.

value: "{{ .Values.proxy.httpProxy }}"
- name: HTTPS_PROXY
value: "{{ .Values.proxy.httpsProxy }}"
- name: NO_PROXY
value: "{{ .Values.proxy.noProxy }}"
{{- end }}
{{- $imageRegistry := .Values.image.imageRegistryName -}}
{{- range $key, $val := .Values.portal.server.graphqlServer.imageEnv }}
- name: {{ $key }}
Expand Down
8 changes: 8 additions & 0 deletions charts/litmus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ ingress:
# - secretName: chart-example-tls
# hosts: []

proxy:
httpProxy:
httpsProxy:
noProxy:
components:
- auth-server
- gql-server

portal:
frontend:
replicas: 1
Expand Down