33 lines
932 B
Python
33 lines
932 B
Python
#
|
|
# Copyright (c) 2019-2020 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
from sysinv.common import exception
|
|
from sysinv.helm import common
|
|
|
|
from k8sapp_openstack.common import constants as app_constants
|
|
from k8sapp_openstack.helm import openstack
|
|
|
|
|
|
class MemcachedHelm(openstack.OpenstackBaseHelm):
|
|
"""Class to encapsulate helm operations for the memcached chart"""
|
|
|
|
CHART = app_constants.HELM_CHART_MEMCACHED
|
|
HELM_RELEASE = app_constants.FLUXCD_HELMRELEASE_MEMCACHED
|
|
|
|
def get_overrides(self, namespace=None):
|
|
overrides = {
|
|
common.HELM_NS_OPENSTACK: {
|
|
}
|
|
}
|
|
|
|
if namespace in self.SUPPORTED_NAMESPACES:
|
|
return overrides[namespace]
|
|
elif namespace:
|
|
raise exception.InvalidHelmNamespace(chart=self.CHART,
|
|
namespace=namespace)
|
|
else:
|
|
return overrides
|