run

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFormatFlags

func AddFormatFlags(settings *v1alpha1.KubeTest, flag string, optionName string, args []string) []string

AddFormatFlags if the format is specified lets add it as a command line argument

Types

type BinaryPlugin

type BinaryPlugin struct {
	Name       string
	DownloadFn func(string) (string, error)
	Binary     string
	Version    string
	Args       []string
}

func (*BinaryPlugin) AddFlags

func (o *BinaryPlugin) AddFlags(cmd *cobra.Command, name string, version string, fn func(version string) (string, error))

func (*BinaryPlugin) GetBinary

func (o *BinaryPlugin) GetBinary(t *v1alpha1.Test) (string, error)

type HelmTemplateOptions added in v0.0.7

type HelmTemplateOptions struct {
	Name        string
	ValuesFiles []string
}

HelmTemplateOptions options for templating helm charts

type Options

type Options struct {
	options.BaseOptions

	Dir             string
	SettingsFile    string
	WorkDir         string
	OutFile         string
	ChartsDir       string
	SourceDir       string
	RecurseCharts   bool
	Helm            BinaryPlugin
	ConftestPlugin  BinaryPlugin
	HelmPlugin      BinaryPlugin
	KubeScorePlugin BinaryPlugin
	KubevalPlugin   BinaryPlugin
	PolarisPlugin   BinaryPlugin
	CommandRunner   cmdrunner.CommandRunner
	Settings        *v1alpha1.KubeTest
}

Options the options for the command

func NewCmdRun

func NewCmdRun() (*cobra.Command, *Options)

NewCmdRun creates a command object for the command

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) TestCharts

func (o *Options) TestCharts(rule *v1alpha1.Rule, charts *v1alpha1.Charts) error

TestCharts tests the charts

func (*Options) TestResources

func (o *Options) TestResources(rule *v1alpha1.Rule, resources *v1alpha1.Source) error

TestResources tests the resources

func (*Options) Validate

func (o *Options) Validate() error

Run implements the command

type ResourceLocation

type ResourceLocation struct {
	Description string
	OutputDir   string
}

Jump to

Keyboard shortcuts

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