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
- 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
- type ClusterRole
- type ClusterRoleBinding
- type ConfigMap
- type CronJob
- type CustomResourceDefinition
- type DaemonSet
- type Deployment
- type EndpointSlice
- type Endpoints
- type Event
- type HelmChartInfo
- type HelmRenderedTemplate
- type HorizontalPodAutoscaler
- type Ingress
- type Job
- type LimitRange
- type LineInfo
- type Namespace
- type NetworkPolicy
- type Node
- type PersistentVolume
- type PersistentVolumeClaim
- type Pod
- type PodDisruptionBudget
- type PodSecurityPolicy
- type PodTemplate
- type ReplicaSet
- type ReplicationController
- type ResourceQuota
- type Role
- type RoleBinding
- type Row
- type Rows
- type Secret
- type Service
- type ServiceAccount
- type SourceType
- type StatefulSet
- type StorageClass
Constants ¶
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 ¶
This section is empty.
Functions ¶
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{} Path string StartLine int EndLine int SourceType string ContextName string }
type ClusterRole ¶ added in v0.20.0
type ClusterRole struct { v1.ClusterRole // contains filtered or unexported fields }
type ClusterRoleBinding ¶ added in v0.20.0
type ClusterRoleBinding struct { v1.ClusterRoleBinding // contains filtered or unexported fields }
type CustomResourceDefinition ¶ added in v0.20.0
type CustomResourceDefinition struct { v1.CustomResourceDefinition // contains filtered or unexported fields }
type Deployment ¶ added in v0.20.0
type Deployment struct { v1.Deployment // contains filtered or unexported fields }
type EndpointSlice ¶ added in v0.20.0
type EndpointSlice struct { v1.EndpointSlice // contains filtered or unexported fields }
type HelmChartInfo ¶ added in v0.21.0
type HelmRenderedTemplate ¶ added in v0.21.0
type HorizontalPodAutoscaler ¶ added in v0.20.0
type HorizontalPodAutoscaler struct { v2.HorizontalPodAutoscaler // contains filtered or unexported fields }
type LimitRange ¶ added in v0.20.0
type LimitRange struct { v1.LimitRange // contains filtered or unexported fields }
type NetworkPolicy ¶ added in v0.20.0
type NetworkPolicy struct { v1.NetworkPolicy // contains filtered or unexported fields }
type PersistentVolume ¶ added in v0.20.0
type PersistentVolume struct { v1.PersistentVolume // contains filtered or unexported fields }
type PersistentVolumeClaim ¶ added in v0.20.0
type PersistentVolumeClaim struct { v1.PersistentVolumeClaim // contains filtered or unexported fields }
type PodDisruptionBudget ¶ added in v0.20.0
type PodDisruptionBudget struct { v1.PodDisruptionBudget // contains filtered or unexported fields }
type PodSecurityPolicy ¶ added in v0.20.0
type PodSecurityPolicy struct { v1beta1.PodSecurityPolicy // contains filtered or unexported fields }
type PodTemplate ¶ added in v0.23.0
type PodTemplate struct { v1.PodTemplate // contains filtered or unexported fields }
type ReplicaSet ¶ added in v0.20.0
type ReplicaSet struct { v1.ReplicaSet // contains filtered or unexported fields }
type ReplicationController ¶ added in v0.20.0
type ReplicationController struct { v1.ReplicationController // contains filtered or unexported fields }
type ResourceQuota ¶ added in v0.20.0
type ResourceQuota struct { v1.ResourceQuota // contains filtered or unexported fields }
type RoleBinding ¶ added in v0.20.0
type RoleBinding struct { v1.RoleBinding // contains filtered or unexported fields }
type ServiceAccount ¶ added in v0.20.0
type ServiceAccount struct { v1.ServiceAccount // contains filtered or unexported fields }
type SourceType ¶ added in v0.20.0
type SourceType string
const ( Deployed SourceType = "deployed" Helm SourceType = "helm" Manifest SourceType = "manifest" All SourceType = "all" )
func (SourceType) IsValid ¶ added in v0.20.0
func (sourceType SourceType) IsValid() error
Validate the source type.
func (SourceType) String ¶ added in v0.20.0
func (sourceType SourceType) String() string
Convert the source type to its string equivalent
func (SourceType) ToSourceTypes ¶ added in v0.24.0
func (sourceType SourceType) ToSourceTypes() []string
ToSourceTypes is used to convert SourceType to []string
type StatefulSet ¶ added in v0.20.0
type StatefulSet struct { v1.StatefulSet // contains filtered or unexported fields }
type StorageClass ¶ added in v0.20.0
type StorageClass struct { v1.StorageClass // contains filtered or unexported fields }
Source Files ¶
- common_columns.go
- connection_config.go
- convert.go
- helm_template_render.go
- helm_utils.go
- plugin.go
- table_helm_chart.go
- table_helm_release.go
- table_helm_template.go
- table_helm_template_rendered.go
- table_helm_value.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_pod_template.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