Skip to content

fix: bootstrap team password #1917

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

Merged
merged 1 commit into from
Jan 28, 2025
Merged
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
1 change: 1 addition & 0 deletions helmfile.d/snippets/defaults.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,5 @@ environments:
- edit policies
service:
- ingress
password: {{ randAlphaNum 32 }}
{{- end }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"validate-templates": "ENV_DIR=$PWD/tests/fixtures NODE_ENV=test binzx/otomi validate-templates",
"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",
"validate-values": "ENV_DIR=$PWD/tests/fixtures NODE_ENV=test binzx/otomi validate-values",
"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",
"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",
"bootstrap-dev-with-repo": "CI=1 ENV_DIR=/tmp/otomi-bootstrap-dev binzx/otomi bootstrap"
},
"standard-version": {
Expand Down
83 changes: 83 additions & 0 deletions tests/bootstrap/input-local-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Minimal values file with defaults
cluster:
name: local
k8sContext: local
domainSuffix: local.host
otomi:
version: 'main'
kms:
sops:
provider: age
apps:
metrics-server:
enabled: false
users:
- email: [email protected]
firstName: team-member
lastName: localhost
isPlatformAdmin: false
isTeamAdmin: false
teams: ['demo']
teamConfig:
demo:
id: demo
selfService:
service:
- ingress
networkPolicy:
egressPublic: true
ingressPrivate: true
builds:
- name: nodejs-hello-world
tag: v0.0.1
trigger: false
mode:
docker:
repoUrl: https://github.com/linode/apl-nodejs-helloworld
revision: HEAD
path: ./Dockerfile
type: docker
- name: demo-java-maven
tag: v0.0.1
trigger: false
mode:
buildpacks:
repoUrl: https://github.com/buildpacks/samples
revision: HEAD
path: apps/java-maven
type: buildpacks
services:
- headers:
response:
set: []
id: 78595314-cdaf-4b60-acc2-3b1a7f80fe2b
ingressClassName: platform
name: httpbin
ownHost: true
port: 80
type: public
- id: a106eb22-8c06-41b6-ab15-97aafb0888b5
ingressClassName: platform
name: nginx-deployment
ownHost: true
paths: []
port: 80
type: public
- id: 91f6af98-ad8e-4111-b916-cf1b5bdcafb0
ingressClassName: platform
ksvc:
predeployed: true
name: nginx-ksvc
ownHost: true
paths: []
port: 80
type: public
workloads:
- name: nodejs-helloworld
url: https://github.com/linode/apl-nodejs-helloworld.git
path: ./
revision: HEAD
- name: httpbin
path: charts/httpbin
revision: HEAD
url: https://github.com/linode/apl-core.git
1 change: 0 additions & 1 deletion tests/bootstrap/input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ users:
teams: ['demo']
teamConfig:
demo:
password: somesecretvalue
id: demo
selfService:
service:
Expand Down
Loading