mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a96a622222 |
15
.github/workflows/renovate.yml
vendored
15
.github/workflows/renovate.yml
vendored
@@ -1,15 +0,0 @@
|
|||||||
name: Renovate
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 */6 * * *'
|
|
||||||
jobs:
|
|
||||||
renovate:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Self-hosted Renovate
|
|
||||||
uses: renovatebot/github-action@v40.2.2
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
|||||||
/secret.*.yaml
|
/secret.*.yaml
|
||||||
/data/
|
/data/
|
||||||
/.envrc
|
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
@@ -18,7 +18,7 @@ spec:
|
|||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: "{{ .Release.Name }}-whisper"
|
- name: "{{ .Release.Name }}-whisper"
|
||||||
image: "{{ .Values.whisper.image.repository }}:{{ .Values.whisper.image.tag }}"
|
image: "{{ .Values.whisper.image.repository }}:{{ .Values.piper.image.tag }}"
|
||||||
imagePullPolicy: "{{ .Values.whisper.image.pullPolicy }}"
|
imagePullPolicy: "{{ .Values.whisper.image.pullPolicy }}"
|
||||||
args:
|
args:
|
||||||
- --model
|
- --model
|
||||||
|
|||||||
@@ -36,9 +36,6 @@ data:
|
|||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"failDelay": 5,
|
"failDelay": 5,
|
||||||
"htpasswd": {
|
|
||||||
"path": "/etc/zot/htpasswd"
|
|
||||||
},
|
|
||||||
"openid": {
|
"openid": {
|
||||||
"providers": {
|
"providers": {
|
||||||
"oidc": {
|
"oidc": {
|
||||||
@@ -56,22 +53,12 @@ data:
|
|||||||
"actions": ["read", "create", "update", "delete"]
|
"actions": ["read", "create", "update", "delete"]
|
||||||
},
|
},
|
||||||
"repositories": {
|
"repositories": {
|
||||||
"public/**": {
|
|
||||||
"anonymousPolicy": ["read"],
|
|
||||||
"defaultPolicy": ["read"],
|
|
||||||
"policies": [
|
|
||||||
{
|
|
||||||
"users": ["*"],
|
|
||||||
"actions": ["create", "update", "delete"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"**": {
|
"**": {
|
||||||
"defaultPolicy": ["read"],
|
"defaultPolicy": ["read"],
|
||||||
"policies": [
|
"policies": [
|
||||||
{
|
{
|
||||||
"users": ["*"],
|
"users": ["*"],
|
||||||
"actions": ["create", "update", "delete"]
|
"actions": ["push", "delete"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ metadata:
|
|||||||
app: "{{ .Release.Name }}"
|
app: "{{ .Release.Name }}"
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: "{{ .Release.Name }}"
|
app: "{{ .Release.Name }}"
|
||||||
@@ -16,6 +14,8 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: "{{ .Release.Name }}"
|
app: "{{ .Release.Name }}"
|
||||||
spec:
|
spec:
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: render-config
|
- name: render-config
|
||||||
image: alpine:3.20
|
image: alpine:3.20
|
||||||
@@ -36,14 +36,9 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "{{ .Release.Name }}-client"
|
name: "{{ .Release.Name }}-client"
|
||||||
key: clientSecret
|
key: clientSecret
|
||||||
- name: PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: "{{ .Release.Name }}-cluster"
|
|
||||||
key: password
|
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
apk add --no-cache gettext apache2-utils >/dev/null
|
apk add --no-cache gettext >/dev/null
|
||||||
envsubst < /config-tpl/config.tpl.json > /config-out/config.json
|
envsubst < /config-tpl/config.tpl.json > /config-out/config.json
|
||||||
echo "Rendered /etc/zot/config.json"
|
echo "Rendered /etc/zot/config.json"
|
||||||
echo "---------------------------------------"
|
echo "---------------------------------------"
|
||||||
@@ -54,7 +49,6 @@ spec:
|
|||||||
echo "---------------------------------------"
|
echo "---------------------------------------"
|
||||||
cat /config-out/secrets.json
|
cat /config-out/secrets.json
|
||||||
echo "---------------------------------------"
|
echo "---------------------------------------"
|
||||||
htpasswd -nbB cluster "$PASSWORD" > /config-out/htpasswd
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-tpl
|
- name: config-tpl
|
||||||
mountPath: /config-tpl
|
mountPath: /config-tpl
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
apiVersion: homelab.mortenolsen.pro/v1
|
|
||||||
kind: GenerateSecret
|
|
||||||
metadata:
|
|
||||||
name: "{{ .Release.Name }}-cluster"
|
|
||||||
spec:
|
|
||||||
fields:
|
|
||||||
- name: password
|
|
||||||
encoding: hex
|
|
||||||
length: 64
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": [
|
|
||||||
"config:base"
|
|
||||||
],
|
|
||||||
"packageRules": [
|
|
||||||
{
|
|
||||||
"matchDatasources": ["docker"],
|
|
||||||
"pinDigests": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"helm-values": {
|
|
||||||
"fileMatch": ["^charts/.*/values\\.yaml$"]
|
|
||||||
},
|
|
||||||
"regexManagers": [
|
|
||||||
{
|
|
||||||
"fileMatch": ["^charts/.*/values\\.yaml$"],
|
|
||||||
"matchStrings": [
|
|
||||||
"repository:\s*'(?<depName>.*?)'\n\s*tag:\s*'(?<currentValue>.*?)'",
|
|
||||||
"repository:\s*\"(?<depName>.*?)\"\n\s*tag:\s*\"(?<currentValue>.*?)\"",
|
|
||||||
"repository:\s*(?<depName>.*?)\n\s*tag:\s*(?<currentValue>.*)"
|
|
||||||
],
|
|
||||||
"datasourceTemplate": "docker"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user