diff --git a/CHANGELOG.md b/CHANGELOG.md index f9b5ee1..5a5f3cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v4.3.0 (2022-10-06) +### Feature +- Support Kube `HPAScaleToZero` feature gate, see [here](https://github.com/wiremind/wiremind-kubernetes/releases/tag/v7.0.0) for more details. + ## v4.2.0 (2022-08-02) ### Feature - Added an environment variable `CHARTREUSE_ALEMBIC_CONFIG_FILE_PATH` to customise alembic configuration file path diff --git a/VERSION b/VERSION index 6aba2b2..8089590 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.2.0 +4.3.0 diff --git a/example/helm-chart/my-example-chart/Chart.lock b/example/helm-chart/my-example-chart/Chart.lock deleted file mode 100644 index 1042761..0000000 --- a/example/helm-chart/my-example-chart/Chart.lock +++ /dev/null @@ -1,9 +0,0 @@ -dependencies: -- name: postgresql - repository: https://charts.helm.sh/stable - version: 8.6.3 -- name: chartreuse - repository: https://wiremind.github.io/wiremind-helm-charts - version: 4.0.0 -digest: sha256:4b31db6118835e807d5a26332b7cbc4bc5ec8ff1bffba113db33d7e27116a043 -generated: "2021-10-04T15:54:40.411683+02:00" diff --git a/example/helm-chart/my-example-chart/templates/hpa.yaml b/example/helm-chart/my-example-chart/templates/hpa.yaml new file mode 100644 index 0000000..2f6952e --- /dev/null +++ b/example/helm-chart/my-example-chart/templates/hpa.yaml @@ -0,0 +1,14 @@ +apiVersion: autoscaling/v1 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "my-test-chart.fullname" . }} + labels: +{{ include "my-test-chart.selectorLabels" . | indent 4 }} +spec: + maxReplicas: 5 + minReplicas: 1 + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "my-test-chart.fullname" . }} + targetCPUUtilizationPercentage: 75 diff --git a/requirements.txt b/requirements.txt index 9a7f046..c0762b6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,37 +2,37 @@ # This file is autogenerated by pip-compile with python 3.8 # To update, run: # -# pip-compile --no-emit-index-url +# pip-compile --no-emit-index-url setup.py # -alembic==1.7.4 +alembic==1.8.1 # via chartreuse (setup.py) -cachetools==4.2.4 +cachetools==5.2.0 # via google-auth -certifi==2021.10.8 +certifi==2022.9.24 # via # kubernetes # requests -charset-normalizer==2.0.6 +charset-normalizer==2.1.1 # via requests -google-auth==2.3.0 +google-auth==2.12.0 # via kubernetes -greenlet==1.1.2 +greenlet==1.1.3 # via sqlalchemy -idna==3.2 +idna==3.4 # via requests -importlib-metadata==4.8.1 +importlib-metadata==5.0.0 # via alembic -importlib-resources==5.2.2 +importlib-resources==5.9.0 # via alembic -kubernetes==18.20.0 +kubernetes==24.2.0 # via wiremind-kubernetes -mako==1.1.5 +mako==1.2.3 # via alembic -markupsafe==2.0.1 +markupsafe==2.1.1 # via mako -oauthlib==3.1.1 +oauthlib==3.2.1 # via requests-oauthlib -psycopg2==2.9.1 +psycopg2==2.9.3 # via chartreuse (setup.py) pyasn1==0.4.8 # via @@ -42,31 +42,32 @@ pyasn1-modules==0.2.8 # via google-auth python-dateutil==2.8.2 # via kubernetes -pyyaml==5.4.1 +pyyaml==6.0 # via kubernetes -requests==2.26.0 +requests==2.28.1 # via # kubernetes # requests-oauthlib -requests-oauthlib==1.3.0 +requests-oauthlib==1.3.1 # via kubernetes -rsa==4.7.2 +rsa==4.9 # via google-auth six==1.16.0 # via + # google-auth # kubernetes # python-dateutil -sqlalchemy==1.4.25 +sqlalchemy==1.4.41 # via alembic -urllib3==1.26.7 +urllib3==1.26.12 # via # kubernetes # requests -websocket-client==1.2.1 +websocket-client==1.4.1 # via kubernetes -wiremind-kubernetes==6.3.5 +wiremind-kubernetes==7.0.0 # via chartreuse (setup.py) -zipp==3.6.0 +zipp==3.8.1 # via # importlib-metadata # importlib-resources diff --git a/setup.py b/setup.py index 6a9f543..f64cbd6 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ install_requires=[ "alembic==1.*", "psycopg2==2.*", - "wiremind-kubernetes==6.*,>=6.3.5", + "wiremind-kubernetes~=7.0", ], extras_require={ "dev": extra_require_dev,