mirror of
https://gitea.com/gitea/helm-chart
synced 2025-10-06 00:43:12 +02:00
fake change
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
||||
version: v3.12.1
|
||||
|
||||
- name: Install python
|
||||
run: apt update -y && apt install -y python3 python3-venv python3-pip
|
||||
run: apt update -y && apt install -y python3 python3-venv python3-pip docker.io
|
||||
|
||||
- name: Set up chart-testing
|
||||
uses: https://github.com/helm/chart-testing-action@v2.4.0
|
||||
@@ -31,13 +31,13 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Run chart-testing (lint)
|
||||
if: steps.list-changed.outputs.changed == 'true'
|
||||
# if: steps.list-changed.outputs.changed == 'true'
|
||||
run: ct lint --target-branch main
|
||||
|
||||
- name: Create kind cluster
|
||||
if: steps.list-changed.outputs.changed == 'true'
|
||||
# if: steps.list-changed.outputs.changed == 'true'
|
||||
uses: https://github.com/helm/kind-action@v1.7.0
|
||||
|
||||
- name: Run chart-testing (install)
|
||||
if: steps.list-changed.outputs.changed == 'true'
|
||||
# if: steps.list-changed.outputs.changed == 'true'
|
||||
run: ct install --target-branch main
|
@@ -195,7 +195,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
|
||||
{{- range $key, $val := $values -}}
|
||||
{{- if ne $key "existingSecret" -}}
|
||||
{{- printf "--%s %s " ($key | kebabcase) ($val | quote) -}}
|
||||
{{- printf "--%s %s " ($key | kebabcase) ($val | squote) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
@@ -51,6 +51,29 @@ stringData:
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
### initial creation of persistent secrets
|
||||
if ![ -f ${GITEA_APP_INI} ]; then
|
||||
function env2ini::generate_initial_secrets() {
|
||||
# These environment variables will either be
|
||||
# - overwritten with user defined values,
|
||||
# - initially used to set up Gitea
|
||||
# Anyway, they won't harm existing app.ini files
|
||||
|
||||
export ENV_TO_INI__SECURITY__INTERNAL_TOKEN=$(gitea generate secret INTERNAL_TOKEN)
|
||||
export ENV_TO_INI__SECURITY__SECRET_KEY=$(gitea generate secret SECRET_KEY)
|
||||
export ENV_TO_INI__OAUTH2__JWT_SECRET=$(gitea generate secret JWT_SECRET)
|
||||
export ENV_TO_INI__SERVER__LFS_JWT_SECRET=$(gitea generate secret LFS_JWT_SECRET)
|
||||
|
||||
env2ini::log "...Initial secrets generated\n"
|
||||
}
|
||||
fi
|
||||
|
||||
# ensure a clean start
|
||||
if [ -f ${GITEA_APP_INI} ]; then
|
||||
rm $GITEA_APP_INI
|
||||
fi
|
||||
|
||||
|
||||
function env2ini::log() {
|
||||
printf "${1}\n"
|
||||
}
|
||||
|
@@ -1,17 +0,0 @@
|
||||
{{- if .Values.podDisruptionBudget -}}
|
||||
{{- if .Capabilities.APIVersions.Has "policy/v1" }}
|
||||
apiVersion: policy/v1
|
||||
{{- else }}
|
||||
apiVersion: policy/v1beta1
|
||||
{{- end }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ include "gitea.fullname" . }}
|
||||
labels:
|
||||
{{- include "gitea.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "gitea.selectorLabels" . | nindent 6 }}
|
||||
{{- toYaml .Values.podDisruptionBudget | nindent 2 }}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user