-
Notifications
You must be signed in to change notification settings - Fork 565
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
base: master
Are you sure you want to change the base?
Conversation
alicloud/resource_alicloud_edas_k8s_application_package_attachment.go
Outdated
Show resolved
Hide resolved
website/docs/r/edas_k8s_application_package_attachment.html.markdown
Outdated
Show resolved
Hide resolved
alicloud/resource_alicloud_edas_k8s_application_package_attachment_test.go
Outdated
Show resolved
Hide resolved
alicloud/resource_alicloud_edas_k8s_application_package_attachment.go
Outdated
Show resolved
Hide resolved
alicloud/resource_alicloud_edas_k8s_application_package_attachment_test.go
Outdated
Show resolved
Hide resolved
|
||
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+ |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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", | ||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
支持变更的参数都要在 test case 中进行变更测试;
|
No description provided.