Compare commits

..

3 Commits

Author SHA1 Message Date
Morten Olsen
bc67429cd2 move to pgvector (#61) 2025-10-13 23:00:54 +02:00
Morten Olsen
af2aae493e Fix/docker (#60) 2025-10-13 22:35:40 +02:00
Morten Olsen
2af701b518 chore(config): migrate renovate config (#51)
The Renovate config in this repository needs migrating. Typically this
is because one or more configuration options you are using have been
renamed.

You don't need to merge this PR right away, because Renovate will
continue to migrate these fields internally each time it runs. But later
some of these fields may be fully deprecated and the migrations removed.
So it's a good idea to merge this migration PR soon.



#### [PLEASE
NOTE](https://docs.renovatebot.com/configuration-options#configmigration):
JSON5 config file migrated! All comments & trailing commas were removed.

🔕 **Ignore**: Close this PR and you won't be reminded about config
migration again, but one day your current config may no longer be valid.

 Got questions? Does something look wrong to you? Please don't hesitate
to [request help
here](https://redirect.github.com/renovatebot/renovate/discussions).


---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2025-09-25 21:32:40 +02:00
8 changed files with 46 additions and 35 deletions

View File

@@ -1,12 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: {{ include "homelab-operator.fullname" . }} name: '{{ include "homelab-operator.fullname" . }}'
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: {{ include "homelab-operator.serviceAccountName" . }} name: '{{ include "homelab-operator.serviceAccountName" . }}'
namespace: {{ .Release.Namespace }} namespace: "{{ .Release.Namespace }}"
roleRef: roleRef:
kind: ClusterRole kind: ClusterRole
name: {{ include "homelab-operator.fullname" . }} name: '{{ include "homelab-operator.fullname" . }}'
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io

View File

@@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ include "homelab-operator.fullname" . }} name: {{ include "homelab-operator.fullname" . }}
namespace: "{{ .Release.Namespace }}"
labels: labels:
{{- include "homelab-operator.labels" . | nindent 4 }} {{- include "homelab-operator.labels" . | nindent 4 }}
spec: spec:

View File

@@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ include "homelab-operator.serviceAccountName" . }} name: {{ include "homelab-operator.serviceAccountName" . }}
namespace: "{{ .Release.Namespace }}"
labels: labels:
{{- include "homelab-operator.labels" . | nindent 4 }} {{- include "homelab-operator.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }} {{- with .Values.serviceAccount.annotations }}

View File

@@ -1,6 +1,8 @@
FROM node:23-slim@sha256:86191b94d2a163be41f3dc7fe5e5fcaca8ba2f1be7275d98a06343483c17414a FROM node:23-slim@sha256:86191b94d2a163be41f3dc7fe5e5fcaca8ba2f1be7275d98a06343483c17414a
RUN corepack enable RUN corepack enable
WORKDIR /app
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml ./
COPY patches ./patches
RUN pnpm install --frozen-lockfile --prod RUN pnpm install --frozen-lockfile --prod
COPY . . COPY . .
CMD ["node", "src/index.ts"] CMD ["node", "src/index.ts"]

View File

@@ -49,7 +49,7 @@
"sqlite3" "sqlite3"
], ],
"patchedDependencies": { "patchedDependencies": {
"@kubernetes/client-node": "patches/@kubernetes__client-node.patch" "@kubernetes/client-node": "./patches/@kubernetes__client-node.patch"
} }
}, },
"scripts": { "scripts": {

View File

@@ -108,7 +108,7 @@ class PostgresCluster extends CustomResource<typeof specSchema> {
containers: [ containers: [
{ {
name: this.name, name: this.name,
image: 'postgres:17', image: 'pgvector:pg17-trixie',
ports: [{ containerPort: 5432, name: 'postgres' }], ports: [{ containerPort: 5432, name: 'postgres' }],
env: [ env: [
{ name: 'POSTGRES_PASSWORD', valueFrom: { secretKeyRef: { name: secretName, key: 'password' } } }, { name: 'POSTGRES_PASSWORD', valueFrom: { secretKeyRef: { name: secretName, key: 'password' } } },

View File

@@ -1,28 +1,35 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", $schema: 'https://docs.renovatebot.com/renovate-schema.json',
"extends": [ extends: [
"config:base" 'config:recommended',
], ],
"packageRules": [ packageRules: [
{ {
"groupName": "Docker images", groupName: 'Docker images',
"groupSlug": "dockerimages", groupSlug: 'dockerimages',
"matchDatasources": ["docker"], matchDatasources: [
"pinDigests": true 'docker',
}
],
"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" pinDigests: true,
} },
] ],
'helm-values': {
managerFilePatterns: [
'/^charts/.*/values\\.yaml$/',
],
},
customManagers: [
{
customType: 'regex',
managerFilePatterns: [
'/^charts/.*/values\\.yaml$/',
],
matchStrings: [
"repository:s*'(?<depName>.*?)'\ns*tag:s*'(?<currentValue>.*?)'",
'repository:s*"(?<depName>.*?)"\ns*tag:s*"(?<currentValue>.*?)"',
'repository:s*(?<depName>.*?)\ns*tag:s*(?<currentValue>.*)',
],
datasourceTemplate: 'docker',
},
],
} }

View File

@@ -4,10 +4,9 @@ metadata:
name: homelab-operator name: homelab-operator
build: build:
cluster: {}
artifacts: artifacts:
- image: homelaboperator - image: zot.olsen.cloud/homelaboperator
context: . context: ./images/operator
docker: docker:
dockerfile: Dockerfile dockerfile: Dockerfile
@@ -16,9 +15,10 @@ manifests:
releases: releases:
- name: homelab-operator - name: homelab-operator
chartPath: charts/operator chartPath: charts/operator
namespace: homelab
setValueTemplates: setValueTemplates:
image.repository: '{{.IMAGE_REPO_homelaboperator}}' image.repository: "zot.local/homelaboperator"
image.tag: '{{.IMAGE_TAG_homelaboperator}}' image.tag: "{{.IMAGE_TAG_zot_olsen_cloud_homelaboperator}}"
deploy: deploy:
# Use kubectl to apply the manifests. # Use kubectl to apply the manifests.