mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(helm): enhance helm chart install [r8s-341] (#766)
This commit is contained in:
parent
caac45b834
commit
a9061e5258
29 changed files with 864 additions and 562 deletions
|
@ -19,6 +19,7 @@ type ShowOptions struct {
|
|||
OutputFormat ShowOutputFormat
|
||||
Chart string
|
||||
Repo string
|
||||
Version string
|
||||
|
||||
Env []string
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ func (hspm *HelmSDKPackageManager) Show(showOpts options.ShowOptions) ([]byte, e
|
|||
func initShowClient(actionConfig *action.Configuration, showOpts options.ShowOptions) (*action.Show, error) {
|
||||
showClient := action.NewShowWithConfig(action.ShowAll, actionConfig)
|
||||
showClient.ChartPathOptions.RepoURL = showOpts.Repo
|
||||
showClient.ChartPathOptions.Version = "" // Latest version
|
||||
showClient.ChartPathOptions.Version = showOpts.Version // If version is "", it will use the latest version
|
||||
|
||||
// Set output type based on ShowOptions
|
||||
switch showOpts.OutputFormat {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue