Skip to content

Commit

Permalink
[navi-async-matrix] netloc must start with scheme (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgivanov authored Sep 6, 2024
1 parent c419601 commit 5f09f13
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
6 changes: 6 additions & 0 deletions Breaking-Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 2GIS On-Premise Breaking-Changes

## [#.#.#]

### navi-async-matric

- `s3.publicNetloc` now MUST start with `http://` or `https://` scheme

## [1.27.0]

### catalog-api
Expand Down
16 changes: 8 additions & 8 deletions charts/navi-async-matrix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ See the [documentation](https://docs.2gis.com/en/on-premise/navigation/distance-
| Name | Description | Value |
| ------------------ | ----------- | ----------------------------------- |
| `image.repository` | Repository | `2gis-on-premise/navi-async-matrix` |
| `image.tag` | Tag | `1.10.3` |
| `image.tag` | Tag | `1.11.2` |
| `image.pullPolicy` | Pull Policy | `IfNotPresent` |

### Service account settings
Expand Down Expand Up @@ -187,13 +187,13 @@ See the [documentation](https://docs.2gis.com/en/on-premise/navigation/distance-

### S3-compatible storage settings

| Name | Description | Value |
| ----------------- | ----------------------------------------------------------------- | ----- |
| `s3.host` | S3 endpoint URL, ex: http://async-matrix-s3.host. **Required** | `""` |
| `s3.bucket` | S3 bucket name. **Required** | `""` |
| `s3.accessKey` | S3 access key for accessing the bucket. **Required** | `""` |
| `s3.secretKey` | S3 secret key for accessing the bucket. **Required** | `""` |
| `s3.publicNetloc` | Announce proxy URL for S3 results instead of s3.url if not empty. | `nil` |
| Name | Description | Value |
| ----------------- | ---------------------------------------------------------------------------------------------- | ----- |
| `s3.host` | S3 endpoint URL, ex: http://async-matrix-s3.host. **Required** | `""` |
| `s3.bucket` | S3 bucket name. **Required** | `""` |
| `s3.accessKey` | S3 access key for accessing the bucket. **Required** | `""` |
| `s3.secretKey` | S3 secret key for accessing the bucket. **Required** | `""` |
| `s3.publicNetloc` | Announce proxy URL for S3 results instead of s3.url if not empty. Must start with `http(s)://` | `""` |

### API keys service

Expand Down
7 changes: 7 additions & 0 deletions charts/navi-async-matrix/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,14 @@ spec:
- name: DM_ASYNC_SERVICE_LOGGER_SETTING__LEVEL
value: {{ .Values.dm.logLevel | quote }}
{{- if .Values.s3.publicNetloc }}
# DM_ASYNC_SERVICE_STORAGE_SETTING__S3_PUBLIC_NETLOC for < 1.11.0
# DM_ASYNC_SERVICE_STORAGE_SETTING__S3_PUBLIC_NETLOC_URL for >= 1.11.0
- name: DM_ASYNC_SERVICE_STORAGE_SETTING__S3_PUBLIC_NETLOC
value: {{ regexReplaceAllLiteral "^https?://" .Values.s3.publicNetloc "" | quote }}
{{- if not (regexMatch "^https?://" .Values.s3.publicNetloc) }}
{{- fail "s3.publicNetLoc must start with the scheme: `<scheme>://<netloc>[/]`" }}
{{- end }}
- name: DM_ASYNC_SERVICE_STORAGE_SETTING__S3_PUBLIC_NETLOC_URL
value: {{ .Values.s3.publicNetloc | quote }}
{{- end }}
- name: DM_ASYNC_SERVICE_KAFKA_CONSUMER_SETTING__KAFKA_CONSUMER_TASK_TOPIC
Expand Down
6 changes: 3 additions & 3 deletions charts/navi-async-matrix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ prometheusEnabled: true
image:
repository: 2gis-on-premise/navi-async-matrix
pullPolicy: IfNotPresent
tag: 1.10.3
tag: 1.11.2


# @section Service account settings
Expand Down Expand Up @@ -363,14 +363,14 @@ kafka:
# @param s3.bucket S3 bucket name. **Required**
# @param s3.accessKey S3 access key for accessing the bucket. **Required**
# @param s3.secretKey S3 secret key for accessing the bucket. **Required**
# @param s3.publicNetloc Announce proxy URL for S3 results instead of s3.url if not empty.
# @param s3.publicNetloc Announce proxy URL for S3 results instead of s3.url if not empty. Must start with `http(s)://`

s3:
host: ''
bucket: ''
accessKey: ''
secretKey: ''
publicNetloc:
publicNetloc: ''

# @skip bss.enabled
# @skip bss.url
Expand Down

0 comments on commit 5f09f13

Please sign in to comment.