Fix gatus naming due to prefix

- Move k8s cluster role to top level so it can be re-used for other k8s-sidecar
  containers if I ever find a second use.
This commit is contained in:
JLP 2025-04-26 11:15:11 -04:00
parent 94285d5ad6
commit 6e4bb949bd
No known key found for this signature in database
GPG key ID: 414E00D1FF7519DC
5 changed files with 7 additions and 7 deletions

View file

@ -1,8 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: gatus-k8s-sidecar
name: k8s-sidecar
rules:
- apiGroups: [""]
resources: ["configmaps", "secrets"]
resources: ["configmaps"]
verbs: ["get", "watch", "list"]

View file

@ -10,3 +10,4 @@ resources:
- charts/
- monitoring/
- public/
- k8s-sidecar-role.yaml

View file

@ -1,12 +1,12 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: gatus-k8s-sidecar
name: k8s-sidecar
roleRef:
kind: ClusterRole
name: gatus-k8s-sidecar
name: k8s-sidecar
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: gatus-k8s-sidecar
name: k8s-sidecar
namespace: monitoring

View file

@ -1,4 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: gatus-k8s-sidecar
name: k8s-sidecar

View file

@ -15,7 +15,6 @@ resources:
- ../../../kustomize/bases/deployment/
- extras/sidecar-crb.yaml
- extras/sidecar-serviceAccount.yaml
- extras/sidecar-clusterRole.yaml
patches:
- path: patches/deployment.yaml