File tree 11 files changed +63
-16
lines changed
11 files changed +63
-16
lines changed Original file line number Diff line number Diff line change @@ -504,7 +504,21 @@ questions:
504
504
type : " string"
505
505
required : true
506
506
default : " Unknown"
507
-
507
+ - variable : adhoc.dnsBannedHost
508
+ group : " Adhoc"
509
+ label : " no not resolve this host list"
510
+ type : " listofstrings"
511
+ default :
512
+ - mercadolibre.com
513
+ - mercadolibre.com.ar
514
+ - mercadolibre.com.uy
515
+ - mercadolibre.cl
516
+ - mercadolibre.com.mx
517
+ - api.pagos360.com
518
+ - apis.andreani.com
519
+ - api.mercadopago.com
520
+ - stripe.api.odoo.com
521
+ required : False
508
522
# Cloud Native Postgres
509
523
- variable : cloudNativePG.enabled
510
524
group : " CloudNativePG"
@@ -531,17 +545,10 @@ questions:
531
545
- variable : cloudNativePG.persistence.size
532
546
group : " CloudNativePG"
533
547
label : " Disk size"
534
- description : " size of pg disk"
535
- type : enum
548
+ description : " size of pg disk (GB) "
549
+ type : " int "
536
550
required : false
537
- default : 5Gi
538
- options :
539
- - 1Gi
540
- - 5Gi
541
- - 10Gi
542
- - 20Gi
543
- - 50Gi
544
- - 100Gi
551
+ default : 5
545
552
show_if : " cloudNativePG.enabled=true"
546
553
- variable : cloudNativePG.superUserPassword
547
554
group : " CloudNativePG"
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ spec:
46
46
topologyKey : kubernetes.io/hostname # Default value
47
47
podAntiAffinityType : preferred # Default value
48
48
storage :
49
- size : {{ .Values.cloudNativePG.persistence.size }}
49
+ size : {{ .Values.cloudNativePG.persistence.size }}Gi
50
50
{{- if .Values.cloudNativePG.persistence.storageClass }}
51
51
storageClass : {{ .Values.cloudNativePG.persistence.storageClass }}
52
52
{{- end }}
53
53
{{/* Used to Separate WAL into a diferent volume */}}
54
54
{{ if .Values.cloudNativePG.persistence.separateWAL }}
55
55
walStorage :
56
56
{{/* TODO: This need to be calculated considerating retention and backups frecuency */}}
57
- size : {{ .Values.cloudNativePG.persistence.size }}
57
+ size : {{ .Values.cloudNativePG.persistence.size }}Gi
58
58
{{- if .Values.cloudNativePG.persistence.storageClass }}
59
59
storageClass : {{ .Values.cloudNativePG.persistence.storageClass }}
60
60
{{- end }}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -99,12 +99,17 @@ spec:
99
99
volumeMounts :
100
100
{{- if eq .Values.storage.location "fuse" }}
101
101
- name : gcs-fuse-csi-ephemeral
102
+ readOnly : false
102
103
{{- if .Values.cloudNativePG.enabled }}
103
104
mountPath : /home/odoo/data/filestore/odoo
104
105
{{- else }}
105
106
mountPath : /home/odoo/data/filestore/{{ .Release.Name }}
106
107
{{- end }}
107
- readOnly : false
108
+ {{- end }}
109
+ {{- if and .Values.adhoc.dnsBannedHost ( ne .Values.adhoc.appType "prod" ) }}
110
+ - name : hosts
111
+ mountPath : /etc/hosts
112
+ subPath : hosts
108
113
{{- end }}
109
114
affinity :
110
115
podAntiAffinity :
@@ -162,8 +167,13 @@ spec:
162
167
{{- with .Values.nodeSelector }}
163
168
{{- toYaml . | nindent 8 }}
164
169
{{- end }}
165
- {{- if eq .Values.storage.location "fuse" }}
166
170
volumes :
171
+ {{- if and .Values.adhoc.dnsBannedHost ( ne .Values.adhoc.appType "prod" ) }}
172
+ - name : hosts
173
+ configMap :
174
+ name : {{ include "adhoc-odoo.fullname" . }}-hosts
175
+ {{- end }}
176
+ {{- if eq .Values.storage.location "fuse" }}
167
177
- name : gcs-fuse-csi-ephemeral
168
178
csi :
169
179
driver : gcsfuse.csi.storage.gke.io
Original file line number Diff line number Diff line change
1
+ {{- if and .Values.adhoc.dnsBannedHost ( ne .Values.adhoc.appType "prod" ) }}
2
+ apiVersion : v1
3
+ kind : ConfigMap
4
+ metadata :
5
+ name : {{ include "adhoc-odoo.fullname" . }}-hosts
6
+ labels :
7
+ {{- include "adhoc-odoo.labels" . | nindent 4 }}
8
+ data :
9
+ hosts : |
10
+ # Kubernetes-managed hosts file.
11
+ 127.0.0.1 localhost
12
+ ::1 localhost ip6-localhost ip6-loopback
13
+ fe00::0 ip6-localnet
14
+ fe00::0 ip6-mcastprefix
15
+ fe00::1 ip6-allnodes
16
+ fe00::2 ip6-allrouters
17
+ {{- range .Values.adhoc.dnsBannedHost }}
18
+ 127.0.0.1 {{ . }}
19
+ {{- end }}
20
+ {{- end }}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -177,6 +177,16 @@ adhoc:
177
177
appType : prod
178
178
clientAnalyticAccount : " Unknown"
179
179
devMode : false
180
+ dnsBannedHost :
181
+ - mercadolibre.com
182
+ - mercadolibre.com.ar
183
+ - mercadolibre.com.uy
184
+ - mercadolibre.cl
185
+ - mercadolibre.com.mx
186
+ - api.pagos360.com
187
+ - apis.andreani.com
188
+ - api.mercadopago.com
189
+ - stripe.api.odoo.com
180
190
181
191
cloudNativePG :
182
192
checkCRD : false
@@ -192,7 +202,7 @@ cloudNativePG:
192
202
memory : 5000Mi
193
203
instances : 1
194
204
persistence :
195
- size : 10Gi
205
+ size : 10
196
206
separateWAL : false
197
207
# options are:
198
208
# - gcp-ssd-r (to create as retain )
You can’t perform that action at this time.
0 commit comments