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
22 lines
632 B
YAML
22 lines
632 B
YAML
{{- if eq .Values.mode "file" }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: sync-conf
|
|
namespace: {{ .Release.Namespace }}
|
|
data:
|
|
config.yaml: |
|
|
origin:
|
|
url: 'http://service-origin.{{ $.Release.Namespace }}.svc.cluster.local:3000'
|
|
username: username
|
|
password: password
|
|
api:
|
|
port: 0
|
|
replicas:
|
|
{{- range $i,$version := .Values.replica.versions }}
|
|
- url: 'http://service-replica-{{ $version | toString | replace "." "-" }}.{{ $.Release.Namespace }}.svc.cluster.local:3000'
|
|
username: username
|
|
password: password
|
|
autoSetup: true
|
|
{{- end }}
|
|
{{- end }}
|