mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-07 12:06:46 +03:00
Minor fixes
This commit is contained in:
@@ -6,31 +6,31 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "gitea-mirror.labels" . | nindent 4 }}
|
{{- include "gitea-mirror.labels" . | nindent 4 }}
|
||||||
data:
|
data:
|
||||||
NODE_ENV: {{ $gm.nodeEnv }}
|
NODE_ENV: {{ $gm.nodeEnv | quote }}
|
||||||
# Core configuration
|
# Core configuration
|
||||||
DATABASE_URL: {{ $gm.core.databaseUrl }}
|
DATABASE_URL: {{ $gm.core.databaseUrl | quote }}
|
||||||
BETTER_AUTH_SECRET: {{ $gm.core.be }}
|
BETTER_AUTH_SECRET: {{ $gm.core.be | quote }}
|
||||||
BETTER_AUTH_URL: {{ $gm.betterAuthSecret }}
|
BETTER_AUTH_URL: {{ $gm.betterAuthSecret | quote }}
|
||||||
# GitHub Config
|
# GitHub Config
|
||||||
GITHUB_USERNAME: {{ $gm.github.username }}
|
GITHUB_USERNAME: {{ $gm.github.username | quote }}
|
||||||
PRIVATE_REPOSITORIES: {{ $gm.privateRepositories }}
|
PRIVATE_REPOSITORIES: {{ $gm.privateRepositories | quote }}
|
||||||
MIRROR_STARRED: {{ $gm.mirror.starred }}
|
MIRROR_STARRED: {{ $gm.mirror.starred | quote }}
|
||||||
SKIP_FORKS: {{ $gm.github.skipForks }}
|
SKIP_FORKS: {{ $gm.github.skipForks | quote }}
|
||||||
SKIP_STARRED_ISSUES: {{ $gm.github.skipStarredIssues }}
|
SKIP_STARRED_ISSUES: {{ $gm.github.skipStarredIssues | quote }}
|
||||||
# Gitea Config
|
# Gitea Config
|
||||||
GITEA_URL: {{ $gm.gitea.url }}
|
GITEA_URL: {{ $gm.gitea.url | quote }}
|
||||||
GITEA_USERNAME: {{ $gm.gitea.username }}
|
GITEA_USERNAME: {{ $gm.gitea.username | quote }}
|
||||||
GITEA_ORGANIZATION: {{ $gm.gitea.organization }}
|
GITEA_ORGANIZATION: {{ $gm.gitea.organization | quote }}
|
||||||
GITEA_ORG_VISIBILITY: {{ $gm.gitea.visibility }}
|
GITEA_ORG_VISIBILITY: {{ $gm.gitea.visibility | quote }}
|
||||||
# Mirror Options
|
# Mirror Options
|
||||||
MIRROR_RELEASES: {{ $gm.mirror.releases }}
|
MIRROR_RELEASES: {{ $gm.mirror.releases | quote }}
|
||||||
MIRROR_WIKI: {{ $gm.mirror.wiki }}
|
MIRROR_WIKI: {{ $gm.mirror.wiki | quote }}
|
||||||
MIRROR_METADATA: {{ $gm.mirror.metadata }}
|
MIRROR_METADATA: {{ $gm.mirror.metadata | quote }}
|
||||||
MIRROR_ISSUES: {{ $gm.mirror.issues }}
|
MIRROR_ISSUES: {{ $gm.mirror.issues | quote }}
|
||||||
MIRROR_PULL_REQUESTS: {{ $gm.mirror.pullRequests }}
|
MIRROR_PULL_REQUESTS: {{ $gm.mirror.pullRequests | quote }}
|
||||||
# Automation
|
# Automation
|
||||||
SCHEDULE_ENABLED: {{ $gm.automation.schedule_enabled }}
|
SCHEDULE_ENABLED: {{ $gm.automation.schedule_enabled| quote }}
|
||||||
SCHEDULE_INTERVAL: {{ $gm.automation.schedule_interval }}
|
SCHEDULE_INTERVAL: {{ $gm.automation.schedule_interval | quote }}
|
||||||
# Cleanup
|
# Cleanup
|
||||||
CLEANUP_ENABLED: {{ $gm.cleanup.enabled }}
|
CLEANUP_ENABLED: {{ $gm.cleanup.enabled | quote }}
|
||||||
CLEANUP_INTERVAL: {{ $gm.cleanup.interval }}
|
CLEANUP_INTERVAL: {{ $gm.cleanup.interval | quote }}
|
||||||
|
|||||||
@@ -131,11 +131,9 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- if .Values.persistence.enabled }}
|
{{- if .Values.persistence.enabled }}
|
||||||
{{- if .Values.persistence.mount }}
|
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Values.persistence.claimName }}
|
claimName: {{ .Values.persistence.claimName }}
|
||||||
{{- end }}
|
|
||||||
{{- else if not .Values.persistence.enabled }}
|
{{- else if not .Values.persistence.enabled }}
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ spec:
|
|||||||
port: {{ .Values.service.port }}
|
port: {{ .Values.service.port }}
|
||||||
{{- with .Values.route.http.filters }}
|
{{- with .Values.route.http.filters }}
|
||||||
filters:
|
filters:
|
||||||
{{ toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
---
|
---
|
||||||
@@ -72,6 +72,6 @@ spec:
|
|||||||
port: {{ .Values.service.port }}
|
port: {{ .Values.service.port }}
|
||||||
{{- with .Values.route.https.filters }}
|
{{- with .Values.route.https.filters }}
|
||||||
filters:
|
filters:
|
||||||
{{ toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ metadata:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- {{ .Values.persistence.accessModes }}
|
{{- toYaml .Values.persistence.accessModes | nindent 4 }}
|
||||||
{{- with .Values.persistence.storageClass }}
|
{{- with .Values.persistence.storageClass }}
|
||||||
storageClass: {{ . }}
|
storageClassName: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
{{- with .Values.persistence.volumeName }}
|
{{- with .Values.persistence.volumeName }}
|
||||||
|
|||||||
@@ -86,7 +86,8 @@ persistence:
|
|||||||
create: true
|
create: true
|
||||||
claimName: gitea-mirror-storage
|
claimName: gitea-mirror-storage
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
accessMode: ReadWriteOnce
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user