mirror of
https://github.com/portainer/portainer.git
synced 2025-11-26 14:06:05 +08:00
fix(stackbuilders): swarm and k8s deploys [BE-12138] (#1003)
This commit is contained in:
@@ -28,6 +28,12 @@ func CreateSwarmStackFileUploadBuilder(securityContext *security.RestrictedReque
|
||||
}
|
||||
}
|
||||
|
||||
func (b *SwarmStackFileUploadBuilder) SetGeneralInfo(payload *StackPayload, endpoint *portainer.Endpoint) FileUploadMethodStackBuildProcess {
|
||||
b.FileUploadMethodStackBuilder.SetGeneralInfo(payload, endpoint)
|
||||
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *SwarmStackFileUploadBuilder) SetUniqueInfo(payload *StackPayload) FileUploadMethodStackBuildProcess {
|
||||
if b.hasError() {
|
||||
return b
|
||||
@@ -42,6 +48,16 @@ func (b *SwarmStackFileUploadBuilder) SetUniqueInfo(payload *StackPayload) FileU
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *SwarmStackFileUploadBuilder) SetUploadedFile(payload *StackPayload) FileUploadMethodStackBuildProcess {
|
||||
if b.hasError() {
|
||||
return b
|
||||
}
|
||||
|
||||
b.FileUploadMethodStackBuilder.SetUploadedFile(payload)
|
||||
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *SwarmStackFileUploadBuilder) Deploy(payload *StackPayload, endpoint *portainer.Endpoint) FileUploadMethodStackBuildProcess {
|
||||
if b.hasError() {
|
||||
return b
|
||||
|
||||
Reference in New Issue
Block a user