mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(helm): helm actions [r8s-259] (#715)
Co-authored-by: James Player <james.player@portainer.io> Co-authored-by: Cara Ryan <cara.ryan@portainer.io> Co-authored-by: stevensbkang <skan070@gmail.com>
This commit is contained in:
parent
dfa32b6755
commit
4ee349bd6b
117 changed files with 4161 additions and 696 deletions
|
@ -62,8 +62,7 @@ func (hspm *HelmSDKPackageManager) getValues(getOpts options.GetOptions) (releas
|
|||
return release.Values{}, err
|
||||
}
|
||||
|
||||
// Create client for user supplied values
|
||||
userValuesClient := action.NewGetValues(actionConfig)
|
||||
userValuesClient := hspm.initValuesClient(actionConfig, getOpts)
|
||||
userSuppliedValues, err := userValuesClient.Run(getOpts.Name)
|
||||
if err != nil {
|
||||
log.Error().
|
||||
|
@ -116,3 +115,11 @@ func (hspm *HelmSDKPackageManager) getValues(getOpts options.GetOptions) (releas
|
|||
ComputedValues: computedValuesString,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (hspm *HelmSDKPackageManager) initValuesClient(actionConfig *action.Configuration, getOpts options.GetOptions) *action.GetValues {
|
||||
valuesClient := action.NewGetValues(actionConfig)
|
||||
if getOpts.Revision > 0 {
|
||||
valuesClient.Version = getOpts.Revision
|
||||
}
|
||||
return valuesClient
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue