Skip to content

Commit

Permalink
CDPCP-12151 Removed incorrect Datahub cluster_template_name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
daszabo authored and gregito committed Jun 6, 2024
1 parent 4853447 commit 989654d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions resources/datahub/schema_aws_datahub.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ package datahub
import (
"context"

"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"

"github.com/cloudera/terraform-provider-cdp/utils"
Expand All @@ -31,9 +28,6 @@ func (r *awsDatahubResource) Schema(_ context.Context, _ resource.SchemaRequest,
"cluster_template": schema.StringAttribute{
MarkdownDescription: "The name of the cluster template.",
Optional: true,
Validators: []validator.String{
stringvalidator.AlsoRequires(path.MatchRelative().AtParent().AtName("instance_group")),
},
},
"cluster_definition": schema.StringAttribute{
MarkdownDescription: "The name of the cluster definition.",
Expand Down
6 changes: 0 additions & 6 deletions resources/datahub/schema_azure_datahub.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ package datahub
import (
"context"

"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"

"github.com/cloudera/terraform-provider-cdp/utils"
)
Expand All @@ -32,9 +29,6 @@ func (r *azureDatahubResource) Schema(_ context.Context, _ resource.SchemaReques
"cluster_template": schema.StringAttribute{
MarkdownDescription: "The name of the cluster template.",
Optional: true,
Validators: []validator.String{
stringvalidator.AlsoRequires(path.MatchRelative().AtParent().AtName("instance_group")),
},
},
"cluster_definition": schema.StringAttribute{
MarkdownDescription: "The name of the cluster definition.",
Expand Down
6 changes: 0 additions & 6 deletions resources/datahub/schema_gcp_datahub.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ package datahub
import (
"context"

"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"

"github.com/cloudera/terraform-provider-cdp/utils"
Expand Down Expand Up @@ -90,9 +87,6 @@ func (r *gcpDatahubResource) Schema(_ context.Context, _ resource.SchemaRequest,
"cluster_template_name": schema.StringAttribute{
MarkdownDescription: "The name of the cluster template.",
Optional: true,
Validators: []validator.String{
stringvalidator.AlsoRequires(path.MatchRelative().AtParent().AtName("instance_group")),
},
},
"cluster_definition_name": schema.StringAttribute{
MarkdownDescription: "The name of the cluster definition.",
Expand Down

0 comments on commit 989654d

Please sign in to comment.