Slackbot
03/21/2023, 3:57 PMOded Bd
03/21/2023, 4:01 PMRaz Co
03/21/2023, 4:42 PMOPAL_POLICY_REPO_URL
by simply add policyRepoUrl
to your values.yaml
Raz Co
03/21/2023, 4:43 PMAndrew Quinton
03/21/2023, 5:54 PMAndrew Quinton
03/22/2023, 12:55 PMOPAL_DATA_CONFIG_SOURCES
via the Helm chart using this portion of the values file:
dataConfigSources:
config:
entries: []
But I seem to be falling foul of the input validation, can anyone point me in the right direction?Andrew Quinton
03/22/2023, 12:58 PMexternal_source_url
Andrew Quinton
03/22/2023, 1:35 PMOPAL_AUTH_PRIVATE_KEY
from a secret? Currently it can be seen in the list of environment variables of the podRaz Co
03/22/2023, 2:13 PMdataConfigSources
parameter on values.yaml
is strict by the schema and can’t get any `external_source_url`s as the enteries.
We will fix it by ease the schema, we can do it by the eod.
You can do it yourself if you prefer, can add this to the schema.Andrew Quinton
03/22/2023, 3:38 PMRaz Co
03/23/2023, 9:32 AMAndrew Quinton
03/23/2023, 10:13 AMFile "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for ServerDataSourceConfig
__root__
you must provide ONLY ONE of these fields: config, external_source_url (type=value_error)
Raz Co
03/23/2023, 10:45 AMAndrew Quinton
03/23/2023, 11:11 AMdataConfigSources:
external_source_url: "<https://your-api.com/path/to/api/endpoint>"
Raz Co
03/23/2023, 11:46 AMAndrew Quinton
03/23/2023, 11:53 AMAndrew Quinton
03/23/2023, 11:54 AMAndrew Quinton
03/23/2023, 12:14 PMOPAL_DATA_CONFIG_SOURCES: {"config":{"entries":[]},"external_source_url":"<http://my-api.namespace.svc/endpoint>"}
Raz Co
03/23/2023, 12:17 PMAndrew Quinton
03/23/2023, 12:20 PMRaz Co
03/23/2023, 1:16 PMexternal_source_url
on values.yaml will produce the right Env var.Andrew Quinton
03/23/2023, 1:34 PMAndrew Quinton
03/23/2023, 1:34 PMAndrew Quinton
03/23/2023, 3:10 PMRaz Co
03/23/2023, 4:08 PM