mirror of
https://github.com/portainer/portainer.git
synced 2025-11-26 14:06:05 +08:00
chore(kompose): remove the code EE-4917 (#12003)
This commit is contained in:
@@ -54,20 +54,12 @@ func (config *KubernetesStackDeploymentConfig) Deploy() error {
|
||||
return errors.Wrap(err, "failed to read manifest file")
|
||||
}
|
||||
|
||||
if config.stack.IsComposeFormat {
|
||||
manifestContent, err = config.kubernetesDeployer.ConvertCompose(manifestContent)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to convert docker compose file to a kube manifest")
|
||||
}
|
||||
}
|
||||
|
||||
manifestContent, err = k.AddAppLabels(manifestContent, config.appLabels.ToMap())
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to add application labels")
|
||||
}
|
||||
|
||||
err = filesystem.WriteToFile(manifestFilePath, manifestContent)
|
||||
if err != nil {
|
||||
if err := filesystem.WriteToFile(manifestFilePath, manifestContent); err != nil {
|
||||
return errors.Wrap(err, "failed to create temp manifest file")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user