mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Deprecate handwritten beta fields.
This commit is contained in:
parent
27bd76d9d4
commit
a8747b4909
@ -20,6 +20,7 @@ func dataSourceGoogleContainerEngineVersions() *schema.Resource {
|
||||
Optional: true,
|
||||
},
|
||||
"region": {
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
ConflictsWith: []string{"zone"},
|
||||
|
@ -12,23 +12,26 @@ import (
|
||||
|
||||
var IamComputeSubnetworkSchema = map[string]*schema.Schema{
|
||||
"subnetwork": {
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
ForceNew: true,
|
||||
Deprecated: "This resource is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
ForceNew: true,
|
||||
},
|
||||
|
||||
"project": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
ForceNew: true,
|
||||
Deprecated: "This resource is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
ForceNew: true,
|
||||
},
|
||||
|
||||
"region": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
ForceNew: true,
|
||||
Deprecated: "This resource is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
ForceNew: true,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -142,6 +142,7 @@ var schemaNodeConfig = &schema.Schema{
|
||||
},
|
||||
|
||||
"taint": {
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
@ -169,10 +170,11 @@ var schemaNodeConfig = &schema.Schema{
|
||||
},
|
||||
|
||||
"workload_metadata_config": {
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
MaxItems: 1,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
MaxItems: 1,
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"node_metadata": {
|
||||
|
@ -159,10 +159,11 @@ func resourceComputeBackendService() *schema.Resource {
|
||||
},
|
||||
|
||||
"custom_request_headers": &schema.Schema{
|
||||
Type: schema.TypeSet,
|
||||
Optional: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Set: schema.HashString,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeSet,
|
||||
Optional: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Set: schema.HashString,
|
||||
},
|
||||
|
||||
"description": &schema.Schema{
|
||||
|
@ -56,10 +56,11 @@ func resourceComputeGlobalForwardingRule() *schema.Resource {
|
||||
},
|
||||
|
||||
"labels": &schema.Schema{
|
||||
Type: schema.TypeMap,
|
||||
Optional: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Set: schema.HashString,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeMap,
|
||||
Optional: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Set: schema.HashString,
|
||||
},
|
||||
|
||||
"label_fingerprint": &schema.Schema{
|
||||
|
@ -38,9 +38,10 @@ func resourceComputeInstanceGroupManager() *schema.Resource {
|
||||
},
|
||||
|
||||
"version": &schema.Schema{
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"name": &schema.Schema{
|
||||
@ -159,9 +160,10 @@ func resourceComputeInstanceGroupManager() *schema.Resource {
|
||||
},
|
||||
|
||||
"auto_healing_policies": &schema.Schema{
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
MaxItems: 1,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
MaxItems: 1,
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"health_check": &schema.Schema{
|
||||
@ -180,9 +182,10 @@ func resourceComputeInstanceGroupManager() *schema.Resource {
|
||||
},
|
||||
|
||||
"rolling_update_policy": &schema.Schema{
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
MaxItems: 1,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
MaxItems: 1,
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"minimal_action": &schema.Schema{
|
||||
|
@ -97,6 +97,7 @@ func resourceContainerCluster() *schema.Resource {
|
||||
},
|
||||
|
||||
"region": {
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
@ -201,9 +202,10 @@ func resourceContainerCluster() *schema.Resource {
|
||||
},
|
||||
|
||||
"enable_binary_authorization": {
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
Default: false,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
Default: false,
|
||||
},
|
||||
|
||||
"enable_kubernetes_alpha": {
|
||||
@ -214,10 +216,11 @@ func resourceContainerCluster() *schema.Resource {
|
||||
},
|
||||
|
||||
"enable_tpu": {
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Default: false,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Default: false,
|
||||
},
|
||||
|
||||
"enable_legacy_abac": {
|
||||
@ -392,9 +395,10 @@ func resourceContainerCluster() *schema.Resource {
|
||||
},
|
||||
|
||||
"pod_security_policy_config": {
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
MaxItems: 1,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
MaxItems: 1,
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"enabled": {
|
||||
@ -501,13 +505,15 @@ func resourceContainerCluster() *schema.Resource {
|
||||
},
|
||||
|
||||
"private_cluster": {
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Default: false,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Default: false,
|
||||
},
|
||||
|
||||
"master_ipv4_cidr_block": {
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
|
@ -54,9 +54,10 @@ func resourceContainerNodePool() *schema.Resource {
|
||||
ForceNew: true,
|
||||
},
|
||||
"region": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
},
|
||||
}),
|
||||
}
|
||||
@ -85,10 +86,11 @@ var schemaNodePool = map[string]*schema.Schema{
|
||||
},
|
||||
|
||||
"max_pods_per_node": &schema.Schema{
|
||||
Type: schema.TypeInt,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Computed: true,
|
||||
Deprecated: "This field is in beta and will be removed from this provider. Use terraform-provider-google-beta to continue using it.",
|
||||
Type: schema.TypeInt,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Computed: true,
|
||||
},
|
||||
|
||||
"initial_node_count": &schema.Schema{
|
||||
|
Loading…
Reference in New Issue
Block a user