[fake] make InstallReleaseFromChart obey DryRun

pull/4346/head
Mike Lundy 6 years ago
parent 50ca1b5bb5
commit 327080161d

@ -97,7 +97,9 @@ func (c *FakeClient) InstallReleaseFromChart(chart *chart.Chart, ns string, opts
}
release := ReleaseMock(&MockReleaseOptions{Name: releaseName, Namespace: ns, Description: releaseDescription})
c.Rels = append(c.Rels, release)
if !c.Opts.dryRun {
c.Rels = append(c.Rels, release)
}
return &rls.InstallReleaseResponse{
Release: release,

Loading…
Cancel
Save