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 ¶
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
Click to show internal directories.
Click to hide internal directories.