Skip to content

Commit

Permalink
feat(metrics-operator): add missing yaml
Browse files Browse the repository at this point in the history
Signed-off-by: realanna <[email protected]>
  • Loading branch information
RealAnna committed Aug 8, 2023
1 parent 2c8b8aa commit b354eec
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
15 changes: 15 additions & 0 deletions helm/chart/templates/hpa-controller-keptn-metrics-rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "chart.fullname" . }}-hpa-controller-keptn-metrics
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "chart.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: '{{ include "chart.fullname" . }}-server-resources'
subjects:
- kind: ServiceAccount
name: horizontal-pod-autoscaler
namespace: '{{ .Release.Namespace }}'
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/
labels:
keptn.sh/inject-cert: "true"
keptn.sh/inject-cert: "true"
{{- include "chart.labels" . | nindent 4 }}
webhooks:
- admissionReviewVersions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/
labels:
keptn.sh/inject-cert: "true" labels:
keptn.sh/inject-cert: "true"
{{- include "chart.labels" . | nindent 4 }}
webhooks:
- admissionReviewVersions:
Expand Down
14 changes: 14 additions & 0 deletions helm/chart/templates/server-resources-rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "chart.fullname" . }}-server-resources
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "chart.labels" . | nindent 4 }}
rules:
- apiGroups:
- custom.metrics.k8s.io
resources:
- '*'
verbs:
- '*'

0 comments on commit b354eec

Please sign in to comment.