automation

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WeGOAppIdentifierLabelKey = "wego.weave.works/app-identifier"
)

Variables

This section is empty.

Functions

func AddWegoIgnore

func AddWegoIgnore(sourceManifest []byte) ([]byte, error)

func AppAutomationDeployPath

func AppAutomationDeployPath(a models.Application) string

func AppAutomationKustomizePath

func AppAutomationKustomizePath(a models.Application) string

func AppAutomationSourcePath

func AppAutomationSourcePath(a models.Application) string

func AppDeployName

func AppDeployName(a models.Application) string

func AppToWegoApp

func AppToWegoApp(app models.Application) wego.Application

func AppYamlDir

func AppYamlDir(a models.Application) string

func AppYamlPath

func AppYamlPath(a models.Application) string

func AutomationUserKustomizePath

func AutomationUserKustomizePath(clusterName string) string

func GenerateResourceName

func GenerateResourceName(url gitproviders.RepoURL) string

func GetAppHash

func GetAppHash(a models.Application) string

func GetOrCreateKustomize

func GetOrCreateKustomize(filename, name, namespace string) (types.Kustomization, error)

func WegoAppToApp

func WegoAppToApp(app wego.Application) (models.Application, error)

Types

type ApplicationAutomation added in v0.6.1

type ApplicationAutomation struct {
	AppYaml       models.Manifest
	AppAutomation models.Manifest
	AppSource     models.Manifest
	AppKustomize  models.Manifest
}

func (ApplicationAutomation) Manifests added in v0.6.1

func (aa ApplicationAutomation) Manifests() []models.Manifest

type AutomationGen

type AutomationGen struct {
	GitProvider gitproviders.GitProvider
	Flux        flux.Flux
	Logger      logger.Logger
}

func (*AutomationGen) GenerateApplicationAutomation added in v0.6.1

func (a *AutomationGen) GenerateApplicationAutomation(ctx context.Context, app models.Application, clusterName string) (ApplicationAutomation, error)

func (*AutomationGen) GetSecretRefForPrivateGitSources added in v0.6.1

func (a *AutomationGen) GetSecretRefForPrivateGitSources(ctx context.Context, url gitproviders.RepoURL) (models.GeneratedSecretName, error)

type AutomationGenerator

type AutomationGenerator interface {
	GenerateApplicationAutomation(ctx context.Context, app models.Application, clusterName string) (ApplicationAutomation, error)
	GetSecretRefForPrivateGitSources(ctx context.Context, url gitproviders.RepoURL) (models.GeneratedSecretName, error)
}

func NewAutomationGenerator

func NewAutomationGenerator(gp gitproviders.GitProvider, flux flux.Flux, logger logger.Logger) AutomationGenerator

type ConfigMode

type ConfigMode string

type ResourceKind

type ResourceKind string
const (
	ResourceKindApplication    ResourceKind = "Application"
	ResourceKindSecret         ResourceKind = "Secret"
	ResourceKindGitRepository  ResourceKind = "GitRepository"
	ResourceKindHelmRepository ResourceKind = "HelmRepository"
	ResourceKindKustomization  ResourceKind = "Kustomization"
	ResourceKindHelmRelease    ResourceKind = "HelmRelease"
)

func DeployKind

func DeployKind(a models.Application) ResourceKind

func SourceKind

func SourceKind(a models.Application) ResourceKind

func (ResourceKind) ToGVR

type ResourceRef

type ResourceRef struct {
	Kind           ResourceKind
	Name           string
	RepositoryPath string
}

type SourceType

type SourceType string

Jump to

Keyboard shortcuts

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