diff --git a/Cargo.lock b/Cargo.lock index a905b57..6b9895b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -878,7 +878,7 @@ dependencies = [ [[package]] name = "gitvote" -version = "1.4.0" +version = "1.5.0" dependencies = [ "anyhow", "askama", diff --git a/Cargo.toml b/Cargo.toml index c319252..3052fda 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gitvote" description = "GitVote server" -version = "1.4.0" +version = "1.5.0" license = "Apache-2.0" edition = "2024" rust-version = "1.90.0" diff --git a/charts/gitvote/Chart.yaml b/charts/gitvote/Chart.yaml index ed92f73..77eccd1 100644 --- a/charts/gitvote/Chart.yaml +++ b/charts/gitvote/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: gitvote description: GitVote is a GitHub application that allows holding a vote on issues and pull requests type: application -version: 1.4.1 -appVersion: 1.4.0 +version: 1.5.0 +appVersion: 1.5.0 kubeVersion: ">= 1.19.0-0" home: https://gitvote.dev icon: https://raw.githubusercontent.com/cncf/gitvote/main/docs/logo/logo.png @@ -25,25 +25,27 @@ annotations: artifacthub.io/category: skip-prediction artifacthub.io/changes: | - kind: added - description: Minimum wait support to close on passing + description: Audit page - kind: added - description: Display percentage of voters against the vote + description: Extra location for config: .github directory + - kind: added + description: Some tests for templates - kind: changed - description: Migrate service config to figment + description: Improve vote labeling - kind: changed - description: Some refactoring in votes processor + description: Move images to ghcr.io - kind: changed - description: Bump Alpine to 3.21.0 + description: Bump Alpine to 3.22.2 - kind: changed - description: Bump Rust to 1.83 + description: Bump Rust to 1.90 - kind: changed description: Upgrade dependencies artifacthub.io/containsSecurityUpdates: "true" artifacthub.io/images: | - name: dbmigrator - image: ghcr.io/cncf/gitvote/dbmigrator:v1.4.1 + image: ghcr.io/cncf/gitvote/dbmigrator:v1.5.0 - name: gitvote - image: ghcr.io/cncf/gitvote/server:v1.4.1 + image: ghcr.io/cncf/gitvote/server:v1.5.0 artifacthub.io/links: | - name: source url: https://github.com/cncf/gitvote diff --git a/charts/gitvote/templates/gitvote_deployment.yaml b/charts/gitvote/templates/gitvote_deployment.yaml index 7aa7cc3..df412c4 100644 --- a/charts/gitvote/templates/gitvote_deployment.yaml +++ b/charts/gitvote/templates/gitvote_deployment.yaml @@ -28,7 +28,9 @@ spec: - {{- include "chart.checkDbIsReadyInitContainer" . | nindent 10 }} {{- if .Release.IsInstall }} - name: check-dbmigrator-run - image: "bitnami/kubectl:{{ template "chart.KubernetesVersion" . }}" + {{ $kubeVersion := include "chart.KubernetesVersion" . }} + {{ $kubectlImageVersion := ternary "1.33" $kubeVersion (semverCompare ">=1.34.0-0" (printf "%s.0" $kubeVersion)) }} + image: "docker.io/bitnamilegacy/kubectl:{{ $kubectlImageVersion }}" imagePullPolicy: IfNotPresent command: ['kubectl', 'wait', '--namespace={{ .Release.Namespace }}', '--for=condition=complete', 'job/{{ include "chart.resourceNamePrefix" . }}dbmigrator-install', '--timeout=60s'] {{- end }}