mirror of
https://github.com/hanzo-ml/kserve.git
synced 2026-10-30 20:53:49 +00:00
Signed-off-by: Jooho Lee <[email protected]> Signed-off-by: Jooho Lee (Cherry Pick PR Action) <[email protected]> Co-authored-by: Jooho Lee <[email protected]>
12 lines
478 B
YAML
12 lines
478 B
YAML
{{- $existing := lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" "" "clusterstoragecontainers.serving.kserve.io" -}}
|
|
{{- $render := true -}}
|
|
{{- if $existing -}}
|
|
{{- $owner := get (default dict $existing.metadata.annotations) "meta.helm.sh/release-name" -}}
|
|
{{- if and $owner (ne $owner .Release.Name) -}}
|
|
{{- $render = false -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- if $render }}
|
|
{{ .Files.Get "files/serving.kserve.io_clusterstoragecontainers.yaml" }}
|
|
{{- end }}
|