Skip to content

(feat) Helm tests#1687

Open
gianlucam76 wants to merge 1 commit intoprojectsveltos:mainfrom
gianlucam76:helm-test
Open

(feat) Helm tests#1687
gianlucam76 wants to merge 1 commit intoprojectsveltos:mainfrom
gianlucam76:helm-test

Conversation

@gianlucam76
Copy link
Copy Markdown
Member

Expose options to run helm tests

	// RunTests if set to true, Sveltos will run helm test after each successful install or upgrade
	// operation. The tests are the test hooks defined in the chart (annotated with
	// "helm.sh/hook: test"). If any test fails the deployment is considered failed and the
	// error is surfaced in the ClusterSummary status, providing operational gating.
	// Has no effect in DryRun mode.
	// Default to false
	// +kubebuilder:default:=false
	// +optional
	RunTests bool `json:"runTests,omitempty"`

Fixes 668

Expose options to run helm tests

```yaml
	// RunTests if set to true, Sveltos will run helm test after each successful install or upgrade
	// operation. The tests are the test hooks defined in the chart (annotated with
	// "helm.sh/hook: test"). If any test fails the deployment is considered failed and the
	// error is surfaced in the ClusterSummary status, providing operational gating.
	// Has no effect in DryRun mode.
	// Default to false
	// +kubebuilder:default:=false
	// +optional
	RunTests bool `json:"runTests,omitempty"`
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Support for Helm Chart Testing in ClusterProfile

2 participants