mirror of
https://github.com/pgsty/minio.git
synced 2026-11-25 08:39:19 +03:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a8e5cc4c13 | |||
| 3960a36853 | |||
| c78813cac9 | |||
| 7226aaf3fc | |||
| 2b96153a61 |
@@ -0,0 +1,45 @@
|
|||||||
|
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
|
|
||||||
|
- name: Install Helm
|
||||||
|
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
|
||||||
|
with:
|
||||||
|
version: v4.3.2
|
||||||
|
|
||||||
|
- name: Validate tag and package chart
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
version="$(helm show chart helm/silo | sed -n 's/^version: //p')"
|
||||||
|
if [[ -z "$version" || "$GITHUB_REF_NAME" != "chart-$version" ]]; then
|
||||||
|
echo "Expected chart-$version for helm/silo, got $GITHUB_REF_NAME" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
helm lint helm/silo
|
||||||
|
helm package helm/silo --destination "$RUNNER_TEMP"
|
||||||
|
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
printf '%s' "$GH_TOKEN" | helm registry login ghcr.io \
|
||||||
|
--username "$GITHUB_ACTOR" --password-stdin
|
||||||
|
|
||||||
|
- name: Push chart
|
||||||
|
run: |
|
||||||
|
helm push "$RUNNER_TEMP/silo-${GITHUB_REF_NAME#chart-}.tgz" \
|
||||||
|
"oci://ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/charts"
|
||||||
@@ -37,6 +37,7 @@ on:
|
|||||||
- "buildscripts/rebrand-guard/**"
|
- "buildscripts/rebrand-guard/**"
|
||||||
- "buildscripts/gen-ldflags.go"
|
- "buildscripts/gen-ldflags.go"
|
||||||
- ".github/workflows/release.yml"
|
- ".github/workflows/release.yml"
|
||||||
|
- ".github/workflows/release-helm.yml"
|
||||||
- ".github/workflows/docker-release.yml"
|
- ".github/workflows/docker-release.yml"
|
||||||
- ".github/workflows/finalize-release.yml"
|
- ".github/workflows/finalize-release.yml"
|
||||||
- ".github/workflows/test-release.yml"
|
- ".github/workflows/test-release.yml"
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
rootUser: silo-admin
|
||||||
|
rootPassword: 'literal-{{ .Release.Name }}'
|
||||||
|
buckets:
|
||||||
|
- name: chart-test
|
||||||
|
tls:
|
||||||
|
enabled: true
|
||||||
|
certSecret: silo-tls
|
||||||
|
trustedCertsSecret: silo-trusted-ca
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
tls:
|
||||||
|
- hosts: [s3.example.test]
|
||||||
|
consoleIngress:
|
||||||
|
enabled: true
|
||||||
|
tls:
|
||||||
|
- hosts: [console.example.test]
|
||||||
|
networkPolicy:
|
||||||
|
enabled: true
|
||||||
|
podDisruptionBudget:
|
||||||
|
enabled: true
|
||||||
|
metrics:
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
includeNode: true
|
||||||
|
oidc:
|
||||||
|
enabled: true
|
||||||
|
existingConfigMapName: chart-oidc
|
||||||
|
existingConfigUrlKey: discovery
|
||||||
|
redirectUri: https://console.example.test/oauth_callback
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: primary-pull
|
||||||
|
- name: '{{ .Release.Name }}-pull'
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: consumer
|
||||||
|
version: 0.1.0
|
||||||
|
dependencies:
|
||||||
|
- name: silo
|
||||||
|
alias: objects
|
||||||
|
version: "*"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
global:
|
||||||
|
storageClass: site-storage
|
||||||
|
bucketSuffix: archive
|
||||||
|
objects:
|
||||||
|
buckets:
|
||||||
|
- name: '{{ .Release.Name }}-{{ .Values.global.bucketSuffix }}'
|
||||||
@@ -40,6 +40,17 @@ else
|
|||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
expect_rendered() {
|
||||||
|
local render="$1" expected
|
||||||
|
shift
|
||||||
|
for expected in "$@"; do
|
||||||
|
grep -F -- "${expected}" "${render}" >/dev/null || {
|
||||||
|
echo "${render} is missing: ${expected}" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
helm_run lint "${new_chart}"
|
helm_run lint "${new_chart}"
|
||||||
helm_run template silo "${new_chart}" \
|
helm_run template silo "${new_chart}" \
|
||||||
--namespace silo \
|
--namespace silo \
|
||||||
@@ -53,23 +64,23 @@ helm_run template silo "${new_chart}" \
|
|||||||
--set rootUser=silo-admin \
|
--set rootUser=silo-admin \
|
||||||
--set rootPassword=test-password-123456 >/dev/null
|
--set rootPassword=test-password-123456 >/dev/null
|
||||||
|
|
||||||
# Exercise optional templates that the default render leaves dormant.
|
# Exercise the persisted standalone PVC, optional legacy values, and OIDC in both workloads.
|
||||||
helm_run template silo-all "${new_chart}" \
|
cp buildscripts/helm-migration-guard/testdata/optional-values.yaml "${work_dir}/optional-values.yaml"
|
||||||
--namespace silo \
|
for mode in standalone distributed; do
|
||||||
--set rootUser=silo-admin \
|
render="${work_dir}/${mode}.yaml"
|
||||||
--set rootPassword=test-password-123456 \
|
helm_run template silo-all "${new_chart}" --namespace silo \
|
||||||
--set tls.enabled=true \
|
-f "${output_dir}/optional-values.yaml" --set "mode=${mode}" >"${render}"
|
||||||
--set tls.certSecret=silo-tls \
|
expect_rendered "${render}" \
|
||||||
--set trustedCertsSecret=silo-trusted-ca \
|
'createBucket chart-test "none" false "" false' \
|
||||||
--set ingress.enabled=true \
|
'name: "chart-oidc"' \
|
||||||
--set consoleIngress.enabled=true \
|
'key: "discovery"' \
|
||||||
--set networkPolicy.enabled=true \
|
'value: "https://console.example.test/oauth_callback"' \
|
||||||
--set podDisruptionBudget.enabled=true \
|
"rootPassword: \"$(printf '%s' 'literal-{{ .Release.Name }}' | base64)\""
|
||||||
--set metrics.serviceMonitor.enabled=true \
|
if grep -F -- 'name: MINIO_BROWSER_REDIRECT_URL' "${render}" >/dev/null; then
|
||||||
--set metrics.serviceMonitor.includeNode=true \
|
echo "${mode} sets a browser redirect without a configured URL" >&2
|
||||||
--set 'buckets[0].name=chart-test' \
|
exit 1
|
||||||
--set 'buckets[0].policy=none' \
|
fi
|
||||||
--set 'buckets[0].purge=false' >/dev/null
|
done
|
||||||
|
|
||||||
# Existing values commonly address the historical myminio target. Render the
|
# Existing values commonly address the historical myminio target. Render the
|
||||||
# custom-command path explicitly so both the new and compatibility aliases are
|
# custom-command path explicitly so both the new and compatibility aliases are
|
||||||
@@ -81,15 +92,10 @@ helm_run template silo-custom "${new_chart}" \
|
|||||||
--set rootPassword=test-password-123456 \
|
--set rootPassword=test-password-123456 \
|
||||||
--set-string 'customCommands[0].command=admin info myminio' \
|
--set-string 'customCommands[0].command=admin info myminio' \
|
||||||
--show-only templates/configmap.yaml >"${custom_render}"
|
--show-only templates/configmap.yaml >"${custom_render}"
|
||||||
for expected in \
|
expect_rendered "${custom_render}" \
|
||||||
'alias set mysilo' \
|
'alias set mysilo' \
|
||||||
'alias set myminio' \
|
'alias set myminio' \
|
||||||
'runCommand admin info myminio'; do
|
'runCommand admin info myminio'
|
||||||
grep -F -- "${expected}" "${custom_render}" >/dev/null || {
|
|
||||||
echo "rendered custom command is missing: ${expected}" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
done
|
|
||||||
|
|
||||||
old_render="${work_dir}/legacy.yaml"
|
old_render="${work_dir}/legacy.yaml"
|
||||||
new_render="${work_dir}/candidate.yaml"
|
new_render="${work_dir}/candidate.yaml"
|
||||||
@@ -132,4 +138,14 @@ if find "${work_dir}" -maxdepth 1 -type f -name 'minio-*.tgz' | grep -q .; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Render the packaged chart under an alias, with values inherited from its parent.
|
||||||
|
cp -R buildscripts/helm-migration-guard/testdata/parent "${work_dir}/parent"
|
||||||
|
mkdir "${work_dir}/parent/charts"
|
||||||
|
cp "${work_dir}/silo-${chart_version}.tgz" "${work_dir}/parent/charts/"
|
||||||
|
helm_run template consumer "${output_dir}/parent" >"${work_dir}/parent.yaml"
|
||||||
|
expect_rendered "${work_dir}/parent.yaml" \
|
||||||
|
'name: consumer-objects' \
|
||||||
|
'storageClassName: "site-storage"' \
|
||||||
|
'createBucket consumer-archive "none" false "" false'
|
||||||
|
|
||||||
echo "Silo Helm lint, render, legacy-upgrade, and package checks passed"
|
echo "Silo Helm lint, render, legacy-upgrade, and package checks passed"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
description: S3-Interface Libre Object Storage
|
description: S3-Interface Libre Object Storage
|
||||||
name: silo
|
name: silo
|
||||||
version: 7.0.5
|
version: 7.1.0
|
||||||
appVersion: RELEASE.2026-11-12T00-00-00Z
|
appVersion: RELEASE.2026-11-12T00-00-00Z
|
||||||
keywords:
|
keywords:
|
||||||
- silo
|
- silo
|
||||||
|
|||||||
+14
-4
@@ -7,12 +7,12 @@ The chart and server are licensed under AGPL-3.0-or-later.
|
|||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Kubernetes 1.19 or later
|
- Kubernetes 1.19 or later
|
||||||
- Helm 3
|
- Helm 3 or 4
|
||||||
- A PersistentVolume provisioner unless `persistence.enabled=false`
|
- A PersistentVolume provisioner unless `persistence.enabled=false`
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
From this repository:
|
From the source checkout:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install silo ./helm/silo \
|
helm install silo ./helm/silo \
|
||||||
@@ -21,6 +21,9 @@ helm install silo ./helm/silo \
|
|||||||
--set rootPassword='replace-with-a-long-random-secret'
|
--set rootPassword='replace-with-a-long-random-secret'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For a version published on GHCR, use `oci://ghcr.io/pgsty/charts/silo` in
|
||||||
|
place of `./helm/silo` and pass `--version <chart-version>`.
|
||||||
|
|
||||||
For a disposable standalone installation:
|
For a disposable standalone installation:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -122,8 +125,12 @@ When upgrading an existing Silo release to `RELEASE.2026-11-12T00-00-00Z` (chart
|
|||||||
|
|
||||||
## Persistence and TLS
|
## Persistence and TLS
|
||||||
|
|
||||||
The default PersistentVolumeClaim mounts at `/export`. Use an existing claim
|
The default PersistentVolumeClaim mounts at `/export`. New claims use
|
||||||
with:
|
`persistence.storageClass` or inherit `global.storageClass` from a parent chart.
|
||||||
|
Helm preserves the existing storage class during a connected upgrade when only
|
||||||
|
the parent supplies a default.
|
||||||
|
|
||||||
|
Use an existing claim with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install silo ./helm/silo --set persistence.existingClaim=PVC_NAME
|
helm install silo ./helm/silo --set persistence.existingClaim=PVC_NAME
|
||||||
@@ -141,6 +148,9 @@ Additional trusted CAs can be supplied through `trustedCertsSecret`.
|
|||||||
|
|
||||||
## Existing Secrets and post-install resources
|
## Existing Secrets and post-install resources
|
||||||
|
|
||||||
|
The chart treats `rootUser` and `rootPassword` as literal values. A parent chart
|
||||||
|
can opt into evaluating both as Helm templates with `tplRootCredentials: true`.
|
||||||
|
|
||||||
Set `existingSecret` to a Secret containing `rootUser` and `rootPassword`.
|
Set `existingSecret` to a Secret containing `rootUser` and `rootPassword`.
|
||||||
Buckets, users, policies, service accounts, and custom commands can be created
|
Buckets, users, policies, service accounts, and custom commands can be created
|
||||||
with the existing `buckets`, `users`, `policies`, `svcaccts`, and
|
with the existing `buckets`, `users`, `policies`, `svcaccts`, and
|
||||||
|
|||||||
@@ -119,5 +119,5 @@ connectToSilo $scheme
|
|||||||
{{ $global := . }}
|
{{ $global := . }}
|
||||||
# Create the buckets
|
# Create the buckets
|
||||||
{{- range .Values.buckets }}
|
{{- range .Values.buckets }}
|
||||||
createBucket {{ tpl .name $global }} {{ .policy | default "none" | quote }} {{ .purge | default false }} {{ .versioning | default "" }} {{ .objectlocking | default false }}{{- end }}
|
createBucket {{ tpl .name $global }} {{ tpl (default "none" .policy) $global | default "none" | quote }} {{ .purge | default false }} {{ ternary .versioning "" (ne .versioning nil) | quote }} {{ .objectlocking | default false }}{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -68,8 +68,12 @@ scheme=http
|
|||||||
connectToSilo $scheme
|
connectToSilo $scheme
|
||||||
|
|
||||||
{{ if .Values.policies }}
|
{{ if .Values.policies }}
|
||||||
|
{{- $policies := .Values.policies }}
|
||||||
|
{{- if typeIs "string" .Values.policies }}
|
||||||
|
{{- $policies = tpl .Values.policies . | fromYamlArray }}
|
||||||
|
{{- end }}
|
||||||
# Create the policies
|
# Create the policies
|
||||||
{{- range $idx, $policy := .Values.policies }}
|
{{- range $idx, $policy := $policies }}
|
||||||
createPolicy {{ $policy.name }} policy_{{ $idx }}
|
createPolicy {{ $policy.name }} policy_{{ $idx }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -119,26 +119,34 @@ Properly format optional additional arguments to Silo binary
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the proper Docker Image Registry Secret Names
|
|
||||||
*/}}
|
|
||||||
{{- define "silo.imagePullSecrets" -}}
|
{{- define "silo.imagePullSecrets" -}}
|
||||||
{{/*
|
{{- with (or (.Values.global | default dict).imagePullSecrets .Values.imagePullSecrets) }}
|
||||||
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
imagePullSecrets: {{- tpl (toYaml .) $ | nindent 2 }}
|
||||||
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
{{- end }}
|
||||||
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 }}
|
|
||||||
{{- else if .Values.imagePullSecrets }}
|
|
||||||
imagePullSecrets:
|
|
||||||
{{ toYaml .Values.imagePullSecrets }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- else if .Values.imagePullSecrets }}
|
|
||||||
imagePullSecrets:
|
{{/* Keep the class already chosen for an existing claim when a parent supplies a default. */}}
|
||||||
{{ toYaml .Values.imagePullSecrets }}
|
{{- define "silo.storageClass" -}}
|
||||||
|
{{- $class := or .Values.persistence.storageClass (.Values.global | default dict).storageClass -}}
|
||||||
|
{{- if $class -}}
|
||||||
|
{{- $spec := dict "storageClassName" (ternary "" $class (eq $class "-")) -}}
|
||||||
|
{{- if and .Release.IsUpgrade (not .Values.persistence.storageClass) -}}
|
||||||
|
{{- $name := include "silo.fullname" . -}}
|
||||||
|
{{- if eq .Values.mode "standalone" -}}
|
||||||
|
{{- with (lookup "v1" "PersistentVolumeClaim" .Release.Namespace $name) -}}
|
||||||
|
{{- $spec = .spec -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- with (lookup "apps/v1" "StatefulSet" .Release.Namespace $name) -}}
|
||||||
|
{{- with .spec.volumeClaimTemplates -}}
|
||||||
|
{{- $spec = (first .).spec -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if hasKey $spec "storageClassName" -}}
|
||||||
|
storageClassName: {{ $spec.storageClassName | quote }}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
@@ -201,7 +209,11 @@ otherwise it generates a random value.
|
|||||||
|
|
||||||
{{- define "silo.root.username" -}}
|
{{- define "silo.root.username" -}}
|
||||||
{{- if .Values.rootUser }}
|
{{- if .Values.rootUser }}
|
||||||
{{- .Values.rootUser | toString }}
|
{{- if .Values.tplRootCredentials }}
|
||||||
|
{{- tpl (.Values.rootUser | toString) . }}
|
||||||
|
{{- else }}
|
||||||
|
{{- .Values.rootUser | toString }}
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- include "silo.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "silo.fullname" .) "Length" 20 "Key" "rootUser") }}
|
{{- include "silo.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "silo.fullname" .) "Length" 20 "Key" "rootUser") }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -209,8 +221,64 @@ otherwise it generates a random value.
|
|||||||
|
|
||||||
{{- define "silo.root.password" -}}
|
{{- define "silo.root.password" -}}
|
||||||
{{- if .Values.rootPassword }}
|
{{- if .Values.rootPassword }}
|
||||||
{{- .Values.rootPassword | toString }}
|
{{- if .Values.tplRootCredentials }}
|
||||||
|
{{- tpl (.Values.rootPassword | toString) . }}
|
||||||
|
{{- else }}
|
||||||
|
{{- .Values.rootPassword | toString }}
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- include "silo.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "silo.fullname" .) "Length" 40 "Key" "rootPassword") }}
|
{{- include "silo.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "silo.fullname" .) "Length" 40 "Key" "rootPassword") }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/* OIDC environment shared by the standalone and distributed workloads. */}}
|
||||||
|
{{- define "silo.oidcEnv" -}}
|
||||||
|
{{- $oidc := .Values.oidc -}}
|
||||||
|
{{- if $oidc.enabled -}}
|
||||||
|
- name: MINIO_IDENTITY_OPENID_CONFIG_URL
|
||||||
|
{{- if and $oidc.existingConfigMapName $oidc.existingConfigUrlKey }}
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: {{ $oidc.existingConfigMapName | quote }}
|
||||||
|
key: {{ $oidc.existingConfigUrlKey | quote }}
|
||||||
|
{{- else }}
|
||||||
|
value: {{ $oidc.configUrl | quote }}
|
||||||
|
{{- end }}
|
||||||
|
- name: MINIO_IDENTITY_OPENID_CLIENT_ID
|
||||||
|
{{- if and $oidc.existingClientSecretName $oidc.existingClientIdKey }}
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ $oidc.existingClientSecretName | quote }}
|
||||||
|
key: {{ $oidc.existingClientIdKey | quote }}
|
||||||
|
{{- else }}
|
||||||
|
value: {{ $oidc.clientId | quote }}
|
||||||
|
{{- end }}
|
||||||
|
- name: MINIO_IDENTITY_OPENID_CLIENT_SECRET
|
||||||
|
{{- if and $oidc.existingClientSecretName $oidc.existingClientSecretKey }}
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ $oidc.existingClientSecretName | quote }}
|
||||||
|
key: {{ $oidc.existingClientSecretKey | quote }}
|
||||||
|
{{- else }}
|
||||||
|
value: {{ $oidc.clientSecret | quote }}
|
||||||
|
{{- end }}
|
||||||
|
- name: MINIO_IDENTITY_OPENID_CLAIM_NAME
|
||||||
|
value: {{ $oidc.claimName | quote }}
|
||||||
|
- name: MINIO_IDENTITY_OPENID_CLAIM_PREFIX
|
||||||
|
value: {{ $oidc.claimPrefix | quote }}
|
||||||
|
- name: MINIO_IDENTITY_OPENID_SCOPES
|
||||||
|
value: {{ tpl $oidc.scopes . | quote }}
|
||||||
|
- name: MINIO_IDENTITY_OPENID_COMMENT
|
||||||
|
value: {{ $oidc.comment | quote }}
|
||||||
|
{{- with $oidc.redirectUri }}
|
||||||
|
- name: MINIO_IDENTITY_OPENID_REDIRECT_URI
|
||||||
|
value: {{ tpl . $ | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if and $oidc.redirectUrl (not (hasKey (.Values.environment | default dict) "MINIO_BROWSER_REDIRECT_URL")) }}
|
||||||
|
- name: MINIO_BROWSER_REDIRECT_URL
|
||||||
|
value: {{ tpl $oidc.redirectUrl . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
- name: MINIO_IDENTITY_OPENID_DISPLAY_NAME
|
||||||
|
value: {{ $oidc.displayName | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpointSelector:
|
endpointSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
initialize: |-
|
initialize: |-
|
||||||
{{- include (print $.Template.BasePath "/_helper_create_bucket.txt") . | nindent 4 }}
|
{{- include (print $.Template.BasePath "/_helper_create_bucket.txt") . | nindent 4 }}
|
||||||
@@ -14,7 +17,11 @@ data:
|
|||||||
{{- include (print $.Template.BasePath "/_helper_create_user.txt") . | nindent 4 }}
|
{{- include (print $.Template.BasePath "/_helper_create_user.txt") . | nindent 4 }}
|
||||||
add-policy: |-
|
add-policy: |-
|
||||||
{{- include (print $.Template.BasePath "/_helper_create_policy.txt") . | nindent 4 }}
|
{{- include (print $.Template.BasePath "/_helper_create_policy.txt") . | nindent 4 }}
|
||||||
{{- range $idx, $policy := .Values.policies }}
|
{{- $policies := .Values.policies }}
|
||||||
|
{{- if typeIs "string" .Values.policies }}
|
||||||
|
{{- $policies = tpl .Values.policies . | fromYamlArray }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $idx, $policy := $policies }}
|
||||||
# Policy: {{ $policy.name }}
|
# Policy: {{ $policy.name }}
|
||||||
policy_{{ $idx }}.json: |-
|
policy_{{ $idx }}.json: |-
|
||||||
{{- include (print $.Template.BasePath "/_helper_policy.tpl") . | nindent 4 }}
|
{{- include (print $.Template.BasePath "/_helper_policy.tpl") . | nindent 4 }}
|
||||||
|
|||||||
@@ -12,10 +12,13 @@ metadata:
|
|||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
{{- with .Values.consoleIngress.labels }}
|
{{- with .Values.consoleIngress.labels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.consoleIngress.annotations }}
|
{{- with .Values.consoleIngress.annotations }}
|
||||||
annotations: {{- toYaml . | nindent 4 }}
|
annotations: {{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.consoleIngress.ingressClassName }}
|
{{- if .Values.consoleIngress.ingressClassName }}
|
||||||
@@ -26,9 +29,11 @@ spec:
|
|||||||
{{- range .Values.consoleIngress.tls }}
|
{{- range .Values.consoleIngress.tls }}
|
||||||
- hosts:
|
- hosts:
|
||||||
{{- range .hosts }}
|
{{- range .hosts }}
|
||||||
- {{ . | quote }}
|
- {{ tpl . $ | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .secretName }}
|
||||||
|
secretName: {{ tpl . $ | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
secretName: {{ .secretName }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -8,8 +8,12 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
{{- if .Values.consoleService.annotations }}
|
{{- with .Values.commonLabels }}
|
||||||
annotations: {{- toYaml .Values.consoleService.annotations | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.consoleService.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .Values.consoleService.type }}
|
type: {{ .Values.consoleService.type }}
|
||||||
|
|||||||
@@ -10,11 +10,15 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
{{- if .Values.additionalLabels }}
|
{{- with .Values.additionalLabels }}
|
||||||
{{- toYaml .Values.additionalLabels | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.additionalAnnotations }}
|
{{- with .Values.commonLabels }}
|
||||||
annotations: {{- toYaml .Values.additionalAnnotations | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.additionalAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -35,8 +39,11 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: {{ template "silo.name" . }}
|
app: {{ template "silo.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
{{- if .Values.podLabels }}
|
{{- with .Values.podLabels }}
|
||||||
{{- toYaml .Values.podLabels | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- if not .Values.ignoreChartChecksums }}
|
{{- if not .Values.ignoreChartChecksums }}
|
||||||
@@ -62,7 +69,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "silo.name" . }}
|
- name: {{ include "silo.name" . }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ tpl .Values.image.repository . }}:{{ tpl (.Values.image.tag | toString) . }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
@@ -109,40 +116,7 @@ spec:
|
|||||||
- name: MINIO_PROMETHEUS_AUTH_TYPE
|
- name: MINIO_PROMETHEUS_AUTH_TYPE
|
||||||
value: "public"
|
value: "public"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.oidc.enabled }}
|
{{- include "silo.oidcEnv" . | nindent 12 }}
|
||||||
- name: MINIO_IDENTITY_OPENID_CONFIG_URL
|
|
||||||
value: {{ .Values.oidc.configUrl }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_CLIENT_ID
|
|
||||||
{{- if and .Values.oidc.existingClientSecretName .Values.oidc.existingClientIdKey }}
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ .Values.oidc.existingClientSecretName }}
|
|
||||||
key: {{ .Values.oidc.existingClientIdKey }}
|
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.oidc.clientId }}
|
|
||||||
{{- end }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_CLIENT_SECRET
|
|
||||||
{{- if and .Values.oidc.existingClientSecretName .Values.oidc.existingClientSecretKey }}
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ .Values.oidc.existingClientSecretName }}
|
|
||||||
key: {{ .Values.oidc.existingClientSecretKey }}
|
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.oidc.clientSecret }}
|
|
||||||
{{- end }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_CLAIM_NAME
|
|
||||||
value: {{ .Values.oidc.claimName }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_CLAIM_PREFIX
|
|
||||||
value: {{ .Values.oidc.claimPrefix }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_SCOPES
|
|
||||||
value: {{ .Values.oidc.scopes }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_COMMENT
|
|
||||||
value: {{ .Values.oidc.comment }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_REDIRECT_URI
|
|
||||||
value: {{ .Values.oidc.redirectUri }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_DISPLAY_NAME
|
|
||||||
value: {{ .Values.oidc.displayName }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.etcd.endpoints }}
|
{{- if .Values.etcd.endpoints }}
|
||||||
- name: MINIO_ETCD_ENDPOINTS
|
- name: MINIO_ETCD_ENDPOINTS
|
||||||
value: {{ join "," .Values.etcd.endpoints | quote }}
|
value: {{ join "," .Values.etcd.endpoints | quote }}
|
||||||
@@ -181,7 +155,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector: {{- toYaml . | nindent 8 }}
|
nodeSelector: {{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "silo.imagePullSecrets" . | indent 6 }}
|
{{- include "silo.imagePullSecrets" . | indent 6 }}
|
||||||
{{- with .Values.affinity }}
|
{{- with .Values.affinity }}
|
||||||
|
|||||||
@@ -12,10 +12,13 @@ metadata:
|
|||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
{{- with .Values.ingress.labels }}
|
{{- with .Values.ingress.labels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.ingress.annotations }}
|
{{- with .Values.ingress.annotations }}
|
||||||
annotations: {{- toYaml . | nindent 4 }}
|
annotations: {{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.ingress.ingressClassName }}
|
{{- if .Values.ingress.ingressClassName }}
|
||||||
@@ -26,9 +29,11 @@ spec:
|
|||||||
{{- range .Values.ingress.tls }}
|
{{- range .Values.ingress.tls }}
|
||||||
- hosts:
|
- hosts:
|
||||||
{{- range .hosts }}
|
{{- range .hosts }}
|
||||||
- {{ . | quote }}
|
- {{ tpl . $ | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .secretName }}
|
||||||
|
secretName: {{ tpl . $ | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
secretName: {{ .secretName }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
podSelector:
|
podSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
@@ -19,11 +22,16 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
- port: {{ .Values.minioConsolePort }}
|
- port: {{ .Values.minioConsolePort }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- if not .Values.networkPolicy.allowExternal }}
|
{{- if or (not .Values.networkPolicy.allowExternal) .Values.networkPolicy.allowFrom }}
|
||||||
from:
|
from:
|
||||||
|
{{- if not .Values.networkPolicy.allowExternal }}
|
||||||
- podSelector:
|
- podSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{ template "silo.name" . }}-client: "true"
|
{{ template "silo.name" . }}-client: "true"
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.networkPolicy.allowFrom }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.networkPolicy.egress.enabled }}
|
{{- if .Values.networkPolicy.egress.enabled }}
|
||||||
egress:
|
egress:
|
||||||
@@ -34,6 +42,7 @@ spec:
|
|||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.networkPolicy.egress.enabled }}
|
||||||
---
|
---
|
||||||
kind: NetworkPolicy
|
kind: NetworkPolicy
|
||||||
apiVersion: {{ template "silo.networkPolicy.apiVersion" . }}
|
apiVersion: {{ template "silo.networkPolicy.apiVersion" . }}
|
||||||
@@ -44,6 +53,9 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
podSelector:
|
podSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
@@ -55,12 +67,11 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
- port: {{ .Values.minioConsolePort }}
|
- port: {{ .Values.minioConsolePort }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- if .Values.networkPolicy.egress.enabled }}
|
|
||||||
- ports:
|
- ports:
|
||||||
{{ .Values.networkPolicy.egress.ports | toJson }}
|
{{ .Values.networkPolicy.egress.ports | toJson }}
|
||||||
{{- with .Values.networkPolicy.egress.to }}
|
{{- with .Values.networkPolicy.egress.to }}
|
||||||
to:
|
to:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ metadata:
|
|||||||
name: {{ template "silo.fullname" . }}
|
name: {{ template "silo.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ template "silo.name" . }}
|
app: {{ template "silo.name" . }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
||||||
selector:
|
selector:
|
||||||
|
|||||||
@@ -8,11 +8,14 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": post-install,post-upgrade
|
"helm.sh/hook": post-install,post-upgrade
|
||||||
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
|
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
|
||||||
{{- with .Values.postJob.annotations }}
|
{{- with .Values.postJob.annotations }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
@@ -21,7 +24,10 @@ spec:
|
|||||||
app: {{ template "silo.name" . }}-job
|
app: {{ template "silo.name" . }}-job
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
{{- if .Values.podLabels }}
|
{{- if .Values.podLabels }}
|
||||||
{{- toYaml .Values.podLabels | nindent 8 }}
|
{{- tpl (toYaml .Values.podLabels) $ | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.postJob.podAnnotations }}
|
{{- if .Values.postJob.podAnnotations }}
|
||||||
annotations: {{- toYaml .Values.postJob.podAnnotations | nindent 8 }}
|
annotations: {{- toYaml .Values.postJob.podAnnotations | nindent 8 }}
|
||||||
@@ -29,8 +35,8 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
{{- include "silo.imagePullSecrets" . | indent 6 }}
|
{{- include "silo.imagePullSecrets" . | indent 6 }}
|
||||||
{{- if .Values.nodeSelector }}
|
{{- with (.Values.postJob.nodeSelector | default .Values.nodeSelector) }}
|
||||||
nodeSelector: {{- toYaml .Values.postJob.nodeSelector | nindent 8 }}
|
nodeSelector: {{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.postJob.affinity }}
|
{{- with .Values.postJob.affinity }}
|
||||||
affinity: {{- toYaml . | nindent 8 }}
|
affinity: {{- toYaml . | nindent 8 }}
|
||||||
@@ -39,7 +45,7 @@ spec:
|
|||||||
tolerations: {{- toYaml . | nindent 8 }}
|
tolerations: {{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.postJob.securityContext.enabled }}
|
{{- if .Values.postJob.securityContext.enabled }}
|
||||||
securityContext: {{ omit .Values.postJob.securityContext "enabled" | toYaml | nindent 12 }}
|
securityContext: {{ omit .Values.postJob.securityContext "enabled" | toYaml | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: etc-path
|
- name: etc-path
|
||||||
@@ -88,9 +94,9 @@ spec:
|
|||||||
{{- if .Values.policies }}
|
{{- if .Values.policies }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: silo-make-policy
|
- name: silo-make-policy
|
||||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
image: "{{ tpl .Values.mcImage.repository . }}:{{ tpl (.Values.mcImage.tag | toString) . }}"
|
||||||
{{- if .Values.makePolicyJob.securityContext.enabled }}
|
{{- if .Values.makePolicyJob.securityContext.enabled }}
|
||||||
{{- with .Values.makePolicyJob.containerSecurityContext }}
|
{{- with .Values.makePolicyJob.containerSecurityContext | default .Values.postJob.containerSecurityContext }}
|
||||||
securityContext: {{ toYaml . | nindent 12 }}
|
securityContext: {{ toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -122,9 +128,9 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
{{- if .Values.buckets }}
|
{{- if .Values.buckets }}
|
||||||
- name: silo-make-bucket
|
- name: silo-make-bucket
|
||||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
image: "{{ tpl .Values.mcImage.repository . }}:{{ tpl (.Values.mcImage.tag | toString) . }}"
|
||||||
{{- if .Values.makeBucketJob.securityContext.enabled }}
|
{{- if .Values.makeBucketJob.securityContext.enabled }}
|
||||||
{{- with .Values.makeBucketJob.containerSecurityContext }}
|
{{- with .Values.makeBucketJob.containerSecurityContext | default .Values.postJob.containerSecurityContext }}
|
||||||
securityContext: {{ toYaml . | nindent 12 }}
|
securityContext: {{ toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -155,9 +161,9 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.users }}
|
{{- if .Values.users }}
|
||||||
- name: silo-make-user
|
- name: silo-make-user
|
||||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
image: "{{ tpl .Values.mcImage.repository . }}:{{ tpl (.Values.mcImage.tag | toString) . }}"
|
||||||
{{- if .Values.makeUserJob.securityContext.enabled }}
|
{{- if .Values.makeUserJob.securityContext.enabled }}
|
||||||
{{- with .Values.makeUserJob.containerSecurityContext }}
|
{{- with .Values.makeUserJob.containerSecurityContext | default .Values.postJob.containerSecurityContext }}
|
||||||
securityContext: {{ toYaml . | nindent 12 }}
|
securityContext: {{ toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -188,9 +194,9 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.customCommands }}
|
{{- if .Values.customCommands }}
|
||||||
- name: silo-custom-command
|
- name: silo-custom-command
|
||||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
image: "{{ tpl .Values.mcImage.repository . }}:{{ tpl (.Values.mcImage.tag | toString) . }}"
|
||||||
{{- if .Values.customCommandJob.securityContext.enabled }}
|
{{- if .Values.customCommandJob.securityContext.enabled }}
|
||||||
{{- with .Values.customCommandJob.containerSecurityContext }}
|
{{- with .Values.customCommandJob.containerSecurityContext | default .Values.postJob.containerSecurityContext }}
|
||||||
securityContext: {{ toYaml . | nindent 12 }}
|
securityContext: {{ toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -224,9 +230,9 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.svcaccts }}
|
{{- if .Values.svcaccts }}
|
||||||
- name: silo-make-svcacct
|
- name: silo-make-svcacct
|
||||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
image: "{{ tpl .Values.mcImage.repository . }}:{{ tpl (.Values.mcImage.tag | toString) . }}"
|
||||||
{{- if .Values.makeServiceAccountJob.securityContext.enabled }}
|
{{- if .Values.makeServiceAccountJob.securityContext.enabled }}
|
||||||
{{- with .Values.makeServiceAccountJob.containerSecurityContext }}
|
{{- with .Values.makeServiceAccountJob.containerSecurityContext | default .Values.postJob.containerSecurityContext }}
|
||||||
securityContext: {{ toYaml . | nindent 12 }}
|
securityContext: {{ toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -9,8 +9,12 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
{{- if .Values.persistence.annotations }}
|
{{- with .Values.commonLabels }}
|
||||||
annotations: {{- toYaml .Values.persistence.annotations | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.persistence.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -18,12 +22,8 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.persistence.size | quote }}
|
storage: {{ .Values.persistence.size | quote }}
|
||||||
{{- if .Values.persistence.storageClass }}
|
{{- with (include "silo.storageClass" .) }}
|
||||||
{{- if (eq "-" .Values.persistence.storageClass) }}
|
{{- . | nindent 2 }}
|
||||||
storageClassName: ""
|
|
||||||
{{- else }}
|
|
||||||
storageClassName: "{{ .Values.persistence.storageClass }}"
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.persistence.volumeName }}
|
{{- if .Values.persistence.volumeName }}
|
||||||
volumeName: "{{ .Values.persistence.volumeName }}"
|
volumeName: "{{ .Values.persistence.volumeName }}"
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
rootUser: {{ include "silo.root.username" . | b64enc | quote }}
|
rootUser: {{ include "silo.root.username" . | b64enc | quote }}
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
allowHostDirVolumePlugin: false
|
allowHostDirVolumePlugin: false
|
||||||
allowHostIPC: false
|
allowHostIPC: false
|
||||||
allowHostNetwork: false
|
allowHostNetwork: false
|
||||||
|
|||||||
@@ -9,8 +9,12 @@ metadata:
|
|||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
monitoring: "true"
|
monitoring: "true"
|
||||||
{{- if .Values.service.annotations }}
|
{{- with .Values.commonLabels }}
|
||||||
annotations: {{- toYaml .Values.service.annotations | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.service.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .Values.service.type }}
|
type: {{ .Values.service.type }}
|
||||||
|
|||||||
@@ -3,4 +3,8 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccount.name | quote }}
|
name: {{ .Values.serviceAccount.name | quote }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
labels:
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -11,8 +11,11 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
{{- if .Values.metrics.serviceMonitor.additionalLabels }}
|
{{- with .Values.metrics.serviceMonitor.additionalLabels }}
|
||||||
{{- toYaml .Values.metrics.serviceMonitor.additionalLabels | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.metrics.serviceMonitor.annotations }}
|
{{- if .Values.metrics.serviceMonitor.annotations }}
|
||||||
annotations: {{- toYaml .Values.metrics.serviceMonitor.annotations | nindent 4 }}
|
annotations: {{- toYaml .Values.metrics.serviceMonitor.annotations | nindent 4 }}
|
||||||
@@ -39,8 +42,8 @@ spec:
|
|||||||
{{- if .Values.metrics.serviceMonitor.scrapeTimeout }}
|
{{- if .Values.metrics.serviceMonitor.scrapeTimeout }}
|
||||||
scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }}
|
scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.metrics.serviceMonitor.relabelConfigs }}
|
{{- with .Values.metrics.serviceMonitor.relabelConfigs }}
|
||||||
{{- toYaml .Values.metrics.serviceMonitor.relabelConfigs | nindent 6 }}
|
{{- tpl (toYaml .) $ | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not .Values.metrics.serviceMonitor.public }}
|
{{- if not .Values.metrics.serviceMonitor.public }}
|
||||||
bearerTokenSecret:
|
bearerTokenSecret:
|
||||||
@@ -55,6 +58,10 @@ spec:
|
|||||||
app: {{ include "silo.name" . }}
|
app: {{ include "silo.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
monitoring: "true"
|
monitoring: "true"
|
||||||
|
{{- with .Values.metrics.serviceMonitor.targetLabels }}
|
||||||
|
targetLabels:
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.metrics.serviceMonitor.enabled }}
|
{{- if .Values.metrics.serviceMonitor.enabled }}
|
||||||
---
|
---
|
||||||
@@ -70,8 +77,11 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
{{- if .Values.metrics.serviceMonitor.additionalLabels }}
|
{{- with .Values.metrics.serviceMonitor.additionalLabels }}
|
||||||
{{- toYaml .Values.metrics.serviceMonitor.additionalLabels | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
jobName: {{ template "silo.fullname" . }}
|
jobName: {{ template "silo.fullname" . }}
|
||||||
@@ -91,13 +101,17 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
scheme: http
|
scheme: http
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.metrics.serviceMonitor.relabelConfigsCluster }}
|
{{- with .Values.metrics.serviceMonitor.relabelConfigsCluster }}
|
||||||
{{- toYaml .Values.metrics.serviceMonitor.relabelConfigsCluster | nindent 2 }}
|
{{- tpl (toYaml .) $ | nindent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
targets:
|
targets:
|
||||||
staticConfig:
|
staticConfig:
|
||||||
static:
|
static:
|
||||||
- {{ template "silo.fullname" . }}.{{ .Release.Namespace }}
|
- {{ template "silo.fullname" . }}.{{ .Release.Namespace }}
|
||||||
|
{{- with .Values.metrics.serviceMonitor.probeRelabelingConfigs }}
|
||||||
|
relabelingConfigs:
|
||||||
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- if not .Values.metrics.serviceMonitor.public }}
|
{{- if not .Values.metrics.serviceMonitor.public }}
|
||||||
{{- if .Values.metrics.serviceMonitor.interval }}
|
{{- if .Values.metrics.serviceMonitor.interval }}
|
||||||
interval: {{ .Values.metrics.serviceMonitor.interval }}
|
interval: {{ .Values.metrics.serviceMonitor.interval }}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
{{ $subPath := .Values.persistence.subPath }}
|
{{ $subPath := .Values.persistence.subPath }}
|
||||||
{{ $penabled := .Values.persistence.enabled }}
|
{{ $penabled := .Values.persistence.enabled }}
|
||||||
{{ $accessMode := .Values.persistence.accessMode }}
|
{{ $accessMode := .Values.persistence.accessMode }}
|
||||||
{{ $storageClass := .Values.persistence.storageClass }}
|
|
||||||
{{ $psize := .Values.persistence.size }}
|
{{ $psize := .Values.persistence.size }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -20,6 +19,9 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
publishNotReadyAddresses: true
|
publishNotReadyAddresses: true
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
@@ -41,11 +43,15 @@ metadata:
|
|||||||
chart: {{ template "silo.chart" . }}
|
chart: {{ template "silo.chart" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
{{- if .Values.additionalLabels }}
|
{{- with .Values.additionalLabels }}
|
||||||
{{- toYaml .Values.additionalLabels | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.additionalAnnotations }}
|
{{- with .Values.commonLabels }}
|
||||||
annotations: {{- toYaml .Values.additionalAnnotations | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.additionalAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
@@ -63,8 +69,11 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: {{ template "silo.name" . }}
|
app: {{ template "silo.name" . }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
{{- if .Values.podLabels }}
|
{{- with .Values.podLabels }}
|
||||||
{{- toYaml .Values.podLabels | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.commonLabels }}
|
||||||
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- if not .Values.ignoreChartChecksums }}
|
{{- if not .Values.ignoreChartChecksums }}
|
||||||
@@ -90,7 +99,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "silo.name" . }}
|
- name: {{ include "silo.name" . }}
|
||||||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
image: {{ tpl .Values.image.repository . }}:{{ tpl (.Values.image.tag | toString) . }}
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
command: [
|
command: [
|
||||||
"/bin/sh",
|
"/bin/sh",
|
||||||
@@ -147,40 +156,7 @@ spec:
|
|||||||
- name: MINIO_PROMETHEUS_AUTH_TYPE
|
- name: MINIO_PROMETHEUS_AUTH_TYPE
|
||||||
value: "public"
|
value: "public"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.oidc.enabled }}
|
{{- include "silo.oidcEnv" . | nindent 12 }}
|
||||||
- name: MINIO_IDENTITY_OPENID_CONFIG_URL
|
|
||||||
value: {{ .Values.oidc.configUrl }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_CLIENT_ID
|
|
||||||
{{- if and .Values.oidc.existingClientSecretName .Values.oidc.existingClientIdKey }}
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ .Values.oidc.existingClientSecretName }}
|
|
||||||
key: {{ .Values.oidc.existingClientIdKey }}
|
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.oidc.clientId }}
|
|
||||||
{{- end }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_CLIENT_SECRET
|
|
||||||
{{- if and .Values.oidc.existingClientSecretName .Values.oidc.existingClientSecretKey }}
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ .Values.oidc.existingClientSecretName }}
|
|
||||||
key: {{ .Values.oidc.existingClientSecretKey }}
|
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.oidc.clientSecret }}
|
|
||||||
{{- end }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_CLAIM_NAME
|
|
||||||
value: {{ .Values.oidc.claimName }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_CLAIM_PREFIX
|
|
||||||
value: {{ .Values.oidc.claimPrefix }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_SCOPES
|
|
||||||
value: {{ .Values.oidc.scopes }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_COMMENT
|
|
||||||
value: {{ .Values.oidc.comment }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_REDIRECT_URI
|
|
||||||
value: {{ .Values.oidc.redirectUri }}
|
|
||||||
- name: MINIO_IDENTITY_OPENID_DISPLAY_NAME
|
|
||||||
value: {{ .Values.oidc.displayName }}
|
|
||||||
{{- end }}
|
|
||||||
{{- range $key, $val := .Values.environment }}
|
{{- range $key, $val := .Values.environment }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
value: {{ tpl $val $ | quote }}
|
value: {{ tpl $val $ | quote }}
|
||||||
@@ -199,7 +175,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector: {{- toYaml . | nindent 8 }}
|
nodeSelector: {{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "silo.imagePullSecrets" . | indent 6 }}
|
{{- include "silo.imagePullSecrets" . | indent 6 }}
|
||||||
{{- with .Values.affinity }}
|
{{- with .Values.affinity }}
|
||||||
@@ -227,6 +203,7 @@ spec:
|
|||||||
{{- toYaml .Values.extraVolumes | nindent 8 }}
|
{{- toYaml .Values.extraVolumes | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.persistence.enabled }}
|
{{- if .Values.persistence.enabled }}
|
||||||
|
{{- $storageClass := include "silo.storageClass" . }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
{{- if gt $drivesPerNode 1 }}
|
{{- if gt $drivesPerNode 1 }}
|
||||||
{{- range $diskId := until $drivesPerNode}}
|
{{- range $diskId := until $drivesPerNode}}
|
||||||
@@ -239,8 +216,8 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ {{ $accessMode | quote }} ]
|
accessModes: [ {{ $accessMode | quote }} ]
|
||||||
{{- if $storageClass }}
|
{{- with $storageClass }}
|
||||||
storageClassName: {{ $storageClass }}
|
{{- . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@@ -256,8 +233,8 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ {{ $accessMode | quote }} ]
|
accessModes: [ {{ $accessMode | quote }} ]
|
||||||
{{- if $storageClass }}
|
{{- with $storageClass }}
|
||||||
storageClassName: {{ $storageClass }}
|
{{- . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|||||||
+30
-3
@@ -37,6 +37,9 @@ additionalLabels: {}
|
|||||||
## Additional annotations to include with deployment or statefulset
|
## Additional annotations to include with deployment or statefulset
|
||||||
additionalAnnotations: {}
|
additionalAnnotations: {}
|
||||||
|
|
||||||
|
## Common labels applied to all resources
|
||||||
|
commonLabels: {}
|
||||||
|
|
||||||
## Typically the deployment/statefulset includes checksums of secrets/config,
|
## Typically the deployment/statefulset includes checksums of secrets/config,
|
||||||
## So that when these change on a subsequent helm install, the deployment/statefulset
|
## So that when these change on a subsequent helm install, the deployment/statefulset
|
||||||
## is restarted. This can result in unnecessary restarts under GitOps tooling such as
|
## is restarted. This can result in unnecessary restarts under GitOps tooling such as
|
||||||
@@ -92,6 +95,8 @@ runtimeClassName: ""
|
|||||||
##
|
##
|
||||||
rootUser: ""
|
rootUser: ""
|
||||||
rootPassword: ""
|
rootPassword: ""
|
||||||
|
## Evaluate rootUser and rootPassword as Helm templates when explicitly enabled.
|
||||||
|
tplRootCredentials: false
|
||||||
|
|
||||||
## Use existing Secret that store following variables:
|
## Use existing Secret that store following variables:
|
||||||
##
|
##
|
||||||
@@ -157,8 +162,8 @@ persistence:
|
|||||||
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
||||||
## GKE, AWS & OpenStack)
|
## GKE, AWS & OpenStack)
|
||||||
##
|
##
|
||||||
## Storage class of PV to bind. By default it looks for standard storage class.
|
## An unset value inherits global.storageClass for new claims. During upgrade,
|
||||||
## If the PV uses a different storage class, specify that here.
|
## existing claims retain their provisioned class.
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
volumeName: ""
|
volumeName: ""
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
@@ -358,6 +363,7 @@ makePolicyJob:
|
|||||||
enabled: false
|
enabled: false
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
|
containerSecurityContext: {}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
@@ -388,6 +394,7 @@ makeUserJob:
|
|||||||
enabled: false
|
enabled: false
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
|
containerSecurityContext: {}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
@@ -428,6 +435,7 @@ makeServiceAccountJob:
|
|||||||
enabled: false
|
enabled: false
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
|
containerSecurityContext: {}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
@@ -465,6 +473,7 @@ makeBucketJob:
|
|||||||
enabled: false
|
enabled: false
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
|
containerSecurityContext: {}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
@@ -483,6 +492,7 @@ customCommandJob:
|
|||||||
enabled: false
|
enabled: false
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
|
containerSecurityContext: {}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
@@ -510,6 +520,7 @@ postJob:
|
|||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
|
containerSecurityContext: {}
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
@@ -532,6 +543,9 @@ extraSecret: ~
|
|||||||
oidc:
|
oidc:
|
||||||
enabled: false
|
enabled: false
|
||||||
configUrl: "https://identity-provider-url/.well-known/openid-configuration"
|
configUrl: "https://identity-provider-url/.well-known/openid-configuration"
|
||||||
|
# Provide existing ConfigMap for the Config URL
|
||||||
|
existingConfigMapName: ""
|
||||||
|
existingConfigUrlKey: ""
|
||||||
clientId: "silo"
|
clientId: "silo"
|
||||||
clientSecret: ""
|
clientSecret: ""
|
||||||
# Provide existing client secret from the Kubernetes Secret resource, existing secret will have priority over `clientId` and/or `clientSecret``
|
# Provide existing client secret from the Kubernetes Secret resource, existing secret will have priority over `clientId` and/or `clientSecret``
|
||||||
@@ -540,7 +554,10 @@ oidc:
|
|||||||
existingClientSecretKey: ""
|
existingClientSecretKey: ""
|
||||||
claimName: "policy"
|
claimName: "policy"
|
||||||
scopes: "openid,profile,email"
|
scopes: "openid,profile,email"
|
||||||
redirectUri: "https://console-endpoint-url/oauth_callback"
|
# Legacy callback URL, including /oauth_callback, for existing installations.
|
||||||
|
redirectUri: ""
|
||||||
|
# Public Console base URL. An explicit environment.MINIO_BROWSER_REDIRECT_URL takes priority.
|
||||||
|
redirectUrl: ""
|
||||||
# Can leave empty
|
# Can leave empty
|
||||||
claimPrefix: ""
|
claimPrefix: ""
|
||||||
comment: ""
|
comment: ""
|
||||||
@@ -553,6 +570,12 @@ networkPolicy:
|
|||||||
flavor: kubernetes
|
flavor: kubernetes
|
||||||
# Allow external access to the Silo API.
|
# Allow external access to the Silo API.
|
||||||
allowExternal: true
|
allowExternal: true
|
||||||
|
# Additional from values to add to the Ingress
|
||||||
|
allowFrom: []
|
||||||
|
## E.X.
|
||||||
|
# - namespaceSelector:
|
||||||
|
# matchLabels:
|
||||||
|
# kubernetes.io/metadata.name: prometheus
|
||||||
## @params networkPolicy.egress configuration of the egress traffic
|
## @params networkPolicy.egress configuration of the egress traffic
|
||||||
egress:
|
egress:
|
||||||
## @param networkPolicy.egress.enabled When enabled, an egress network policy will be
|
## @param networkPolicy.egress.enabled When enabled, an egress network policy will be
|
||||||
@@ -604,6 +627,8 @@ metrics:
|
|||||||
public: true
|
public: true
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
# targetLabels for the ServiceMonitor
|
||||||
|
targetLabels: []
|
||||||
# for node metrics
|
# for node metrics
|
||||||
relabelConfigs: {}
|
relabelConfigs: {}
|
||||||
# for cluster metrics
|
# for cluster metrics
|
||||||
@@ -612,6 +637,8 @@ metrics:
|
|||||||
# metricRelabelings:
|
# metricRelabelings:
|
||||||
# - regex: (server|pod)
|
# - regex: (server|pod)
|
||||||
# action: labeldrop
|
# action: labeldrop
|
||||||
|
# Probe relabelingConfigs added to the probe target
|
||||||
|
probeRelabelingConfigs: []
|
||||||
namespace: ~
|
namespace: ~
|
||||||
# Scrape interval, for example `interval: 30s`
|
# Scrape interval, for example `interval: 30s`
|
||||||
interval: ~
|
interval: ~
|
||||||
|
|||||||
Reference in New Issue
Block a user