Skip to content

Commit

Permalink
set the target version of lookup to dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixiongdu027 committed Aug 15, 2022
1 parent c2c3d27 commit 5fcb7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm/tarsframework/templates/tars.php.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $tt := lookup "k8s.tars.io/v1beta1" "TTemplate" .Release.Namespace "tars.php" -}}
{{ $tt := lookup (printf "k8s.tars.io/%s" .Chart.AppVersion) "TTemplate" .Release.Namespace "tars.php" -}}
{{- if not $tt -}}
apiVersion: k8s.tars.io/{{ .Chart.AppVersion }}
kind: TTemplate
Expand Down

0 comments on commit 5fcb7fc

Please sign in to comment.