Skip to content

Commit

Permalink
manifests: add TTL to ConfigMap
Browse files Browse the repository at this point in the history
Signed-off-by: squat <lserven@gmail.com>
  • Loading branch information
squat committed Jun 12, 2024
1 parent 3f2950f commit 25c825a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
namespace: namespace-provisioner
data:
server: "$SERVER"
ttl: 1h
EOF
kubectl apply -f manifests/example-grants/pods.yaml
kubectl -n namespace-provisioner set image deployment namespace-provisioner namespace-provisioner=quay.io/observatorium/namespace-provisioner:test
Expand Down
7 changes: 7 additions & 0 deletions manifests/namespace-provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ metadata:
app.kubernetes.io/part-of: namespace-provisioner
data:
server: https://kubernetes
ttl: 1h
---
apiVersion: v1
kind: ServiceAccount
Expand Down Expand Up @@ -163,6 +164,7 @@ spec:
- --listen-internal=:9090
- --cluster-role=namespace-provisioner-grant
- --server=$(SERVER)
- --ttl=$(TTL)
- --token=$(TOKEN)
env:
- name: TOKEN
Expand All @@ -175,6 +177,11 @@ spec:
configMapKeyRef:
name: namespace-provisioner
key: server
- name: TTL
valueFrom:
configMapKeyRef:
name: namespace-provisioner
key: ttl
ports:
- containerPort: 8080
name: http
Expand Down

0 comments on commit 25c825a

Please sign in to comment.