Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Readme.md

Schema Helm Chart

A simple example Helm chart for Kubernetes with schema validation.

This chart demonstrates Helm's schema validation feature using a values.schema.json file. Schema validation ensures that user-provided values conform to expected formats and constraints before deployment.

Use cases:

  • Prevent deployment failures due to invalid configuration values
  • Enforce naming conventions and formatting standards
  • Validate data types and ranges (e.g., port numbers, replica counts)
  • Ensure consistency across teams and environments

Usage

Render the chart templates without errors:

helm template my-release .

Example: Validation Error If you provide an invalid value, Helm will fail validation. For instance, this will raise an error due to an invalid image tag format:

helm template my-release . --set image.tag=latest