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

Add cce node pool resource #511

Merged
merged 3 commits into from
Sep 8, 2020
Merged

Conversation

smilemusic
Copy link
Contributor

@smilemusic smilemusic commented Sep 4, 2020

make testacc TEST=./huaweicloud/ TESTARGS='-run TestAccCCENodePool_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud/ -v -run TestAccCCENodePool_basic -timeout 360m
=== RUN TestAccCCENodePool_basic
--- PASS: TestAccCCENodePool_basic (837.03s)
PASS
ok github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud 837.063s

Comment on lines 131 to 166
"eip_ids": {
Type: schema.TypeSet,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
Set: schema.HashString,
ConflictsWith: []string{
"eip_id", "iptype", "bandwidth_charge_mode", "bandwidth_size", "sharetype",
},
Deprecated: "use eip_id instead",
},
"eip_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ConflictsWith: []string{
"eip_ids", "iptype", "bandwidth_charge_mode", "bandwidth_size", "sharetype",
},
},
"bandwidth_charge_mode": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ConflictsWith: []string{"eip_ids", "eip_id"},
},
"iptype": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
RequiredWith: []string{
"iptype", "bandwidth_size", "sharetype",
},
},
"sharetype": {
Type: schema.TypeString,
Optional: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

"eip_ids", "iptype", "bandwidth_charge_mode", "bandwidth_size" and "sharetype" are not necessary for now.

"iptype", "bandwidth_size", "sharetype",
},
},
"billing_mode": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

the billing_mod can only be 0 for nodepool, so we can mark it as a computed attribute.

@smilemusic smilemusic force-pushed the cce-node-pool branch 2 times, most recently from bda8a36 to ea9ba76 Compare September 7, 2020 02:46
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAjpC1hwiOCCmKEWxJ4qzTTsJbKzndLo1BCz5PcwtUnflmU+gHJtWMZKpuEGVi29h0A/+ydKek1O18k10Ff+4tyFjiHDQAT9+OfgWf7+b1yK+qDip3X1C0UPMbwHlTfSGWLGZquwhvEFx9k3h/M+VtMvwR1lJ9LUyTAImnNjWG7TAIPmui30HvM2UiFEmqkr4ijq45MyX2+fLIePLRIFuu1p4whjHAQYufqyno3BS48icQb4p6iVEZPo4AE2o9oIyQvj2mx4dk5Y8CgSETOZTYDOR3rU2fZTRDRgPJDH9FWvQjF5tA0p3d9CoWWd2s6GKKbfoUIi8R/Db1BSPJwkqB jrp-hp-pc"
}

resource "huaweicloud_cce_cluster_v3" "test" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please use huaweicloud_cce_cluster instead of it.

flavor_id = "s3.large.4"
availability_zone = var.availability_zone
key_pair = var.keypair
region = "cn-east-3"
Copy link
Collaborator

Choose a reason for hiding this comment

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

region is not supported?


* `os` - (Optional) Operating System of the node. Changing this parameter will create a new resource.
- For VM nodes, clusters of v1.13 and later support *EulerOS 2.5* and *CentOS 7.6*.
- For BMS nodes purchased in the yearly/monthly billing mode, only *EulerOS 2.3* is supported.
Copy link
Collaborator

Choose a reason for hiding this comment

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

node pools only support VM nodes cluster, so the supported OS are EulerOS 2.5 and CentOS 7.6

@ShiChangkuo ShiChangkuo merged commit e9e630d into huaweicloud:master Sep 8, 2020
@ShiChangkuo ShiChangkuo mentioned this pull request Sep 9, 2020
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.

None yet

2 participants