Skip to content

Commit

Permalink
Mark kafka_version as optional
Browse files Browse the repository at this point in the history
For the free account you cannot pick kafka_version so this needs
to be optional.
For dedicated the version is instead validated server side
  • Loading branch information
snichme committed Apr 6, 2023
1 parent 505bce8 commit e257fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudkarafka/resource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
},
"kafka_version": schema.StringAttribute{
Description: "Which Apache Kafka version to use.",
Required: true,
Optional: true,
Validators: []validator.String{
stringvalidator.RegexMatches(
regexp.MustCompile(`^\d+\.\d+\.\d+$`),
Expand Down

0 comments on commit e257fa3

Please sign in to comment.