Commit 9030e7ba authored by jgleonard's avatar jgleonard

fold subNotes into updateReq and instReq

Signed-off-by: 's avatarjgleonard <jgleonard@gmail.com>
parent b846560f
...@@ -95,7 +95,6 @@ func (h *Client) InstallReleaseFromChart(chart *chart.Chart, ns string, opts ... ...@@ -95,7 +95,6 @@ func (h *Client) InstallReleaseFromChart(chart *chart.Chart, ns string, opts ...
req := &reqOpts.instReq req := &reqOpts.instReq
req.Chart = chart req.Chart = chart
req.Namespace = ns req.Namespace = ns
req.SubNotes = reqOpts.subNotes
req.DryRun = reqOpts.dryRun req.DryRun = reqOpts.dryRun
req.DisableHooks = reqOpts.disableHooks req.DisableHooks = reqOpts.disableHooks
req.DisableCrdHook = reqOpts.disableCRDHook req.DisableCrdHook = reqOpts.disableCRDHook
...@@ -172,7 +171,6 @@ func (h *Client) UpdateReleaseFromChart(rlsName string, chart *chart.Chart, opts ...@@ -172,7 +171,6 @@ func (h *Client) UpdateReleaseFromChart(rlsName string, chart *chart.Chart, opts
req.DryRun = reqOpts.dryRun req.DryRun = reqOpts.dryRun
req.Name = rlsName req.Name = rlsName
req.DisableHooks = reqOpts.disableHooks req.DisableHooks = reqOpts.disableHooks
req.SubNotes = reqOpts.subNotes
req.Recreate = reqOpts.recreate req.Recreate = reqOpts.recreate
req.Force = reqOpts.force req.Force = reqOpts.force
req.ResetValues = reqOpts.resetValues req.ResetValues = reqOpts.resetValues
......
...@@ -54,8 +54,6 @@ type options struct { ...@@ -54,8 +54,6 @@ type options struct {
// if set, skip CRD hook only // if set, skip CRD hook only
disableCRDHook bool disableCRDHook bool
// if set, render SubChart Notes // if set, render SubChart Notes
subNotes bool
// name of release
releaseName string releaseName string
// tls.Config to use for rpc if tls enabled // tls.Config to use for rpc if tls enabled
tlsConfig *tls.Config tlsConfig *tls.Config
...@@ -344,14 +342,14 @@ func InstallReuseName(reuse bool) InstallOption { ...@@ -344,14 +342,14 @@ func InstallReuseName(reuse bool) InstallOption {
// InstallSubNotes will (if true) instruct Tiller to render SubChart Notes // InstallSubNotes will (if true) instruct Tiller to render SubChart Notes
func InstallSubNotes(enable bool) InstallOption { func InstallSubNotes(enable bool) InstallOption {
return func(opts *options) { return func(opts *options) {
opts.subNotes = enable opts.instReq.SubNotes = enable
} }
} }
// UpgradeSubNotes will (if true) instruct Tiller to render SubChart Notes // UpgradeSubNotes will (if true) instruct Tiller to render SubChart Notes
func UpgradeSubNotes(enable bool) UpdateOption { func UpgradeSubNotes(enable bool) UpdateOption {
return func(opts *options) { return func(opts *options) {
opts.subNotes = enable opts.updateReq.SubNotes = enable
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment