Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
9030e7ba
Commit
9030e7ba
authored
Nov 07, 2018
by
jgleonard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fold subNotes into updateReq and instReq
Signed-off-by:
jgleonard
<
jgleonard@gmail.com
>
parent
b846560f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
client.go
pkg/helm/client.go
+0
-2
option.go
pkg/helm/option.go
+2
-4
No files found.
pkg/helm/client.go
View file @
9030e7ba
...
...
@@ -95,7 +95,6 @@ func (h *Client) InstallReleaseFromChart(chart *chart.Chart, ns string, opts ...
req
:=
&
reqOpts
.
instReq
req
.
Chart
=
chart
req
.
Namespace
=
ns
req
.
SubNotes
=
reqOpts
.
subNotes
req
.
DryRun
=
reqOpts
.
dryRun
req
.
DisableHooks
=
reqOpts
.
disableHooks
req
.
DisableCrdHook
=
reqOpts
.
disableCRDHook
...
...
@@ -172,7 +171,6 @@ func (h *Client) UpdateReleaseFromChart(rlsName string, chart *chart.Chart, opts
req
.
DryRun
=
reqOpts
.
dryRun
req
.
Name
=
rlsName
req
.
DisableHooks
=
reqOpts
.
disableHooks
req
.
SubNotes
=
reqOpts
.
subNotes
req
.
Recreate
=
reqOpts
.
recreate
req
.
Force
=
reqOpts
.
force
req
.
ResetValues
=
reqOpts
.
resetValues
...
...
pkg/helm/option.go
View file @
9030e7ba
...
...
@@ -54,8 +54,6 @@ type options struct {
// if set, skip CRD hook only
disableCRDHook
bool
// if set, render SubChart Notes
subNotes
bool
// name of release
releaseName
string
// tls.Config to use for rpc if tls enabled
tlsConfig
*
tls
.
Config
...
...
@@ -344,14 +342,14 @@ func InstallReuseName(reuse bool) InstallOption {
// InstallSubNotes will (if true) instruct Tiller to render SubChart Notes
func
InstallSubNotes
(
enable
bool
)
InstallOption
{
return
func
(
opts
*
options
)
{
opts
.
s
ubNotes
=
enable
opts
.
instReq
.
S
ubNotes
=
enable
}
}
// UpgradeSubNotes will (if true) instruct Tiller to render SubChart Notes
func
UpgradeSubNotes
(
enable
bool
)
UpdateOption
{
return
func
(
opts
*
options
)
{
opts
.
s
ubNotes
=
enable
opts
.
updateReq
.
S
ubNotes
=
enable
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment