Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterChanges ¶
func FilterChanges(configMaps map[string]plugins.ConfigMapSpec, changes []github.PullRequestChange, log *logrus.Entry) map[ConfigMapID]map[string]string
FilterChanges determines which of the changes are relevant for config updating, returning mapping of config map to key to filename to update that key from.
func Update ¶
func Update(fg FileGetter, kc KubeClient, name, namespace string, updates map[string]string, 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 FileGetter ¶
FileGetter knows how to get the contents of a file by name
type KubeClient ¶
type KubeClient interface { GetConfigMap(name, namespace string) (kube.ConfigMap, error) ReplaceConfigMap(name string, config kube.ConfigMap) (kube.ConfigMap, error) CreateConfigMap(content kube.ConfigMap) (kube.ConfigMap, error) }
KubeClient knows how to interact with ConfigMaps on a cluster
Click to show internal directories.
Click to hide internal directories.