Skip to content

Commit 833b8c8

Browse files
committed
add dev flow meets min user namespace config into current namespace
1 parent 059c920 commit 833b8c8

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
apiVersion: jvmbuildservice.io/v1alpha1
3+
kind: UserConfig
4+
metadata:
5+
name: jvm-build-config
6+
spec:
7+
owner: QUAY_USERNAME
8+
host: quay.io
9+
repository: test-images
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
bases:
5+
- "../../base"
6+
7+
patchesStrategicMerge:
8+
- config.yaml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: jvm-build-secrets
5+
stringData:
6+
registry.token: QUAY_TOKEN

deploy/user-namespace-only.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
4+
echo "quay username:"
5+
echo ${QUAY_USERNAME}
6+
7+
DIR=`dirname $0`
8+
find $DIR -name ci-final -exec rm -r {} \;
9+
find $DIR -name ci-template -exec cp -r {} {}/../ci-final \;
10+
find $DIR -path \*ci-final\*.yaml -exec sed -i s/QUAY_USERNAME/${QUAY_USERNAME}/ {} \;
11+
find $DIR -path \*ci-final\*.yaml -exec sed -i s/QUAY_TOKEN/${QUAY_TOKEN}/ {} \;
12+
13+
oc apply -f $DIR/overlays/ci-final/secret.yaml
14+
oc apply -k $DIR/overlays/ci-final

0 commit comments

Comments
 (0)