Skip to content

Commit

Permalink
fix(application): allow both placement and constraints together.
Browse files Browse the repository at this point in the history
Some constraints and placement details can conflict with each other but
not all. Specifying memory size and to use a specific machine doesn't
work. Spaces and placement can coexist however.

Let the jujud decide how to resolve conflicts between placement and
constraints.
  • Loading branch information
hmlanigan committed Jun 6, 2024
1 parent cdf7aec commit 6dc1eb2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/provider/resource_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ func (r *machineResource) Schema(_ context.Context, req resource.SchemaRequest,
Validators: []validator.String{
stringvalidator.ConflictsWith(path.Expressions{
path.MatchRoot(SSHAddressKey),
path.MatchRoot(ConstraintsKey),
}...),
},
},
Expand Down

0 comments on commit 6dc1eb2

Please sign in to comment.