Skip to content

Commit

Permalink
WAPI-23578 Remove configurable s3 bucket for styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Gopanenko Pavel committed Aug 20, 2024
1 parent c5b60ac commit f7f3e6f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
2 changes: 2 additions & 0 deletions bitnami-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"tags": {
"param": "@param",
"section": "@section",
"descriptionStart": "@descriptionStart",
"descriptionEnd": "@descriptionEnd",
"skip": "@skip",
"extra": "@extra"
},
Expand Down
25 changes: 13 additions & 12 deletions charts/styles-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,19 @@ Use this Helm chart to deploy API Styles service, which is a part of 2GIS's [On-
| `postgres.username` | PostgreSQL username. **Required** | `""` |
| `postgres.password` | PostgreSQL password. **Required** | `""` |

### S3 like storage access settings

| Name | Description | Value |
| -------------------- | ----------------------------------------------------------------------------------- | -------- |
| `s3.endpoint` | S3 endpoint as `host|ip:port`. **Required** | `""` |
| `s3.accessKey` | S3 access key. **Required** | `""` |
| `s3.secretKey` | S3 secret key. **Required** | `""` |
| `s3.bucket` | S3 bucket name. **Required** | `styles` |
| `s3.publicDomain` | S3 public access domain. **Required** | `""` |
| `s3.connectTimeout` | S3 management client connection timeout. If not specified, the default value is 3s. | `3s` |
| `s3.requestTimeout` | S3 management client request timeout. If not specified, the default value is 30s. | `5s` |
| `s3.responseTimeout` | S3 management client response timeout. If not specified, the default value is 3s. | `5s` |
### S3 like storage access settings.

Requires the `styles` bucket in S3 storage.

| Name | Description | Value |
| -------------------- | ----------------------------------------------------------------------------------- | ----- |
| `s3.endpoint` | S3 endpoint as `host|ip:port`. **Required** | `""` |
| `s3.accessKey` | S3 access key. **Required** | `""` |
| `s3.secretKey` | S3 secret key. **Required** | `""` |
| `s3.publicDomain` | S3 public access domain. **Required** | `""` |
| `s3.connectTimeout` | S3 management client connection timeout. If not specified, the default value is 3s. | `3s` |
| `s3.requestTimeout` | S3 management client request timeout. If not specified, the default value is 30s. | `5s` |
| `s3.responseTimeout` | S3 management client response timeout. If not specified, the default value is 3s. | `5s` |

### customCAs **Custom Certificate Authority**

Expand Down
2 changes: 1 addition & 1 deletion charts/styles-api/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
- name: MGS_S3_ENDPOINT
value: "{{ required "A valid .Values.s3.endpoint required" .Values.s3.endpoint }}"
- name: MGS_S3_BUCKET
value: "{{ .Values.s3.bucket }}"
value: "styles"
- name: MGS_S3_PUBLIC_DOMAIN
value: "{{ .Values.s3.publicDomain }}"
- name: MGS_S3_CONNECT_TIMEOUT
Expand Down
8 changes: 5 additions & 3 deletions charts/styles-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,17 @@ postgres:
username: ''
password: ''

# @section S3 like storage access settings
# @section S3 like storage access settings.

s3:

# @descriptionStart
# Requires the `styles` bucket in S3 storage.
# @descriptionEnd

# @param s3.endpoint S3 endpoint as `host|ip:port`. **Required**
# @param s3.accessKey S3 access key. **Required**
# @param s3.secretKey S3 secret key. **Required**
# @param s3.bucket S3 bucket name. **Required**
# @param s3.publicDomain S3 public access domain. **Required**
# @param s3.connectTimeout S3 management client connection timeout. If not specified, the default value is 3s.
# @param s3.requestTimeout S3 management client request timeout. If not specified, the default value is 30s.
Expand All @@ -228,7 +231,6 @@ s3:
endpoint: ''
accessKey: ''
secretKey: ''
bucket: styles
publicDomain: ''
connectTimeout: 3s
requestTimeout: 5s
Expand Down

0 comments on commit f7f3e6f

Please sign in to comment.