Skip to content

Commit d3e6cda

Browse files
committed
feat: ✨ allow enabled proxy for plugin initContainer only
1 parent 911edff commit d3e6cda

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

charts/dso-console/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: cpn-console
33
description: A Helm chart to deploy Cloud Pi Native Console
44
type: application
5-
version: 2.1.16
5+
version: 2.2.0
66
appVersion: 9.6.0
77
keywords: []
88
home: https://cloud-pi-native.fr

charts/dso-console/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cpn-console
22

3-
![Version: 2.1.16](https://img.shields.io/badge/Version-2.1.16-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 9.6.0](https://img.shields.io/badge/AppVersion-9.6.0-informational?style=flat-square)
3+
![Version: 2.2.0](https://img.shields.io/badge/Version-2.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 9.6.0](https://img.shields.io/badge/AppVersion-9.6.0-informational?style=flat-square)
44

55
A Helm chart to deploy Cloud Pi Native Console
66

@@ -238,6 +238,8 @@ A Helm chart to deploy Cloud Pi Native Console
238238
| server.podAnnotations | object | `{}` | Annotations for the Console CPN server deployed pods. |
239239
| server.podLabels | object | `{}` | Labels for the Console CPN server deployed pods. |
240240
| server.podSecurityContext | object | `{}` | Toggle and define pod-level security context. |
241+
| server.proxy.enabled | bool | `false` | Enable Proxy configuration for the plugins initContainer. |
242+
| server.proxy.env | list | `[{"name":"http_proxy","value":"http://proxy.example.com:3128"},{"name":"https_proxy","value":"http://proxy.example.com:3128"},{"name":"no_proxy","value":".cluster.local,.svc.cluster.local,.svc"}]` | Map of environment variables to inject into the plugins initContainers. |
241243
| server.readinessProbe.enabled | bool | `true` | Whether or not enable the probe. |
242244
| server.readinessProbe.failureThreshold | int | `2` | Minimum consecutive failures for the probe to be considered failed after having succeeded. |
243245
| server.readinessProbe.initialDelaySeconds | int | `15` | Number of seconds after the container has started before probe is initiated. |

charts/dso-console/templates/server/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ spec:
4141
- image: {{ .Values.server.fetchContainer.image }}
4242
name: fetch-plugins
4343
imagePullPolicy: {{ .Values.server.fetchContainer.pullPolicy }}
44+
{{- if .Values.server.proxy.enabled }}
45+
env:
46+
{{- toYaml .Values.server.proxy | nindent 8 }}
47+
{{- end }}
4448
envFrom:
4549
- configMapRef:
4650
name: {{ include "cpnConsole.fullname" . }}-server

charts/dso-console/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,17 @@ server:
441441
plugins: []
442442
# -- CSV list of plugins to disabled.
443443
disabledPlugins: ""
444+
proxy:
445+
# -- Enable Proxy configuration for the plugins initContainer.
446+
enabled: false
447+
# -- Map of environment variables to inject into the plugins initContainers.
448+
env:
449+
- name: http_proxy
450+
value: "http://proxy.example.com:3128"
451+
- name: https_proxy
452+
value: "http://proxy.example.com:3128"
453+
- name: no_proxy
454+
value: ".cluster.local,.svc.cluster.local,.svc"
444455
resources:
445456
requests:
446457
# -- Memory request for the Console CPN server.

0 commit comments

Comments
 (0)