Skip to content

Commit

Permalink
feat: vke update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyaming0800 committed Aug 31, 2022
1 parent ae5f2fb commit 1399fc7
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@ func defaultNodePoolNodeHash(v interface{}) int {
buf.WriteString(fmt.Sprintf("%s-", strings.ToLower(strconv.FormatBool(m["additional_container_storage_enabled"].(bool)))))
buf.WriteString(fmt.Sprintf("%s-", strings.ToLower(m["image_id"].(string))))
if m["additional_container_storage_enabled"].(bool) {
buf.WriteString(fmt.Sprintf("%s", strings.ToLower(m["container_storage_path"].(string))))
buf.WriteString(fmt.Sprintf("%s-", strings.ToLower(m["container_storage_path"].(string))))
}
return hashcode.String(buf.String())
}

func defaultNodePoolDiffSuppress() schema.SchemaDiffSuppressFunc {
return func(k, old, new string, d *schema.ResourceData) bool {
key := strings.ReplaceAll(k, "container_storage_path", "") + "additional_container_storage_enabled"
if d.Get(key) == false {
return true
}
return false
return d.Get(key) == false
//if d.Get(key) == false {
// return true
//}
//return false
}
}

Expand Down

0 comments on commit 1399fc7

Please sign in to comment.