deploy

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 35 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CEOSLabSpec added in v0.1.7

type CEOSLabSpec struct {
	ManifestDir  string `yaml:"manifests"`
	Operator     string `yaml:"operator" kne:"yaml"`
	OperatorData []byte
	// contains filtered or unexported fields
}

func (*CEOSLabSpec) Deploy added in v0.1.7

func (c *CEOSLabSpec) Deploy(ctx context.Context) error

func (*CEOSLabSpec) Healthy added in v0.1.7

func (c *CEOSLabSpec) Healthy(ctx context.Context) error

func (*CEOSLabSpec) SetKClient added in v0.1.7

func (c *CEOSLabSpec) SetKClient(k kubernetes.Interface)

type CNI

type CNI interface {
	Deploy(context.Context) error
	SetKClient(kubernetes.Interface)
	Healthy(context.Context) error
}

type Cluster

type Cluster interface {
	Deploy(context.Context) error
	Delete() error
	Healthy() error
	GetName() string
	GetDockerNetworkResourceName() string
	Apply([]byte) error
}

type Controller

type Controller interface {
	Deploy(context.Context) error
	SetKClient(kubernetes.Interface)
	Healthy(context.Context) error
}

type Deployment

type Deployment struct {
	Cluster     Cluster      `kne:"cluster"`
	Ingress     Ingress      `kne:"ingress"`
	CNI         CNI          `kne:"cni"`
	Controllers []Controller `kne:"controllers"`

	// If Progress is true then deployment status updates will be sent to
	// standard output.
	Progress bool

	// If ReportUsage is true then anonymous usage metrics will be
	// published using Cloud PubSub.
	ReportUsage bool
	// ReportUsageProjectID is the ID of the GCP project the usage
	// metrics should be written to. This field is not used if
	// ReportUsage is unset. An empty string will result in the
	// default project being used.
	ReportUsageProjectID string
	// ReportUsageTopicID is the ID of the GCP PubSub topic the usage
	// metrics should be written to. This field is not used if
	// ReportUsage is unset. An empty string will result in the
	// default topic being used.
	ReportUsageTopicID string
}

func (*Deployment) Delete

func (d *Deployment) Delete() error

func (*Deployment) Deploy

func (d *Deployment) Deploy(ctx context.Context, kubecfg string) (rerr error)

func (*Deployment) Healthy

func (d *Deployment) Healthy(ctx context.Context) error

func (*Deployment) String

func (d *Deployment) String() string

type ExternalSpec added in v0.1.7

type ExternalSpec struct {
	Network string `yaml:"network"`
}

func (*ExternalSpec) Apply added in v0.1.16

func (e *ExternalSpec) Apply(cfg []byte) error

func (*ExternalSpec) Delete added in v0.1.7

func (e *ExternalSpec) Delete() error

func (*ExternalSpec) Deploy added in v0.1.7

func (e *ExternalSpec) Deploy(ctx context.Context) error

func (*ExternalSpec) GetDockerNetworkResourceName added in v0.1.7

func (e *ExternalSpec) GetDockerNetworkResourceName() string

func (*ExternalSpec) GetName added in v0.1.7

func (e *ExternalSpec) GetName() string

func (*ExternalSpec) Healthy added in v0.1.7

func (e *ExternalSpec) Healthy() error

type Ingress

type Ingress interface {
	Deploy(context.Context) error
	SetKClient(kubernetes.Interface)
	Healthy(context.Context) error
	SetRCfg(*rest.Config)
	SetDockerNetworkResourceName(string)
}

type IxiaTGSpec

type IxiaTGSpec struct {
	ManifestDir   string `yaml:"manifests"`
	Operator      string `yaml:"operator" kne:"yaml"`
	OperatorData  []byte
	ConfigMap     string `yaml:"configMap" kne:"yaml"`
	ConfigMapData []byte
	// contains filtered or unexported fields
}

func (*IxiaTGSpec) Deploy

func (i *IxiaTGSpec) Deploy(ctx context.Context) error

func (*IxiaTGSpec) Healthy

func (i *IxiaTGSpec) Healthy(ctx context.Context) error

func (*IxiaTGSpec) SetKClient

func (i *IxiaTGSpec) SetKClient(k kubernetes.Interface)

type KindSpec

type KindSpec struct {
	Name                     string            `yaml:"name"`
	Recycle                  bool              `yaml:"recycle"`
	Version                  string            `yaml:"version"`
	Image                    string            `yaml:"image"`
	Retain                   bool              `yaml:"retain"`
	Wait                     time.Duration     `yaml:"wait"`
	Kubecfg                  string            `yaml:"kubecfg" kne:"yaml"`
	GoogleArtifactRegistries []string          `yaml:"googleArtifactRegistries"`
	ContainerImages          map[string]string `yaml:"containerImages"`
	KindConfigFile           string            `yaml:"config" kne:"yaml"`
	AdditionalManifests      []string          `yaml:"additionalManifests" kne:"yaml"`
}

func (*KindSpec) Apply added in v0.1.16

func (k *KindSpec) Apply(cfg []byte) error

func (*KindSpec) Delete

func (k *KindSpec) Delete() error

func (*KindSpec) Deploy

func (k *KindSpec) Deploy(ctx context.Context) error

func (*KindSpec) GetDockerNetworkResourceName added in v0.1.7

func (k *KindSpec) GetDockerNetworkResourceName() string

func (*KindSpec) GetName

func (k *KindSpec) GetName() string

func (*KindSpec) Healthy

func (k *KindSpec) Healthy() error

type LemmingSpec added in v0.1.7

type LemmingSpec struct {
	ManifestDir  string `yaml:"manifests"`
	Operator     string `yaml:"operator" kne:"yaml"`
	OperatorData []byte
	// contains filtered or unexported fields
}

func (*LemmingSpec) Deploy added in v0.1.7

func (l *LemmingSpec) Deploy(ctx context.Context) error

func (*LemmingSpec) Healthy added in v0.1.7

func (l *LemmingSpec) Healthy(ctx context.Context) error

func (*LemmingSpec) SetKClient added in v0.1.7

func (l *LemmingSpec) SetKClient(k kubernetes.Interface)

type MeshnetSpec

type MeshnetSpec struct {
	ManifestDir  string `yaml:"manifests"`
	Manifest     string `yaml:"manifest" kne:"yaml"`
	ManifestData []byte
	// contains filtered or unexported fields
}

func (*MeshnetSpec) Deploy

func (m *MeshnetSpec) Deploy(ctx context.Context) error

func (*MeshnetSpec) Healthy

func (m *MeshnetSpec) Healthy(ctx context.Context) error

func (*MeshnetSpec) SetKClient

func (m *MeshnetSpec) SetKClient(c kubernetes.Interface)

type MetalLBSpec

type MetalLBSpec struct {
	IPCount      int    `yaml:"ip_count"`
	ManifestDir  string `yaml:"manifests"`
	Manifest     string `yaml:"manifest" kne:"yaml"`
	ManifestData []byte
	// contains filtered or unexported fields
}

func (*MetalLBSpec) Deploy

func (m *MetalLBSpec) Deploy(ctx context.Context) error

func (*MetalLBSpec) Healthy

func (m *MetalLBSpec) Healthy(ctx context.Context) error

func (*MetalLBSpec) SetDockerNetworkResourceName added in v0.1.7

func (m *MetalLBSpec) SetDockerNetworkResourceName(name string)

func (*MetalLBSpec) SetKClient

func (m *MetalLBSpec) SetKClient(c kubernetes.Interface)

func (*MetalLBSpec) SetRCfg added in v0.1.6

func (m *MetalLBSpec) SetRCfg(cfg *rest.Config)

type SRLinuxSpec added in v0.1.3

type SRLinuxSpec struct {
	ManifestDir  string `yaml:"manifests"`
	Operator     string `yaml:"operator" kne:"yaml"`
	OperatorData []byte
	// contains filtered or unexported fields
}

func (*SRLinuxSpec) Deploy added in v0.1.3

func (s *SRLinuxSpec) Deploy(ctx context.Context) error

func (*SRLinuxSpec) Healthy added in v0.1.3

func (s *SRLinuxSpec) Healthy(ctx context.Context) error

func (*SRLinuxSpec) SetKClient added in v0.1.3

func (s *SRLinuxSpec) SetKClient(k kubernetes.Interface)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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