Skip to content

Commit

Permalink
fix: wrong semverCompare usage in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Sep 11, 2024
1 parent 3f79664 commit 384bfc0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/steadybit-extension-host/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-host
description: Steadybit host extension Helm chart for Kubernetes.
version: 1.1.20
version: 1.1.21
appVersion: v1.2.21
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
4 changes: 2 additions & 2 deletions charts/steadybit-extension-host/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
{{- if semverCompare "<1.30" .Capabilities.KubeVersion.Version}}
{{- if semverCompare "<1.30-0" .Capabilities.KubeVersion.Version}}
"container.apparmor.security.beta.kubernetes.io/{{ include "extensionlib.names.name" . }}": unconfined
{{- end }}
{{- include "extensionlib.annotation" (list . .Values.containerPorts.http (list "ACTION" "DISCOVERY") ) | nindent 8 }}
Expand Down Expand Up @@ -111,7 +111,7 @@ spec:
path: /health/readiness
port: {{ .Values.containerPorts.health }}
securityContext:
{{- if semverCompare ">=1.30" .Capabilities.KubeVersion.Version}}
{{- if semverCompare ">=1.30-0" .Capabilities.KubeVersion.Version}}
appArmorProfile:
type: Unconfined
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/steadybit-extension-host/tests/daemonset_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tests:
- it: manifest should match snapshot with appArmorProfile for k8s >= 1.30
capabilities:
majorVersion: 1
minorVersion: 30
minorVersion: 30.3-gke.1639000
asserts:
- matchSnapshot: { }
- it: manifest should match snapshot using podAnnotations, podLabels and resources
Expand Down

0 comments on commit 384bfc0

Please sign in to comment.