kubernetes

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 62 Imported by: 0

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

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

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

func GetNewClientCRD(ctx context.Context, d *plugin.QueryData) (*apiextension.Clientset, error)

GetNewClientCRD :: gets client for querying k8s apis for CustomResourceDefinition

func GetNewClientCRDRaw added in v0.13.0

GetNewClientCRDRaw :: gets client for querying k8s apis for CustomResourceDefinition

func GetNewClientDynamic added in v0.13.0

func GetNewClientDynamic(ctx context.Context, d *plugin.QueryData) (dynamic.Interface, error)

GetNewClientDynamic :: gets client for querying k8s apis for Dynamic Interface

func GetNewClientset

func GetNewClientset(ctx context.Context, d *plugin.QueryData) (*kubernetes.Clientset, error)

GetNewClientset :: gets client for querying k8s apis for the provided context

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Plugin creates this (k8s) plugin

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 ConfigMap added in v0.20.0

type ConfigMap struct {
	v1.ConfigMap
	// contains filtered or unexported fields
}

type CronJob added in v0.20.0

type CronJob struct {
	v1.CronJob
	// contains filtered or unexported fields
}

type CustomResourceDefinition added in v0.20.0

type CustomResourceDefinition struct {
	v1.CustomResourceDefinition
	// contains filtered or unexported fields
}

type DaemonSet added in v0.20.0

type DaemonSet struct {
	v1.DaemonSet
	// 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 Endpoints added in v0.20.0

type Endpoints struct {
	v1.Endpoints
	// contains filtered or unexported fields
}

type Event added in v0.20.0

type Event struct {
	v1.Event
	// contains filtered or unexported fields
}

type HelmChartInfo added in v0.21.0

type HelmChartInfo struct {
	chart.Metadata
	ChartPath string
}

type HelmRenderedTemplate added in v0.21.0

type HelmRenderedTemplate struct {
	Data      string
	Chart     *chart.Chart
	Path      string
	ConfigKey string
}

type HorizontalPodAutoscaler added in v0.20.0

type HorizontalPodAutoscaler struct {
	v2.HorizontalPodAutoscaler
	// contains filtered or unexported fields
}

type Ingress added in v0.20.0

type Ingress struct {
	v1.Ingress
	// contains filtered or unexported fields
}

type Job added in v0.20.0

type Job struct {
	v1.Job
	// contains filtered or unexported fields
}

type LimitRange added in v0.20.0

type LimitRange struct {
	v1.LimitRange
	// contains filtered or unexported fields
}

type LineInfo added in v0.21.0

type LineInfo struct {
	StartLine int
	EndLine   int
}

type Namespace added in v0.20.0

type Namespace struct {
	v1.Namespace
	// contains filtered or unexported fields
}

type NetworkPolicy added in v0.20.0

type NetworkPolicy struct {
	v1.NetworkPolicy
	// contains filtered or unexported fields
}

type Node added in v0.20.0

type Node struct {
	v1.Node
	// 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 Pod added in v0.20.0

type Pod struct {
	v1.Pod
	// 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 Role added in v0.20.0

type Role struct {
	v1.Role
	// contains filtered or unexported fields
}

type RoleBinding added in v0.20.0

type RoleBinding struct {
	v1.RoleBinding
	// contains filtered or unexported fields
}

type Row added in v0.21.0

type Row struct {
	Path        string
	Key         []string
	Value       interface{}
	Tag         *string
	PreComments []string
	HeadComment string
	LineComment string
	FootComment string
	StartLine   int
	StartColumn int
}

type Rows added in v0.21.0

type Rows []Row

type Secret added in v0.20.0

type Secret struct {
	v1.Secret
	// contains filtered or unexported fields
}

type Service added in v0.20.0

type Service struct {
	v1.Service
	// 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL