Validating Designs
Categories:
How Validation Works
Meshery uses static analysis to verify your design. It checks all components within your design and all configured and unconfigured properties of your components against well-defined schemas based on Meshery Models.
This comprehensive validation ensures that:
The design adheres to the expected structure and format.
All components are valid and recognized by Meshery.
There are no missing required configurations.
Performing Validation
To validate your design, navigate to the Actions button at the top of the Design canvas.
Click on the Validate Icon.
If the validation is successful, you will see a modal displaying the number of components validated and the number of annotations, similar to the one shown below:
Handling Validation Errors
If your design fails validation checks, the modal will indicate the number of errors detected. Each error will provide specific information about the component or annotation that caused the failure. Use this detailed feedback to identify and correct the issues in your design before proceeding with the deployment.
Validation Errors
A common validation error is:
Missing Required Field: This happens when a required field is not provided. For example, in the image below, the first error indicates that the field “.spec.template.spec.containers.0.env.0” must have a value.
To troubleshoot and remediate validation issues:
- Click on the error on the modal.
- This will open the configuration tab of the component that has that error.
- Fix the configuration using the error details provided.
- Re-run validation after any significant changes to your design to ensure all issues are resolved.
The validation process is confined to schema-based checks within Meshery and does not require communication with your target environment.
Recent Discussions on Kanvas
- Oct 14 | Explore Meshery's Published Relationship Design Examples by Awani Alero
- Oct 03 | Design Review RFC: Kanvas Empty State Enhancement by Lee Calcote
- Jul 19 | [For Discussion] Visual indication of semantically vs non-semantically meaningful Meshery components by Lee Calcote
- Jun 07 | What are the conditions for a "System is unhealthy" warning? by James
- May 30 | Looking for a meshmate to help with first PR by Faisal Imtiyaz123
- Feb 28 | For Discussion: Capturing potential, but unrealized Relationships in Design Snapshots by Lee Calcote
- Feb 12 | Hint on Scaling & Verifying Cronjob in Playground by Sandra Ashipala
- Sep 28 | Trying to add screenshots of Containerd & Curiefense integration by Raman Thakur