Documentation ¶
Overview ¶
package kubernetes implements a steampipe plugin for kubernetes.
This plugin provides data that Steampipe uses to present foreign tables that represent kubernetes resources.
Index ¶
- Constants
- Variables
- func ConfigInstance() interface{}
- func GetConfig(connection *plugin.Connection) kubernetesConfig
- func GetNewClientCRD(ctx context.Context, d *plugin.QueryData) (*apiextension.Clientset, error)
- func GetNewClientCRDRaw(ctx context.Context, cc *connection.ConnectionCache, c *plugin.Connection) (*apiextension.Clientset, error)
- func GetNewClientDynamic(ctx context.Context, d *plugin.QueryData) (dynamic.Interface, error)
- func GetNewClientset(ctx context.Context, d *plugin.QueryData) (*kubernetes.Clientset, error)
- func Plugin(ctx context.Context) *plugin.Plugin
- type CRDResourceInfo
Constants ¶
View Source
const ( ColumnDescriptionTitle = "Title of the resource." ColumnDescriptionAkas = "Array of globally unique identifier strings (also known as) for the resource." ColumnDescriptionTags = "A map of tags for the resource. This includes both labels and annotations." )
Variables ¶
View Source
var ConfigSchema = map[string]*schema.Attribute{ "config_paths": { Type: schema.TypeList, Elem: &schema.Attribute{Type: schema.TypeString}, }, "config_path": { Type: schema.TypeString, }, "config_context": { Type: schema.TypeString, }, }
Functions ¶
func ConfigInstance ¶
func ConfigInstance() interface{}
func GetConfig ¶
func GetConfig(connection *plugin.Connection) kubernetesConfig
GetConfig :: retrieve and cast connection config from query data
func GetNewClientCRD ¶ added in v0.12.0
GetNewClientCRD :: gets client for querying k8s apis for CustomResourceDefinition
func GetNewClientCRDRaw ¶ added in v0.13.0
func GetNewClientCRDRaw(ctx context.Context, cc *connection.ConnectionCache, c *plugin.Connection) (*apiextension.Clientset, error)
GetNewClientCRDRaw :: gets client for querying k8s apis for CustomResourceDefinition
func GetNewClientDynamic ¶ added in v0.13.0
GetNewClientDynamic :: gets client for querying k8s apis for Dynamic Interface
func GetNewClientset ¶
GetNewClientset :: gets client for querying k8s apis for the provided context
Types ¶
type CRDResourceInfo ¶ added in v0.13.0
type CRDResourceInfo struct { Name interface{} UID interface{} CreationTimestamp interface{} Kind interface{} APIVersion interface{} Namespace interface{} Annotations interface{} Spec interface{} Labels interface{} Status interface{} }
Source Files ¶
- common_columns.go
- connection_config.go
- plugin.go
- table_kubernetes_cluster_role.go
- table_kubernetes_cluster_role_binding.go
- table_kubernetes_config_map.go
- table_kubernetes_cronjob.go
- table_kubernetes_custom_resource.go
- table_kubernetes_custom_resource_definition.go
- table_kubernetes_daemonset.go
- table_kubernetes_deployment.go
- table_kubernetes_endpoint_slice.go
- table_kubernetes_endpoints.go
- table_kubernetes_event.go
- table_kubernetes_horizontal_pod_autoscaler.go
- table_kubernetes_ingress.go
- table_kubernetes_job.go
- table_kubernetes_limit_range.go
- table_kubernetes_namespace.go
- table_kubernetes_network_policy.go
- table_kubernetes_node.go
- table_kubernetes_persistent_volume.go
- table_kubernetes_persistent_volume_claim.go
- table_kubernetes_pod.go
- table_kubernetes_pod_disruption_budget.go
- table_kubernetes_pod_security_policy.go
- table_kubernetes_replicaset.go
- table_kubernetes_replication_controller.go
- table_kubernetes_resource_quota.go
- table_kubernetes_role.go
- table_kubernetes_role_binding.go
- table_kubernetes_secret.go
- table_kubernetes_service.go
- table_kubernetes_service_account.go
- table_kubernetes_stateful_set.go
- table_kubernetes_storage_class.go
- utils.go
Click to show internal directories.
Click to hide internal directories.