Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/release-helm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Helm Chart to GHCR

on:
push:
tags:
- "chart-.*"

permissions:
contents: read
packages: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Install Helm
uses: azure/setup-helm@v4

- name: Log in to GitHub Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io \
--username ${{ github.actor }} \
--password-stdin

- name: Package and Push Helm Chart
run: |
helm package helm/silo
helm push silo-*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
2 changes: 1 addition & 1 deletion helm/silo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: S3-Interface Libre Object Storage
name: silo
version: 7.0.5
version: 7.1.0
appVersion: RELEASE.2026-11-12T00-00-00Z
keywords:
- silo
Expand Down
16 changes: 8 additions & 8 deletions helm/silo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ The chart and server are licensed under AGPL-3.0-or-later.
## Prerequisites

- Kubernetes 1.19 or later
- Helm 3
- Helm 3 or 4
- A PersistentVolume provisioner unless `persistence.enabled=false`

## Install

From this repository:
From GHCR:

```bash
helm install silo ./helm/silo \
helm install silo oci://ghcr.io/pgsty/charts/silo \
--namespace silo --create-namespace \
--set rootUser=silo-admin \
--set rootPassword='replace-with-a-long-random-secret'
Expand All @@ -24,7 +24,7 @@ helm install silo ./helm/silo \
For a disposable standalone installation:

```bash
helm install silo ./helm/silo \
helm install silo oci://ghcr.io/pgsty/charts/silo \
--namespace silo --create-namespace \
--set mode=standalone \
--set replicas=1 \
Expand Down Expand Up @@ -64,7 +64,7 @@ helm get values my-release -n my-namespace -a > values.before-silo.yaml
SILO_TAG='<published-silo-release-tag>'
MCLI_TAG='<published-mcli-release-tag>'

helm template my-release ./helm/silo \
helm template my-release oci://ghcr.io/pgsty/charts/silo \
-n my-namespace \
-f values.before-silo.yaml \
--set nameOverride=minio \
Expand All @@ -84,7 +84,7 @@ mounts. After review, upgrade the chart and image together:
```bash
SILO_TAG='<published-silo-release-tag>'
MCLI_TAG='<published-mcli-release-tag>'
helm upgrade my-release ./helm/silo \
helm upgrade my-release oci://ghcr.io/pgsty/charts/silo \
-n my-namespace \
-f values.before-silo.yaml \
--set nameOverride=minio \
Expand Down Expand Up @@ -126,13 +126,13 @@ The default PersistentVolumeClaim mounts at `/export`. Use an existing claim
with:

```bash
helm install silo ./helm/silo --set persistence.existingClaim=PVC_NAME
helm install silo oci://ghcr.io/pgsty/charts/silo --set persistence.existingClaim=PVC_NAME
```

Create a TLS Secret containing `private.key` and `public.crt`, then set:

```bash
helm upgrade --install silo ./helm/silo \
helm upgrade --install silo oci://ghcr.io/pgsty/charts/silo \
--set tls.enabled=true \
--set tls.certSecret=silo-tls
```
Expand Down
10 changes: 5 additions & 5 deletions helm/silo/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ Also, we can not use a single if because lazy evaluation is not an option
{{- if .Values.global }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.global.imagePullSecrets }}
{{ tpl (toYaml .Values.global.imagePullSecrets) $ }}
{{- else if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets }}
{{ tpl (toYaml .Values.imagePullSecrets) $ }}
{{- end -}}
{{- else if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets }}
{{ tpl (toYaml .Values.imagePullSecrets) $ }}
{{- end -}}
{{- end -}}

Expand Down Expand Up @@ -201,15 +201,15 @@ otherwise it generates a random value.

{{- define "silo.root.username" -}}
{{- if .Values.rootUser }}
{{- .Values.rootUser | toString }}
{{- tpl .Values.rootUser . | toString }}
{{- else }}
{{- include "silo.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "silo.fullname" .) "Length" 20 "Key" "rootUser") }}
{{- end }}
{{- end -}}

{{- define "silo.root.password" -}}
{{- if .Values.rootPassword }}
{{- .Values.rootPassword | toString }}
{{- tpl .Values.rootPassword . | toString }}
{{- else }}
{{- include "silo.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "silo.fullname" .) "Length" 40 "Key" "rootPassword") }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions helm/silo/templates/ciliumnetworkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
chart: {{ template "silo.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
spec:
endpointSelector:
matchLabels:
Expand Down
3 changes: 3 additions & 0 deletions helm/silo/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
chart: {{ template "silo.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
data:
initialize: |-
{{- include (print $.Template.BasePath "/_helper_create_bucket.txt") . | nindent 4 }}
Expand Down
11 changes: 7 additions & 4 deletions helm/silo/templates/console-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.consoleIngress.labels }}
{{- toYaml . | nindent 4 }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- with .Values.consoleIngress.annotations }}
annotations: {{- toYaml . | nindent 4 }}
annotations: {{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
spec:
{{- if .Values.consoleIngress.ingressClassName }}
Expand All @@ -26,9 +29,9 @@ spec:
{{- range .Values.consoleIngress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
- {{ tpl . $ | quote }}
{{- end }}
secretName: {{ .secretName }}
secretName: {{ tpl .secretName $ }}
{{- end }}
{{- end }}
rules:
Expand Down
8 changes: 6 additions & 2 deletions helm/silo/templates/console-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ metadata:
chart: {{ template "silo.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.consoleService.annotations }}
annotations: {{- toYaml .Values.consoleService.annotations | nindent 4 }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- with .Values.consoleService.annotations }}
annotations:
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.consoleService.type }}
Expand Down
34 changes: 24 additions & 10 deletions helm/silo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ metadata:
chart: {{ template "silo.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.additionalLabels }}
{{- toYaml .Values.additionalLabels | nindent 4 }}
{{- with .Values.additionalLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- if .Values.additionalAnnotations }}
annotations: {{- toYaml .Values.additionalAnnotations | nindent 4 }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- with .Values.additionalAnnotations }}
annotations:
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
spec:
strategy:
Expand All @@ -35,8 +39,11 @@ spec:
labels:
app: {{ template "silo.name" . }}
release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- with .Values.podLabels }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
annotations:
{{- if not .Values.ignoreChartChecksums }}
Expand All @@ -62,7 +69,7 @@ spec:
{{- end }}
containers:
- name: {{ include "silo.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ tpl .Values.image.repository . }}:{{ tpl .Values.image.tag . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- "/bin/sh"
Expand Down Expand Up @@ -111,7 +118,14 @@ spec:
{{- end }}
{{- if .Values.oidc.enabled }}
- name: MINIO_IDENTITY_OPENID_CONFIG_URL
{{- if and .Values.oidc.existingConfigMapName .Values.oidc.existingConfigUrlKey }}
valueFrom:
configMapKeyRef:
name: {{ .Values.oidc.existingConfigMapName }}
key: {{ .Values.oidc.existingConfigUrlKey }}
{{- else }}
value: {{ .Values.oidc.configUrl }}
{{- end }}
- name: MINIO_IDENTITY_OPENID_CLIENT_ID
{{- if and .Values.oidc.existingClientSecretName .Values.oidc.existingClientIdKey }}
valueFrom:
Expand All @@ -135,11 +149,11 @@ spec:
- name: MINIO_IDENTITY_OPENID_CLAIM_PREFIX
value: {{ .Values.oidc.claimPrefix }}
- name: MINIO_IDENTITY_OPENID_SCOPES
value: {{ .Values.oidc.scopes }}
value: {{ tpl .Values.oidc.scopes . }}
- name: MINIO_IDENTITY_OPENID_COMMENT
value: {{ .Values.oidc.comment }}
- name: MINIO_IDENTITY_OPENID_REDIRECT_URI
value: {{ .Values.oidc.redirectUri }}
value: {{ tpl .Values.oidc.redirectUri . }}
- name: MINIO_IDENTITY_OPENID_DISPLAY_NAME
value: {{ .Values.oidc.displayName }}
{{- end }}
Expand Down Expand Up @@ -181,7 +195,7 @@ spec:
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
nodeSelector: {{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- include "silo.imagePullSecrets" . | indent 6 }}
{{- with .Values.affinity }}
Expand Down
11 changes: 7 additions & 4 deletions helm/silo/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.ingress.labels }}
{{- toYaml . | nindent 4 }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- with .Values.ingress.annotations }}
annotations: {{- toYaml . | nindent 4 }}
annotations: {{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.ingressClassName }}
Expand All @@ -26,9 +29,9 @@ spec:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
- {{ tpl . $ | quote }}
{{- end }}
secretName: {{ .secretName }}
secretName: {{ tpl .secretName $ }}
{{- end }}
{{- end }}
rules:
Expand Down
10 changes: 9 additions & 1 deletion helm/silo/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
chart: {{ template "silo.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
spec:
podSelector:
matchLabels:
Expand All @@ -19,11 +22,16 @@ spec:
protocol: TCP
- port: {{ .Values.minioConsolePort }}
protocol: TCP
{{- if not .Values.networkPolicy.allowExternal }}
{{- if or (not .Values.networkPolicy.allowExternal) .Values.networkPolicy.allowFrom }}
from:
{{- if not .Values.networkPolicy.allowExternal }}
- podSelector:
matchLabels:
{{ template "silo.name" . }}-client: "true"
{{- end }}
{{- with .Values.networkPolicy.allowFrom }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.networkPolicy.egress.enabled }}
egress:
Expand Down
3 changes: 3 additions & 0 deletions helm/silo/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ metadata:
name: {{ template "silo.fullname" . }}
labels:
app: {{ template "silo.name" . }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
spec:
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
selector:
Expand Down
Loading