Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation warning to various resources #1591

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func dataSourceBlockStorageSnapshotV2() *schema.Resource {
return &schema.Resource{
ReadContext: dataSourceBlockStorageSnapshotV2Read,

DeprecationMessage: "use openstack_blockstorage_snapshot_v3 data-source instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/data_source_openstack_blockstorage_volume_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func dataSourceBlockStorageVolumeV2() *schema.Resource {
return &schema.Resource{
ReadContext: dataSourceBlockStorageVolumeV2Read,

DeprecationMessage: "use openstack_blockstorage_volume_v3 data-source instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/data_source_openstack_fw_policy_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func dataSourceFWPolicyV1() *schema.Resource {
return &schema.Resource{
ReadContext: dataSourceFWPolicyV1Read,

DeprecationMessage: "use openstack_fw_policy_v2 data-source instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_blockstorage_quotaset_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func resourceBlockStorageQuotasetV2() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "use openstack_blockstorage_quotaset_v3 resource instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func resourceBlockStorageVolumeAttachV2() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "use openstack_blockstorage_volume_attach_v3 resource instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_blockstorage_volume_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func resourceBlockStorageVolumeV1() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "use openstack_blockstorage_volume_v3 resource instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_blockstorage_volume_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func resourceBlockStorageVolumeV2() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "use openstack_blockstorage_volume_v3 resource instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_fw_firewall_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func resourceFWFirewallV1() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "openstack_fw_fireall_v1 is deprecated. Consider using FWaaS v2",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_fw_policy_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func resourceFWPolicyV1() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "use openstack_fw_policy_v2 resource instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_fw_rule_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func resourceFWRuleV1() *schema.Resource {
StateContext: schema.ImportStatePassthroughContext,
},

DeprecationMessage: "use openstack_fw_rule_v2 resource instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_lb_member_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func resourceLBMemberV1() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "use openstack_lb_member_v2 resource instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_lb_monitor_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func resourceLBMonitorV1() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "use openstack_lb_monitor_v2 resource instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_lb_pool_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func resourceLBPoolV1() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "use openstack_lb_pool_v2 resource instead",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions openstack/resource_openstack_lb_vip_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func resourceLBVipV1() *schema.Resource {
Delete: schema.DefaultTimeout(10 * time.Minute),
},

DeprecationMessage: "openstack_lb_vip_v1 is deprecated. Consider using LBaaS v2 / Octavia resources",
Schema: map[string]*schema.Schema{
"region": {
Type: schema.TypeString,
Expand Down