ConfigProviders abstract over path construction

Fixes issue where certs can't be uploaded in UI in k8s
This commit is contained in:
Evan Cordell 2017-05-17 08:12:09 -04:00
parent 702cdf59ff
commit 01b59e8d66
5 changed files with 32 additions and 3 deletions

View file

@ -109,6 +109,11 @@ class BaseProvider(object):
indicating that this container requires a restart.
"""
raise NotImplementedError
def get_volume_path(self, directory, file):
""" Helper for constructing file paths, which may differ between providers. For example,
kubernetes can't have subfolders in configmaps """
raise NotImplementedError
def _get_license_file(self):
""" Returns the contents of the license file. """