This particular version has been published here https://github.com/cscorley/offlineimap/tree/gmail-oauth and then forked into https://github.com/styk-tv/offlineimap/tree/gmail-oauth
It has been extended by cscorley user and not modified by styk-tv. Currently about 650 commits behind master branch of official offlineimap.
It works so decided not to upgrade or fix it as it serves the purpose. Basic idea is to be able to download mail from Gmail using Oauth2 authentication.
Container input parameters are provided as environment variables. On start .offlineimap file is autogenerated from run.sh (with app and user token), container runs, downloads all emails from account and terminates leaving downloaded emails on mapped volume/share.
It has been verified in Kubernentes 1.6.1 utilizing kube Secrets and claimedVolumeStorage
ALWAYS: visit http://www.offlineimap.org for latest updates