app/src/k8s/resource/deployment.py
def copy_volumes(from_deployment: Dict, to_deployment: Dict) -> Dict:
    """Copies volumes from Deployment to Deployment.

    Does not copy volumes for mounted secrets.

    Args:
        from_deployment:
            Deployment whose volumes are copied.
        to_deployment:
            Deployment who will receive from_deployments' volumes.

    Returns:
        The resulting Deployment.
    """

    # attaching the volumes of the original deployment to this one
    volumes: List[Dict] = get_volumes(from_deployment, exclude_secrets=True)
    to_deployment["spec"]["template"]["spec"]["volumes"].extend(volumes)
    return to_deployment
Copies volumes from Deployment to Deployment.

    Does not copy volumes for mounted secrets.

    Args:
        from_deployment:
            Deployment whose volumes are copied.
        to_deployment:
            Deployment who will receive from_deployments' volumes.

    Returns:
        The resulting Deployment.
    
Copies volumes from Deployment to Deployment.
Does not copy volumes for mounted secrets.
Copies volumes from Deployment to Deployment . Does not copy volumes for mounted secrets .
def copy_volumes(from_deployment: Dict, to_deployment: Dict) -> Dict:
    volumes: List[Dict] = get_volumes(from_deployment, exclude_secrets=True)
    to_deployment["spec"]["template"]["spec"]["volumes"].extend(volumes)
    return to_deployment
def copy_volumes ( from_deployment : Dict , to_deployment : Dict ) -> Dict : volumes : List [ Dict ] = get_volumes ( from_deployment , exclude_secrets = True ) to_deployment [ "spec" ] [ "template" ] [ "spec" ] [ "volumes" ] . extend ( volumes ) return to_deployment
Copies volumes from Deployment to Deployment.
Copies volumes from Deployment to Deployment .
"""Copies volumes from Deployment to Deployment.

    Does not copy volumes for mounted secrets.

    Args:
        from_deployment:
            Deployment whose volumes are copied.
        to_deployment:
            Deployment who will receive from_deployments' volumes.

    Returns:
        The resulting Deployment.
    """ # attaching the volumes of the original deployment to this one
The resulting Deployment.
The resulting Deployment .
from_deployment
Dict
Deployment whose volumes are copied.
Deployment whose volumes are copied .
to_deployment
Dict
Deployment who will receive from_deployments' volumes.
Deployment who will receive from_deployments ' volumes .