Skip to content

Commit

Permalink
Update go to 1.21 (#257)
Browse files Browse the repository at this point in the history
* Update go to 1.21
* Update golangci-lint
  • Loading branch information
Icerzack authored Mar 20, 2024
1 parent e05f888 commit 16fa2b3
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'

- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
version: v1.56.2
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
run: git fetch --prune --unshallow

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'

- name: Import GPG key
id: import_gpg
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'

- name: Run test
run: make test
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ linters:
enable:
- asciicheck
- bodyclose
- depguard
- dogsled
- errcheck
- exhaustive
Expand Down Expand Up @@ -47,8 +46,6 @@ linters:
- whitespace

linters-settings:
dupl:
threshold: 425
nlreturn:
block-size: 3

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Requirements
------------

- [Terraform](https://www.terraform.io/downloads.html) 0.12.x
- [Go](https://golang.org/doc/install) 1.20 (to build the provider plugin)
- [Go](https://golang.org/doc/install) 1.21 (to build the provider plugin)

Building The Provider
---------------------
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/terraform-providers/terraform-provider-selectel

go 1.20
go 1.21

require (
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
Expand Down
8 changes: 8 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYU
github.com/apparentlymart/go-cidr v1.1.0 h1:2mAhrMoF+nhXqxTzSZMUzDHkLjmIHC+Zzn4tdgBZjnU=
github.com/apparentlymart/go-cidr v1.1.0/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc=
github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 h1:MzVXffFUye+ZcSR6opIgz9Co7WcDx6ZcY+RjfFHoA0I=
github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk=
github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec=
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
Expand All @@ -36,6 +37,7 @@ github.com/go-git/go-git-fixtures/v4 v4.2.1/go.mod h1:K8zd3kDUAykwTdDCr+I0per6Y6
github.com/go-git/go-git/v5 v5.4.2 h1:BXyZu9t0VkbiHtqrsvdq39UDhGJTl1h55VW6CSC4aY4=
github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti4ihgckDc=
github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68=
github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
Expand Down Expand Up @@ -105,10 +107,12 @@ github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKe
github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/jarcoal/httpmock v1.3.1 h1:iUx3whfZWVf3jT01hQTO/Eo5sAYtB2/rqaUuOtpInww=
github.com/jarcoal/httpmock v1.3.1/go.mod h1:3yb8rc4BI7TCBhFY8ng0gjuLKJNquuDNiPaZjnENuYg=
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4=
github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE=
github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74=
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 h1:DowS9hvgyYSX4TO5NpyC606/Z4SxnNYbT+WX27or6Ck=
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
Expand All @@ -121,6 +125,7 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA=
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
Expand All @@ -142,6 +147,7 @@ github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zx
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce h1:RPclfga2SEJmgMmz2k+Mg7cowZ8yv4Trqw9UsJby758=
github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4v2r9jz+c9i1IfIttS/OkmLfrk1jne5hs=
github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
Expand All @@ -161,6 +167,7 @@ github.com/selectel/mks-go v0.14.0 h1:huNq/oTutPc3ezB8HRqlGN9WJubTDETpNKuIVqcZOn
github.com/selectel/mks-go v0.14.0/go.mod h1:VxtV3dzwgOEzZc+9VMQb9DvxfSlej2ZQ8jnT8kqIGgU=
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down Expand Up @@ -235,6 +242,7 @@ golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4=
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
Expand Down
16 changes: 10 additions & 6 deletions selectel/data_source_selectel_mks_kube_options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func TestAccMKSAvailableFeatureGatesV1Basic(t *testing.T) {
Config: testKubeOptionsV1BasicConfig(projectName, dataSourceFeatureGates, kubeVersion),
Check: resource.ComposeTestCheckFunc(
testAccCheckVPCV2ProjectExists("selectel_vpc_project_v2.project_tf_acc_test_1", &project),
resource.TestCheckResourceAttr("data."+dataSourceFeatureGates+".dt", "feature_gates.0.kube_version", kubeVersionMinor),
testFeatureGatesIsNotEmpty("data."+dataSourceFeatureGates+".dt"),
resource.TestCheckResourceAttr(getDataSourceName(dataSourceFeatureGates), "feature_gates.0.kube_version", kubeVersionMinor),
testFeatureGatesIsNotEmpty(getDataSourceName(dataSourceFeatureGates)),
),
},
},
Expand All @@ -57,7 +57,7 @@ func TestAccMKSAvailableFeatureGatesV1NoFilter(t *testing.T) {
Config: testKubeOptionsV1ConfigNoFilter(projectName, dataSourceFeatureGates),
Check: resource.ComposeTestCheckFunc(
testAccCheckVPCV2ProjectExists("selectel_vpc_project_v2.project_tf_acc_test_1", &project),
testFeatureGatesNoFilter("data."+dataSourceFeatureGates+".dt"),
testFeatureGatesNoFilter(getDataSourceName(dataSourceFeatureGates)),
),
},
},
Expand All @@ -83,8 +83,8 @@ func TestAccMKSAvailableAdmissionControllersV1Basic(t *testing.T) {
Config: testKubeOptionsV1BasicConfig(projectName, dataSourceAdmissionControllers, kubeVersion),
Check: resource.ComposeTestCheckFunc(
testAccCheckVPCV2ProjectExists("selectel_vpc_project_v2.project_tf_acc_test_1", &project),
resource.TestCheckResourceAttr("data."+dataSourceAdmissionControllers+".dt", "admission_controllers.0.kube_version", kubeVersionMinor),
testAdmissionControllersIsNotEmpty("data."+dataSourceAdmissionControllers+".dt"),
resource.TestCheckResourceAttr(getDataSourceName(dataSourceAdmissionControllers), "admission_controllers.0.kube_version", kubeVersionMinor),
testAdmissionControllersIsNotEmpty(getDataSourceName(dataSourceAdmissionControllers)),
),
},
},
Expand All @@ -105,7 +105,7 @@ func TestAccMKSAvailableAdmissionControllersV1NoFilter(t *testing.T) {
Config: testKubeOptionsV1ConfigNoFilter(projectName, dataSourceAdmissionControllers),
Check: resource.ComposeTestCheckFunc(
testAccCheckVPCV2ProjectExists("selectel_vpc_project_v2.project_tf_acc_test_1", &project),
testAdmissionControllersNoFilter("data."+dataSourceAdmissionControllers+".dt"),
testAdmissionControllersNoFilter(getDataSourceName(dataSourceAdmissionControllers)),
),
},
},
Expand Down Expand Up @@ -232,3 +232,7 @@ data "%s" "dt" {
}
`, projectName, dataSource)
}

func getDataSourceName(dataSource string) string {
return fmt.Sprintf("data.%s.dt", dataSource)
}
2 changes: 1 addition & 1 deletion selectel/dbaas.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func dbaasDatabaseV1DeleteStateRefreshFunc(ctx context.Context, client *dbaas.AP
}
}

func dbaasDatabaseV1LocaleDiffSuppressFunc(k, old, new string, d *schema.ResourceData) bool {
func dbaasDatabaseV1LocaleDiffSuppressFunc(_, old, new string, _ *schema.ResourceData) bool {
// The default locale value - C is the same as null value, so we need to suppress
if old == "C" && new == "" {
return true
Expand Down
2 changes: 1 addition & 1 deletion selectel/domains_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestDomainsV1ParseDomainRecordIDsPair(t *testing.T) {
}
}

func TestGetIntPtrOrNil(t *testing.T) {
func TestGetIntPtrOrNil(_ *testing.T) {
tableTest := []struct {
input interface{}
expected *int
Expand Down
2 changes: 1 addition & 1 deletion selectel/mks.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func mksClusterV1StateRefreshFunc(
}
}

func mksClusterV1KubeVersionDiffSuppressFunc(k, old, new string, d *schema.ResourceData) bool {
func mksClusterV1KubeVersionDiffSuppressFunc(_, old, new string, d *schema.ResourceData) bool {
if d.Id() == "" {
return false
}
Expand Down
4 changes: 2 additions & 2 deletions selectel/resource_selectel_mks_cluster_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func resourceMKSClusterV1() *schema.Resource {
CustomizeDiff: customdiff.All(
customdiff.ComputedIf(
"maintenance_window_end",
func(ctx context.Context, d *schema.ResourceDiff, meta interface{}) bool {
func(_ context.Context, d *schema.ResourceDiff, _ interface{}) bool {
return d.HasChange("maintenance_window_start")
}),
),
Expand All @@ -45,7 +45,7 @@ func resourceMKSClusterV1() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
DiffSuppressFunc: func(_, old, new string, _ *schema.ResourceData) bool {
return strings.EqualFold(old, new)
},
},
Expand Down
2 changes: 1 addition & 1 deletion selectel/resource_selectel_mks_nodegroup_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func resourceMKSNodegroupV1() *schema.Resource {
Type: schema.TypeInt,
Required: true,
ForceNew: false,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
DiffSuppressFunc: func(_, _, _ string, d *schema.ResourceData) bool {
return d.Id() != "" && d.Get("enable_autoscale").(bool)
},
},
Expand Down
6 changes: 3 additions & 3 deletions selectel/resource_selectel_vpc_crossregion_subnet_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ func resourceVPCCrossRegionSubnetV2() *schema.Resource {
}
}

func resourceVPCCrossRegionSubnetV2Create(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceVPCCrossRegionSubnetV2Create(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
return diag.FromErr(errResourceDeprecated("selectel_vpc_crossregion_subnet_v2"))
}

func resourceVPCCrossRegionSubnetV2Read(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceVPCCrossRegionSubnetV2Read(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
return diag.FromErr(errResourceDeprecated("selectel_vpc_crossregion_subnet_v2"))
}

func resourceVPCCrossRegionSubnetV2Delete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceVPCCrossRegionSubnetV2Delete(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
return diag.FromErr(errResourceDeprecated("selectel_vpc_crossregion_subnet_v2"))
}
6 changes: 3 additions & 3 deletions selectel/resource_selectel_vpc_token_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ func resourceVPCTokenV2() *schema.Resource {
}
}

func resourceVPCTokenV2Create(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceVPCTokenV2Create(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
return diag.FromErr(errResourceDeprecated("selectel_vpc_token_v2"))
}

func resourceVPCTokenV2Read(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceVPCTokenV2Read(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
return diag.FromErr(errResourceDeprecated("selectel_vpc_token_v2"))
}

func resourceVPCTokenV2Delete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceVPCTokenV2Delete(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
return diag.FromErr(errResourceDeprecated("selectel_vpc_token_v2"))
}
2 changes: 1 addition & 1 deletion selectel/resource_selectel_vpc_user_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func resourceVPCUserV2() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: false,
ValidateDiagFunc: func(i interface{}, path cty.Path) diag.Diagnostics {
ValidateDiagFunc: func(i interface{}, _ cty.Path) diag.Diagnostics {
password := i.(string)
if len(password) < 8 {
return diag.Errorf("password must be at least 8 characters long")
Expand Down
6 changes: 3 additions & 3 deletions selectel/resource_selectel_vpc_vrrp_subnet_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ func resourceVPCVRRPSubnetV2() *schema.Resource {
}
}

func resourceVPCVRRPSubnetV2Create(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceVPCVRRPSubnetV2Create(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
return diag.FromErr(errResourceDeprecated("selectel_vpc_vrrp_subnet_v2"))
}

func resourceVPCVRRPSubnetV2Read(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceVPCVRRPSubnetV2Read(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
return diag.FromErr(errResourceDeprecated("selectel_vpc_vrrp_subnet_v2"))
}

func resourceVPCVRRPSubnetV2Delete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func resourceVPCVRRPSubnetV2Delete(_ context.Context, _ *schema.ResourceData, _ interface{}) diag.Diagnostics {
return diag.FromErr(errResourceDeprecated("selectel_vpc_vrrp_subnet_v2"))
}

0 comments on commit 16fa2b3

Please sign in to comment.