Description:fmt.Sprintf("An unstructured key value map stored with the %s that may be used to store arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations",objectName),
Optional:true,
ValidateFunc:validateAnnotations,
},
"generation":{
Type:schema.TypeInt,
Description:"A sequence number representing a specific generation of the desired state.",
Computed:true,
},
"labels":{
Type:schema.TypeMap,
Description:fmt.Sprintf("Map of string keys and values that can be used to organize and categorize (scope and select) the %s. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",objectName),
Description:fmt.Sprintf("Name of the %s, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names",objectName),
Description:fmt.Sprintf("An opaque value that represents the internal version of this %s that can be used by clients to determine when %s has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#concurrency-control-and-consistency",objectName,objectName),
Computed:true,
},
"self_link":{
Type:schema.TypeString,
Description:fmt.Sprintf("A URL representing this %s.",objectName),
Computed:true,
},
"uid":{
Type:schema.TypeString,
Description:fmt.Sprintf("The unique in time and space value for this %s. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",objectName),
Description:"Prefix, used by the server, to generate a unique name ONLY IF the `name` field has not been provided. This value will also be combined with a unique suffix. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#idempotency",
Description:fmt.Sprintf("Namespace defines the space within which name of the %s must be unique.",objectName),
Optional:true,
ForceNew:true,
Default:"default",
}
ifgeneratableName{
fields["generate_name"]=&schema.Schema{
Type:schema.TypeString,
Description:"Prefix, used by the server, to generate a unique name ONLY IF the `name` field has not been provided. This value will also be combined with a unique suffix. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#idempotency",