Skip to content

Commit

Permalink
Merge pull request #38 from ursais/max
Browse files Browse the repository at this point in the history
[FIX] Secrets
  • Loading branch information
max3903 authored Apr 28, 2021
2 parents ad71542 + 1e72771 commit d8c535b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion roles/odoo/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ _odoo_memory_request: 512Mi
_odoo_postgresql_database_name: "MASTER"
_odoo_postgresql_defaultdb: postgres
_odoo_postgresql_port: 5432
_odoo_postgresql_service_name: postgresql
_odoo_postgresql_user: odoo
_odoo_server_wide_modules: web,monitoring_status
_odoo_smtp_password: YWRtaW4=
Expand Down
10 changes: 5 additions & 5 deletions roles/odoo/templates/odoo_deployment_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ spec:
imagePullPolicy: IfNotPresent
env:
- name: PGHOST
value: "{{ _odoo_postgresql_service_name }}"
value: "{{ _odoo_name }}-postgresql"
- name: PGPORT
value: "{{ _odoo_postgresql_port }}"
- name: PGUSER
value: "{{ _odoo_postgresql_user }}"
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: "{{ _postgresql_name }}"
name: "{{ _odoo_name }}-postgresql"
key: "database-password"
- name: DEFAULTDB
value: "{{ _odoo_postgresql_defaultdb }}"
Expand All @@ -50,12 +50,12 @@ spec:
- name: ODOO_ADMIN_PASSWD
valueFrom:
secretKeyRef:
name: "{{ _odoo_name }}"
name: "{{ _odoo_name }}-odoo"
key: "odoo-admin-passwd"
- name: ODOO_ADMIN_USER_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ _odoo_name }}"
name: "{{ _odoo_name }}-odoo"
key: "odoo-admin-user-password"
- name: ODOO_ADMIN_USER_TIMEZONE
value: {{ _odoo_admin_user_timezone }}
Expand All @@ -66,7 +66,7 @@ spec:
- name: ODOO_SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ _odoo_name }}"
name: "{{ _odoo_name }}-odoo"
key: "odoo-smtp-password"
- name: ODOO_SMTP_PORT
value: "{{ _odoo_smtp_port }}"
Expand Down

0 comments on commit d8c535b

Please sign in to comment.