2022-12-01 14:27:49 +13:00
|
|
|
package options
|
|
|
|
|
2025-07-13 10:37:43 +12:00
|
|
|
import portainer "github.com/portainer/portainer/api"
|
|
|
|
|
2022-12-01 14:27:49 +13:00
|
|
|
// ShowOutputFormat is the format of the output of `helm show`
|
|
|
|
type ShowOutputFormat string
|
|
|
|
|
|
|
|
const (
|
|
|
|
// ShowAll is the format which shows all the information of a chart
|
|
|
|
ShowAll ShowOutputFormat = "all"
|
|
|
|
// ShowChart is the format which only shows the chart's definition
|
|
|
|
ShowChart ShowOutputFormat = "chart"
|
|
|
|
// ShowValues is the format which only shows the chart's values
|
|
|
|
ShowValues ShowOutputFormat = "values"
|
|
|
|
// ShowReadme is the format which only shows the chart's README
|
|
|
|
ShowReadme ShowOutputFormat = "readme"
|
|
|
|
)
|
|
|
|
|
|
|
|
// ShowOptions are portainer supported options for `helm install`
|
|
|
|
type ShowOptions struct {
|
|
|
|
OutputFormat ShowOutputFormat
|
|
|
|
Chart string
|
|
|
|
Repo string
|
2025-06-05 13:13:45 +12:00
|
|
|
Version string
|
2025-07-13 10:37:43 +12:00
|
|
|
Env []string
|
|
|
|
Registry *portainer.Registry // Registry credentials for authentication
|
2022-12-01 14:27:49 +13:00
|
|
|
}
|