def set_app_default_configs(): config_files = _get_config_files() if all([os.path.exists(x) for x in config_files]): CONF([], project='armada', default_config_files=config_files) setup_chart_deploy_aware_logging() set_default_for_default_log_levels() default.register_opts(CONF)
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from armada.conf import default import falcon import json from falcon import HTTP_200 from oslo_config import cfg from oslo_log import log as logging # Required Oslo configuration setup default.register_opts() from armada.handlers.tiller import Tiller as tillerHandler from armada.handlers.armada import Armada as armadaHandler LOG = logging.getLogger(__name__) CONF = cfg.CONF DOMAIN = "armada" logging.setup(CONF, DOMAIN) class Tiller(object): ''' tiller service endpoints '''
def setUp(self): super(ArmadaTestCase, self).setUp() self.useFixture(fixtures.FakeLogger('armada')) default.register_opts(CONF)
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from armada.conf import default import falcon import json from falcon import HTTP_200 from oslo_config import cfg from oslo_log import log as logging # Required Oslo configuration setup default.register_opts() from armada.handlers.tiller import Tiller as tillerHandler from armada.handlers.armada import Armada as armadaHandler LOG = logging.getLogger(__name__) CONF = cfg.CONF DOMAIN = "armada" logging.setup(CONF, DOMAIN) class Tiller(object): ''' tiller service endpoints '''
def set_app_default_configs(): default.register_opts(CONF)