Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edas k8s dep. depend on previous pull request: edas-k8s-app #2739

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

Heleninsa
Copy link
Contributor

No description provided.

@Heleninsa Heleninsa closed this Aug 21, 2020
@Heleninsa Heleninsa reopened this Aug 21, 2020
@Heleninsa
Copy link
Contributor Author

Test result:

9C73FCE3-8032-4A0C-B13A-B0B852B5AC91


Create an EDAS k8s application.For information about EDAS K8s Application and how to use it, see [What is EDAS K8s Application](https://www.alibabacloud.com/help/doc-detail/85029.htm).

-> **NOTE:** Available in 1.95.0+
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.96.0

@@ -967,10 +967,12 @@
<li>
<a href="/docs/providers/alicloud/r/edas_k8s_cluster.html">alicloud_edas_k8s_cluster</a>
</li>
<li>
<a href="/docs/prodivers/alicloud/r/edas_k8s_application.html">alicloud_edas_k8s_application</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个顺序按照首字母进行排序

}
}

func resourceAlicloudEdasK8sApplicationUpdate(d *schema.ResourceData, meta interface{}) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 update 接口和 create 调整下顺序,另外这个 update 接口逻辑是有问题的,我们在 update 中使用 d.hasChange 去判断该属性是否有变化,如果所有属性都没有变化的话是不需要调用 update 接口的;update 中还需要使用 IsNewResource 判断是否是 Create 之后的新资源,如果是的话,在 Create 中设置的参数就不需要在 新资源 的 update 中进行设置了,这个可以参考 kvstore_instance 的写法;

testAccCheck(map[string]string{
"image_url": updateImg,
"replicas": "3",
}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

支持变更的参数都要在 test case 中进行变更测试;

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants