提交 cac5daa4 编写于 作者: L LiHui

Fix: save description when install release

Signed-off-by: NLiHui <andrewli@yunify.com>
上级 9fc0f8d8
...@@ -171,6 +171,7 @@ func (c *releaseOperator) CreateApplication(workspace, clusterName, namespace st ...@@ -171,6 +171,7 @@ func (c *releaseOperator) CreateApplication(workspace, clusterName, namespace st
}, },
Spec: v1alpha1.HelmReleaseSpec{ Spec: v1alpha1.HelmReleaseSpec{
Name: request.Name, Name: request.Name,
Description: stringutils.ShortenString(request.Description, v1alpha1.MsgLen),
Version: 1, Version: 1,
Values: strfmt.Base64(request.Conf), Values: strfmt.Base64(request.Conf),
ApplicationId: strings.TrimSuffix(request.AppId, v1alpha1.HelmApplicationAppStoreSuffix), ApplicationId: strings.TrimSuffix(request.AppId, v1alpha1.HelmApplicationAppStoreSuffix),
......
...@@ -738,6 +738,9 @@ type CreateClusterRequest struct { ...@@ -738,6 +738,9 @@ type CreateClusterRequest struct {
// release name // release name
Name string `json:"name"` Name string `json:"name"`
// release install description
Description string `json:"description"`
// advanced param // advanced param
AdvancedParam []string `json:"advanced_param"` AdvancedParam []string `json:"advanced_param"`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册