Skip to content

Commit

Permalink
Remove deprecated resources
Browse files Browse the repository at this point in the history
  • Loading branch information
sel-bukharov committed Nov 21, 2024
1 parent e9f393f commit 165e81f
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 440 deletions.
7 changes: 0 additions & 7 deletions selectel/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/selectel/go-selvpcclient/v3/selvpcclient"
"github.com/selectel/go-selvpcclient/v3/selvpcclient/resell/v2/subnets"
"github.com/terraform-providers/terraform-provider-selectel/selectel/internal/hashcode"
)

func getPrefixLengthFromCIDR(cidr string) (int, error) {
Expand Down Expand Up @@ -53,9 +52,3 @@ func subnetsMapsFromStructs(subnetsStructs []subnets.Subnet) []map[string]interf

return associatedSubnets
}

// hashSubnets is a hash function to use with the "subnet" set.
func hashSubnets(v interface{}) int {
m := v.(map[string]interface{})
return hashcode.String(fmt.Sprintf("%s-", m["network_id"].(string)))
}
5 changes: 0 additions & 5 deletions selectel/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,14 @@ func Provider() *schema.Provider {
"selectel_vpc_keypair_v2": resourceVPCKeypairV2(),
"selectel_vpc_license_v2": resourceVPCLicenseV2(),
"selectel_vpc_project_v2": resourceVPCProjectV2(),
"selectel_vpc_role_v2": resourceVPCRoleV2(), // DEPRECATED
"selectel_vpc_subnet_v2": resourceVPCSubnetV2(),
"selectel_vpc_token_v2": resourceVPCTokenV2(), // DEPRECATED
"selectel_vpc_user_v2": resourceVPCUserV2(), // DEPRECATED
"selectel_iam_serviceuser_v1": resourceIAMServiceUserV1(),
"selectel_iam_user_v1": resourceIAMUserV1(),
"selectel_iam_s3_credentials_v1": resourceIAMS3CredentialsV1(),
"selectel_iam_saml_federation_v1": resourceIAMSAMLFederationV1(),
"selectel_iam_saml_federation_certificate_v1": resourceIAMSAMLFederationCertificateV1(),
"selectel_iam_group_v1": resourceIAMGroupV1(),
"selectel_iam_group_membership_v1": resourceIAMGroupMembershipV1(),
"selectel_vpc_vrrp_subnet_v2": resourceVPCVRRPSubnetV2(), // DEPRECATED
"selectel_vpc_crossregion_subnet_v2": resourceVPCCrossRegionSubnetV2(), // DEPRECATED
"selectel_mks_cluster_v1": resourceMKSClusterV1(),
"selectel_mks_nodegroup_v1": resourceMKSNodegroupV1(),
"selectel_domains_domain_v1": resourceDomainsDomainV1(),
Expand Down
7 changes: 0 additions & 7 deletions selectel/regions.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/selectel/go-selvpcclient/v3/selvpcclient"
"github.com/terraform-providers/terraform-provider-selectel/selectel/internal/hashcode"
)

func expandVPCV2Regions(rawRegions *schema.Set) []string {
Expand All @@ -20,12 +19,6 @@ func expandVPCV2Regions(rawRegions *schema.Set) []string {
return expandedRegions
}

// hashRegions is a hash function to use with the "regions" set.
func hashRegions(v interface{}) int {
m := v.(map[string]interface{})
return hashcode.String(fmt.Sprintf("%s-", m["region"].(string)))
}

func validateRegion(selvpcClient *selvpcclient.Client, serviceType string, region string) error {
endpoints, err := selvpcClient.Catalog.GetEndpoints(serviceType)
if err != nil {
Expand Down
124 changes: 0 additions & 124 deletions selectel/resource_selectel_vpc_crossregion_subnet_v2.go

This file was deleted.

43 changes: 0 additions & 43 deletions selectel/resource_selectel_vpc_role_v2.go

This file was deleted.

42 changes: 0 additions & 42 deletions selectel/resource_selectel_vpc_token_v2.go

This file was deleted.

79 changes: 0 additions & 79 deletions selectel/resource_selectel_vpc_user_v2.go

This file was deleted.

Loading

0 comments on commit 165e81f

Please sign in to comment.