def to_k8s_yaml(self) -> List[Tuple[(str, List[Dict])]]:
    '\n        Return a list of dictionary configurations. One for each deployment in this Deployment\n            .. # noqa: DAR201\n            .. # noqa: DAR101\n        '
    if (self.name == 'gateway'):
        return [('gateway', self.worker_deployments[0].get_gateway_yamls())]
    else:
        deployments = [self.head_deployment]
        deployments.extend(self.worker_deployments)
        return [(deployment.dns_name, deployment.get_runtime_yamls()) for deployment in deployments]
Return a list of dictionary configurations. One for each deployment in this Deployment
    .. # noqa: DAR201
    .. # noqa: DAR101
def to_k8s_yaml(self) -> List[Tuple[(str, List[Dict])]]:
    '\n        Return a list of dictionary configurations. One for each deployment in this Deployment\n            .. # noqa: DAR201\n            .. # noqa: DAR101\n        '
    if (self.name == 'gateway'):
        return [('gateway', self.worker_deployments[0].get_gateway_yamls())]
    else:
        deployments = [self.head_deployment]
        deployments.extend(self.worker_deployments)
        return [(deployment.dns_name, deployment.get_runtime_yamls()) for deployment in deployments]