|
| 1 | +# admin-system-backend |
| 2 | + |
| 3 | +  |
| 4 | + |
| 5 | +admin-system-backend helm charts |
| 6 | + |
| 7 | +## Maintainers |
| 8 | + |
| 9 | +| Name | Email | Url | |
| 10 | +| ---- | ------ | --- | |
| 11 | +| scroll-tech | <weichi@scroll.io> | | |
| 12 | + |
| 13 | +## Requirements |
| 14 | + |
| 15 | +Kubernetes: `>=1.22.0-0` |
| 16 | + |
| 17 | +| Repository | Name | Version | |
| 18 | +|------------|------|---------| |
| 19 | +| oci://ghcr.io/scroll-tech/scroll-sdk/helm | common | 1.5.1 | |
| 20 | +| oci://ghcr.io/scroll-tech/scroll-sdk/helm | external-secrets-lib | 0.0.3 | |
| 21 | + |
| 22 | +## Values |
| 23 | + |
| 24 | +| Key | Type | Default | Description | |
| 25 | +|-----|------|---------|-------------| |
| 26 | +| command[0] | string | `"/bin/sh"` | | |
| 27 | +| command[1] | string | `"-c"` | | |
| 28 | +| command[2] | string | `"scroll-admin-system --config /app/config/admin-system-backend-config.json --genesis /app/genesis/genesis.json --http.port ${HTTP_PORT} --metrics --metrics.port ${METRICS_PORT}"` | | |
| 29 | +| configMaps.add-user.data."add-user.sh" | string | `"#!/bin/bash\necho \"Adding users...\"\npsql $SCROLL_ADMIN_AUTH_DB_CONFIG_DSN -c \"INSERT INTO users (username, role) VALUES ('admin', 1);\"\npsql $SCROLL_ADMIN_AUTH_DB_CONFIG_DSN -c \"INSERT INTO users (username, role) VALUES ('normal', 3);\"\necho \"Users added.\"\n"` | | |
| 30 | +| configMaps.add-user.enabled | bool | `true` | | |
| 31 | +| configMaps.model-conf.data."model.conf" | string | `"[request_definition]\nr = sub, obj, act\n[policy_definition]\np = sub, obj, act\n[role_definition]\ng = _, _\n[policy_effect]\ne = some(where (p.eft == allow))\n[matchers]\nm = g(r.sub, p.sub) && regexMatch(r.obj, p.obj) && regexMatch(r.act, p.act)\n"` | | |
| 32 | +| configMaps.model-conf.enabled | bool | `true` | | |
| 33 | +| configMaps.policy-csv.data."policy.csv" | string | `"p, undefined, ^\\/api\\/v1\\/login$, POST\np, undefined, ^\\/api\\/v1\\/otp\\/.*$, (GET)|(POST)\np, read, ^\\/api\\/v1\\/(chunk|batch|bundle|provertask|l2_block|prover|job)\\/.*$, GET\np, read, ^\\/api\\/v1\\/(chunk|batch|bundle|provertask|l2_block|prover)\\/search$, POST\np, readwrite, ^\\/api\\/v1\\/(chunk|batch|bundle|l2_block)\\/.*$, (POST)|(DELETE)\np, readwrite, ^\\/api\\/v1\\/provertask\\/(update|delete)$, (POST)|(DELETE)\np, admin, ^\\/api\\/v1\\/provertask\\/reassign$, POST\np, admin, ^\\/api\\/v1\\/(policy|user|prover_block|partner)\\/.*$,(GET)|(POST)|(DELETE)\np, admin, ^\\/api\\/v1\\/job\\/.*$, POST\ng, read, undefined\ng, readwrite, read\ng, admin, readwrite\n"` | | |
| 34 | +| configMaps.policy-csv.enabled | bool | `true` | | |
| 35 | +| controller.replicas | int | `1` | | |
| 36 | +| controller.strategy | string | `"Recreate"` | | |
| 37 | +| controller.type | string | `"deployment"` | | |
| 38 | +| envFrom[0].configMapRef.name | string | `"admin-system-backend-env"` | | |
| 39 | +| env[0].name | string | `"HTTP_PORT"` | | |
| 40 | +| env[0].value | string | `"8080"` | | |
| 41 | +| env[1].name | string | `"METRICS_PORT"` | | |
| 42 | +| env[1].value | string | `"8090"` | | |
| 43 | +| env[2].name | string | `"GIN_MODE"` | | |
| 44 | +| env[2].value | string | `"release"` | | |
| 45 | +| env[3].name | string | `"ENV"` | | |
| 46 | +| env[3].value | string | `"fake"` | | |
| 47 | +| env[4].name | string | `"CHAIN_ID"` | | |
| 48 | +| env[4].value | string | `"123456"` | | |
| 49 | +| global.fullnameOverride | string | `"admin-system-backend"` | | |
| 50 | +| global.nameOverride | string | `"admin-system-backend"` | | |
| 51 | +| image.pullPolicy | string | `"Always"` | | |
| 52 | +| image.repository | string | `"scrolltech/scroll-admin-system"` | | |
| 53 | +| image.tag | string | `"v0.1.2"` | | |
| 54 | +| initContainers.1-check-postgres-connection.args[0] | string | `"postgresql"` | | |
| 55 | +| initContainers.1-check-postgres-connection.args[1] | string | `"$(SCROLL_ADMIN_AUTH_DB_CONFIG_DSN)"` | | |
| 56 | +| initContainers.1-check-postgres-connection.args[2] | string | `"--timeout"` | | |
| 57 | +| initContainers.1-check-postgres-connection.args[3] | string | `"0"` | | |
| 58 | +| initContainers.1-check-postgres-connection.envFrom[0].configMapRef.name | string | `"admin-system-backend-env"` | | |
| 59 | +| initContainers.1-check-postgres-connection.image | string | `"atkrad/wait4x:latest"` | | |
| 60 | +| initContainers.2-migrate-db.command[0] | string | `"/bin/sh"` | | |
| 61 | +| initContainers.2-migrate-db.command[1] | string | `"-c"` | | |
| 62 | +| initContainers.2-migrate-db.command[2] | string | `"db_cli migrate --config /app/config/admin-system-backend-config.json"` | | |
| 63 | +| initContainers.2-migrate-db.envFrom[0].configMapRef.name | string | `"admin-system-backend-env"` | | |
| 64 | +| initContainers.2-migrate-db.image | string | `"scrolltech/scroll-admin-system:v0.1.2"` | | |
| 65 | +| initContainers.2-migrate-db.volumeMounts[0].mountPath | string | `"/app/config/"` | | |
| 66 | +| initContainers.2-migrate-db.volumeMounts[0].name | string | `"admin-system-backend"` | | |
| 67 | +| initContainers.3-add-user.command[0] | string | `"bash"` | | |
| 68 | +| initContainers.3-add-user.command[1] | string | `"-c"` | | |
| 69 | +| initContainers.3-add-user.command[2] | string | `"/add-user.sh"` | | |
| 70 | +| initContainers.3-add-user.envFrom[0].configMapRef.name | string | `"admin-system-backend-env"` | | |
| 71 | +| initContainers.3-add-user.image | string | `"postgres:latest"` | | |
| 72 | +| initContainers.3-add-user.volumeMounts[0].mountPath | string | `"/add-user.sh"` | | |
| 73 | +| initContainers.3-add-user.volumeMounts[0].name | string | `"add-user"` | | |
| 74 | +| initContainers.3-add-user.volumeMounts[0].subPath | string | `"add-user.sh"` | | |
| 75 | +| persistence.add-user.defaultMode | string | `"0777"` | | |
| 76 | +| persistence.add-user.enabled | bool | `true` | | |
| 77 | +| persistence.add-user.mountPath | string | `"/app/conf/add-user.sh"` | | |
| 78 | +| persistence.add-user.name | string | `"admin-system-backend-add-user"` | | |
| 79 | +| persistence.add-user.subPath | string | `"add-user.sh"` | | |
| 80 | +| persistence.add-user.type | string | `"configMap"` | | |
| 81 | +| persistence.app_name.enabled | bool | `true` | | |
| 82 | +| persistence.app_name.mountPath | string | `"/app/config/"` | | |
| 83 | +| persistence.app_name.name | string | `"admin-system-backend-config"` | | |
| 84 | +| persistence.app_name.type | string | `"configMap"` | | |
| 85 | +| persistence.genesis.enabled | bool | `true` | | |
| 86 | +| persistence.genesis.mountPath | string | `"/app/genesis/"` | | |
| 87 | +| persistence.genesis.name | string | `"genesis-config"` | | |
| 88 | +| persistence.genesis.type | string | `"configMap"` | | |
| 89 | +| persistence.model-conf.enabled | bool | `true` | | |
| 90 | +| persistence.model-conf.mountPath | string | `"/app/conf/model.conf"` | | |
| 91 | +| persistence.model-conf.name | string | `"admin-system-backend-model-conf"` | | |
| 92 | +| persistence.model-conf.subPath | string | `"model.conf"` | | |
| 93 | +| persistence.model-conf.type | string | `"configMap"` | | |
| 94 | +| persistence.policy-csv.enabled | bool | `true` | | |
| 95 | +| persistence.policy-csv.mountPath | string | `"/app/conf/policy.csv"` | | |
| 96 | +| persistence.policy-csv.name | string | `"admin-system-backend-policy-csv"` | | |
| 97 | +| persistence.policy-csv.subPath | string | `"policy.csv"` | | |
| 98 | +| persistence.policy-csv.type | string | `"configMap"` | | |
| 99 | +| probes.liveness.enabled | bool | `false` | | |
| 100 | +| probes.readiness.enabled | bool | `false` | | |
| 101 | +| probes.startup.enabled | bool | `false` | | |
| 102 | +| resources.limits.cpu | string | `"100m"` | | |
| 103 | +| resources.limits.memory | string | `"200Mi"` | | |
| 104 | +| resources.requests.cpu | string | `"50m"` | | |
| 105 | +| resources.requests.memory | string | `"50Mi"` | | |
| 106 | +| service.main.enabled | bool | `true` | | |
| 107 | +| service.main.ports.http.enabled | bool | `true` | | |
| 108 | +| service.main.ports.http.port | int | `8080` | | |
| 109 | +| service.main.ports.http.primary | bool | `true` | | |
| 110 | +| service.main.ports.http.protocol | string | `"HTTP"` | | |
| 111 | +| service.main.ports.metrics.enabled | bool | `true` | | |
| 112 | +| service.main.ports.metrics.port | int | `8090` | | |
| 113 | +| service.main.ports.metrics.targetPort | int | `8090` | | |
| 114 | +| service.main.primary | bool | `true` | | |
| 115 | +| serviceMonitor.main.enabled | bool | `true` | | |
| 116 | +| serviceMonitor.main.endpoints[0].interval | string | `"1m"` | | |
| 117 | +| serviceMonitor.main.endpoints[0].port | string | `"http"` | | |
| 118 | +| serviceMonitor.main.endpoints[0].scrapeTimeout | string | `"10s"` | | |
| 119 | +| serviceMonitor.main.labels.release | string | `"scroll-stack"` | | |
| 120 | +| serviceMonitor.main.serviceName | string | `"{{ include \"scroll.common.lib.chart.names.fullname\" $ }}"` | | |
| 121 | + |
| 122 | +---------------------------------------------- |
| 123 | +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) |
0 commit comments