mirror of
https://github.com/nikdoof/helm-charts.git
synced 2025-12-17 20:09:21 +00:00
[plex-exporter] Fix issues with Autodiscovery (#31)
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
appVersion: 0.2.2
|
appVersion: 0.2.2
|
||||||
description: A prometheus exporter for Plex Media Server
|
description: A prometheus exporter for Plex Media Server
|
||||||
name: plex-exporter
|
name: plex-exporter
|
||||||
version: 0.0.2
|
version: 0.0.3
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- plex-exporter
|
- plex-exporter
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# plex-exporter
|
# plex-exporter
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
A prometheus exporter for Plex Media Server
|
A prometheus exporter for Plex Media Server
|
||||||
|
|
||||||
@@ -98,6 +98,34 @@ All notable changes to this application Helm chart will be documented in this fi
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
### [0.0.3]
|
||||||
|
|
||||||
|
#### Added
|
||||||
|
|
||||||
|
- N/A
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
|
||||||
|
- Fixed autodiscovery configuration issues when using `envFrom`
|
||||||
|
|
||||||
|
#### Removed
|
||||||
|
|
||||||
|
- N/A
|
||||||
|
|
||||||
|
### [0.0.2]
|
||||||
|
|
||||||
|
#### Added
|
||||||
|
|
||||||
|
- Support for auto discovery
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
|
||||||
|
- N/A
|
||||||
|
|
||||||
|
#### Removed
|
||||||
|
|
||||||
|
- N/A
|
||||||
|
|
||||||
### [0.0.1]
|
### [0.0.1]
|
||||||
|
|
||||||
#### Added
|
#### Added
|
||||||
|
|||||||
@@ -9,6 +9,20 @@ All notable changes to this application Helm chart will be documented in this fi
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
### [0.0.3]
|
||||||
|
|
||||||
|
#### Added
|
||||||
|
|
||||||
|
- N/A
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
|
||||||
|
- Fixed autodiscovery configuration issues when using `envFrom`
|
||||||
|
|
||||||
|
#### Removed
|
||||||
|
|
||||||
|
- N/A
|
||||||
|
|
||||||
### [0.0.2]
|
### [0.0.2]
|
||||||
|
|
||||||
#### Added
|
#### Added
|
||||||
|
|||||||
5
charts/plex-exporter/ci/autodiscovery-env.yml
Normal file
5
charts/plex-exporter/ci/autodiscovery-env.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
env:
|
||||||
|
PLEX_TOKEN: a0a0a0a0a
|
||||||
|
plex:
|
||||||
|
autodiscover: true
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
plex:
|
plex:
|
||||||
server: test
|
autodiscover: true
|
||||||
token: a0a0a0a0a0
|
token: a0a0a0a0a0
|
||||||
|
|||||||
@@ -4,16 +4,16 @@
|
|||||||
{{/* Append the hardcoded settings */}}
|
{{/* Append the hardcoded settings */}}
|
||||||
{{- define "plex-exporter.harcodedValues" -}}
|
{{- define "plex-exporter.harcodedValues" -}}
|
||||||
args:
|
args:
|
||||||
{{- if .Values.plex.autodiscover -}}
|
{{ if .Values.plex.server }}
|
||||||
- "--auto-discover"
|
|
||||||
{{- else -}}
|
|
||||||
- "--plex-server"
|
- "--plex-server"
|
||||||
- "{{ .Values.plex.server }}"
|
- "{{ .Values.plex.server }}"
|
||||||
{{- end -}}
|
{{ else }}
|
||||||
{{- if .Values.plex.token -}}
|
- "--auto-discover"
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Values.plex.token }}
|
||||||
- "--token"
|
- "--token"
|
||||||
- "{{ .Values.plex.token }}"
|
- "{{ .Values.plex.token }}"
|
||||||
{{- end -}}
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $_ := mergeOverwrite .Values (include "plex-exporter.harcodedValues" . | fromYaml) -}}
|
{{- $_ := mergeOverwrite .Values (include "plex-exporter.harcodedValues" . | fromYaml) -}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user