mirror of
https://github.com/helm/helm.git
synced 2026-08-08 00:51:55 +00:00
Check connectivity to cluster for helm test run
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
This commit is contained in:
@@ -46,6 +46,10 @@ func NewReleaseTesting(cfg *Configuration) *ReleaseTesting {
|
||||
|
||||
// Run executes 'helm test' against the given release.
|
||||
func (r *ReleaseTesting) Run(name string) error {
|
||||
if err := r.cfg.KubeClient.IsReachable(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := validateReleaseName(name); err != nil {
|
||||
return errors.Errorf("releaseTest: Release name is invalid: %s", name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user