# Golden Image Defaults
#
# Concrete default values for golden image schemas.

{
  GoldenImageConfig = {
    name = "",
    base_os = 'ubuntu,
    os_version = "22.04",
    arch = 'x86_64,
    optimize = false,
    include_dev_tools = false,
    include_kernel_headers = false,
    cleanup_package_manager = true,
    disk_size_gb = 30,
    disk_format = 'qcow2,
    compression = true,
    cache_enabled = true,
    cache_ttl_days = 30,
    security_hardening = false,
    auto_updates = true,
    build_timeout_minutes = 30,
    build_retries = 3,
    parallel_builds = false,
  },

  GoldenImageBuildJob = {
    job_id = "",
    image_name = "",
    image_version = "",
    image_config = {},
    status = 'queued,
    retry_count = 0,
  },

  GoldenImageVersion = {
    image_name = "",
    version = "",
    created_at = "1970-01-01T00:00:00Z",
    image_path = "",
    image_size_gb = 0,
    checksum = "0000000000000000000000000000000000000000000000000000000000000000",
    usage_count = 0,
    deprecated = false,
  },

  GoldenImageCache = {
    cache_id = "",
    image_name = "",
    image_version = "",
    storage_path = "",
    storage_format = 'qcow2,
    disk_size_gb = 0,
    cached_at = "1970-01-01T00:00:00Z",
    is_valid = true,
    checksum = "0000000000000000000000000000000000000000000000000000000000000000",
    access_count = 0,
    hit_count = 0,
  },

  ImageBuildSteps = {
    prepare_base = true,
    update_packages = true,
    install_dependencies = true,
    install_taskservs = true,
    parallel_install = false,
    apply_config = true,
    apply_security_hardening = false,
    apply_optimizations = false,
    run_tests = true,
    cleanup_caches = true,
    cleanup_temp_files = true,
    remove_build_artifacts = true,
    compress_image = true,
    generate_checksums = true,
    verify_image = true,
  },

  ImageBuildPolicy = {
    default_os = "ubuntu",
    default_version = "22.04",
    default_arch = "x86_64",
    default_disk_size_gb = 30,
    max_parallel_builds = 3,
    max_build_time_minutes = 60,
    max_image_size_gb = 100,
    cache_enabled = true,
    cache_location = "",
    default_cache_ttl_days = 30,
    max_cache_size_gb = 500,
    auto_cleanup_expired = true,
    cleanup_interval_hours = 24,
    min_disk_free_percent = 10,
    auto_create_versions = true,
    version_naming = "semantic",
    default_optimize = false,
    default_compression = true,
    default_security_hardening = false,
  },

  GoldenImageRegistry = {
    registry_id = "",
    location = "",
    created_at = "1970-01-01T00:00:00Z",
    images = {},
    versions = [],
    builds = [],
    cache = [],
    policy = {},
  },
}
