Check connectivity to cluster for helm test run

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
pull/6386/head
Marc Khouzam 5 years ago
parent bc42dca470
commit 5aa7c20f7c

@ -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)
}

Loading…
Cancel
Save