Declarative User Profile
Last updated
Was this helpful?
Last updated
Was this helpful?
You can define a custom user profile form that appears directly within the user interface.
This form is configured using a JSON Schema provided via your Onyxia values.yaml
. Here's an example that produces the form shown above:
Once defined, this form allows users to fill in personal and development-related information. These values become programmatically accessible, enabling dynamic behavior within your charts and deployments.
For example, with the schema above, and assuming the user has filled out the form as shown in the screenshot, the following values will be available in the Onyxia context:
These values can be injected into Helm charts. For instance:
This will auto-fill the corresponding field with "Garrone"
.
(Here this example is not very inspired since we already have a Git configuration tab so there's no reason to define a Git configuration section in the declarative user profile but you get the idea)
Each time you update the JSON Schema you provide to define the user profile, all existing values that the user might have filled will be lost.
Define your schema in onyxia.values.yaml
.
Enable role-based customization if needed.
Use the collected values in your Helm charts for a tailored, user-aware deployment experience.