feat(unifi-poller): Add questions for default config options

This commit is contained in:
kjeld Schouten-Lebbing
2021-11-24 23:47:25 +01:00
parent e1ad7fc654
commit 3db44016d0
3 changed files with 37 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ sources:
- https://github.com/unifi-poller/unifi-poller
- https://hub.docker.com/r/golift/unifi-poller
type: application
version: 0.0.1
version: 0.0.2
annotations:
truecharts.org/catagories: |
- metrics

View File

@@ -4,6 +4,20 @@ portals: {}
questions:
# Include{global}
- variable: secret
group: "Container Configuration"
label: "Secret Image Environment"
schema:
type: dict
attrs:
- variable: UP_UNIFI_DEFAULT_PASS
label: "Unifi Password"
description: "Password for the Unifi user specified below"
schema:
type: string
default: ""
required: true
- variable: env
group: "Container Configuration"
label: "Image Environment"
@@ -12,6 +26,27 @@ questions:
attrs:
# Include{fixedEnv}
- variable: UP_UNIFI_DEFAULT_URL
label: "Unifi URL"
description: "Unifi URL including Port and http(s) prefix"
schema:
type: string
default: "https://127.0.0.1:8443"
required: true
- variable: UP_UNIFI_DEFAULT_USER
label: "Unifi User"
description: "User on Unifi with access to the data"
schema:
type: string
default: ""
required: true
- variable: UP_PROMETHEUS_DISABLE
label: "Disable Prometheus Metrics"
schema:
type: boolean
default: false
hidden: true
# Include{containerConfig}
- variable: serviceexpert

View File

@@ -15,7 +15,7 @@ env: {}
# UP_UNIFI_DEFAULT_USER: "unifipoller"
# UP_UNIFI_DEFAULT_PASS: "unifipoller"
# UP_PROMETHEUS_DISABLE: true
# UP_INFLUXDB_DISABLE: true
UP_INFLUXDB_DISABLE: true
service:
main: