mirror of https://git.rancher.io/charts
Make charts
parent
76e6f9e49f
commit
1c7fa8de6f
Binary file not shown.
Binary file not shown.
|
@ -50,8 +50,15 @@ app.kubernetes.io/part-of: "kiali"
|
|||
Selector labels
|
||||
*/}}
|
||||
{{- define "kiali-server.selectorLabels" -}}
|
||||
{{- $releaseName := .Release.Name -}}
|
||||
{{- $fullName := include "kiali-server.fullname" . -}}
|
||||
{{- $deployment := (lookup "apps/v1" "Deployment" .Release.Namespace $fullName) -}}
|
||||
app.kubernetes.io/name: kiali
|
||||
app.kubernetes.io/instance: {{ include "kiali-server.fullname" . }}
|
||||
{{- if (and .Release.IsUpgrade $deployment)}}
|
||||
app.kubernetes.io/instance: {{ (get (($deployment).metadata.labels) "app.kubernetes.io/instance") | default $fullName }}
|
||||
{{- else }}
|
||||
app.kubernetes.io/instance: {{ $fullName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
|
|
|
@ -40,6 +40,12 @@ rules:
|
|||
- '*'
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups:
|
||||
- telemetry.istio.io
|
||||
resources:
|
||||
- '*'
|
||||
verbs:
|
||||
- '*'
|
||||
# k8s groups
|
||||
- apiGroups:
|
||||
- admissionregistration.k8s.io
|
||||
|
|
|
@ -50,8 +50,15 @@ app.kubernetes.io/part-of: "kiali"
|
|||
Selector labels
|
||||
*/}}
|
||||
{{- define "kiali-server.selectorLabels" -}}
|
||||
{{- $releaseName := .Release.Name -}}
|
||||
{{- $fullName := include "kiali-server.fullname" . -}}
|
||||
{{- $deployment := (lookup "apps/v1" "Deployment" .Release.Namespace $fullName) -}}
|
||||
app.kubernetes.io/name: kiali
|
||||
app.kubernetes.io/instance: {{ include "kiali-server.fullname" . }}
|
||||
{{- if (and .Release.IsUpgrade $deployment)}}
|
||||
app.kubernetes.io/instance: {{ (get (($deployment).metadata.labels) "app.kubernetes.io/instance") | default $fullName }}
|
||||
{{- else }}
|
||||
app.kubernetes.io/instance: {{ $fullName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
|
|
Loading…
Reference in New Issue