mirror of
https://github.com/ansible/awx-operator.git
synced 2026-04-26 00:16:45 +00:00
Revert "pgsql uses initContainer to address FS permissions"
This reverts commit 99d77dff99.
This commit is contained in:
@@ -80,9 +80,8 @@
|
||||
- block:
|
||||
- name: Create Database if no database is specified
|
||||
k8s:
|
||||
apply: yes
|
||||
apply: true
|
||||
definition: "{{ lookup('template', 'postgres.yaml.j2') }}"
|
||||
wait: yes
|
||||
register: create_statefulset_result
|
||||
|
||||
rescue:
|
||||
|
||||
@@ -37,21 +37,6 @@ spec:
|
||||
imagePullSecrets:
|
||||
- name: {{ image_pull_secret }}
|
||||
{% endif %}
|
||||
initContainers:
|
||||
- name: init-chmod-data
|
||||
image: '{{ postgres_image }}:{{ postgres_image_version }}'
|
||||
imagePullPolicy: '{{ image_pull_policy }}'
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
if [ ! -f {{ postgres_data_path }}/PG_VERSION ]; then
|
||||
chown postgres:root {{ postgres_data_path | dirname }}
|
||||
fi
|
||||
volumeMounts:
|
||||
- name: postgres
|
||||
mountPath: '{{ postgres_data_path | dirname }}'
|
||||
subPath: '{{ postgres_data_path | dirname | basename }}'
|
||||
containers:
|
||||
- image: '{{ postgres_image }}:{{ postgres_image_version }}'
|
||||
imagePullPolicy: '{{ image_pull_policy }}'
|
||||
|
||||
Reference in New Issue
Block a user