From 82c0afb2d8ba9775b5019a5fcff4a83cee6982d1 Mon Sep 17 00:00:00 2001 From: rasmus Date: Fri, 8 Aug 2025 03:07:21 +0300 Subject: [PATCH] hackerspace WIP --- hackerspace/{doorboy.yml => doorboy.yaml} | 13 ++++--------- hackerspace/inventory.yaml | 5 ----- hackerspace/kustomization.yaml | 12 ++++++++++++ 3 files changed, 16 insertions(+), 14 deletions(-) rename hackerspace/{doorboy.yml => doorboy.yaml} (87%) create mode 100644 hackerspace/kustomization.yaml diff --git a/hackerspace/doorboy.yml b/hackerspace/doorboy.yaml similarity index 87% rename from hackerspace/doorboy.yml rename to hackerspace/doorboy.yaml index 927b777..e81d7b9 100644 --- a/hackerspace/doorboy.yml +++ b/hackerspace/doorboy.yaml @@ -35,19 +35,14 @@ spec: - secretRef: name: doorboy-api env: + - name: OIDC_USERS_NAMESPACE + value: passmower + - name: SLACK_CHANNEL_ID + value: CDL9H8Q9W - name: FLOOR_ACCESS_GROUP value: 'k-space:floor' - name: WORKSHOP_ACCESS_GROUP value: 'k-space:workshop' - - name: CARD_URI - value: 'https://inventory.k-space.ee/cards' - - name: SWIPE_URI - value: 'https://inventory.k-space.ee/m/doorboy/swipe' - - name: INVENTORY_API_KEY - valueFrom: - secretKeyRef: - name: inventory-api-key - key: INVENTORY_API_KEY securityContext: readOnlyRootFilesystem: true runAsNonRoot: true diff --git a/hackerspace/inventory.yaml b/hackerspace/inventory.yaml index a9825e5..2df2e6c 100644 --- a/hackerspace/inventory.yaml +++ b/hackerspace/inventory.yaml @@ -35,11 +35,6 @@ spec: secretKeyRef: key: SECRET_KEY name: inventory-secrets - - name: INVENTORY_API_KEY - valueFrom: - secretKeyRef: - key: INVENTORY_API_KEY - name: inventory-api-key - name: SLACK_DOORLOG_CALLBACK valueFrom: secretKeyRef: diff --git a/hackerspace/kustomization.yaml b/hackerspace/kustomization.yaml new file mode 100644 index 0000000..c19b756 --- /dev/null +++ b/hackerspace/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: hackerspace + +resources: +- ssh://git@git.k-space.ee/secretspace/kube/hackerspace # secret: grafana-database +- ./doorboy.yaml +- ./goredirect.yaml +- ./inventory.yaml +- ./inventory-extras.yaml +- https://github.com/mongodb/mongodb-kubernetes-operator//config/rbac/?ref=v0.13.0