-
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
add edas_k8s_application. #2729
base: master
Are you sure you want to change the base?
Conversation
|
c027d0a
to
25c79f2
Compare
36c66bb
to
1ecb3c6
Compare
if response.Code != 200 { | ||
return WrapError(Error("Create k8s application failed for " + response.Message)) | ||
} | ||
|
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.
d.setId 是不是应该放到response.code的下面
} | ||
if d.Get("package_type") == "Image" { | ||
d.Set("image_url", response.ImageInfo.ImageUrl) | ||
} |
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.
确定其他schema中的参数,describe方法没有返回值
package_type 为FatJar, War时,属性不写入state文件吗
Check: resource.ComposeTestCheckFunc( | ||
testAccCheck(map[string]string{ | ||
"application_name": name, | ||
"replicas": "1", |
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.
package_type和image_url也需要check
"application_name": CHECKSET, | ||
"replicas": "1", | ||
"image_url": CHECKSET, | ||
}), |
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.
同上
"replicas": CHECKSET, | ||
"package_type": CHECKSET, | ||
} | ||
|
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.
application_name,replicas,package_type checkset 可以去掉吧
@@ -31,7 +31,7 @@ func resourceAlicloudEdasK8sCluster() *schema.Resource { | |||
"namespace_id": { | |||
Type: schema.TypeString, | |||
Optional: true, | |||
ForceNew: true, | |||
Computed: true, | |||
}, |
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.
这里为什么要修改
Create an EDAS k8s application. | ||
|
||
-> **NOTE:** Available in 1.92.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.
版本号改为新版本
Basic Usage | ||
|
||
``` | ||
resource "alicloud_edas_k8s_application" "default" { |
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.
添加terraform
* `replicas` - Number of application instances. | ||
* `package_type` - Application package type. Optional parameter values include: FatJar, WAR and Image. | ||
* `image_url` - Mirror address. When the package_type is set to 'Image', this parameter item is available. | ||
|
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.
这里写出参和id
|
||
``` | ||
$ terraform import alicloud_edas_k8s_application.new_k8s_application application_id | ||
``` |
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.
new_k8s_application和文档保持一致写default,id用字母数字星号组合
No description provided.