Skip to content

Commit

Permalink
Merge pull request #76 from zerok8s/configurable-region
Browse files Browse the repository at this point in the history
add storage `region` option to `values.yaml`
  • Loading branch information
vitalif authored Feb 12, 2024
2 parents 995a1de + 075acce commit c065096
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/helm/csi-s3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The following table lists all configuration parameters and their default values.
| `secret.accessKey` | S3 Access Key | |
| `secret.secretKey` | S3 Secret Key | |
| `secret.endpoint` | Endpoint | https://storage.yandexcloud.net |
| `secret.region` | Region | |
| `tolerations.all` | Tolerate all taints by the CSI-S3 node driver (mounter) | false |
| `tolerations.node` | Custom tolerations for the CSI-S3 node driver (mounter) | [] |
| `tolerations.controller` | Custom tolerations for the CSI-S3 controller (provisioner) | [] |
9 changes: 9 additions & 0 deletions deploy/helm/csi-s3/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ user_values:
ru: Адрес S3-сервиса, который будет использоваться.
string_value:
default_value: "https://storage.yandexcloud.net"
- name: secret.region
title:
en: S3 region
ru: S3 регион
description:
en: S3 service region to use
ru: Регион используемого сервиса S3.
string_value:
default_value: ""
- name: storageClass.mountOptions
title:
en: GeeseFS mount options
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/csi-s3/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ stringData:
secretAccessKey: {{ .Values.secret.secretKey }}
{{- end }}
endpoint: {{ .Values.secret.endpoint }}
{{- if .Values.secret.region }}
region: {{ .Values.secret.region }}
{{- end }}
{{- end -}}
2 changes: 2 additions & 0 deletions deploy/helm/csi-s3/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ secret:
secretKey: ""
# Endpoint
endpoint: https://storage.yandexcloud.net
# Region
region: ""

tolerations:
all: false
Expand Down

0 comments on commit c065096

Please sign in to comment.