File tree Expand file tree Collapse file tree 5 files changed +51
-3
lines changed Expand file tree Collapse file tree 5 files changed +51
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
appVersion : v0.0.0
3
3
description : A Helm chart for Codefresh Internal Gateway
4
4
name : internal-gateway
5
- version : 0.9 .0
5
+ version : 0.10 .0
6
6
home : https://github.com/codefresh-io/helm-charts
7
7
keywords :
8
8
- codefresh
@@ -13,4 +13,4 @@ maintainers:
13
13
dependencies :
14
14
- name : cf-common
15
15
repository : oci://quay.io/codefresh/charts
16
- version : " 0.16 .0"
16
+ version : " 0.21 .0"
Original file line number Diff line number Diff line change
1
+ function account_name ( r ) {
2
+ const auth_entity = r . variables [ "auth_entity" ] ;
3
+ const b64decoded = Buffer . from ( auth_entity , 'base64' ) ;
4
+ const json = JSON . parse ( b64decoded ) ;
5
+ const account_name = json . authenticatedEntity . activeAccount . name ;
6
+
7
+ return account_name ;
8
+ }
9
+
10
+ export default { account_name} ;
Original file line number Diff line number Diff line change 19
19
pid /tmp/nginx.pid;
20
20
worker_rlimit_nofile { { $nginxConfig .workerRlimitNofile } };
21
21
22
+ { {- with $nginxConfig .rootSnippet } }
23
+ { { . | nindent 4 } }
24
+ { {- end } }
25
+
26
+ { {- range $key , $val := $nginxConfig .rootDirectives } }
27
+ { { printf " %s %s;" $key $val } }
28
+ { {- end } }
29
+
22
30
events {
23
31
worker_connections {{ $nginxConfig .workerConnections } };
24
32
}
Original file line number Diff line number Diff line change
1
+ {{- if not .Values.libraryMode }}
2
+ apiVersion : v1
3
+ kind : ConfigMap
4
+ metadata :
5
+ name : {{ .Release.Name }}-njs-scritps
6
+ namespace : {{ .Release.Namespace }}
7
+ data :
8
+ {{- $rootContext := . }}
9
+ {{- range $globPattern := $rootContext.Values.nginx.scriptFilesPatterns }}
10
+ {{- range $path, $_ := $rootContext.Files.Glob $globPattern }}
11
+ {{ base $path }}: {{ $rootContext.Files.Get $path | toYaml | nindent 4 }}
12
+ {{- end }}
13
+ {{- end }}
14
+ {{- end }}
Original file line number Diff line number Diff line change 1
1
# Defines if library mode is used for the chart. No templates are generated when using this mode.
2
2
# Added to support usage in Codefresh On-Premise Helm chart
3
- libraryMode : true
3
+ libraryMode : false
4
4
5
5
# -- Codefresh platform settings
6
6
# List of services endpoints and port
@@ -128,6 +128,11 @@ nginx:
128
128
errorLogLevel : error
129
129
# -- Enables NGINX access logs
130
130
accessLogEnabled : true
131
+ # -- Allows appending custom directives to the root block (map)
132
+ rootSnippet : " "
133
+ # -- Allows appending custom directives to the root block (map)
134
+ rootDirectives :
135
+ load_module : modules/ngx_http_js_module.so
131
136
# -- Allows appending custom configuration to the server block (string)
132
137
serverSnippet : " "
133
138
# -- Allows appending custom directives to the server block (map)
@@ -148,6 +153,8 @@ nginx:
148
153
# !! Moved into separate template at `templates/nginx/configmap.yaml`
149
154
# @default -- See below
150
155
file : " "
156
+ scriptFilesPatterns :
157
+ - files/njs/**
151
158
152
159
# -- Misc signadot configuration
153
160
signadot : false
@@ -193,6 +200,9 @@ container:
193
200
config :
194
201
path :
195
202
- mountPath : /etc/nginx
203
+ njs-scripts :
204
+ path :
205
+ - mountPath : /etc/nginx/scripts
196
206
197
207
resources :
198
208
requests :
@@ -260,6 +270,9 @@ volumes:
260
270
config :
261
271
enabled : true
262
272
type : configMap
273
+ njs-scripts :
274
+ enabled : true
275
+ type : configMap
263
276
264
277
# -- HPA parameters
265
278
# @default -- See below
@@ -301,3 +314,6 @@ serviceAccount:
301
314
# @default -- See below
302
315
rbac :
303
316
enabled : false
317
+
318
+ keda :
319
+ enabled : false
You can’t perform that action at this time.
0 commit comments