Skip to content

Commit

Permalink
Release 1.19.0 (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-a-v authored Feb 27, 2024
1 parent fb91e46 commit 52aef0b
Show file tree
Hide file tree
Showing 60 changed files with 829 additions and 118 deletions.
87 changes: 47 additions & 40 deletions Breaking-Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,34 @@
- Backward compatibility for citylens 1.3.0 is broken. Parameters `api.auth.publicKey` and `api.auth.algoritm` are replaced
with `api.auth.authServerUrl`, `api.auth.realm`, `api.auth.verifySsl`.


### license

- Backward compatibility for license v1 is broken. If you have a version lower than `1.9.1`, you need to upgrade first
to version `1.16.0` to get license v2 without downtime - after that you can upgrade to version `1.17.0`.
- Removed `fs` persistence type, now only `s3` is available. `persistence.type` is no more provided, old `persistence.s3`
settings now should be located under `persistence`.

```yaml
--- # old
persistence:
type: s3
s3:
...
```yaml
--- # old
persistence:
type: s3
s3:
...

--- # new
persistence:
...
```
--- # new
persistence:
...
```
### navi-back
- added integration with license service (v2), mandatory for recent navi-back versions
```yaml
license:
url: https://license
```
- renamed parameter naviback.ecaHost to naviback.ecaUrl
- `livenessProbeDelay` and `readinessProbeDelay` are ignored in favor of startup probes

Expand All @@ -49,14 +56,14 @@ persistence:

- Added new required dgctlStorage parameters

```yaml
dgctlStorage:
host: ''
bucket: keys
accessKey: ''
secretKey: ''
manifest: manifest.json
```
```yaml
dgctlStorage:
host: ''
bucket: keys
accessKey: ''
secretKey: ''
manifest: manifest.json
```

## [1.13.0]

Expand All @@ -77,14 +84,14 @@ dgctlStorage:
- Remove `hpa.scaleUpStabilizationWindowSeconds` and `.hpa.scaleDownStabilizationWindowSeconds`
- Add `hpa.behavior`

```yaml
hpa:
behavior:
scaleUp:
stabilizationWindowSeconds: 500
scaleDown:
stabilizationWindowSeconds: 600
```
```yaml
hpa:
behavior:
scaleUp:
stabilizationWindowSeconds: 500
scaleDown:
stabilizationWindowSeconds: 600
```

## [1.10.0]

Expand All @@ -99,19 +106,19 @@ hpa:
- Added `license.type`
- Added `persistence`

```yaml
persistence:
type: s3
fs:
storage: 10Mi
storageClassName: ''
s3:
host: ''
bucket: ''
root: ''
accessKey: ''
secretKey: ''
```
```yaml
persistence:
type: s3
fs:
storage: 10Mi
storageClassName: ''
s3:
host: ''
bucket: ''
root: ''
accessKey: ''
secretKey: ''
```

## [1.7.6]

Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# 2GIS On-Premise Changelog

## [1.19.0] (2024-02-27)
#### Images
```
mapgl-js-api
- mapgl:1.42.0
+ mapgl:1.45.1
navi-back
- navi-back:7.15.1.4
+ navi-back:7.15.2.4
navi-restrictions
- navi-restrictions-api:1.0.0
+ navi-restrictions-api:1.0.1
platform
- platform-ui:0.5.5
+ platform-ui:0.8.1
pro-api
- pro-api:1.1.79
+ pro-api:1.5.0
- pro-importer:1.1.79
+ pro-importer:1.5.0
+ pro-importer:1.5.0
- pro-permissions-api:1.1.79
+ pro-permissions-api:1.5.0
pro-ui
- pro-ui:1.7.5
+ pro-ui:1.9.0
```

## [1.18.0] (2024-01-24)
#### Images
```
Expand Down
2 changes: 1 addition & 1 deletion charts/catalog-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: catalog-api
type: application
description: A Helm chart for Kubernetes to deploy Catalog APIs

version: 1.18.0
version: 1.19.0
appVersion: 3.600.0

maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/citylens/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: citylens
type: application
description: A Helm chart for Kubernetes to deploy Citylens service

version: 1.18.0
version: 1.19.0
appVersion: 1.4.1

maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/dgtt/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: dgtt
description: DGTT Helm chart for Kubernetes
type: application

version: 1.18.0
version: 1.19.0
appVersion: 0.2.27-b188673e09

maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/floors-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: floors-api
description: Helm for floors service
type: application

version: 1.18.0
version: 1.19.0
appVersion: 1.0.4

maintainers:
Expand Down
8 changes: 8 additions & 0 deletions charts/generic-chart/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.*
*~
*.tmproj
# non packaged files
resources/
11 changes: 11 additions & 0 deletions charts/generic-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v2
name: generic-chart
description: Generic library Helm chart for 2Gis
type: library
keywords:
- library
version: 1.19.0
maintainers:
- name: 2gis
url: https://github.com/2gis
email: on-premise@2gis.com
116 changes: 116 additions & 0 deletions charts/generic-chart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# generic-chart

Library Chart with common templates.

## Getting started

Add dependency to a subject chart:

```yml
dependencies:
- name: generic-chart
version: "*"
repository: file://../generic-chart
```
Include templates as-is, e.g. VPA:
```go
{{- template "generic-chart.vpa.tpl" . }}
```

For other templates re-use named definitions as follows:

* wherever common things expected use named definitions from this library:

```go
{{ include "generic-chart.fullname" . }}
```

* release fullname: `generic-chart.fullname`
* list of labels: `generic-chart.labels`
* selectors: `generic-chart.selectorLabels`
* service account: `generic-chart.serviceAccountName`
* common "functions":
* pass text through template renderer: `tplvalues.render`

## Configuration

Below are supported parameters.

### Values

#### Common settings

| Name | Description | Value |
| ------------------ | --------------------------------------------------------------------------- | ----- |
| `nameOverride` | Base name to use in all the Kubernetes entities deployed by this chart. | `""` |
| `fullnameOverride` | Base fullname to use in all the Kubernetes entities deployed by this chart. | `""` |

#### Deployment settings

| Name | Description | Value |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ----- |
| `labels` | Custom labels to set to Deployment resource | `{}` |
| `annotations` | Custom annotations to set to Deployment resource | `{}` |
| `replicaCount` | A replica count for the pod | `1` |
| `revisionHistoryLimit` | Number of replica sets to keep for deployment rollbacks | `1` |
| `strategy` | Deployment [strategy](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy). Undergoes template rendering | `{}` |
| `podAnnotations` | Kubernetes [pod annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) | `{}` |
| `imagePullSecrets` | Kubernetes image pull secrets | `[]` |
| `podSecurityContext` | Kubernetes [pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) | `{}` |
| `priorityClassName` | Kubernetes [Pod Priority](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) class name | `""` |
| `terminationGracePeriodSeconds` | Maximum time allowed for graceful shutdown | `60` |
| `nodeSelector` | Kubernetes [node selectors](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) | `{}` |
| `affinity` | Kubernetes pod [affinity settings](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity) | `{}` |
| `tolerations` | Kubernetes [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) settings | `[]` |

#### Kubernetes [Horizontal Pod Autoscaling](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/) settings

| Name | Description | Value |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `hpa.enabled` | If HPA is enabled for the service | `false` |
| `hpa.minReplicas` | Lower limit for the number of replicas to which the autoscaler can scale down | `1` |
| `hpa.maxReplicas` | Upper limit for the number of replicas to which the autoscaler can scale up | `100` |
| `hpa.scaleDown` | Scale-down settings structure | `{}` |
| `hpa.scaleUp` | Scale-up settings structure | `{}` |
| `hpa.targetCPUUtilizationPercentage` | Target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used | `80` |
| `hpa.targetMemoryUtilizationPercentage` | Target average memory utilization (represented as a percentage of requested memory) over all the pods; if not specified the default autoscaling policy will be used | `""` |

#### Kubernetes [Vertical Pod Autoscaling](https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/README.md) settings

| Name | Description | Value |
| ----------------------- | ----------------------------------------------------------------------------------------------------------- | ------- |
| `vpa.enabled` | If VPA is enabled for the service | `false` |
| `vpa.updateMode` | VPA [update mode](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#quick-start) | `Auto` |
| `vpa.containerName` | Name of a container to measure utilization for | `""` |
| `vpa.minAllowed.cpu` | Lower limit for the number of CPUs to which the autoscaler can scale down | |
| `vpa.minAllowed.memory` | Lower limit for the RAM size to which the autoscaler can scale down | |
| `vpa.maxAllowed.cpu` | Upper limit for the number of CPUs to which the autoscaler can scale up | |
| `vpa.maxAllowed.memory` | Upper limit for the RAM size to which the autoscaler can scale up | |

#### Kubernetes [Pod Disruption Budget](https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets) settings

| Name | Description | Value |
| -------------------- | ---------------------------------------------------- | ------- |
| `pdb.enabled` | If PDB is enabled for the service. | `false` |
| `pdb.minAvailable` | How many pods must be available after the eviction. | `""` |
| `pdb.maxUnavailable` | How many pods can be unavailable after the eviction. | `1` |

#### Service settings

| Name | Description | Value |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| `service.labels` | Kubernetes [service labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/). Undergoes template rendering | `{}` |
| `service.annotations` | Kubernetes [service annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/). Undergoes template rendering | `{}` |
| `service.type` | Kubernetes [service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types). | `ClusterIP` |
| `service.clusterIP` | Controls Service cluster IP allocation. Cannot be changed after resource creation. | `""` |
| `service.port` | Service port. | `80` |

#### Service account settings

| Name | Description | Value |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------ |
| `serviceAccount.create` | Specifies whether a service account should be created. | `true` |
| `serviceAccount.annotations` | Annotations to add to the service account. | `{}` |
| `serviceAccount.name` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. | `""` |
Loading

0 comments on commit 52aef0b

Please sign in to comment.