diff --git a/charts/gohoarder/Chart.yaml b/charts/gohoarder/Chart.yaml index 01a3d09..b870a8a 100644 --- a/charts/gohoarder/Chart.yaml +++ b/charts/gohoarder/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: gohoarder description: A universal package cache proxy supporting npm, PyPI, and Go modules with security scanning type: application -version: 0.1.28 -appVersion: "0.1.28" +version: 0.1.43 +appVersion: "0.1.43" keywords: - package-manager - cache diff --git a/charts/gohoarder/templates/deployment-frontend.yaml b/charts/gohoarder/templates/deployment-frontend.yaml index 97dbe60..f8bc47b 100644 --- a/charts/gohoarder/templates/deployment-frontend.yaml +++ b/charts/gohoarder/templates/deployment-frontend.yaml @@ -67,11 +67,18 @@ spec: protocol: TCP env: - name: API_BASE_URL - value: {{ .Values.frontend.backendUrl | default (printf "http://%s-server:%d" (include "gohoarder.fullname" .) (.Values.server.service.port | int)) | quote }} + value: {{ .Values.frontend.backendUrl | default "/api" | quote }} - name: APP_VERSION value: {{ .Chart.AppVersion | quote }} - name: APP_NAME value: "GoHoarder" + # Backend proxy configuration (frontend now includes reverse proxy) + - name: BACKEND_HOST + value: {{ include "gohoarder.fullname" . }}-server + - name: BACKEND_PORT + value: {{ .Values.server.service.port | quote }} + - name: SERVER_NAME + value: {{ .Values.frontend.serverName | default "_" | quote }} {{- with .Values.frontend.env }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/gohoarder/templates/ingress.yaml b/charts/gohoarder/templates/ingress.yaml index cd4f08c..3423528 100644 --- a/charts/gohoarder/templates/ingress.yaml +++ b/charts/gohoarder/templates/ingress.yaml @@ -1,11 +1,10 @@ {{- if .Values.ingress.enabled -}} -{{- if .Values.ingress.frontend.enabled -}} apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: {{ include "gohoarder.fullname" . }}-frontend + name: {{ include "gohoarder.fullname" . }} labels: - {{- include "gohoarder.frontend.labels" . | nindent 4 }} + {{- include "gohoarder.labels" . | nindent 4 }} {{- with .Values.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} @@ -14,65 +13,17 @@ spec: {{- if .Values.ingress.className }} ingressClassName: {{ .Values.ingress.className }} {{- end }} - {{- if .Values.ingress.frontend.tls.enabled }} + {{- if .Values.ingress.tls.enabled }} tls: - hosts: - - {{ .Values.ingress.frontend.host | default (printf "%s.%s" "gohoarder" .Values.global.domain) | quote }} - secretName: {{ .Values.ingress.frontend.tls.secretName }} + - {{ .Values.ingress.host | default (printf "%s.%s" "gohoarder" .Values.global.domain) | quote }} + secretName: {{ .Values.ingress.tls.secretName }} {{- end }} rules: - - host: {{ .Values.ingress.frontend.host | default (printf "%s.%s" "gohoarder" .Values.global.domain) | quote }} + - host: {{ .Values.ingress.host | default (printf "%s.%s" "gohoarder" .Values.global.domain) | quote }} http: paths: - - path: /npm - pathType: Prefix - backend: - service: - name: {{ include "gohoarder.fullname" . }}-server - port: - number: {{ .Values.server.service.port }} - - path: /pypi - pathType: Prefix - backend: - service: - name: {{ include "gohoarder.fullname" . }}-server - port: - number: {{ .Values.server.service.port }} - - path: /go - pathType: Prefix - backend: - service: - name: {{ include "gohoarder.fullname" . }}-server - port: - number: {{ .Values.server.service.port }} - - path: /api - pathType: Prefix - backend: - service: - name: {{ include "gohoarder.fullname" . }}-server - port: - number: {{ .Values.server.service.port }} - - path: /ws - pathType: Prefix - backend: - service: - name: {{ include "gohoarder.fullname" . }}-server - port: - number: {{ .Values.server.service.port }} - - path: /health - pathType: Prefix - backend: - service: - name: {{ include "gohoarder.fullname" . }}-server - port: - number: {{ .Values.server.service.port }} - - path: /metrics - pathType: Prefix - backend: - service: - name: {{ include "gohoarder.fullname" . }}-server - port: - number: {{ .Values.server.service.port }} + # Route all traffic to frontend (which now includes reverse proxy to backend) - path: / pathType: Prefix backend: @@ -81,38 +32,3 @@ spec: port: number: {{ .Values.frontend.service.port }} {{- end }} ---- -{{- if .Values.ingress.api.enabled }} -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: {{ include "gohoarder.fullname" . }}-api - labels: - {{- include "gohoarder.server.labels" . | nindent 4 }} - {{- with .Values.ingress.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - {{- if .Values.ingress.className }} - ingressClassName: {{ .Values.ingress.className }} - {{- end }} - {{- if .Values.ingress.api.tls.enabled }} - tls: - - hosts: - - {{ .Values.ingress.api.host | default (printf "api.%s.%s" "gohoarder" .Values.global.domain) | quote }} - secretName: {{ .Values.ingress.api.tls.secretName }} - {{- end }} - rules: - - host: {{ .Values.ingress.api.host | default (printf "api.%s.%s" "gohoarder" .Values.global.domain) | quote }} - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: {{ include "gohoarder.fullname" . }}-server - port: - number: {{ .Values.server.service.port }} -{{- end }} -{{- end }} diff --git a/charts/gohoarder/values.yaml b/charts/gohoarder/values.yaml index cb37bf9..69357ad 100644 --- a/charts/gohoarder/values.yaml +++ b/charts/gohoarder/values.yaml @@ -51,17 +51,17 @@ image: server: repository: ghcr.io/lukaszraczylo/gohoarder-server pullPolicy: IfNotPresent - tag: "0.1.28" + tag: "0.1.43" frontend: repository: ghcr.io/lukaszraczylo/gohoarder-frontend pullPolicy: IfNotPresent - tag: "0.1.28" + tag: "0.1.43" scanner: repository: ghcr.io/lukaszraczylo/gohoarder-scanner pullPolicy: IfNotPresent - tag: "0.1.28" + tag: "0.1.43" # Service Account serviceAccount: @@ -358,7 +358,7 @@ migration: image: repository: ghcr.io/lukaszraczylo/gohoarder-migrate pullPolicy: IfNotPresent - tag: "0.1.28" + tag: "0.1.43" # Migration settings logLevel: "info" # debug, info, warn, error @@ -507,21 +507,12 @@ ingress: nginx.ingress.kubernetes.io/proxy-read-timeout: "300" nginx.ingress.kubernetes.io/proxy-send-timeout: "300" - # Ingress for frontend - frontend: - enabled: true - host: "gohoarder.local" - tls: - enabled: false - secretName: "gohoarder-frontend-tls" - - # Ingress for API (if you want separate ingress) - api: + # Single ingress routes all traffic to frontend + # Frontend now includes reverse proxy to backend (merged gateway functionality) + host: "gohoarder.local" + tls: enabled: false - host: "api.gohoarder.local" - tls: - enabled: false - secretName: "gohoarder-api-tls" + secretName: "gohoarder-tls" # Autoscaling configuration autoscaling: diff --git a/charts/packages/gohoarder-0.1.43.tgz b/charts/packages/gohoarder-0.1.43.tgz new file mode 100644 index 0000000..82f3f63 Binary files /dev/null and b/charts/packages/gohoarder-0.1.43.tgz differ diff --git a/index.yaml b/index.yaml index 7e0af03..60c3553 100644 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,33 @@ apiVersion: v1 entries: gohoarder: + - apiVersion: v2 + appVersion: 0.1.43 + created: "2026-01-04T02:25:34.31761878Z" + description: A universal package cache proxy supporting npm, PyPI, and Go modules + with security scanning + digest: c6a527a88e98ce0e59a25ab24fbab57e33930bc63232d30d26850b84330e2786 + home: https://github.com/lukaszraczylo/gohoarder + icon: https://raw.githubusercontent.com/lukaszraczylo/gohoarder/main/docs/logo.png + keywords: + - package-manager + - cache + - proxy + - npm + - pypi + - go-modules + - security + - vulnerability-scanning + maintainers: + - email: lukasz@raczylo.com + name: Lukasz Raczylo + name: gohoarder + sources: + - https://github.com/lukaszraczylo/gohoarder + type: application + urls: + - https://github.com/lukaszraczylo/helm-charts/releases/download/gohoarder-0.1.43/gohoarder-0.1.43.tgz + version: 0.1.43 - apiVersion: v2 appVersion: 0.1.28 created: "2026-01-04T00:02:47.20976788Z" @@ -1867,4 +1894,4 @@ entries: urls: - https://github.com/lukaszraczylo/helm-charts/releases/download/kubemirror-0.2.8/kubemirror-0.2.8.tgz version: 0.2.8 -generated: "2026-01-04T00:02:47.208203254Z" +generated: "2026-01-04T02:25:34.316038179Z"