Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterChanges ¶
func FilterChanges(cfg plugins.ConfigUpdater, changes []*scm.Change, log *logrus.Entry) map[ConfigMapID][]ConfigMapUpdate
FilterChanges determines which of the changes are relevant for config updating, returning mapping of config map to key to cmName to update that key from.
func Update ¶
func Update(fg FileGetter, kc corev1.ConfigMapInterface, name, namespace string, updates []ConfigMapUpdate, logger *logrus.Entry) error
Update updates the configmap with the data from the identified files
Types ¶
type ConfigMapID ¶
type ConfigMapID struct {
Name, Namespace string
}
ConfigMapID is a name/namespace combination that identifies a config map
type ConfigMapUpdate ¶
ConfigMapUpdate is populated with information about a config map that should be updated.
type FileGetter ¶
FileGetter knows how to get the contents of a file by name
Click to show internal directories.
Click to hide internal directories.