Skip to content

Commit

Permalink
chore: move homepage to 1pass and test sonarr widget
Browse files Browse the repository at this point in the history
  • Loading branch information
aisling136 committed May 1, 2024
1 parent 3745109 commit fb1f256
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 40 deletions.
1 change: 1 addition & 0 deletions cluster/apps/homepage/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ data:
showSearchSuggestions: true
hideVisitURL: true
disableCollapse: true
groupsInitiallyCollapsed: false
layout:
Media:
style: column
Expand Down
22 changes: 22 additions & 0 deletions cluster/apps/homepage/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: homepage-secret
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: homepage-secret
template:
engineVersion: v2
data:
HOMEPAGE_VAR_UNIFI_USERNAME: '{{ .UNIFI_USERNAME }}'
HOMEPAGE_VAR_UNIFI_PASSWORD: '{{ .UNIFI_PASSWORD }}'
HOMEPAGE_VAR_SONARR_TOKEN: '{{ .SONARR_API_KEY }}'
dataFrom:
- extract:
key: sonarr
- extract:
key: unifi
3 changes: 1 addition & 2 deletions cluster/apps/homepage/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ helmCharts:
releaseName: homepage
valuesFile: helmvalues.yaml
namespace: default
generators:
- ./secretgenerator.yaml
resources:
- configmap.yaml
- rbac.yaml
- externalsecret.yaml
28 changes: 0 additions & 28 deletions cluster/apps/homepage/secret.sops.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions cluster/apps/homepage/secretgenerator.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions cluster/media/sonarr/helmvalues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ ingress:
gethomepage.dev/name: "Sonarr"
gethomepage.dev/icon: sonarr.svg
gethomepage.dev/group: Media
gethomepage.dev/widget.type: sonarr
gethomepage.dev/widget.url: http://sonarr.media
gethomepage.dev/widget.key: "{{HOMEPAGE_VAR_SONARR_TOKEN}}"
hosts:
- host: "sonarr.dex136.xyz"
paths:
Expand Down

0 comments on commit fb1f256

Please sign in to comment.