<commit_before># Shared common terraform config found in the templates/terraform folder in datadog_checks_dev
resource "google_compute_instance" "linkerd-init" {
  name = replace("linkerd-init-${var.user}-${random_string.suffix.result}", ".", "-")
  machine_type = "n1-standard-2"

  tags = ["linkerd", "lab"]
  boot_disk {
    initialize_params {
      image = "ubuntu-os-cloud/ubuntu-1804-lts"
      size = 30
    }
  }

  network_interface {
    network = "default"
    access_config {
    }
  }

  metadata = {
    enable-oslogin = "TRUE"
    ssh-keys = "ubuntu:${tls_private_key.ssh-key.public_key_openssh} ubuntu"
  }

  connection {
    type = "ssh"
    user = "ubuntu"
    private_key = tls_private_key.ssh-key.private_key_pem
    host = google_compute_instance.linkerd-init.network_interface.0.access_config.0.nat_ip
  }

  provisioner "file" {
    source = local_file.kubeconfig.filename
    destination = "kubeconfig"
  }

}

resource "null_resource" "linkerd-init" {
  depends_on = [google_container_cluster.gke_cluster, google_compute_instance.linkerd-init]

  connection {
    type = "ssh"
    user = "ubuntu"
    private_key = tls_private_key.ssh-key.private_key_pem
    host = google_compute_instance.linkerd-init.network_interface.0.access_config.0.nat_ip
  }

  provisioner "remote-exec" {
    script = "linkerd-init.sh"
  }
}

resource "google_container_cluster" "gke_cluster" {
  name = replace("linkerd-cluster-${var.user}-${random_string.suffix.result}", ".", "-")
  location = random_shuffle.az.result[0]
  min_master_version = "1.13.11-gke.14"

  lifecycle {
    ignore_changes = ["node_pool"]
  }

  initial_node_count = 3

  master_auth {
    username = "user"
    password = <PASSWORD>
  }

  node_config {
    disk_size_gb = 10
    disk_type = "pd-standard"
    machine_type = "n1-standard-2"
    oauth_scopes = [
      "https://www.googleapis.com/auth/compute",
      "https://www.googleapis.com/auth/devstorage.read_only",
      "https://www.googleapis.com/auth/logging.write",
      "https://www.googleapis.com/auth/monitoring",
    ]
    tags = ["linkerd", "lab"]
  }
}<commit_msg>Remove GKE cluster version limitation (#7430)<commit_after># Shared common terraform config found in the templates/terraform folder in datadog_checks_dev
resource "google_compute_instance" "linkerd-init" {
  name = replace("linkerd-init-${var.user}-${random_string.suffix.result}", ".", "-")
  machine_type = "n1-standard-2"

  tags = ["linkerd", "lab"]
  boot_disk {
    initialize_params {
      image = "ubuntu-os-cloud/ubuntu-1804-lts"
      size = 30
    }
  }

  network_interface {
    network = "default"
    access_config {
    }
  }

  metadata = {
    enable-oslogin = "TRUE"
    ssh-keys = "ubuntu:${tls_private_key.ssh-key.public_key_openssh} ubuntu"
  }

  connection {
    type = "ssh"
    user = "ubuntu"
    private_key = tls_private_key.ssh-key.private_key_pem
    host = google_compute_instance.linkerd-init.network_interface.0.access_config.0.nat_ip
  }

  provisioner "file" {
    source = local_file.kubeconfig.filename
    destination = "kubeconfig"
  }

}

resource "null_resource" "linkerd-init" {
  depends_on = [google_container_cluster.gke_cluster, google_compute_instance.linkerd-init]

  connection {
    type = "ssh"
    user = "ubuntu"
    private_key = tls_private_key.ssh-key.private_key_pem
    host = google_compute_instance.linkerd-init.network_interface.0.access_config.0.nat_ip
  }

  provisioner "remote-exec" {
    script = "linkerd-init.sh"
  }
}

resource "google_container_cluster" "gke_cluster" {
  name = replace("linkerd-cluster-${var.user}-${random_string.suffix.result}", ".", "-")
  location = random_shuffle.az.result[0]

  lifecycle {
    ignore_changes = ["node_pool"]
  }

  initial_node_count = 3

  master_auth {
    username = "user"
    password = <PASSWORD>
  }

  node_config {
    disk_size_gb = 10
    disk_type = "pd-standard"
    machine_type = "n1-standard-2"
    oauth_scopes = [
      "https://www.googleapis.com/auth/compute",
      "https://www.googleapis.com/auth/devstorage.read_only",
      "https://www.googleapis.com/auth/logging.write",
      "https://www.googleapis.com/auth/monitoring",
    ]
    tags = ["linkerd", "lab"]
  }
}
{'fraction_non_alphanumeric': 0.13466097676623992, 'fraction_numerical': 0.011142721669037459, 'mean_word_length': 3.3902185223725287, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 8, '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': '5085490', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1473, 'n_words': 215}