Browse Source

Fixed issue with boolean values in Rancher 2.5

master
Fábio Kaiser Rauber 4 years ago
parent
commit
1d58b69e6b
  1. 15
      charts/edemocracia/v0.4.0/questions.yaml
  2. 2
      charts/edemocracia/v0.4.0/templates/audiencias-pvc.yaml
  3. 2
      charts/edemocracia/v0.4.0/templates/audienciasweb-deployment.yaml
  4. 2
      charts/edemocracia/v0.4.0/templates/audienciasweb-service.yaml
  5. 2
      charts/edemocracia/v0.4.0/templates/audienciasworker-deployment.yaml
  6. 2
      charts/edemocracia/v0.4.0/templates/discourse-assets-pvc.yaml
  7. 2
      charts/edemocracia/v0.4.0/templates/discourse-cache-pvc.yaml
  8. 2
      charts/edemocracia/v0.4.0/templates/discourse-deployment.yaml
  9. 2
      charts/edemocracia/v0.4.0/templates/discourse-img-pvc.yaml
  10. 2
      charts/edemocracia/v0.4.0/templates/discourse-js-pvc.yaml
  11. 2
      charts/edemocracia/v0.4.0/templates/discourse-service.yaml
  12. 20
      charts/edemocracia/v0.4.0/templates/edemocracia-deployment.yaml
  13. 12
      charts/edemocracia/v0.4.0/templates/nginx-deployment.yaml
  14. 2
      charts/edemocracia/v0.4.0/templates/wikilegis-deployment.yaml
  15. 2
      charts/edemocracia/v0.4.0/templates/wikilegis-pvc.yaml
  16. 2
      charts/edemocracia/v0.4.0/templates/wikilegis-service.yaml
  17. 6
      charts/edemocracia/v0.4.0/values.yaml

15
charts/edemocracia/v0.4.0/questions.yaml

@ -164,28 +164,19 @@ questions:
default: "True" default: "True"
description: "Habilitar o discourse (Expressão)?" description: "Habilitar o discourse (Expressão)?"
label: "Usar o Discourse?" label: "Usar o Discourse?"
type: enum type: boolean
group: Avançado group: Avançado
options:
- "True"
- "False"
- variable: wikilegis.enabled - variable: wikilegis.enabled
default: "True" default: "True"
description: "Habilitar o Wikilegis?" description: "Habilitar o Wikilegis?"
label: "Usar o Wikilegis?" label: "Usar o Wikilegis?"
type: enum type: boolean
group: Avançado group: Avançado
options:
- "True"
- "False"
- variable: audiencias.enabled - variable: audiencias.enabled
default: "True" default: "True"
description: "Habilitar o Audiências Interativas?" description: "Habilitar o Audiências Interativas?"
label: "Usar o Audiências?" label: "Usar o Audiências?"
type: enum type: boolean
group: Avançado group: Avançado
options:
- "True"
- "False"

2
charts/edemocracia/v0.4.0/templates/audiencias-pvc.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.audiencias.enabled "True" }} {{- if .Values.audiencias.enabled }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:

2
charts/edemocracia/v0.4.0/templates/audienciasweb-deployment.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.audiencias.enabled "True" }} {{- if .Values.audiencias.enabled }}
{{- $edemoUrl := .Values.edemocracia.hostname -}} {{- $edemoUrl := .Values.edemocracia.hostname -}}
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment

2
charts/edemocracia/v0.4.0/templates/audienciasweb-service.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.audiencias.enabled "True" }} {{- if .Values.audiencias.enabled }}
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:

2
charts/edemocracia/v0.4.0/templates/audienciasworker-deployment.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.audiencias.enabled "True" }} {{- if .Values.audiencias.enabled }}
{{- $edemoUrl := .Values.edemocracia.hostname -}} {{- $edemoUrl := .Values.edemocracia.hostname -}}
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment

2
charts/edemocracia/v0.4.0/templates/discourse-assets-pvc.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.discourse.enabled "True" }} {{- if .Values.discourse.enabled }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:

2
charts/edemocracia/v0.4.0/templates/discourse-cache-pvc.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.discourse.enabled "True" }} {{- if .Values.discourse.enabled }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:

2
charts/edemocracia/v0.4.0/templates/discourse-deployment.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.discourse.enabled "True" }} {{- if .Values.discourse.enabled }}
{{- $edemoUrl := .Values.edemocracia.hostname -}} {{- $edemoUrl := .Values.edemocracia.hostname -}}
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment

2
charts/edemocracia/v0.4.0/templates/discourse-img-pvc.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.discourse.enabled "True" }} {{- if .Values.discourse.enabled }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:

2
charts/edemocracia/v0.4.0/templates/discourse-js-pvc.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.discourse.enabled "True" }} {{- if .Values.discourse.enabled }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:

2
charts/edemocracia/v0.4.0/templates/discourse-service.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.discourse.enabled "True" }} {{- if .Values.discourse.enabled }}
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:

20
charts/edemocracia/v0.4.0/templates/edemocracia-deployment.yaml

@ -52,7 +52,11 @@ spec:
- name: AUDIENCIAS_API_KEY - name: AUDIENCIAS_API_KEY
value: {{ .Values.edemocracia.apikey | quote }} value: {{ .Values.edemocracia.apikey | quote }}
- name: AUDIENCIAS_ENABLED - name: AUDIENCIAS_ENABLED
value: {{ .Values.audiencias.enabled | quote }} {{- if .Values.audiencias.enabled }}
value: "True"
{{- else }}
value: "False"
{{- end }}
- name: AUDIENCIAS_UPSTREAM - name: AUDIENCIAS_UPSTREAM
value: http://audienciasweb:8000/audiencias value: http://audienciasweb:8000/audiencias
- name: DATABASE_ENGINE - name: DATABASE_ENGINE
@ -72,12 +76,16 @@ spec:
- name: DEFAULT_FROM_EMAIL - name: DEFAULT_FROM_EMAIL
value: '"Portal e-Democracia" <{{ .Values.edemocracia.admin.email }}>' value: '"Portal e-Democracia" <{{ .Values.edemocracia.admin.email }}>'
- name: DISCOURSE_ENABLED - name: DISCOURSE_ENABLED
value: {{ .Values.discourse.enabled | quote }} {{- if .Values.discourse.enabled }}
value: "True"
{{- else }}
value: "False"
{{- end }}
- name: DISCOURSE_SSO_SECRET - name: DISCOURSE_SSO_SECRET
value: {{ .Values.discourse.sso.secret | quote }} value: {{ .Values.discourse.sso.secret | quote }}
# Workaround for a bug in runserver-production script, which does not check for DISCOURSE_ENABLED variable # Workaround for a bug in runserver-production script, which does not check for DISCOURSE_ENABLED variable
- name: DISCOURSE_UPSTREAM - name: DISCOURSE_UPSTREAM
{{- if eq .Values.discourse.enabled "True" }} {{- if .Values.discourse.enabled }}
value: http://discourse:8080/expressao value: http://discourse:8080/expressao
{{- else }} {{- else }}
value: "--version" value: "--version"
@ -123,7 +131,11 @@ spec:
- name: WIKILEGIS_API_URL - name: WIKILEGIS_API_URL
value: /api/v1/ value: /api/v1/
- name: WIKILEGIS_ENABLED - name: WIKILEGIS_ENABLED
value: {{ .Values.wikilegis.enabled | quote }} {{- if .Values.wikilegis.enabled }}
value: "True"
{{- else }}
value: "False"
{{- end }}
- name: WIKILEGIS_UPSTREAM - name: WIKILEGIS_UPSTREAM
value: http://wikilegis:8000 value: http://wikilegis:8000
resources: resources:

12
charts/edemocracia/v0.4.0/templates/nginx-deployment.yaml

@ -49,15 +49,15 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /var/labhacker/edemocracia/src/public/ - mountPath: /var/labhacker/edemocracia/src/public/
name: {{ include "edemocracia.fullname" . }}-edemocracia name: {{ include "edemocracia.fullname" . }}-edemocracia
{{- if eq .Values.wikilegis.enabled "True" }} {{- if .Values.wikilegis.enabled }}
- mountPath: /var/labhacker/wikilegis/wikilegis/public/ - mountPath: /var/labhacker/wikilegis/wikilegis/public/
name: {{ include "edemocracia.fullname" . }}-wikilegis name: {{ include "edemocracia.fullname" . }}-wikilegis
{{- end }} {{- end }}
{{- if eq .Values.audiencias.enabled "True" }} {{- if .Values.audiencias.enabled }}
- mountPath: /var/labhacker/audiencias/public/ - mountPath: /var/labhacker/audiencias/public/
name: {{ include "edemocracia.fullname" . }}-audiencias name: {{ include "edemocracia.fullname" . }}-audiencias
{{- end }} {{- end }}
{{- if eq .Values.discourse.enabled "True" }} {{- if .Values.discourse.enabled }}
- mountPath: /var/www/discourse/public/assets/ - mountPath: /var/www/discourse/public/assets/
name: {{ include "edemocracia.fullname" . }}-discourse-assets name: {{ include "edemocracia.fullname" . }}-discourse-assets
- mountPath: /var/www/discourse/public/javascripts/ - mountPath: /var/www/discourse/public/javascripts/
@ -73,17 +73,17 @@ spec:
- name: {{ include "edemocracia.fullname" . }}-edemocracia - name: {{ include "edemocracia.fullname" . }}-edemocracia
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-edemocracia claimName: {{ include "edemocracia.fullname" . }}-edemocracia
{{- if eq .Values.wikilegis.enabled "True" }} {{- if .Values.wikilegis.enabled }}
- name: {{ include "edemocracia.fullname" . }}-wikilegis - name: {{ include "edemocracia.fullname" . }}-wikilegis
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-wikilegis claimName: {{ include "edemocracia.fullname" . }}-wikilegis
{{- end }} {{- end }}
{{- if eq .Values.audiencias.enabled "True" }} {{- if .Values.audiencias.enabled }}
- name: {{ include "edemocracia.fullname" . }}-audiencias - name: {{ include "edemocracia.fullname" . }}-audiencias
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-audiencias claimName: {{ include "edemocracia.fullname" . }}-audiencias
{{- end }} {{- end }}
{{- if eq .Values.discourse.enabled "True" }} {{- if .Values.discourse.enabled }}
- name: {{ include "edemocracia.fullname" . }}-discourse-assets - name: {{ include "edemocracia.fullname" . }}-discourse-assets
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ include "edemocracia.fullname" . }}-discourse-assets claimName: {{ include "edemocracia.fullname" . }}-discourse-assets

2
charts/edemocracia/v0.4.0/templates/wikilegis-deployment.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.wikilegis.enabled "True" }} {{- if .Values.wikilegis.enabled }}
{{- $edemoUrl := .Values.edemocracia.hostname -}} {{- $edemoUrl := .Values.edemocracia.hostname -}}
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment

2
charts/edemocracia/v0.4.0/templates/wikilegis-pvc.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.wikilegis.enabled "True" }} {{- if .Values.wikilegis.enabled }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:

2
charts/edemocracia/v0.4.0/templates/wikilegis-service.yaml

@ -1,4 +1,4 @@
{{- if eq .Values.wikilegis.enabled "True" }} {{- if .Values.wikilegis.enabled }}
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:

6
charts/edemocracia/v0.4.0/values.yaml

@ -19,7 +19,7 @@ nginx:
memory: 10Mi memory: 10Mi
discourse: discourse:
enabled: "True" enabled: true
image: image:
repository: labhackercd/discourse-docker repository: labhackercd/discourse-docker
tag: 2.0.20180703 tag: 2.0.20180703
@ -42,7 +42,7 @@ discourse:
memory: 650Mi memory: 650Mi
wikilegis: wikilegis:
enabled: "True" enabled: true
image: image:
repository: labhackercd/wikilegis repository: labhackercd/wikilegis
tag: 2.3.0 tag: 2.3.0
@ -105,7 +105,7 @@ edemocracia:
memory: 800Mi memory: 800Mi
audiencias: audiencias:
enabled: "True" enabled: true
image: image:
repository: labhackercd/audiencias-publicas repository: labhackercd/audiencias-publicas
tag: 3.3.1 tag: 3.3.1

Loading…
Cancel
Save