Skip to content

Commit

Permalink
Merge pull request kubernetes#12380 from krzyzacy/cm-get
Browse files Browse the repository at this point in the history
Add more logs to config-bootstrapper
  • Loading branch information
k8s-ci-robot authored Apr 26, 2019
2 parents 51c4b7a + d4ead38 commit 21cba49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prow/cmd/config-bootstrapper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func main() {
Filename: relPath,
Status: github.PullRequestFileAdded,
})
logrus.Infof("added to mock change: %s", relPath)
} else {
logrus.WithError(err).Warn("unexpected error determining relative path to file")
}
Expand All @@ -126,6 +127,8 @@ func main() {
logger := logrus.WithFields(logrus.Fields{"configmap": map[string]string{"name": cm.Name, "namespace": cm.Namespace}})
if err := updateconfig.Update(&osFileGetter{root: o.sourcePath}, client.CoreV1().ConfigMaps(cm.Namespace), cm.Name, cm.Namespace, data, logger); err != nil {
logger.WithError(err).Error("failed to update config on cluster")
} else {
logger.Infof("Successfully processed configmap")
}
}
}
Expand Down

0 comments on commit 21cba49

Please sign in to comment.