1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(edge-stack): relative path support for edge stack EE-5521 (#9103)

This commit is contained in:
cmeng 2023-06-23 09:41:50 +12:00 committed by GitHub
parent 4cc96b4b30
commit 7cb6e3f66a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 163 additions and 26 deletions

View file

@ -1,5 +1,7 @@
package edge
import "github.com/portainer/portainer/api/filesystem"
type (
// StackPayload represents the payload sent to the agent
@ -8,35 +10,36 @@ type (
ID int
// Name of the stack
Name string
// Content of the stack file
FileContent string
// Content of stack folder
DirEntries []filesystem.DirEntry
// Name of the stack entry file
EntryFileName string
// Namespace to use for kubernetes stack. Keep empty to use the manifest namespace.
Namespace string
// Version of the stack file
Version int
// Content of the .env file
DotEnvFileContent string
// RegistryCredentials holds the credentials for a Docker registry.
//
// Used only for EE
RegistryCredentials []RegistryCredentials
// PrePullImage is a flag indicating if the agent should pull the image before deploying the stack.
//
// Used only for EE
PrePullImage bool
// RePullImage is a flag indicating if the agent should pull the image if it is already present on the node.
//
// Used only for EE
RePullImage bool
// RetryDeploy is a flag indicating if the agent should retry to deploy the stack if it fails.
//
// Used only for EE
RetryDeploy bool
// EdgeUpdateID is the ID of the edge update related to this stack.
//
// Used only for EE
EdgeUpdateID int
// Is relative path supported
SupportRelativePath bool
// Mount point for relative path
FilesystemPath string
}
// RegistryCredentials holds the credentials for a Docker registry.