ImagesConfig#

pydantic settings nublado.config.images.ImagesConfig#

Configuration for Nublado image management.

Parameters:
Fields:
field docker_credentials_path: Annotated[Optional[Path]] = None#

Path to a file containing a JSON-encoded dictionary of Docker credentials for various registries, in the same format as the Docker configuration file and the value of a Kubernetes pull secret

field log_level: Annotated[LogLevel] = LogLevel.INFO#
field log_profile: Annotated[Profile] = Profile.production#
field source: Annotated[TypeAliasType] [Required]#

Source of images to manage

configure_logging()#

Configure logging based on the configuration.

Return type:

None

classmethod from_file(path, *, debug=None, docker_credentials_path=None)#

Load the images configuration from a YAML file.

Parameters:
  • path (Path) – Path to the configuration file.

  • debug (Optional[bool], default: None) – Whether to force debug logging.

  • docker_credentials_path (Optional[Path], default: None) – Path to the Docker API credentials file.

Return type:

Self