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.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
cluster_id |
string | True | A unique ID that can be used to reference a Kubernetes cluster. | |
run_id |
string | False | Specifies the clusterlint run whose results will be retrieved. |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.kubernetes.get_cluster_lint_results(cluster_id="da8fda8")
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.
The response is a JSON object which contains the diagnostics on Kubernetes objects in the cluster. Each diagnostic will contain some metadata information about the object and feedback for users to act upon.
Unauthorized
The resource was not found.
API Rate limit exceeded
Server error.
Unexpected error