Skip to content

Commit

Permalink
fix(helm-charts): helm-chart iam init 问题 #4811
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 authored and iSecloud committed Jun 7, 2024
1 parent da638fa commit 624efce
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions helm-charts/bk-dbm/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ dependencies:
version: 9.15.2
- name: reloader
repository: https://stakater.github.io/stakater-charts
version: 1.0.95
version: 1.0.105
- name: grafana
repository: file://./charts/grafana
version: 7.9.8
- name: dbm
repository: file://charts/dbm
version: 0.1.37
version: 0.1.38
- name: dbconfig
repository: file://charts/dbconfig
version: 0.1.13
Expand Down Expand Up @@ -56,5 +56,5 @@ dependencies:
- name: backup-consumer
repository: file://charts/backup-consumer
version: 0.0.3
digest: sha256:aee792d18a336c888e42616e83c27b4f015baf04f9fd63c266fe0a5bf21460a3
generated: "2024-05-10T21:15:46.7211+08:00"
digest: sha256:0e1a3f01fa52e53dc8f1e99aa53066cfd0690c7a191d992426a5386f32a799c5
generated: "2024-06-06T18:27:24.419219+08:00"
6 changes: 3 additions & 3 deletions helm-charts/bk-dbm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
- condition: dbm.enabled
name: dbm
repository: file://charts/dbm
version: 0.1.37
version: 0.1.38
- condition: dbconfig.enabled
name: dbconfig
repository: file://charts/dbconfig
Expand Down Expand Up @@ -79,5 +79,5 @@ dependencies:
description: A Helm chart for bk-dbm
name: bk-dbm
type: application
version: 1.4.0-alpha.53
appVersion: 1.4.0-alpha.53
version: 1.4.0-alpha.54
appVersion: 1.4.0-alpha.54
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/dbm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: 1.4.0-alpha.873
description: A Helm chart for dbm
name: dbm
type: application
version: 0.1.37
version: 0.1.38
4 changes: 4 additions & 0 deletions helm-charts/bk-dbm/charts/dbm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ environment variables
{{- printf "%s-%s-%d" (include "dbm.fullname" .) "db-ssl-init" .Release.Revision }}
{{- end }}

{{- define "dbm.iamInitJobName" -}}
{{- printf "%s-%s-%d" (include "dbm.fullname" .) "db-iam-init" .Release.Revision }}
{{- end }}

{{- define "dbm.bknoticeInitJobName" -}}
{{- printf "%s-%s-%d" (include "dbm.fullname" .) "db-notice-init" .Release.Revision }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "dbm.sslInitJobName" . }}
name: {{ include "dbm.iamInitJobName" . }}
labels:
{{- include "dbm.labels" . | nindent 4 }}
spec:
Expand Down

0 comments on commit 624efce

Please sign in to comment.