Commit b789e338 authored by Daishan's avatar Daishan
Browse files

Add istio release scripts

parent c434c574
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  namespace: {{ .Release.Namespace }}
  name: istio-service-reader
rules:
  - apiGroups: [""]
    resources: ["services/proxy"]
    resourceNames: ["http:kiali:20001", "http:tracing:80", "http:grafana:80", "http:prometheus-http:80"]
    verbs: ["get", "watch", "list"]

---
{{- if .Values.global.members }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: read-istio-service
  namespace: {{ .Release.Namespace }}
subjects:
  {{- range $member := .Values.global.members }}
  - kind: {{ $member.kind }}
    name: {{ $member.name }}
    apiGroup: rbac.authorization.k8s.io
  {{- end }}
roleRef:
  kind: Role
  name: istio-service-reader
  apiGroup: rbac.authorization.k8s.io
{{- end }}
 No newline at end of file