Skip to content

Commit

Permalink
chore(CLOUDDEV-642): Mark k8s as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Semenov committed Dec 5, 2024
1 parent ab3b40e commit 5b1f206
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
5 changes: 3 additions & 2 deletions edgecenter/data_source_edgecenter_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ import (

func dataSourceK8s() *schema.Resource {
return &schema.Resource{
ReadContext: dataSourceK8sRead,
Description: "Represent k8s cluster with one default pool.",
DeprecationMessage: "!> **WARNING:** This data source is deprecated and will be removed in the next major version. Data source \"edgecenter_k8s\" unavailable.",
ReadContext: dataSourceK8sRead,
Description: "Represent k8s cluster with one default pool.",
Schema: map[string]*schema.Schema{
"project_id": {
Type: schema.TypeInt,
Expand Down
5 changes: 3 additions & 2 deletions edgecenter/data_source_edgecenter_k8s_client_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import (

func dataSourceK8sClientConfig() *schema.Resource {
return &schema.Resource{
ReadContext: dataSourceK8sReadClientConfig,
Description: "Represent k8s cluster with one default pool.",
DeprecationMessage: "!> **WARNING:** This data source is deprecated and will be removed in the next major version. Data source \"edgecenter_k8s_client_config\" unavailable.",
ReadContext: dataSourceK8sReadClientConfig,
Description: "Represent k8s cluster with one default pool.",
Schema: map[string]*schema.Schema{
"project_id": {
Type: schema.TypeInt,
Expand Down
5 changes: 3 additions & 2 deletions edgecenter/data_source_edgecenter_k8s_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (

func dataSourceK8sPool() *schema.Resource {
return &schema.Resource{
ReadContext: dataSourceK8sPoolRead,
Description: "Represent k8s cluster's pool.",
DeprecationMessage: "!> **WARNING:** This data source is deprecated and will be removed in the next major version. Data source \"edgecenter_k8s_pool\" unavailable.",
ReadContext: dataSourceK8sPoolRead,
Description: "Represent k8s cluster's pool.",
Schema: map[string]*schema.Schema{
"project_id": {
Type: schema.TypeInt,
Expand Down
11 changes: 6 additions & 5 deletions edgecenter/resource_edgecenter_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ var k8sCreateTimeout = time.Second * time.Duration(K8sCreateTimeout)

func resourceK8s() *schema.Resource {
return &schema.Resource{
CreateContext: resourceK8sCreate,
ReadContext: resourceK8sRead,
UpdateContext: resourceK8sUpdate,
DeleteContext: resourceK8sDelete,
Description: "Represent k8s cluster with one default pool.",
DeprecationMessage: "!> **WARNING:** This resource is deprecated and will be removed in the next major version. Resource \"edgecenter_k8s\" unavailable.",
CreateContext: resourceK8sCreate,
ReadContext: resourceK8sRead,
UpdateContext: resourceK8sUpdate,
DeleteContext: resourceK8sDelete,
Description: "Represent k8s cluster with one default pool.",
Timeouts: &schema.ResourceTimeout{
Create: &k8sCreateTimeout,
Update: &k8sCreateTimeout,
Expand Down
11 changes: 6 additions & 5 deletions edgecenter/resource_edgecenter_k8s_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ import (

func resourceK8sPool() *schema.Resource {
return &schema.Resource{
CreateContext: resourceK8sPoolCreate,
ReadContext: resourceK8sPoolRead,
UpdateContext: resourceK8sPoolUpdate,
DeleteContext: resourceK8sPoolDelete,
Description: "Represent k8s cluster's pool.",
DeprecationMessage: "!> **WARNING:** This resource is deprecated and will be removed in the next major version. Resource \"edgecenter_k8s_pool\" unavailable.",
CreateContext: resourceK8sPoolCreate,
ReadContext: resourceK8sPoolRead,
UpdateContext: resourceK8sPoolUpdate,
DeleteContext: resourceK8sPoolDelete,
Description: "Represent k8s cluster's pool.",
Timeouts: &schema.ResourceTimeout{
Create: &k8sCreateTimeout,
Update: &k8sCreateTimeout,
Expand Down

0 comments on commit 5b1f206

Please sign in to comment.