# Disable YAML SDC model definition which means all SDC config reside in SERVICE_YAML_TEMPLATE
MODEL_YAML_TEMPLATE = None
USE_SIMULATOR = True
-VES_NODE_PORT = 30417
\ No newline at end of file
+VES_NODE_PORT = 30417
SERVICE_DISTRIBUTION_SLEEP_TIME = 60
EXPOSE_SERVICES_NODE_PORTS = True
IN_CLUSTER = False
-VES_BASIC_AUTH = {'username': 'sample1', 'password': 'sample1'}
\ No newline at end of file
+VES_BASIC_AUTH = {'username': 'sample1', 'password': 'sample1'}
class StoreStateHandler(ABC):
@classmethod
- def store_state(cls, fun=None, *, cleanup=False):
+ def store_state(cls, fun=None, *, cleanup=False): # noqa
if fun is None:
return functools.partial(cls.store_state, cleanup=cleanup)
self.k8s_client.patch_namespaced_service(
self.service_name,
settings.K8S_ONAP_NAMESPACE,
- {"spec": {"ports": [{"port": self.port, "nodePort": self.node_port}], "type": "NodePort"}}
+ {"spec": {"ports": [{"port": self.port,
+ "nodePort": self.node_port}],
+ "type": "NodePort"}}
)
except ApiException:
self._logger.exception("Kubernetes API exception")
super().__init__(cleanup=BaseStep.HAS_NO_CLEANUP)
if settings.EXPOSE_SERVICES_NODE_PORTS:
self.add_step(ExposeServiceNodePortStep(component="VES-Collector",
- service_name="dcae-ves-collector", port=8080, node_port=settings.VES_NODE_PORT))
+ service_name="dcae-ves-collector",
+ port=8080,
+ node_port=settings.VES_NODE_PORT))
@property
def description(self) -> str:
"""Expose CDS blueprintsprocessor port."""
def __init__(self) -> None:
"""Initialize step."""
- super().__init__(component = "CDS", service_name="cds-blueprints-processor-http", port=8080, node_port=settings.CDS_NODE_PORT)
+ super().__init__(component="CDS",
+ service_name="cds-blueprints-processor-http",
+ port=8080,
+ node_port=settings.CDS_NODE_PORT)
class BootstrapBlueprintprocessor(CDSBaseStep):