Skip to content

Commit

Permalink
Merge pull request #363 from becitsthere/master
Browse files Browse the repository at this point in the history
Correctly compare version with pre-release tag
  • Loading branch information
becitsthere authored Jan 26, 2024
2 parents 266cad5 + a9ee888 commit caa31c7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/core/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: core
apiVersion: v1
version: 2.7.0
version: 2.7.1
appVersion: 5.2.4-s1
description: Helm chart for NeuVector's core services
home: https://neuvector.com
Expand Down
2 changes: 1 addition & 1 deletion charts/core/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $pre530 := false -}}
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+" .Values.tag }}
{{- $pre530 = (semverCompare "<5.2.10" .Values.tag) -}}
{{- $pre530 = (semverCompare "<5.2.10-0" .Values.tag) -}}
{{- end }}
{{- if .Values.controller.enabled -}}
{{- if (semverCompare ">=1.9-0" (substr 1 -1 .Capabilities.KubeVersion.GitVersion)) }}
Expand Down
2 changes: 1 addition & 1 deletion charts/core/templates/enforcer-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $pre530 := false -}}
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+" .Values.tag }}
{{- $pre530 = (semverCompare "<5.2.10" .Values.tag) -}}
{{- $pre530 = (semverCompare "<5.2.10-0" .Values.tag) -}}
{{- end }}
{{- $runtimePath := "" -}}
{{- if .Values.runtimePath }}
Expand Down
2 changes: 1 addition & 1 deletion charts/crd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: crd
apiVersion: v1
version: 2.7.0
version: 2.7.1
appVersion: 5.2.4-s1
description: Helm chart for NeuVector's CRD services
home: https://neuvector.com
Expand Down
2 changes: 1 addition & 1 deletion charts/monitor/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: monitor
apiVersion: v1
version: 2.7.0
version: 2.7.1
appVersion: 5.2.4-s1
description: Helm chart for NeuVector monitor services
home: https://neuvector.com
Expand Down
2 changes: 1 addition & 1 deletion test/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestControllerDeploymentPre53(t *testing.T) {

options := &helm.Options{
SetValues: map[string]string{
"tag": "5.2.4",
"tag": "5.2.4-s1",
},
}

Expand Down

0 comments on commit caa31c7

Please sign in to comment.