Skip to content

Commit

Permalink
kubernetes: Add validation to maintenance_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
moreinhardt committed Dec 21, 2024
1 parent 075f685 commit 7fe8510
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions digitalocean/kubernetes/resource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ func ResourceDigitalOceanKubernetesCluster() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"day": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"any", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"}, true),
},
"start_time": {
Type: schema.TypeString,
Expand Down

0 comments on commit 7fe8510

Please sign in to comment.