Skip to content

Commit

Permalink
Fix validation of backup_period_in_hours and backup_retention_period_…
Browse files Browse the repository at this point in the history
…in_hours fields
  • Loading branch information
whites11 committed Oct 1, 2024
1 parent 5803bf2 commit b4bb611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/resource/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (r *ServiceResource) Schema(_ context.Context, _ resource.SchemaRequest, re
Computed: true,
Default: int32default.StaticInt32(24),
Validators: []validator.Int32{
int32validator.OneOf([]int32{24, 48, 72, 96, 120, 144, 168, 336, 504, 672, 720}...),
int32validator.OneOf([]int32{6, 8, 12, 16, 20, 24, 36, 48}...),
int32validator.ConflictsWith(path.MatchRoot("backup_configuration").AtName("backup_start_time")),
},
},
Expand All @@ -243,7 +243,7 @@ func (r *ServiceResource) Schema(_ context.Context, _ resource.SchemaRequest, re
Computed: true,
Default: int32default.StaticInt32(24),
Validators: []validator.Int32{
int32validator.OneOf([]int32{6, 8, 12, 16, 20, 24, 36, 48}...),
int32validator.OneOf([]int32{24, 48, 72, 96, 120, 144, 168, 336, 504, 672, 720}...),
},
},
"backup_start_time": schema.StringAttribute{
Expand Down

0 comments on commit b4bb611

Please sign in to comment.