mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2024-11-15 04:21:52 +08:00
4c1e56ccce
* correct config issues #271 #272 * rename type tags * replace env lib * move to config module * read flags * show e2e logs on error * extract env * replace deprecated env var * increment index * check replica numbers do not start with 0 * remove test suite * error handling * refactor flags * flags test * file test * file test * config tests * extend tests * test mixed mode * simplify * simplify * test mask * correct uniqe replicas * Update types_test.go * e2e test with file mode
36 lines
894 B
YAML
36 lines
894 B
YAML
{{- if eq .Values.mode "file" }}
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: adguardhome-sync
|
|
namespace: {{ $.Release.Namespace }}
|
|
spec:
|
|
serviceAccountName: agh-e2e
|
|
initContainers:
|
|
- name: wait-for-others
|
|
image: {{ .Values.kubectl.repository }}:{{ .Values.kubectl.tag }}
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- |
|
|
{{- .Files.Get "bin/wait-for-agh-pods.sh" | nindent 10}}
|
|
containers:
|
|
- name: adguardhome-sync
|
|
image: localhost:5001/adguardhome-sync:e2e
|
|
command:
|
|
- /opt/go/adguardhome-sync
|
|
- run
|
|
- '--config'
|
|
- /etc/go/adguardhome-sync/config.yaml
|
|
env:
|
|
- name: LOG_LEVEL
|
|
value: 'debug'
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/go/adguardhome-sync/
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: sync-conf
|
|
restartPolicy: Never
|
|
{{- end }}
|