updater

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TemplateCommitMessage

func TemplateCommitMessage(tpl *template.Template, appName string, changeList []ChangeEntry) string

TemplateCommitMessage renders a commit message template and returns it as a string. If the template could not be rendered, returns a default message.

func UpdateApplication

func UpdateApplication(cfg HelmUpdaterConfig, state *SyncIterationState) (*[]ChangeEntry, error)

UpdateApplication update all values of a single application.

Types

type ChangeEntry

type ChangeEntry struct {
	OldValue string
	NewValue string
	File     string
	Key      string
}

ChangeEntry represents values that has been changed by Helm Repo Updater

type HelmUpdaterConfig

type HelmUpdaterConfig struct {
	DryRun                    bool
	LogLevel                  string
	AppName                   string
	UpdateApps                []ChangeEntry
	File                      string
	GitCredentials            *git.Credentials
	GitConf                   *git.Conf
	AllowErrorNothingToUpdate bool
}

HelmUpdaterConfig contains global configuration and required runtime data

type SyncIterationState

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

SyncIterationState holds shared state of a running update operation

func NewSyncIterationState

func NewSyncIterationState() *SyncIterationState

NewSyncIterationState returns a new instance of SyncIterationState

func (*SyncIterationState) GetRepositoryLock

func (state *SyncIterationState) GetRepositoryLock(repository string) *sync.Mutex

GetRepositoryLock returns the lock for a specified repository

Jump to

Keyboard shortcuts

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