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 | |
|---|---|---|---|
|
|
af2aae493e |
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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 }}
|
||||||
|
|||||||
@@ -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"]
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user