Skip to content

Commit

Permalink
use consistent naming for opsportal roles
Browse files Browse the repository at this point in the history
  • Loading branch information
jr0d committed Feb 5, 2020
1 parent 1b9a4b3 commit d052521
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion stable/opsportal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.0.0
home: https://github.com/mesosphere/charts
description: OpsPortal Chart
name: opsportal
version: 0.2.1
version: 0.2.2
maintainers:
- name: hectorj2f
- name: alejandroEsc
Expand Down
7 changes: 3 additions & 4 deletions stable/opsportal/templates/ingress-opsportal-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "opsportal.fullname" . }}-admin
name: opsportal-admin
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
Expand All @@ -23,7 +23,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "opsportal.fullname" . }}-view
name: opsportal-view
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
Expand All @@ -32,7 +32,6 @@ rules:
- nonResourceURLs:
- {{ .Values.opsportalRBAC.path | trimSuffix "/"}}
- {{ .Values.opsportalRBAC.path | trimSuffix "/" }}/*
- {{ .Values.opsportalRBAC.graphqlPath | trimSuffix "/"}}
verbs:
- get
- head
Expand All @@ -48,7 +47,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "opsportal.fullname" . }}-edit
name: opsportal-edit
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
Expand Down
6 changes: 3 additions & 3 deletions stable/opsportal/templates/kibana-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "opsportal.fullname" . }}-kibana-edit
name: opsportal-kibana-edit
lables:
app: {{ template "opsportal.fullname" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand All @@ -25,7 +25,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "opsportal.fullname" . }}-kibana-admin
name: opsportal-kibana-admin
lables:
app: {{ template "opsportal.fullname" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand All @@ -45,7 +45,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "opsportal.fullname" . }}-kibana-view
name: opsportal-kibana-view
lables:
app: {{ template "opsportal.fullname" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down
2 changes: 1 addition & 1 deletion staging/prometheus-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sources:
- https://github.com/coreos/kube-prometheus
- https://github.com/coreos/prometheus-operator
- https://coreos.com/operators/prometheus
version: 8.3.10
version: 8.3.11
appVersion: 0.34.0
tillerVersion: ">=2.12.0"
home: https://github.com/coreos/prometheus-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "prometheus-operator.name" . }}-alertmanager-admin
name: opsportal-alertmanager-admin
labels:
app: {{ template "prometheus-operator.name" . }}-alertmanager
{{- if .Values.alertmanager.ingress.labels }}
Expand All @@ -27,7 +27,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "prometheus-operator.name" . }}-alertmanager-view
name: opsportal-alertmanager-view
labels:
app: {{ template "prometheus-operator.name" . }}-alertmanager
{{- if .Values.alertmanager.ingress.labels }}
Expand All @@ -48,7 +48,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "prometheus-operator.name" . }}-alertmanager-edit
name: opsportal-alertmanager-edit
labels:
app: {{ template "prometheus-operator.name" . }}-alertmanager
{{- if .Values.alertmanager.ingress.labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "prometheus-operator.name" . }}-grafana-admin
name: opsportal-grafana-admin
labels:
app: {{ template "prometheus-operator.name" . }}-grafana
{{- if .Values.grafana.ingress.labels }}
Expand All @@ -25,7 +25,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "prometheus-operator.name" . }}-grafana-view
name: opsportal-grafana-view
labels:
app: {{ template "prometheus-operator.name" . }}-grafana
{{- if .Values.grafana.ingress.labels }}
Expand All @@ -44,7 +44,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "prometheus-operator.name" . }}-grafana-edit
name: opsportal-grafana-edit
labels:
app: {{ template "prometheus-operator.name" . }}-grafana
{{- if .Values.grafana.ingress.labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "prometheus-operator.name" . }}-prom-admin
name: opsportal-prometheus-admin
labels:
app: {{ template "prometheus-operator.name" . }}-prom
{{- if .Values.prometheus.ingress.labels }}
Expand All @@ -27,7 +27,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "prometheus-operator.name" . }}-prom-view
name: opsportal-prometheus-view
labels:
app: {{ template "prometheus-operator.name" . }}-prom
{{- if .Values.prometheus.ingress.labels }}
Expand All @@ -48,7 +48,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "prometheus-operator.name" . }}-prom-edit
name: opsportal-prometheus-edit
labels:
app: {{ template "prometheus-operator.name" . }}-prom
{{- if .Values.prometheus.ingress.labels }}
Expand Down
2 changes: 1 addition & 1 deletion staging/traefik/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: traefik
version: 1.72.14
version: 1.72.15
appVersion: 1.7.12
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
keywords:
Expand Down
6 changes: 3 additions & 3 deletions staging/traefik/templates/dashboard-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "traefik.fullname" . }}-dashboard-view
name: opsportal-traefik-view
labels:
app: {{ template "traefik.name" . }}
chart: {{ template "traefik.chart" . }}
Expand All @@ -21,7 +21,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "traefik.fullname" . }}-dashboard-edit
name: opsportal-traefik-edit
labels:
app: {{ template "traefik.name" . }}
chart: {{ template "traefik.chart" . }}
Expand All @@ -41,7 +41,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "traefik.fullname" . }}-dashboard-admin
name: opsportal-traefik-admin
labels:
app: {{ template "traefik.name" . }}
chart: {{ template "traefik.chart" . }}
Expand Down

0 comments on commit d052521

Please sign in to comment.