Resource types¶
Everything your application needs besides its own container — a database, a login client, a portal tile — you declare as a Resource of a resource type. The platform creates it per environment and hands your component the credentials as environment variables. OpenChoreo describes the general concept under Resource Dependencies.
Overview¶
| Type | For | Details |
|---|---|---|
cnpg-postgres |
PostgreSQL with backups | Databases |
mongodb |
MongoDB with backups | Databases |
keycloak-client |
the application's own login through Keycloak (OIDC) | Keycloak client |
portal-link |
a tile in the ONCOnnect portal for a target that is not a component | Show in the ONCOnnect portal |
Demos only: postgres, valkey, nats
These types ship with OpenChoreo. They keep data only transiently, have no
backup (postgres also has fixed credentials), and describe themselves as
for demonstration only. Do not use them for project
data; if you need a cache or message broker, talk to the platform team.
How a Resource works¶
- Create the Resource — in the portal or as YAML in namespace
onconnect, with your project asownerand the type's parameters. - Bind it to environments — one
ResourceReleaseBindingper environment. Bindings are not created automatically; values that differ per environment go underresourceTypeEnvironmentConfigsthere. - Use it in the component — map the Resource's outputs to environment
variables under
dependencies.resourcesinworkload.yaml.
Changed parameters create a new release of the Resource. You take it to
staging and production deliberately (occ resource promote or by setting
the binding's spec.resourceRelease). The steps in detail, with examples, are
under Databases.
portal-link is the exception: the tile appears as soon as the Resource
exists, without a binding or promotion.