clusters_clusterlints
Creates, updates, deletes, gets or lists a clusters_clusterlints
resource.
Overview
Name | clusters_clusterlints |
Type | Resource |
Id | digitalocean.kubernetes.clusters_clusterlints |
Fields
Name | Datatype | Description |
---|---|---|
completed_at | string | A time value given in ISO8601 combined date and time format that represents when the schedule clusterlint run request was completed. |
diagnostics | array | An array of diagnostics reporting potential problems for the given cluster. |
requested_at | string | A time value given in ISO8601 combined date and time format that represents when the schedule clusterlint run request was made. |
run_id | string | Id of the clusterlint run that can be used later to fetch the diagnostics. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
kubernetes_get_cluster_lint_results | SELECT | cluster_id | To request clusterlint diagnostics for your cluster, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/clusterlint . If the run_id query parameter is provided, then the diagnostics for the specific run is fetched. By default, the latest results are shown. To find out how to address clusterlint feedback, please refer to the clusterlint check documentation. |
kubernetes_run_cluster_lint | EXEC | cluster_id | Clusterlint helps operators conform to Kubernetes best practices around resources, security and reliability to avoid common problems while operating or upgrading the clusters. To request a clusterlint run on your cluster, send a POST request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/clusterlint . This will run all checks present in the doks group by default, if a request body is not specified. Optionally specify the below attributes. For information about the available checks, please refer to the clusterlint check documentation. |
SELECT
examples
To request clusterlint diagnostics for your cluster, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/clusterlint
. If the run_id
query parameter is provided, then the diagnostics for the specific run is fetched. By default, the latest results are shown. To find out how to address clusterlint feedback, please refer to the clusterlint check documentation.
SELECT
completed_at,
diagnostics,
requested_at,
run_id
FROM digitalocean.kubernetes.clusters_clusterlints
WHERE cluster_id = '{{ cluster_id }}';