MAIA.maia_docker_images module#

MAIA.maia_docker_images.deploy_maia_kaniko(namespace, config_folder, cluster_config_dict, release_name, project_id, registry_url, registry_secret_name, image_name, image_tag, subpath, build_args=None)[source]#

Deploys a Kaniko job for building and pushing Docker images to a specified registry.

Parameters:
  • namespace (str) – The Kubernetes namespace where the Kaniko job will be deployed.

  • config_folder (str) – The folder path where the configuration files will be stored.

  • cluster_config_dict (dict) – Dictionary containing cluster configuration details, including storage class.

  • release_name (str) – The release name for the Kaniko job.

  • project_id (str) – The project identifier.

  • registry_url (str) – The URL of the Docker registry where the image will be pushed.

  • registry_secret_name (str) – The name of the Kubernetes secret for accessing the Docker registry.

  • image_name (str) – The name of the Docker image to be built.

  • image_tag (str) – The tag of the Docker image to be built.

  • subpath (str) – The subpath of the repository where the Dockerfile is located.

  • build_args (list, optional) – A list of build arguments to be passed to the Kaniko job.

Returns:

dict – A dictionary containing deployment details including namespace, release name, chart name, repo URL, chart version, and values file path.