Skip to content

Commit b5ac229

Browse files
authored
fix: bootstrap team password (#1917)
1 parent 0b639bb commit b5ac229

File tree

4 files changed

+85
-2
lines changed

4 files changed

+85
-2
lines changed

helmfile.d/snippets/defaults.gotmpl

+1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,5 @@ environments:
9292
- edit policies
9393
service:
9494
- ingress
95+
password: {{ randAlphaNum 32 }}
9596
{{- end }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"validate-templates": "ENV_DIR=$PWD/tests/fixtures NODE_ENV=test binzx/otomi validate-templates",
159159
"validate-templates:all": "set -e; i=29; while [ $i -le 32 ]; do NODE_ENV=test binzx/otomi validate-templates -k 1.$i; i=$(($i+1)); done",
160160
"validate-values": "ENV_DIR=$PWD/tests/fixtures NODE_ENV=test binzx/otomi validate-values",
161-
"bootstrap-dev": "rm -rf /tmp/otomi-bootstrap-dev; CI=1 VALUES_INPUT=$PWD/tests/bootstrap/input.yaml ENV_DIR=/tmp/otomi-bootstrap-dev binzx/otomi bootstrap",
161+
"bootstrap-dev": "rm -rf /tmp/otomi-bootstrap-dev; CI=1 VALUES_INPUT=$PWD/tests/bootstrap/input-local-dev.yaml ENV_DIR=/tmp/otomi-bootstrap-dev binzx/otomi bootstrap",
162162
"bootstrap-dev-with-repo": "CI=1 ENV_DIR=/tmp/otomi-bootstrap-dev binzx/otomi bootstrap"
163163
},
164164
"standard-version": {

tests/bootstrap/input-local-dev.yaml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Minimal values file with defaults
2+
cluster:
3+
name: local
4+
k8sContext: local
5+
domainSuffix: local.host
6+
otomi:
7+
version: 'main'
8+
kms:
9+
sops:
10+
provider: age
11+
apps:
12+
metrics-server:
13+
enabled: false
14+
users:
15+
16+
firstName: team-member
17+
lastName: localhost
18+
isPlatformAdmin: false
19+
isTeamAdmin: false
20+
teams: ['demo']
21+
teamConfig:
22+
demo:
23+
id: demo
24+
selfService:
25+
service:
26+
- ingress
27+
networkPolicy:
28+
egressPublic: true
29+
ingressPrivate: true
30+
builds:
31+
- name: nodejs-hello-world
32+
tag: v0.0.1
33+
trigger: false
34+
mode:
35+
docker:
36+
repoUrl: https://github.com/linode/apl-nodejs-helloworld
37+
revision: HEAD
38+
path: ./Dockerfile
39+
type: docker
40+
- name: demo-java-maven
41+
tag: v0.0.1
42+
trigger: false
43+
mode:
44+
buildpacks:
45+
repoUrl: https://github.com/buildpacks/samples
46+
revision: HEAD
47+
path: apps/java-maven
48+
type: buildpacks
49+
services:
50+
- headers:
51+
response:
52+
set: []
53+
id: 78595314-cdaf-4b60-acc2-3b1a7f80fe2b
54+
ingressClassName: platform
55+
name: httpbin
56+
ownHost: true
57+
port: 80
58+
type: public
59+
- id: a106eb22-8c06-41b6-ab15-97aafb0888b5
60+
ingressClassName: platform
61+
name: nginx-deployment
62+
ownHost: true
63+
paths: []
64+
port: 80
65+
type: public
66+
- id: 91f6af98-ad8e-4111-b916-cf1b5bdcafb0
67+
ingressClassName: platform
68+
ksvc:
69+
predeployed: true
70+
name: nginx-ksvc
71+
ownHost: true
72+
paths: []
73+
port: 80
74+
type: public
75+
workloads:
76+
- name: nodejs-helloworld
77+
url: https://github.com/linode/apl-nodejs-helloworld.git
78+
path: ./
79+
revision: HEAD
80+
- name: httpbin
81+
path: charts/httpbin
82+
revision: HEAD
83+
url: https://github.com/linode/apl-core.git

tests/bootstrap/input.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ users:
2020
teams: ['demo']
2121
teamConfig:
2222
demo:
23-
password: somesecretvalue
2423
id: demo
2524
selfService:
2625
service:

0 commit comments

Comments
 (0)