Skip to content

Commit

Permalink
Merge pull request #46 from z1cheng/fix_helm
Browse files Browse the repository at this point in the history
fix: image tag error in Helm
  • Loading branch information
elliotxx authored Jul 31, 2024
2 parents 4f90df1 + cbb87ad commit acaa214
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/karpor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v2
name: karpor
# The Chart Version
version: 0.5.5
version: 0.5.6
type: application
# The Application Version in the Chart
appVersion: 0.4.5
Expand Down
2 changes: 1 addition & 1 deletion charts/karpor/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Karpor Chart

![Version: 0.5.5](https://img.shields.io/badge/Version-0.5.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.4.5](https://img.shields.io/badge/AppVersion-0.4.5-informational?style=flat-square)
![Version: 0.5.6](https://img.shields.io/badge/Version-0.5.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.4.5](https://img.shields.io/badge/AppVersion-0.4.5-informational?style=flat-square)

A Helm chart for Karpor, a modern kubernetes visualization tool.

Expand Down
2 changes: 1 addition & 1 deletion charts/karpor/templates/_common.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ Real image.
*/}}
{{- define "karpor.realImage" -}}
{{- trimPrefix "/" (list (trimAll "/" .context.Values.registryProxy)
.repo | join "/") }}:{{ if .hasV }}v{{ end }}{{ default .context.Chart.AppVersion .tag }}
.repo | join "/") }}:{{ if .needV }}v{{ end }}{{ default .context.Chart.AppVersion .tag }}
{{- end -}}

2 changes: 1 addition & 1 deletion charts/karpor/templates/karpor-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
- --client-ca-file=/etc/karpor/ca.crt
command:
- /karpor
image: {{ include "karpor.realImage" (dict "context" . "repo" .Values.server.image.repo "tag" .Values.server.image.tag "hasV" true) }}
image: {{ include "karpor.realImage" (dict "context" . "repo" .Values.server.image.repo "tag" .Values.server.image.tag "needV" (not (hasPrefix "v" .Values.server.image.tag))) }}
imagePullPolicy: {{ .Values.global.image.imagePullPolicy }}
name: karpor-server
ports:
Expand Down
2 changes: 1 addition & 1 deletion charts/karpor/templates/karpor-syncer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
env:
- name: KUBECONFIG
value: /etc/karpor/config
image: {{ include "karpor.realImage" (dict "context" . "repo" .Values.syncer.image.repo "tag" .Values.syncer.image.tag "hasV" true) }}
image: {{ include "karpor.realImage" (dict "context" . "repo" .Values.syncer.image.repo "tag" .Values.syncer.image.tag "needV" (not (hasPrefix "v" .Values.syncer.image.tag))) }}
imagePullPolicy: {{ .Values.global.image.imagePullPolicy }}
name: karpor-syncer
ports:
Expand Down

0 comments on commit acaa214

Please sign in to comment.