Overview
Release metadata is stored as JSON in therelease_metadata field of each service release. This metadata helps Ryvn:
- Track exact artifacts used in each release (container images, Helm charts, etc.)
- Manage service dependencies and ensure proper deployment order
- Enable automated rollbacks with confidence
File Location
Create a file named<service-name>-release.ryvn.yaml at the root of your repository. The CLI automatically discovers this file when creating a release — no flags needed.
For example, if your service is called my-service:
-f:
.yaml, .yml) or JSON (.json).
Release Artifacts
Release artifacts define the exact artifacts (like container images) that are part of a release. This ensures reproducible deployments and enables Ryvn to track what’s actually running in each environment.Container Image Artifacts
For web server and Docker image services, you can specify the exact container images used in a release:Creating Releases with Metadata
You can create releases with metadata using the Ryvn CLI. The metadata can be provided via a file or inline:- CLI with File
- CLI with Inline
The metadata file can be in YAML or JSON format. When using the
-f flag, Ryvn will automatically detect the format based on the file extension. The --metadata flag expects JSON format for inline metadata.Managing Container Image Versions in Helm
Managing Container Image Versions in Helm
When deploying with Helm charts, there are typically two common patterns for versioning and pulling images:When you create a release, Ryvn uses that version for both the chart and the default image tag:Alternatively, reference it directly in your Helm chart using Step 2: Create release with artifact metadata:Ryvn automatically passes release metadata as values, ensuring the correct container image is deployed regardless of the chart version.
Approach 1: Match Image Tag with Chart Version (Recommended)
The simplest approach is to keep your container image tag synchronized with your Helm chart version. This makes reasoning easier since the chart version and image version are always the same.Configure your Helm templates to use the chart’sAppVersion:Approach 2: Decouple Chart and Image Versions
If you need different versions for your chart and container image, specify the exact image in release metadata and reference it in your configuration.Step 1: Reference the artifact in your installation config:.Values.ryvn:Service Dependencies
Service dependencies define the relationships between services and ensure proper deployment order. This is crucial for complex applications with multiple interconnected services.Dependency Types
Ryvn supports several types of service dependencies:- Database dependencies: Services that require a database to be available
- API dependencies: Services that depend on other services’ APIs
- Infrastructure dependencies: Services that require specific infrastructure components
Version Range Format
Dependencies use version ranges withminVersion and maxVersion fields:
- Exact version:
minVersion: "2.1.0",maxVersion: "2.1.0" - Version range:
minVersion: "2.0.0",maxVersion: "3.0.0" - Wildcard support:
minVersion: "2.0.0",maxVersion: "3.x.x"(any 3.x.x version) - Unbounded range:
minVersion: "2.0.0",maxVersion: "*"(any version >= 2.0.0)
Version Range Examples
Version Range Examples
Defining Dependencies
Add dependencies to your release metadata using version ranges:Dependency Resolution
Ryvn automatically resolves dependencies during deployment:- Order calculation: Determines the optimal deployment order
- Health checks: Ensures dependent services are healthy before proceeding
- Rollback coordination: Handles rollbacks across dependent services
Migration Schemas
Migration schemas define which database schema versions are supported by the current release. This enables Ryvn to compute valid migration paths and prevent rollbacks to unsupported schema versions.Schema Version Support
Each release specifies a list of supported schema versions:- Current schema versions: The schema versions that this release supports
- Migration path validation: Ryvn ensures rollbacks only target supported schema versions
- Version compatibility: Prevents deployment to releases with incompatible schemas
Migration Schema Format
Troubleshooting
Common Issues
Artifact Not Found
Artifact Not Found
Ensure the artifact repository and tag are accessible from Ryvn’s infrastructure. Check registry credentials and network connectivity.
Dependency Resolution Failed
Dependency Resolution Failed
Verify that all dependent services exist and are accessible. Check version compatibility and service health.
Metadata Validation Errors
Metadata Validation Errors
Check the metadata format against the schema. Ensure all required fields are present and valid.