File tree 12 files changed +43
-15
lines changed
resc-vcs-scanner-secrets/templates
resc-vcs-scraper-projects/templates
resc-vcs-scraper-repositories/templates
resc-helm-wizard/src/resc_helm_wizard/config
12 files changed +43
-15
lines changed Original file line number Diff line number Diff line change 47
47
name : {{ .Values.global.appName }}-rabbitmq-admin-secret
48
48
{{ end }}
49
49
volumeMounts :
50
+ {{ if eq .Values.useKubernetesSecret "false"}}
50
51
{{- with include "resc.mqInitAdditionalVolumeMounts" .}}
51
52
{{- nindent 12 .}}
52
53
{{- end }}
54
+ {{ end }}
53
55
securityContext :
54
56
allowPrivilegeEscalation : false
55
57
readOnlyRootFilesystem : false
62
64
runAsNonRoot : true
63
65
runAsUser : 10001
64
66
volumes :
67
+ {{ if eq .Values.useKubernetesSecret "false"}}
65
68
{{- with include "resc.mqInitAdditionalVolumes" .}}
66
69
{{- nindent 8 .}}
67
70
{{- end }}
71
+ {{ end }}
68
72
restartPolicy : {{ .Values.mqInit.restartPolicy }}
69
73
{{ if .Values.global.imagePullSecret }}
70
74
imagePullSecrets :
Original file line number Diff line number Diff line change 41
41
- name : {{ .Values.global.appName }}-mq-pv-storage
42
42
persistentVolumeClaim :
43
43
claimName : {{ .Values.global.appName }}-mq-pv-volume-claim
44
+ {{ if eq .Values.useKubernetesSecret "false"}}
44
45
{{- with include "resc.mqAdditionalVolumes" .}}
45
46
{{- nindent 8 .}}
46
47
{{- end }}
48
+ {{ end }}
47
49
containers :
48
50
- name : {{ .Values.global.appName }}-mq
49
51
image : {{ .Values.rabbitMQ.image.repository }}{{ .Values.rabbitMQ.image.name }}:{{ .Values.rabbitMQ.image.tag }}
76
78
- mountPath : " /var/lib/rabbitmq/mnesia"
77
79
subPath : " var/lib/rabbitmq/mnesia"
78
80
name : {{ .Values.global.appName }}-mq-pv-storage
81
+ {{ if eq .Values.useKubernetesSecret "false"}}
79
82
{{- with include "resc.mqAdditionalVolumeMounts" .}}
80
83
{{- nindent 12 .}}
81
84
{{- end }}
85
+ {{ end }}
82
86
securityContext :
83
87
allowPrivilegeEscalation : false
84
88
readOnlyRootFilesystem : false
Original file line number Diff line number Diff line change @@ -37,12 +37,10 @@ spec:
37
37
env :
38
38
- name : MASTER
39
39
value : " true"
40
- {{ if eq .Values.useKubernetesSecret "true"}}
41
- - name : REDIS_PASSWORD
42
- valueFrom :
43
- secretKeyRef :
44
- name : {{ .Values.global.appName }}-redis-secret
45
- key : REDIS_PASSWORD
40
+ envFrom :
41
+ {{ if eq .Values.useKubernetesSecret "true" }}
42
+ - secretRef :
43
+ name : {{ .Values.global.appName }}-redis-secret
46
44
{{ end }}
47
45
ports :
48
46
- containerPort : {{ .Values.redis.config.port}}
55
53
name : data
56
54
- mountPath : /redis-master
57
55
name : config
56
+ {{ if eq .Values.useKubernetesSecret "false"}}
58
57
{{- with include "resc.redisAdditionalVolumeMounts" .}}
59
58
{{- nindent 8 .}}
60
59
{{- end }}
60
+ {{ end }}
61
61
volumes :
62
62
- name : data
63
63
emptyDir : {}
67
67
items :
68
68
- key : redis-config
69
69
path : redis.conf
70
+ {{ if eq .Values.useKubernetesSecret "false"}}
70
71
{{- with include "resc.redisAdditionalVolumes" .}}
71
72
{{- nindent 8 .}}
72
73
{{- end }}
74
+ {{ end }}
73
75
74
76
Original file line number Diff line number Diff line change 57
57
- name : config-volume
58
58
mountPath : {{ .Values.config.vcs_instance_file_path }}
59
59
subPath : vcs_instances_config.json
60
+ {{ if eq .Values.useKubernetesSecret "false"}}
60
61
{{- with include "resc.vcsScannerSecretsAdditionalVolumeMounts" .}}
61
62
{{- nindent 12 .}}
62
63
{{- end }}
64
+ {{ end }}
63
65
env :
64
66
- name : GET_HOSTS_FROM
65
67
value : dns
78
80
- name : config-volume
79
81
configMap :
80
82
name : {{ .Values.global.appName }}-vcs-instances-config
83
+ {{ if eq .Values.useKubernetesSecret "false"}}
81
84
{{- with include "resc.vcsScannerSecretsAdditionalVolumes" .}}
82
85
{{- nindent 8 .}}
83
86
{{- end }}
87
+ {{ end }}
84
88
restartPolicy : {{ .Values.restartPolicy }}
85
89
{{ if .Values.global.imagePullSecret }}
86
90
imagePullSecrets :
Original file line number Diff line number Diff line change 57
57
- name : config-volume
58
58
mountPath : {{ .Values.config.vcs_instance_file_path }}
59
59
subPath : vcs_instances_config.json
60
+ {{ if eq .Values.useKubernetesSecret "false"}}
60
61
{{- with include "resc.vcsScraperProjectsAdditionalVolumeMounts" .}}
61
62
{{- nindent 14 .}}
62
63
{{- end }}
64
+ {{ end }}
63
65
env :
64
66
- name : GET_HOSTS_FROM
65
67
value : dns
78
80
- name : config-volume
79
81
configMap :
80
82
name : {{ .Values.global.appName }}-vcs-instances-config
83
+ {{ if eq .Values.useKubernetesSecret "false"}}
81
84
{{- with include "resc.vcsScraperProjectsAdditionalVolumes" .}}
82
85
{{- nindent 12 .}}
83
86
{{- end }}
87
+ {{ end }}
84
88
restartPolicy : {{ .Values.restartPolicy }}
85
89
{{ if .Values.global.imagePullSecret }}
86
90
imagePullSecrets :
Original file line number Diff line number Diff line change 59
59
- name : config-volume
60
60
mountPath : {{ .Values.config.vcs_instance_file_path }}
61
61
subPath : vcs_instances_config.json
62
+ {{ if eq .Values.useKubernetesSecret "false"}}
62
63
{{- with include "resc.vcsScraperRepositoriesAdditionalVolumeMounts" .}}
63
64
{{- nindent 10 .}}
64
65
{{- end }}
66
+ {{ end }}
65
67
env :
66
68
- name : GET_HOSTS_FROM
67
69
value : dns
84
86
- name : config-volume
85
87
configMap :
86
88
name : {{ .Values.global.appName }}-vcs-instances-config
89
+ {{ if eq .Values.useKubernetesSecret "false"}}
87
90
{{- with include "resc.vcsScraperRepositoriesAdditionalVolumes" .}}
88
91
{{- nindent 8 .}}
89
92
{{- end }}
93
+ {{ end }}
90
94
restartPolicy : {{ .Values.restartPolicy }}
91
95
{{ if .Values.global.imagePullSecret }}
92
96
imagePullSecrets :
Original file line number Diff line number Diff line change 27
27
dbPass :
28
28
odbcDriver : " ODBC Driver 18 for SQL Server"
29
29
dbDSN : " rescdb"
30
+ redisPass :
30
31
authRequired : " false"
31
32
ssoConfig :
32
33
ssoAccessTokenIssuerUrl : " notApplicable"
Original file line number Diff line number Diff line change 11
11
{{ end }}
12
12
{{ if and (eq .Values.useKubernetesSecret "true") (.Values.resc.config.dbPass) }}
13
13
MSSQL_PASSWORD : " {{ .Values.resc.config.dbPass | b64enc }}"
14
+ {{ end }}
15
+ {{ if and (eq .Values.useKubernetesSecret "true") (.Values.resc.config.redisPass) }}
16
+ REDIS_PASSWORD : " {{ .Values.resc.config.redisPass | b64enc }}"
14
17
{{ end }}
Original file line number Diff line number Diff line change 28
28
dbPass :
29
29
odbcDriver : " ODBC Driver 18 for SQL Server"
30
30
dbDSN : " rescdb"
31
+ redisPass :
31
32
authRequired : " true"
32
33
ssoConfig :
33
34
ssoAccessTokenIssuerUrl : " "
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ resc-web-service:
65
65
dbSchema : " master" # <enter database schema name here, default to master>
66
66
dbUser : " sa" # <enter database username here, default to sa>
67
67
dbPass : " Y0urStr0ngPassword" # <enter database password here, default to Y0urStr0ngPassword>
68
+ redisPass : " Y0urStr0ngPassword" # <enter Redis password here for caching, default to Y0urStr0ngPassword>
68
69
# To configure single sign on provide below values for ssoConfig attributes
69
70
# These attributes will be used in the RESC API to validate access token
70
71
ssoConfig :
@@ -85,6 +86,7 @@ resc-web-service-no-auth:
85
86
dbSchema : " master" # <enter database schema name here, default to master>
86
87
dbUser : " sa" # <enter database username here, default to sa>
87
88
dbPass : " Y0urStr0ngPassword" # <enter database password here, default to Y0urStr0ngPassword>
89
+ redisPass : " Y0urStr0ngPassword" # <enter Redis password here for caching, default to Y0urStr0ngPassword>
88
90
89
91
resc-database :
90
92
hostOS : " windows" # possible values windows/linux
@@ -119,7 +121,7 @@ resc-redis:
119
121
exposeToHostPort : 32379
120
122
config :
121
123
port : 6379
122
- password : " Y0urStr0ngPassword"
124
+ password : " Y0urStr0ngPassword" # <enter Redis password here for caching, default to Y0urStr0ngPassword>
123
125
resources :
124
126
limits :
125
127
cpu : 250m
Original file line number Diff line number Diff line change 48
48
env:
49
49
- name: GET_HOSTS_FROM
50
50
value: dns
51
- { { if eq .Values.useKubernetesSecret " true" } }
52
- - name: REDIS_PASSWORD
53
- valueFrom:
54
- secretKeyRef:
55
- name: { { .Values.global.appName } }-redis-secret
56
- key: REDIS_PASSWORD
57
- { { end } }
58
51
envFrom:
59
52
- configMapRef:
60
53
name: { { .Values.global.appName } }-web-service-config{ { .Values.nameSuffix } }
66
59
- name: config-volume
67
60
mountPath: /tmp/odbc.ini
68
61
subPath: odbc.ini
62
+ { { if eq .Values.useKubernetesSecret " false" } }
69
63
{ {- with include " resc.rescWebserviceAdditionalVolumeMounts" .} }
70
64
{ {- nindent 12 .} }
71
65
{ {- end } }
66
+ { { end } }
72
67
securityContext:
73
68
allowPrivilegeEscalation: false
74
69
readOnlyRootFilesystem: false
92
87
- name: config-volume
93
88
configMap:
94
89
name: { { .Values.global.appName } }-web-service-config{ { .Values.nameSuffix } }
90
+ { { if eq .Values.useKubernetesSecret " false" } }
95
91
{ {- with include " resc.rescWebserviceAdditionalVolumes" .} }
96
92
{ {- nindent 8 .} }
97
93
{ {- end } }
94
+ { { end } }
98
95
{ { if .Values.global.imagePullSecret } }
99
96
imagePullSecrets:
100
97
- name: { { .Values.global.imagePullSecret } }
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ resc-web-service:
65
65
dbSchema : " master" # <enter database schema name here, default to master>
66
66
dbUser : " sa" # <enter database username here, default to sa>
67
67
dbPass : " Y0urStr0ngPassword" # <enter database password here, default to Y0urStr0ngPassword>
68
+ redisPass : " Y0urStr0ngPassword" # <enter Redis password here for caching, default to Y0urStr0ngPassword>
68
69
# To configure single sign on provide below values for ssoConfig attributes
69
70
# These attributes will be used in the RESC API to validate access token
70
71
ssoConfig :
@@ -85,6 +86,7 @@ resc-web-service-no-auth:
85
86
dbSchema : " master" # <enter database schema name here, default to master>
86
87
dbUser : " sa" # <enter database username here, default to sa>
87
88
dbPass : " Y0urStr0ngPassword" # <enter database password here, default to Y0urStr0ngPassword>
89
+ redisPass : " Y0urStr0ngPassword" # <enter Redis password here for caching, default to Y0urStr0ngPassword>
88
90
89
91
resc-database :
90
92
hostOS : " windows" # possible values windows/linux
@@ -119,7 +121,7 @@ resc-redis:
119
121
exposeToHostPort : 32379
120
122
config :
121
123
port : 6379
122
- password : " Y0urStr0ngPassword"
124
+ password : " Y0urStr0ngPassword" # <enter Redis password here for caching, default to Y0urStr0ngPassword>
123
125
resources :
124
126
limits :
125
127
cpu : 250m
You can’t perform that action at this time.
0 commit comments