mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(libhelm) import libhelm into CE pkg directory [EE-4650] (#8138)
* import libhelm and update some paths * remove file * update readme
This commit is contained in:
parent
9cdc0da615
commit
4fee359247
29 changed files with 1328 additions and 0 deletions
8
pkg/libhelm/options/cluster_access.go
Normal file
8
pkg/libhelm/options/cluster_access.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package options
|
||||
|
||||
// KubernetesClusterAccess represents core details which can be used to generate KubeConfig file/data
|
||||
type KubernetesClusterAccess struct {
|
||||
ClusterServerURL string `example:"https://mycompany.k8s.com"`
|
||||
CertificateAuthorityFile string `example:"/data/tls/localhost.crt"`
|
||||
AuthToken string `example:"ey..."`
|
||||
}
|
20
pkg/libhelm/options/get_options.go
Normal file
20
pkg/libhelm/options/get_options.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
package options
|
||||
|
||||
// releaseResource are the supported `helm get` sub-commands
|
||||
// to see all available sub-commands run `helm get --help`
|
||||
type releaseResource string
|
||||
|
||||
const (
|
||||
GetAll releaseResource = "all"
|
||||
GetHooks releaseResource = "hooks"
|
||||
GetManifest releaseResource = "manifest"
|
||||
GetNotes releaseResource = "notes"
|
||||
GetValues releaseResource = "values"
|
||||
)
|
||||
|
||||
type GetOptions struct {
|
||||
Name string
|
||||
Namespace string
|
||||
ReleaseResource releaseResource
|
||||
KubernetesClusterAccess *KubernetesClusterAccess
|
||||
}
|
12
pkg/libhelm/options/install_options.go
Normal file
12
pkg/libhelm/options/install_options.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package options
|
||||
|
||||
type InstallOptions struct {
|
||||
Name string
|
||||
Chart string
|
||||
Namespace string
|
||||
Repo string
|
||||
Wait bool
|
||||
ValuesFile string
|
||||
PostRenderer string
|
||||
KubernetesClusterAccess *KubernetesClusterAccess
|
||||
}
|
9
pkg/libhelm/options/list_options.go
Normal file
9
pkg/libhelm/options/list_options.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package options
|
||||
|
||||
// ListOptions are portainer supported options for `helm list`
|
||||
type ListOptions struct {
|
||||
Filter string
|
||||
Selector string
|
||||
Namespace string
|
||||
KubernetesClusterAccess *KubernetesClusterAccess
|
||||
}
|
5
pkg/libhelm/options/search_repo_options.go
Normal file
5
pkg/libhelm/options/search_repo_options.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package options
|
||||
|
||||
type SearchRepoOptions struct {
|
||||
Repo string
|
||||
}
|
22
pkg/libhelm/options/show_options.go
Normal file
22
pkg/libhelm/options/show_options.go
Normal file
|
@ -0,0 +1,22 @@
|
|||
package options
|
||||
|
||||
// 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
|
||||
}
|
8
pkg/libhelm/options/uninstall_options.go
Normal file
8
pkg/libhelm/options/uninstall_options.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package options
|
||||
|
||||
// UninstallOptions are portainer supported options for `helm uninstall`
|
||||
type UninstallOptions struct {
|
||||
Name string
|
||||
Namespace string
|
||||
KubernetesClusterAccess *KubernetesClusterAccess
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue