<commit_before>// WARNING, MAKE SURE YOU DON"T DESTROY THESE CLUSTERS ACCIDENTALLY

module "prow_trusted" {
  source                     = "terraform-google-modules/kubernetes-engine/google//modules/beta-public-cluster"
  project_id                 = module.project.project_id
  name                       = "prow-trusted"
  regional                   = false
  zones                      = ["us-central1-a"]
  release_channel            = "STABLE"
  network                    = "default"
  subnetwork                 = "default"
  ip_range_pods              = "gke-prow-trusted-pods-f579223d"
  ip_range_services          = "gke-prow-trusted-services-f579223d"
  http_load_balancing        = true
  network_policy             = false
  horizontal_pod_autoscaling = true
  filestore_csi_driver       = false
  create_service_account     = false
  remove_default_node_pool   = true
  cluster_resource_labels = {
    cluster     = "prow-trusted"
    role        = "prow"
    environment = "production"
  }

  node_pools = [
    {
      name               = "prod-v1"
      machine_type       = "e2-medium"
      node_locations     = "us-central1-f"
      min_count          = 1
      max_count          = 3
      disk_size_gb       = 100
      disk_type          = "pd-standard"
      image_type         = "COS_CONTAINERD"
      auto_repair        = true
      auto_upgrade       = true
      service_account    = google_service_account.gke_nodes.email
      enable_secure_boot = true
      initial_node_count = 1
    },
  ]
}

module "prow" {
  source                     = "terraform-google-modules/kubernetes-engine/google//modules/beta-public-cluster"
  project_id                 = module.project.project_id
  name                       = "prow"
  region                     = "us-central1"
  release_channel            = "RAPID"
  network                    = module.vpc.network_name
  subnetwork                 = module.vpc.subnets["us-central1/prow-subnet-01"].name
  ip_range_pods              = "prow-pods"
  ip_range_services          = "prow-services"
  http_load_balancing        = true
  network_policy             = false
  horizontal_pod_autoscaling = true
  filestore_csi_driver       = false
  create_service_account     = false
  remove_default_node_pool   = true
  cluster_resource_labels = {
    cluster     = "prow"
    role        = "prow"
    environment = "production"
  }

  node_pools = [
    {
      name               = "prod-v1"
      machine_type       = "e2-standard-4"
      node_locations     = "us-central1-a,us-central1-b"
      min_count          = 1
      max_count          = 2
      disk_size_gb       = 100
      disk_type          = "pd-standard"
      image_type         = "COS_CONTAINERD"
      auto_repair        = true
      auto_upgrade       = true
      service_account    = google_service_account.gke_nodes.email
      enable_secure_boot = true
      initial_node_count = 1
    },
  ]

  node_pools_labels = {
    all = {
      environment = "production"
    }
  }
}

module "prow_build" {
  source                     = "terraform-google-modules/kubernetes-engine/google//modules/beta-public-cluster"
  project_id                 = module.project.project_id
  name                       = "prow-build"
  region                     = "us-central1"
  release_channel            = "RAPID"
  network                    = module.vpc.network_name
  subnetwork                 = module.vpc.subnets["us-central1/prow-subnet-01"].name
  ip_range_pods              = "prow-build-pods"
  ip_range_services          = "prow-build-services"
  http_load_balancing        = true
  network_policy             = false
  horizontal_pod_autoscaling = true
  filestore_csi_driver       = false
  create_service_account     = false
  remove_default_node_pool   = true
  gce_pd_csi_driver          = true
  cluster_autoscaling = {
    enabled             = false
    autoscaling_profile = "OPTIMIZE_UTILIZATION"
    gpu_resources       = []
    max_cpu_cores       = null
    max_memory_gb       = null
    min_cpu_cores       = null
    min_memory_gb       = null
  }

  cluster_resource_labels = {
    cluster     = "prow-build"
    role        = "prow"
    environment = "production"
  }

  node_pools = [
    {
      name               = "system-pool-v1"
      machine_type       = "e2-standard-2"
      node_locations     = "us-central1-c,us-central1-f"
      min_count          = 1
      max_count          = 2
      disk_size_gb       = 100
      disk_type          = "pd-standard"
      image_type         = "COS_CONTAINERD"
      auto_repair        = true
      auto_upgrade       = true
      service_account    = google_service_account.gke_nodes.email
      enable_secure_boot = true
      initial_node_count = 1
    },
    {
      name               = "testing-pool-v1"
      machine_type       = "n2d-standard-16"
      node_locations     = "us-central1-c,us-central1-f"
      local_ssd_count    = 1
      min_count          = 0
      max_count          = 6
      disk_size_gb       = 100
      disk_type          = "pd-ssd"
      image_type         = "COS_CONTAINERD"
      auto_repair        = true
      auto_upgrade       = true
      service_account    = google_service_account.gke_nodes.email
      enable_secure_boot = true
      initial_node_count = 0
    },
  ]

  node_pools_labels = {
    all = {
      environment = "production"
    }

    testing-pool-v1 = {
      type = "testing"
    }

    system-pool-v1 = {
      type = "system"
    }<commit_msg>Update max number of nodes for the build cluster to 20 (#3315)<commit_after>// WARNING, MAKE SURE YOU DON"T DESTROY THESE CLUSTERS ACCIDENTALLY

module "prow_trusted" {
  source                     = "terraform-google-modules/kubernetes-engine/google//modules/beta-public-cluster"
  project_id                 = module.project.project_id
  name                       = "prow-trusted"
  regional                   = false
  zones                      = ["us-central1-a"]
  release_channel            = "STABLE"
  network                    = "default"
  subnetwork                 = "default"
  ip_range_pods              = "gke-prow-trusted-pods-f579223d"
  ip_range_services          = "gke-prow-trusted-services-f579223d"
  http_load_balancing        = true
  network_policy             = false
  horizontal_pod_autoscaling = true
  filestore_csi_driver       = false
  create_service_account     = false
  remove_default_node_pool   = true
  cluster_resource_labels = {
    cluster     = "prow-trusted"
    role        = "prow"
    environment = "production"
  }

  node_pools = [
    {
      name               = "prod-v1"
      machine_type       = "e2-medium"
      node_locations     = "us-central1-f"
      min_count          = 1
      max_count          = 3
      disk_size_gb       = 100
      disk_type          = "pd-standard"
      image_type         = "COS_CONTAINERD"
      auto_repair        = true
      auto_upgrade       = true
      service_account    = google_service_account.gke_nodes.email
      enable_secure_boot = true
      initial_node_count = 1
    },
  ]
}

module "prow" {
  source                     = "terraform-google-modules/kubernetes-engine/google//modules/beta-public-cluster"
  project_id                 = module.project.project_id
  name                       = "prow"
  region                     = "us-central1"
  release_channel            = "RAPID"
  network                    = module.vpc.network_name
  subnetwork                 = module.vpc.subnets["us-central1/prow-subnet-01"].name
  ip_range_pods              = "prow-pods"
  ip_range_services          = "prow-services"
  http_load_balancing        = true
  network_policy             = false
  horizontal_pod_autoscaling = true
  filestore_csi_driver       = false
  create_service_account     = false
  remove_default_node_pool   = true
  cluster_resource_labels = {
    cluster     = "prow"
    role        = "prow"
    environment = "production"
  }

  node_pools = [
    {
      name               = "prod-v1"
      machine_type       = "e2-standard-4"
      node_locations     = "us-central1-a,us-central1-b"
      min_count          = 1
      max_count          = 2
      disk_size_gb       = 100
      disk_type          = "pd-standard"
      image_type         = "COS_CONTAINERD"
      auto_repair        = true
      auto_upgrade       = true
      service_account    = google_service_account.gke_nodes.email
      enable_secure_boot = true
      initial_node_count = 1
    },
  ]

  node_pools_labels = {
    all = {
      environment = "production"
    }
  }
}

module "prow_build" {
  source                     = "terraform-google-modules/kubernetes-engine/google//modules/beta-public-cluster"
  project_id                 = module.project.project_id
  name                       = "prow-build"
  region                     = "us-central1"
  release_channel            = "RAPID"
  network                    = module.vpc.network_name
  subnetwork                 = module.vpc.subnets["us-central1/prow-subnet-01"].name
  ip_range_pods              = "prow-build-pods"
  ip_range_services          = "prow-build-services"
  http_load_balancing        = true
  network_policy             = false
  horizontal_pod_autoscaling = true
  filestore_csi_driver       = false
  create_service_account     = false
  remove_default_node_pool   = true
  gce_pd_csi_driver          = true
  cluster_autoscaling = {
    enabled             = false
    autoscaling_profile = "OPTIMIZE_UTILIZATION"
    gpu_resources       = []
    max_cpu_cores       = null
    max_memory_gb       = null
    min_cpu_cores       = null
    min_memory_gb       = null
  }

  cluster_resource_labels = {
    cluster     = "prow-build"
    role        = "prow"
    environment = "production"
  }

  node_pools = [
    {
      name               = "system-pool-v1"
      machine_type       = "e2-standard-2"
      node_locations     = "us-central1-c,us-central1-f"
      min_count          = 1
      max_count          = 2
      disk_size_gb       = 100
      disk_type          = "pd-standard"
      image_type         = "COS_CONTAINERD"
      auto_repair        = true
      auto_upgrade       = true
      service_account    = google_service_account.gke_nodes.email
      enable_secure_boot = true
      initial_node_count = 1
    },
    {
      name               = "testing-pool-v1"
      machine_type       = "n2d-standard-16"
      node_locations     = "us-central1-c,us-central1-f"
      local_ssd_count    = 1
      min_count          = 0
      max_count          = 20
      disk_size_gb       = 100
      disk_type          = "pd-ssd"
      image_type         = "COS_CONTAINERD"
      auto_repair        = true
      auto_upgrade       = true
      service_account    = google_service_account.gke_nodes.email
      enable_secure_boot = true
      initial_node_count = 0
    },
  ]

  node_pools_labels = {
    all = {
      environment = "production"
    }

    testing-pool-v1 = {
      type = "testing"
    }

    system-pool-v1 = {
      type = "system"
    }
{'fraction_non_alphanumeric': 0.07801482552883746, 'fraction_numerical': 0.012746338817573675, 'mean_word_length': 1.5896535580524345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7353949', 'n_tokens_mistral': 3633, 'n_tokens_neox': 3438, 'n_words': 547}