Fix init container: install pyyaml before import
This commit is contained in:
@@ -22,9 +22,10 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
- name: apply-config
|
- name: apply-config
|
||||||
image: python:3.12-alpine
|
image: python:3.12-alpine
|
||||||
command: ["python3", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
|
pip install -q pyyaml && python3 - <<'EOF'
|
||||||
import yaml, os, shutil
|
import yaml, os, shutil
|
||||||
|
|
||||||
CONFIG = "/opt/adguardhome/conf/AdGuardHome.yaml"
|
CONFIG = "/opt/adguardhome/conf/AdGuardHome.yaml"
|
||||||
|
|||||||
Reference in New Issue
Block a user