{
  "slug": "gcloud-alloydb-instances-create-and-update-support-instance-labels-5498c59e41f1",
  "title": "gcloud alloydb instances create and update support instance labels",
  "tools": [
    "gcloud"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-02T00:00:00.000Z",
  "announced_at": "2026-06-02T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating or maintaining an AlloyDB instance, use `--labels` on create or create-secondary to assign labels; use the update command’s label flags to change, remove, or clear them.",
    "examples": [
      "gcloud alloydb instances create <instance> --cluster=<cluster> --region=<region> --instance-type=<instance-type> --labels=<key>=<value>",
      "gcloud alloydb instances create-secondary <instance> --cluster=<cluster> --region=<region> --labels=<key>=<value>",
      "gcloud alloydb instances update <instance> --update-labels=<key>=<value> [--remove-labels=<key>,… | --clear-labels]"
    ],
    "gotchas": [
      "--labels: On create and create-secondary, list of label KEY=VALUE pairs to add. Keys and values must start with a lowercase character and contain only hyphens, underscores, lowercase characters, and numbers.",
      "--update-labels: List of label KEY=VALUE pairs to update; changes existing values or creates new labels. Keys and values must start with a lowercase character and contain only hyphens, underscores, lowercase characters, and numbers.",
      "--remove-labels: List of label keys to remove; missing labels are silently ignored. Mutually exclusive with `--clear-labels`; if combined with `--update-labels`, updates apply first.",
      "--clear-labels: Remove all labels. Mutually exclusive with `--remove-labels`; if combined with `--update-labels`, clearing applies first."
    ]
  },
  "why_it_matters": "When creating, creating a secondary, or maintaining an AlloyDB instance, assign or change its labels.",
  "sources": [
    "https://docs.cloud.google.com/sdk/docs/release-notes#57100_2026-06-02",
    "https://docs.cloud.google.com/sdk/gcloud/reference/alloydb/instances/create",
    "https://docs.cloud.google.com/sdk/gcloud/reference/alloydb/instances/create-secondary",
    "https://docs.cloud.google.com/sdk/gcloud/reference/alloydb/instances/update"
  ],
  "rank": 0.96019,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "cloud-20261008",
    "verdict_id": "cloud-20261008:cloud-20261008-7c0263706e330654-0:gate",
    "evidence_hash": "260d8d51f1d0c3536f5f9be438870757d846f609a5a88e8f889ce5980e160adc"
  },
  "review": {
    "draft_hash": "c3aa6034baf35912d298c88f9ea77e8868e332707c517bed6702b064d0a9e1a5",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "cloud-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
