kubernetes

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 37 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

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

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{}
}

Jump to

Keyboard shortcuts

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