Skip to content

Commit

Permalink
feat(helm): add documentation for env / secret variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoscode committed Aug 4, 2023
1 parent 6689718 commit cee2c49
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
17 changes: 16 additions & 1 deletion charts/managed-identity-wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,20 @@ See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command document
| backup.database.storage.diskSize | string | `"10G"` | Disk size for backup content |
| backup.database.storage.keepStorage | bool | `true` | Set to true, if the PV should stay even when the chart release is uninstalled |
| backup.database.storage.storageClassName | string | `"-"` | storageClassName |
| envs | object | `{"APPLICATION_ENVIRONMENT":"dev","AUTHORITY_WALLET_BPN":"","AUTHORITY_WALLET_DID":"","AUTHORITY_WALLET_NAME":"","AUTH_SERVER_URL":"","DB_POOL_SIZE":null,"KEYCLOAK_MIW_PUBLIC_CLIENT":"","KEYCLOAK_REALM":"","MANAGEMENT_PORT":null,"MIW_HOST_NAME":"localhost","USE_SSL":false,"VC_EXPIRY_DATE":"","VC_SCHEMA_LINK":""}` | Parameters for the application (will be provided as plain environment variables) |
| envs | object | `{"APPLICATION_ENVIRONMENT":"dev","AUTHORITY_WALLET_BPN":"","AUTHORITY_WALLET_DID":"","AUTHORITY_WALLET_NAME":"","AUTH_SERVER_URL":"","DB_POOL_SIZE":"","KEYCLOAK_MIW_PUBLIC_CLIENT":"","KEYCLOAK_REALM":"","MANAGEMENT_PORT":null,"MIW_HOST_NAME":"localhost","USE_SSL":false,"VC_EXPIRY_DATE":"","VC_SCHEMA_LINK":""}` | Parameters for the application (will be provided as plain environment variables) |
| envs.APPLICATION_ENVIRONMENT | string | `"dev"` | Application environments like dev, int, prod |
| envs.AUTHORITY_WALLET_BPN | string | `""` | Authority/base wallet/root wallet BPN |
| envs.AUTHORITY_WALLET_DID | string | `""` | Authority/base wallet/root wallet web did |
| envs.AUTHORITY_WALLET_NAME | string | `""` | Authority/base wallet/root wallet name |
| envs.AUTH_SERVER_URL | string | `""` | Keycloak server url |
| envs.DB_POOL_SIZE | string | `""` | Initial database connection pool size |
| envs.KEYCLOAK_MIW_PUBLIC_CLIENT | string | `""` | Keycloak public client id, used only if we want to enable login in swagger using keycloak |
| envs.KEYCLOAK_REALM | string | `""` | Keycloak realm name |
| envs.MANAGEMENT_PORT | string | `nil` | Spring actuator port |
| envs.MIW_HOST_NAME | string | `"localhost"` | Hostname of miw application |
| envs.USE_SSL | bool | `false` | Whether database connection with SSL, true if the database connection is done using SSL |
| envs.VC_EXPIRY_DATE | string | `""` | Default expiry date of issued VC |
| envs.VC_SCHEMA_LINK | string | `""` | Verifiable credential schema URL, which will be part of @context in VC |
| fullnameOverride | string | `""` | |
| image | object | `{"pullPolicy":"Always","repository":"ghcr.io/catenax-ng/tx-managed-identity-wallets_miw_service","tag":""}` | Image of the main container |
| image.pullPolicy | string | `"Always"` | PullPolicy |
Expand Down Expand Up @@ -85,6 +98,8 @@ See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command document
| replicaCount | int | `1` | The amount of replicas to run |
| resources | object | `{"limits":{"cpu":4,"memory":"1Gi"},"requests":{"cpu":"250m","memory":"500Mi"}}` | Resource boundaries |
| secrets | object | `{"ENCRYPTION_KEY":"","KEYCLOAK_CLIENT_ID":""}` | Parameters for the application (will be stored as secrets - so, for important values, ...) |
| secrets.ENCRYPTION_KEY | string | `""` | AES encryption key used to encrypt/decrypt private keys (random 32 chars) |
| secrets.KEYCLOAK_CLIENT_ID | string | `""` | Keycloak confidential client id for MIW application |
| securityContext | object | `{"allowPrivilegeEscalation":false,"privileged":false,"runAsGroup":11111,"runAsNonRoot":true,"runAsUser":11111}` | Preconfigured SecurityContext |
| service | object | `{"port":8080,"type":"ClusterIP"}` | Service configuration |
| serviceAccount | object | `{"annotations":{},"create":true,"name":""}` | ServiceAccount configuration |
Expand Down
19 changes: 17 additions & 2 deletions charts/managed-identity-wallet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,38 @@ fullnameOverride: ""

# -- Parameters for the application (will be stored as secrets - so, for important values, ...)
secrets:
# -- Keycloak confidential client id for MIW application
KEYCLOAK_CLIENT_ID: ""
ENCRYPTION_KEY: "" # 32 chars
# -- AES encryption key used to encrypt/decrypt private keys (random 32 chars)
ENCRYPTION_KEY: ""

# -- Parameters for the application (will be provided as plain environment variables)
envs:
# -- Application environments like dev, int, prod
APPLICATION_ENVIRONMENT: "dev"
# -- Whether database connection with SSL, true if the database connection is done using SSL
USE_SSL: false
DB_POOL_SIZE:
# -- Initial database connection pool size
DB_POOL_SIZE: ""
# -- Keycloak public client id, used only if we want to enable login in swagger using keycloak
KEYCLOAK_MIW_PUBLIC_CLIENT: ""
# -- Spring actuator port
MANAGEMENT_PORT:
# -- Hostname of miw application
MIW_HOST_NAME: localhost
# -- Authority/base wallet/root wallet BPN
AUTHORITY_WALLET_BPN: ""
# -- Authority/base wallet/root wallet name
AUTHORITY_WALLET_NAME: ""
# -- Authority/base wallet/root wallet web did
AUTHORITY_WALLET_DID: ""
# -- Verifiable credential schema URL, which will be part of @context in VC
VC_SCHEMA_LINK: ""
# -- Default expiry date of issued VC
VC_EXPIRY_DATE: ""
# -- Keycloak realm name
KEYCLOAK_REALM: ""
# -- Keycloak server url
AUTH_SERVER_URL: ""

# -- ServiceAccount configuration
Expand Down

0 comments on commit cee2c49

Please sign in to comment.