deployer

package
v0.3.0-beta7 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployedBundle added in v0.3.0

type DeployedBundle struct {
	BundleID    string
	ReleaseName string
}

type Deployer

type Deployer interface {
	Deploy(bundleID string, manifest *manifest.Manifest, options fleet.BundleDeploymentOptions) (*Resources, error)
	ListDeployments() ([]DeployedBundle, error)
	EnsureInstalled(bundleID, resourcesID string) (bool, error)
	Resources(bundleID, resourcesID string) (*Resources, error)
	Delete(bundleID, releaseName string) error
}

type DeploymentStatus

type DeploymentStatus struct {
	Ready          bool                   `json:"ready,omitempty"`
	NonModified    bool                   `json:"nonModified,omitempty"`
	NonReadyStatus []fleet.NonReadyStatus `json:"nonReadyStatus,omitempty"`
	ModifiedStatus []fleet.ModifiedStatus `json:"modifiedStatus,omitempty"`
}

type Manager

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

func NewManager

func NewManager(fleetNamespace string,
	defaultNamespace string,
	labelPrefix string,
	bundleDeploymentCache fleetcontrollers.BundleDeploymentCache,
	lookup manifest.Lookup,
	deployer Deployer,
	apply apply.Apply) *Manager

func (*Manager) Cleanup

func (m *Manager) Cleanup() error

func (*Manager) Delete

func (m *Manager) Delete(bundleDeploymentKey string) error

func (*Manager) Deploy

func (m *Manager) Deploy(bd *fleet.BundleDeployment) (string, error)

func (*Manager) MonitorBundle

func (m *Manager) MonitorBundle(bd *fleet.BundleDeployment) (DeploymentStatus, error)

func (*Manager) Resources

func (m *Manager) Resources(bd *fleet.BundleDeployment) (*Resources, error)

type Resources

type Resources struct {
	ID               string           `json:"id,omitempty"`
	DefaultNamespace string           `json:"defaultNamespace,omitempty"`
	Objects          []runtime.Object `json:"objects,omitempty"`
}

Jump to

Keyboard shortcuts

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