state

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderDeployment

func RenderDeployment(deployment *core.DeploymentConfig, deploymentResources ...KubeResource) ([]core.ResourceFile, error)

func RenderGeneric

func RenderGeneric(stage string, resources ...KubeResource) ([]core.ResourceFile, error)

RenderGeneric is used for generic resources (e.g. riser app namespaces). They will be placed in the root of the namespaced folder.

func RenderSealedSecret

func RenderSealedSecret(app, stage string, sealedSecret *resources.SealedSecret) ([]core.ResourceFile, error)

Types

type Committer

type Committer interface {
	Commit(message string, files []core.ResourceFile) error
}

type DryRunComitter

type DryRunComitter struct {
	Commits []DryRunCommit
}

func NewDryRunComitter

func NewDryRunComitter() *DryRunComitter

func (*DryRunComitter) Commit

func (committer *DryRunComitter) Commit(message string, files []core.ResourceFile) error

type DryRunCommit

type DryRunCommit struct {
	Message string
	Files   []core.ResourceFile
}

type FileCommitter

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

func NewFileCommitter

func NewFileCommitter(basePath string) *FileCommitter

func (*FileCommitter) Commit

func (committer *FileCommitter) Commit(message string, files []core.ResourceFile) error

type GitCommitter

type GitCommitter struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewGitComitter

func NewGitComitter(gitRepo git.GitRepoProvider) *GitCommitter

func (*GitCommitter) Commit

func (committer *GitCommitter) Commit(message string, files []core.ResourceFile) error

Commit commits state changes to the state repo. Commits are authoritative i.e. they represent the absolute desired state. No merging takes place for riser managed resources.

type KubeResource

type KubeResource interface {
	GetName() string
	GetNamespace() string
	GetObjectKind() schema.ObjectKind
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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