Skip to content

feat: add configmap with mobster task git revision #6961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions components/mobster/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See the OWNERS docs: https://go.k8s.io/owners

approvers:
- Allda
- jedinym

reviewers:
- Allda
- jedinym
13 changes: 13 additions & 0 deletions components/mobster/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- role.yaml
- rolebinding.yaml
generatorOptions:
disableNameSuffixHash: true
configMapGenerator:
- name: mobster-defaults
namespace: mobster
literals:
- mobster_tasks_git_revision=8991d2e79eeb3f0edc91b77a798d1d228a448fce
18 changes: 18 additions & 0 deletions components/mobster/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
rbac.authorization.k8s.io/aggregate-to-view: "true"
name: mobster-configmap-viewer-role
rules:
- apiGroups:
- ""
resourceNames:
- mobster-defaults
resources:
- configmaps
verbs:
- get
- list
- watch
14 changes: 14 additions & 0 deletions components/mobster/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: public-mobster-cm
namespace: mobster
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: mobster-configmap-viewer-role
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:authenticated