Skip to content

Commit

Permalink
Merge pull request #108 from syseleven/no_replica_default
Browse files Browse the repository at this point in the history
K8s-11418 Remove default replicas amount
  • Loading branch information
mmertdogann authored Sep 18, 2024
2 parents bd1f1fe + 32ebe58 commit 805ace8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metakube/resource_node_deployment_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ func metakubeResourceNodeDeploymentSpecFields() map[string]*schema.Schema {
"replicas": {
Type: schema.TypeInt,
Optional: true,
Default: 3,
Description: "Number of replicas",
ConflictsWith: []string{"spec.0.min_replicas", "spec.0.max_replicas"},
ExactlyOneOf: []string{"spec.0.replicas", "spec.0.max_replicas"},
DiffSuppressFunc: func(_, _, _ string, d *schema.ResourceData) bool {
minv, ok1 := d.GetOk("spec.0.min_replicas")
maxv, ok2 := d.GetOk("spec.0.max_replicas")
Expand Down

0 comments on commit 805ace8

Please sign in to comment.