inflater

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultOptions = Options{
		Namespace:   "inflate",
		ZonalSpread: false,
	}
)

Functions

This section is empty.

Types

type DeleteFilters

type DeleteFilters struct {
	Namespace string
	Name      string
}

type InflateCollection added in v0.0.3

type InflateCollection struct {
	Deployment *appsv1.Deployment
	Service    *corev1.Service
}

type Inflater

type Inflater struct {
	// contains filtered or unexported fields
}

func New

func New(clientset *kubernetes.Clientset) *Inflater

func (Inflater) CreateNamespace

func (i Inflater) CreateNamespace(ctx context.Context, namespace string) error

func (Inflater) Delete

func (i Inflater) Delete(ctx context.Context, filters DeleteFilters) error

func (Inflater) GetInflateDeployment

func (i Inflater) GetInflateDeployment(_ context.Context, opts Options) (*appsv1.Deployment, error)

func (Inflater) GetService added in v0.0.3

func (i Inflater) GetService(_ context.Context, appName string, opts Options) (*corev1.Service, error)

func (Inflater) Inflate

func (i Inflater) Inflate(ctx context.Context, opts Options) (*InflateCollection, error)

func (Inflater) List

func (i Inflater) List(ctx context.Context, filters ListFilters) ([]appsv1.Deployment, error)

type ListFilters

type ListFilters struct {
	Namespace string
	Name      string
}

type Options

type Options struct {
	RandomSuffix       bool
	Namespace          string
	Image              string
	ZonalSpread        bool
	HostnameSpread     bool
	CapacityTypeSpread bool
	HostNetwork        bool
	CPUArch            string
	OS                 string
	Service            bool
	DryRun             bool
}

func GetDefaultOptions

func GetDefaultOptions() Options

Jump to

Keyboard shortcuts

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