Skip to content

Commit 84965fe

Browse files
authored
Update variables.tf (#59)
1 parent 15f2788 commit 84965fe

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

solutions/agents/variables.tf

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
variable "ibmcloud_api_key" {
22
type = string
3-
description = "The IBM Cloud api key."
3+
description = "The IBM Cloud API key."
44
sensitive = true
55
}
66

77
variable "prefix" {
88
type = string
9-
description = "(Optional) Prefix to append to all resources created by this solution."
9+
description = "The prefix for resources created by this solution."
1010
default = null
1111
}
1212

@@ -16,7 +16,7 @@ variable "prefix" {
1616

1717
variable "cluster_id" {
1818
type = string
19-
description = "The ID of the cluster you wish to deploy the agents in."
19+
description = "The ID of the cluster to deploy the agents in."
2020
}
2121

2222
variable "cluster_resource_group_id" {
@@ -25,12 +25,12 @@ variable "cluster_resource_group_id" {
2525
}
2626

2727
variable "cluster_config_endpoint_type" {
28-
description = "Specify which type of endpoint to use for for cluster config access: 'default', 'private', 'vpe', 'link'. 'default' value will use the default endpoint of the cluster."
28+
description = "Specify the type of endpoint to use to access the cluster configuration. Possible values: `default`, `private`, `vpe`, `link`. The `default` value uses the default endpoint of the cluster."
2929
type = string
3030
default = "private"
3131
nullable = false # use default if null is passed in
3232
validation {
33-
error_message = "Invalid Endpoint Type! Valid values are 'default', 'private', 'vpe', or 'link'"
33+
error_message = "The specified endpoint type is not valid. Specify one of the following types of endpoints: `default`, `private`, `vpe`, or `link`."
3434
condition = contains(["default", "private", "vpe", "link"], var.cluster_config_endpoint_type)
3535
}
3636
}
@@ -41,82 +41,82 @@ variable "cluster_config_endpoint_type" {
4141

4242
variable "log_analysis_enabled" {
4343
type = bool
44-
description = "Deploy IBM Cloud Logging agent if set as true."
44+
description = "Whether to deploy the IBM Cloud logging agent."
4545
default = true
4646
}
4747

4848

4949
variable "log_analysis_agent_tags" {
5050
type = list(string)
51-
description = "List of tags to associate to all log records that the agent collects so that you can identify the agent's data quicker in the logging UI. NOTE: Use the 'log_analysis_add_cluster_name' variable to add the cluster name as a tag."
51+
description = "The list of tags to associate with all log records collected by the agent so that you can quickly identify the agents data in the logging UI. To add the cluster name as a tag, use the `log_analysis_add_cluster_name` variable."
5252
default = []
5353
nullable = false
5454
}
5555

5656
variable "log_analysis_add_cluster_name" {
5757
type = bool
58-
description = "If true, configure the log analysis agent to attach a tag containing the cluster name to all log messages."
58+
description = "Whether to attach the cluster name to log messages. Set to `true` to configure the IBM Log Analysis agent to tag all log messages with the name."
5959
default = true
6060
}
6161

6262
variable "log_analysis_ingestion_key" {
6363
type = string
64-
description = "Ingestion key for the IBM Cloud Logging agent to communicate with the instance."
64+
description = "The ingestion key that is used by the IBM Cloud logging agent to communicate with the instance."
6565
sensitive = true
6666
default = null
6767
}
6868

6969
variable "log_analysis_secret_name" {
7070
type = string
71-
description = "The name of the secret which will store the ingestion key. If prefix input variable is passed then it will get prefixed infront of the value in the format of '<prefix>-value'"
71+
description = "The name of the secret that stores the ingestion key. If a prefix input variable is specified, the secret name is prefixed to the value in the `<prefix>-<name>` format."
7272
default = "logdna-agent"
7373
nullable = false
7474
}
7575

7676
variable "log_analysis_instance_region" {
7777
type = string
78-
description = "The region name where the IBM Log Analysis instance is created. Used to construct the ingestion endpoint."
78+
description = "The name of the region where the IBM Log Analysis instance is created. The value is used in the ingestion endpoint in the format `api.<var-value>.logging.cloud.ibm.com`."
7979
default = null
8080
}
8181

8282
variable "log_analysis_endpoint_type" {
8383
type = string
84-
description = "Specify the IBM Log Analysis instance endpoint type (public or private) to use. Used to construct the ingestion endpoint."
84+
description = "Specify the IBM Log Analysis instance endpoint type to use to construct the ingestion endpoint. Possible values: `public` or `private`."
8585
default = "private"
8686
validation {
87-
error_message = "The specified endpoint_type can be private or public only."
87+
error_message = "The specified `endpoint_type` can be `private` or `public` only."
8888
condition = contains(["private", "public"], var.log_analysis_endpoint_type)
8989
}
9090
}
9191

9292
variable "log_analysis_agent_custom_line_inclusion" {
93-
description = "Log Analysis agent custom configuration for line inclusion setting LOGDNA_K8S_METADATA_LINE_INCLUSION. See https://github.com/logdna/logdna-agent-v2/blob/master/docs/KUBERNETES.md#configuration-for-kubernetes-metadata-filtering for more info."
93+
description = "The custom configuration of the IBM Log Analysis agent for the `LOGDNA_K8S_METADATA_LINE_INCLUSION` line inclusion setting. [Learn more](https://github.com/logdna/logdna-agent-v2/blob/master/docs/KUBERNETES.md#configuration-for-kubernetes-metadata-filtering)"
9494
type = string
9595
default = null # "namespace:default"
9696
}
9797

9898
variable "log_analysis_agent_custom_line_exclusion" {
99-
description = "Log Analysis agent custom configuration for line exclusion setting LOGDNA_K8S_METADATA_LINE_EXCLUSION. See https://github.com/logdna/logdna-agent-v2/blob/master/docs/KUBERNETES.md#configuration-for-kubernetes-metadata-filtering for more info."
99+
description = "The custom configuration of the IBM Log Analysis agent for the `LOGDNA_K8S_METADATA_LINE_INCLUSION` line exclusion setting. [Learn more](https://github.com/logdna/logdna-agent-v2/blob/master/docs/KUBERNETES.md#configuration-for-kubernetes-metadata-filtering)"
100100
type = string
101101
default = null # "label.app.kubernetes.io/name:sample-app\\, annotation.user:sample-user"
102102
}
103103

104104
variable "log_analysis_agent_name" {
105-
description = "Log Analysis agent name. Used for naming all kubernetes and helm resources on the cluster. If prefix input variable is passed then it will get prefixed infront of the value in the format of '<prefix>-value'"
105+
description = "The name of the IBM Log Analysis agent that is used to name the Kubernetes and Helm resources on the cluster. If a prefix input variable is passed, the name of the IBM Log Analysis agent is prefixed to the value in the `<prefix>-<name>` format."
106106
type = string
107107
default = "logdna-agent"
108108
nullable = false
109109
}
110110

111111
variable "log_analysis_agent_namespace" {
112112
type = string
113-
description = "Namespace where to deploy the Log Analysis agent. Default value is 'ibm-observe'."
113+
description = "The namespace to deploy the IBM Log Analysis agent in. The default value of the namespace is `ibm-observe`."
114114
default = "ibm-observe"
115115
nullable = false
116116
}
117117

118118
variable "log_analysis_agent_tolerations" {
119-
description = "List of tolerations to apply to Log Analysis agent. Defaults to the 'Exists' operator, that means it will match any taint on any node. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ for more info."
119+
description = "The list of tolerations to apply to the IBM Log Analysis agent. Because the default value is the `Exists` operator, this variable will match any taint on any node. [Learn more](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)"
120120
type = list(object({
121121
key = optional(string)
122122
operator = optional(string)
@@ -135,36 +135,36 @@ variable "log_analysis_agent_tolerations" {
135135

136136
variable "cloud_monitoring_enabled" {
137137
type = bool
138-
description = "Deploy IBM Cloud Monitoring agent if set as true."
138+
description = "Whether to deploy the IBM Cloud Monitoring agent."
139139
default = true
140140
}
141141

142142
variable "cloud_monitoring_access_key" {
143143
type = string
144-
description = "Access key used by the IBM Cloud Monitoring agent to communicate with the instance."
144+
description = "The access key that is used by the IBM Cloud Monitoring agent to communicate with the instance."
145145
sensitive = true
146146
default = null
147147
}
148148

149149
variable "cloud_monitoring_secret_name" {
150150
type = string
151-
description = "The name of the secret which will store the access key. If prefix input variable is passed then it will get prefixed infront of the value in the format of '<prefix>-value'"
151+
description = "The name of the secret that will store the access key. If a prefix input variable is passed, the secret name is prefixed to the value in the `<prefix>-<name>` format."
152152
default = "sysdig-agent"
153153
nullable = false
154154
}
155155

156156
variable "cloud_monitoring_instance_region" {
157157
type = string
158-
description = "The region name where the IBM Cloud Monitoring instance is created. Used to construct the ingestion endpoint."
158+
description = "The name of the region where the IBM Cloud Monitoring instance is created. This name is used to construct the ingestion endpoint."
159159
default = null
160160
}
161161

162162
variable "cloud_monitoring_endpoint_type" {
163163
type = string
164-
description = "Specify the IBM Cloud Monitoring instance endpoint type (public or private) to use. Used to construct the ingestion endpoint."
164+
description = "Specify the IBM Cloud Monitoring instance endpoint type (`public` or `private`) to use to construct the ingestion endpoint."
165165
default = "private"
166166
validation {
167-
error_message = "The specified endpoint_type can be private or public only."
167+
error_message = "The specified `endpoint_type` can be `private` or `public` only."
168168
condition = contains(["private", "public"], var.cloud_monitoring_endpoint_type)
169169
}
170170
}
@@ -174,42 +174,42 @@ variable "cloud_monitoring_metrics_filter" {
174174
type = string
175175
name = string
176176
}))
177-
description = "To filter custom metrics, specify the Cloud Monitoring metrics to include or to exclude. See https://cloud.ibm.com/docs/monitoring?topic=monitoring-change_kube_agent#change_kube_agent_inc_exc_metrics."
177+
description = "To filter on custom metrics, specify the IBM Cloud Monitoring metrics to include or exclude. [Learn more](https://cloud.ibm.com/docs/monitoring?topic=monitoring-change_kube_agent#change_kube_agent_inc_exc_metrics)"
178178
default = [] # [{ type = "exclude", name = "metricA.*" }, { type = "include", name = "metricB.*" }]
179179
validation {
180180
condition = length(var.cloud_monitoring_metrics_filter) == 0 || can(regex("^(include|exclude)$", var.cloud_monitoring_metrics_filter[0].type))
181-
error_message = "Invalid input for `cloud_monitoring_metrics_filter`. Valid options for 'type' are: `include` and `exclude`. If empty, no metrics are included or excluded."
181+
error_message = "The specified `type` for the `cloud_monitoring_metrics_filter` is not valid. Specify either `include` or `exclude`. If the value for `type` is not specified, no metrics are included or excluded."
182182
}
183183
}
184184

185185
variable "cloud_monitoring_agent_tags" {
186186
type = list(string)
187-
description = "List of tags to associate to all matrics that the agent collects. NOTE: Use the 'cloud_monitoring_add_cluster_name' variable to add the cluster name as a tag."
187+
description = "A list of the tags to associate with the metrics that the IBM Cloud Monitoring agent collects. To add the cluster name as a tag, use the `cloud_monitoring_add_cluster_name` variable."
188188
default = []
189189
nullable = false
190190
}
191191

192192
variable "cloud_monitoring_add_cluster_name" {
193193
type = bool
194-
description = "If true, configure the cloud monitoring agent to attach a tag containing the cluster name to all metric data."
194+
description = "Whether to attach a tag to log messages. Set to `true` to configure the IBM Cloud Monitoring agent to attach a tag that contains the cluster name to all log messages."
195195
default = true
196196
}
197197

198198
variable "cloud_monitoring_agent_name" {
199-
description = "Cloud Monitoring agent name. Used for naming all kubernetes and helm resources on the cluster. If prefix input variable is passed then it will get prefixed infront of the value in the format of '<prefix>-value'"
199+
description = "The name of the IBM Cloud Monitoring agent that is used to name the Kubernetes and Helm resources on the cluster. If a prefix input variable is passed, the name of the IBM Cloud Monitoring agent is prefixed to the value in the `<prefix>-<name>` format."
200200
type = string
201201
default = "sysdig-agent"
202202
}
203203

204204
variable "cloud_monitoring_agent_namespace" {
205205
type = string
206-
description = "Namespace where to deploy the Cloud Monitoring agent. Default value is 'ibm-observe'."
206+
description = "The namespace to deploy the IBM Cloud Monitoring agent in. Default value: `ibm-observe`."
207207
default = "ibm-observe"
208208
nullable = false
209209
}
210210

211211
variable "cloud_monitoring_agent_tolerations" {
212-
description = "List of tolerations to apply to Cloud Monitoring agent. Default value means that it will match any taint on any node except the master node. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ for more info."
212+
description = "The list of tolerations to apply to the IBM Cloud Monitoring agent. The default operator value `Exists` matches any taint on any node except the master node. [Learn more](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)"
213213
type = list(object({
214214
key = optional(string)
215215
operator = optional(string)

0 commit comments

Comments
 (0)