release

package
v0.0.0-...-3f67607 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyChanges

func ApplyChanges(rc *ReleaseContext, updates []*update.ControllerUpdate, logger log.Logger) error

func Release

func Release(rc *ReleaseContext, changes Changes, logger log.Logger) (results update.Result, err error)

Types

type Changes

type Changes interface {
	CalculateRelease(update.ReleaseContext, log.Logger) ([]*update.ControllerUpdate, update.Result, error)
	ReleaseKind() update.ReleaseKind
	ReleaseType() update.ReleaseType
	CommitMessage() string
}

type ReleaseContext

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

func (*ReleaseContext) FindDefinedServices

func (rc *ReleaseContext) FindDefinedServices() (map[flux.ResourceID]*update.ControllerUpdate, error)

func (*ReleaseContext) Manifests

func (rc *ReleaseContext) Manifests() cluster.Manifests

func (*ReleaseContext) Registry

func (rc *ReleaseContext) Registry() registry.Registry

func (*ReleaseContext) SelectServices

func (rc *ReleaseContext) SelectServices(results update.Result, prefilters, postfilters []update.ControllerFilter) ([]*update.ControllerUpdate, error)

SelectServices finds the services that exist both in the definition files and the running platform. `ControllerFilter`s can be provided to filter the controllers so found, either before (`prefilters`) or after (`postfilters`) consulting the cluster.

func (*ReleaseContext) ServicesWithPolicies

func (rc *ReleaseContext) ServicesWithPolicies() (policy.ResourceMap, error)

Shortcut for this

func (*ReleaseContext) WriteUpdates

func (rc *ReleaseContext) WriteUpdates(updates []*update.ControllerUpdate) error

Jump to

Keyboard shortcuts

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