Core concepts
Core concepts specific to bundle resource.
Resources
bundle.resources lists the resources that belong to the Bundle. Each resource entry needs an id so other entries can reference it.
bundle:
resources:
- id: sleep-worker
file: tests/worker/sleep-worker/worker.yamlUse file when the Resource is defined in a separate manifest. This keeps each Resource reusable and easier to review.
Dependencies
dependencies defines the resource IDs that must be processed before the current resource.
bundle:
resources:
- id: verify-sleep-worker
file: tests/worker/sleep-worker/verify-workflow.yaml
dependencies:
- sleep-workerDependencies create the Bundle DAG. A verification Workflow, for example, should depend on the Worker or Service it verifies.
Dependency conditions
dependencyConditions controls when a dependent Resource is ready. Conditions can check the dependent Resource status, runtime state, or both.
In this example, the verification Workflow is applied only after sleep-worker is active and its runtime contains running.
Workspace placement
Use workspace on a Bundle resource entry when the referenced Resource must be created in a specific workspace.
Workspace-level resources, such as Workers, Workflows, Services, and Secrets, can be placed in workspaces. Instance-level resources are not scoped to a workspace.
Inline specifications
Use spec when you want to define a Resource inline in the Bundle instead of referencing a file.
For most production bundles, separate files are easier to maintain than large inline resource definitions.
Schedule, properties, and management user
Bundles can also include optional sections for scheduled create/delete operations, workspace creation, custom properties, and management user context.
Use these sections only when the Bundle needs them. Simple Bundles often contain only bundle.resources.
Last updated
Was this helpful?