From d44bcf306bcbdf92194bf89b1ec2e0da6f0b37f3 Mon Sep 17 00:00:00 2001 From: mason Date: Thu, 16 Jan 2025 00:15:24 +0800 Subject: [PATCH] Rollback registry to filesystem --- .../charts/registry/templates/configmap.yaml | 52 +++++++++---------- .../registry/templates/statefulset.yaml | 12 ++--- helm-chart/charts/csghub/values.yaml | 2 +- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/helm-chart/charts/csghub/charts/registry/templates/configmap.yaml b/helm-chart/charts/csghub/charts/registry/templates/configmap.yaml index 12c8c6e..417ad20 100644 --- a/helm-chart/charts/csghub/charts/registry/templates/configmap.yaml +++ b/helm-chart/charts/csghub/charts/registry/templates/configmap.yaml @@ -20,30 +20,30 @@ data: REGISTRY_AUTH: "htpasswd" REGISTRY_AUTH_HTPASSWD_REALM: "Registry Realm" REGISTRY_AUTH_HTPASSWD_PATH: "/auth/htpasswd" - REGISTRY_STORAGE: s3 - {{- if .Values.global.minio.enabled }} - {{- if .Values.global.ingress.tls.enabled }} - REGISTRY_STORAGE_S3_ENCRYPT: "true" - REGISTRY_STORAGE_S3_SECURE: "true" - {{- else }} - REGISTRY_STORAGE_S3_ENCRYPT: "false" - REGISTRY_STORAGE_S3_SECURE: "false" - {{- end }} - REGISTRY_STORAGE_S3_SECURE: "false" - REGISTRY_STORAGE_S3_REGIONENDPOINT: {{ include "minio.external.endpoint" . }} # used to generate download links for lfs files - REGISTRY_STORAGE_S3_BUCKET: "csghub-git" - REGISTRY_STORAGE_S3_REGION: "cn-north-1" - REGISTRY_STORAGE_S3_FORCEPATHSTYLE: "true" - {{- else }} - {{- with $conf.objectStore }} - REGISTRY_STORAGE_S3_REGIONENDPOINT: {{ .endpoint }} - REGISTRY_STORAGE_S3_ACCESSKEY: {{ .accessKey }} - REGISTRY_STORAGE_S3_SECRETKEY: {{ .accessSecret }} - REGISTRY_STORAGE_S3_BUCKET: {{ .bucket }} - REGISTRY_STORAGE_S3_REGION: {{ .region }} - REGISTRY_STORAGE_S3_ENCRYPT: {{ .encrypt }} - REGISTRY_STORAGE_S3_SECURE: {{ .secure }} - REGISTRY_STORAGE_S3_FORCEPATHSTYLE: {{ .pathStyle }} - {{- end }} - {{- end }} + REGISTRY_STORAGE: filesystem +{{/* {{- if .Values.global.minio.enabled }}*/}} +{{/* {{- if .Values.global.ingress.tls.enabled }}*/}} +{{/* REGISTRY_STORAGE_S3_ENCRYPT: "true"*/}} +{{/* REGISTRY_STORAGE_S3_SECURE: "true"*/}} +{{/* {{- else }}*/}} +{{/* REGISTRY_STORAGE_S3_ENCRYPT: "false"*/}} +{{/* REGISTRY_STORAGE_S3_SECURE: "false"*/}} +{{/* {{- end }}*/}} +{{/* REGISTRY_STORAGE_S3_SECURE: "false"*/}} +{{/* REGISTRY_STORAGE_S3_REGIONENDPOINT: {{ include "minio.external.endpoint" . }} # used to generate download links for lfs files*/}} +{{/* REGISTRY_STORAGE_S3_BUCKET: "csghub-git"*/}} +{{/* REGISTRY_STORAGE_S3_REGION: "cn-north-1"*/}} +{{/* REGISTRY_STORAGE_S3_FORCEPATHSTYLE: "true"*/}} +{{/* {{- else }}*/}} +{{/* {{- with $conf.objectStore }}*/}} +{{/* REGISTRY_STORAGE_S3_REGIONENDPOINT: {{ .endpoint }}*/}} +{{/* REGISTRY_STORAGE_S3_ACCESSKEY: {{ .accessKey }}*/}} +{{/* REGISTRY_STORAGE_S3_SECRETKEY: {{ .accessSecret }}*/}} +{{/* REGISTRY_STORAGE_S3_BUCKET: {{ .bucket }}*/}} +{{/* REGISTRY_STORAGE_S3_REGION: {{ .region }}*/}} +{{/* REGISTRY_STORAGE_S3_ENCRYPT: {{ .encrypt }}*/}} +{{/* REGISTRY_STORAGE_S3_SECURE: {{ .secure }}*/}} +{{/* REGISTRY_STORAGE_S3_FORCEPATHSTYLE: {{ .pathStyle }}*/}} +{{/* {{- end }}*/}} +{{/* {{- end }}*/}} {{- end }} \ No newline at end of file diff --git a/helm-chart/charts/csghub/charts/registry/templates/statefulset.yaml b/helm-chart/charts/csghub/charts/registry/templates/statefulset.yaml index da03414..23ea063 100644 --- a/helm-chart/charts/csghub/charts/registry/templates/statefulset.yaml +++ b/helm-chart/charts/csghub/charts/registry/templates/statefulset.yaml @@ -67,12 +67,12 @@ spec: - name: REGISTRY_HTTP_TLS_KEY value: "/opt/certs/x509/tls.key" {{- end }} - {{- if .Values.global.minio.enabled }} - - name: REGISTRY_STORAGE_S3_ACCESSKEY - value: "$(MINIO_ROOT_USER)" - - name: REGISTRY_STORAGE_S3_SECRETKEY - value: "$(MINIO_ROOT_PASSWORD)" - {{- end }} +{{/* {{- if .Values.global.minio.enabled }}*/}} +{{/* - name: REGISTRY_STORAGE_S3_ACCESSKEY*/}} +{{/* value: "$(MINIO_ROOT_USER)"*/}} +{{/* - name: REGISTRY_STORAGE_S3_SECRETKEY*/}} +{{/* value: "$(MINIO_ROOT_PASSWORD)"*/}} +{{/* {{- end }}*/}} {{- with $conf.environments }} {{- range $key, $value := . }} - name: {{ $key }} diff --git a/helm-chart/charts/csghub/values.yaml b/helm-chart/charts/csghub/values.yaml index 9b40b35..c656b09 100644 --- a/helm-chart/charts/csghub/values.yaml +++ b/helm-chart/charts/csghub/values.yaml @@ -101,7 +101,7 @@ global: ## TLS settings for ingress. tls: ## Enable or disable TLS. - enabled: false + enabled: true ## Determines if TLS certificates are auto-generated. ## When set to false, it implies that you will provide your own certificates. autoGenerated: false