|
|
@ -26,8 +26,7 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// Option allows specifying various settings configurable by
|
|
|
|
// Option allows specifying various settings configurable by
|
|
|
|
// the helm client user for overriding the defaults used when
|
|
|
|
// the helm client user for overriding the defaults.
|
|
|
|
// issuing rpc's to the Tiller release server.
|
|
|
|
|
|
|
|
type Option func(*options)
|
|
|
|
type Option func(*options)
|
|
|
|
|
|
|
|
|
|
|
|
// options specify optional settings used by the helm client.
|
|
|
|
// options specify optional settings used by the helm client.
|
|
|
@ -60,9 +59,9 @@ type options struct {
|
|
|
|
before func(interface{}) error
|
|
|
|
before func(interface{}) error
|
|
|
|
// release history options are applied directly to the get release history request
|
|
|
|
// release history options are applied directly to the get release history request
|
|
|
|
histReq hapi.GetHistoryRequest
|
|
|
|
histReq hapi.GetHistoryRequest
|
|
|
|
// resetValues instructs Tiller to reset values to their defaults.
|
|
|
|
// resetValues instructs Helm to reset values to their defaults.
|
|
|
|
resetValues bool
|
|
|
|
resetValues bool
|
|
|
|
// reuseValues instructs Tiller to reuse the values from the last release.
|
|
|
|
// reuseValues instructs Helm to reuse the values from the last release.
|
|
|
|
reuseValues bool
|
|
|
|
reuseValues bool
|
|
|
|
// release test options are applied directly to the test release history request
|
|
|
|
// release test options are applied directly to the test release history request
|
|
|
|
testReq hapi.TestReleaseRequest
|
|
|
|
testReq hapi.TestReleaseRequest
|
|
|
@ -262,7 +261,7 @@ func InstallDisableHooks(disable bool) InstallOption {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// InstallReuseName will (if true) instruct Tiller to re-use an existing name.
|
|
|
|
// InstallReuseName will (if true) instruct Helm to re-use an existing name.
|
|
|
|
func InstallReuseName(reuse bool) InstallOption {
|
|
|
|
func InstallReuseName(reuse bool) InstallOption {
|
|
|
|
return func(opts *options) {
|
|
|
|
return func(opts *options) {
|
|
|
|
opts.reuseName = reuse
|
|
|
|
opts.reuseName = reuse
|
|
|
@ -325,7 +324,7 @@ func ResetValues(reset bool) UpdateOption {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ReuseValues will cause Tiller to reuse the values from the last release.
|
|
|
|
// ReuseValues will cause Helm to reuse the values from the last release.
|
|
|
|
// This is ignored if ResetValues is true.
|
|
|
|
// This is ignored if ResetValues is true.
|
|
|
|
func ReuseValues(reuse bool) UpdateOption {
|
|
|
|
func ReuseValues(reuse bool) UpdateOption {
|
|
|
|
return func(opts *options) {
|
|
|
|
return func(opts *options) {
|
|
|
|