diff --git a/resources/datahub/schema_aws_datahub.go b/resources/datahub/schema_aws_datahub.go index 0a405150..876d4814 100644 --- a/resources/datahub/schema_aws_datahub.go +++ b/resources/datahub/schema_aws_datahub.go @@ -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" @@ -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.", diff --git a/resources/datahub/schema_azure_datahub.go b/resources/datahub/schema_azure_datahub.go index eb8d37a8..06af614d 100644 --- a/resources/datahub/schema_azure_datahub.go +++ b/resources/datahub/schema_azure_datahub.go @@ -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" ) @@ -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.", diff --git a/resources/datahub/schema_gcp_datahub.go b/resources/datahub/schema_gcp_datahub.go index c2c34b35..bb663afc 100644 --- a/resources/datahub/schema_gcp_datahub.go +++ b/resources/datahub/schema_gcp_datahub.go @@ -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" @@ -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.",