mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(stack): backport changes to CE EE-1189
This commit is contained in:
parent
141ee11799
commit
9fae031390
14 changed files with 929 additions and 142 deletions
|
@ -750,6 +750,10 @@ type (
|
|||
AutoUpdate *StackAutoUpdate `json:"AutoUpdate"`
|
||||
// The git config of this stack
|
||||
GitConfig *gittypes.RepoConfig
|
||||
// Kubernetes namespace if stack is a kube application
|
||||
Namespace string `example:"default"`
|
||||
// IsComposeFormat indicates if the Kubernetes stack is created from a Docker Compose file
|
||||
IsComposeFormat bool `example:"false"`
|
||||
}
|
||||
|
||||
//StackAutoUpdate represents the git auto sync config for stack deployment
|
||||
|
@ -1231,7 +1235,7 @@ type (
|
|||
// KubernetesDeployer represents a service to deploy a manifest inside a Kubernetes endpoint
|
||||
KubernetesDeployer interface {
|
||||
Deploy(request *http.Request, endpoint *Endpoint, data string, namespace string) (string, error)
|
||||
ConvertCompose(data string) ([]byte, error)
|
||||
ConvertCompose(data []byte) ([]byte, error)
|
||||
}
|
||||
|
||||
// KubernetesSnapshotter represents a service used to create Kubernetes endpoint snapshots
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue