{
  "slug": "helmfile-hcl-templates-add-cidr-functions-54f88d5c193c",
  "title": "helmfile HCL templates add CIDR functions",
  "tools": [
    "helmfile"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-02T12:44:14.000Z",
  "announced_at": "2026-03-02T12:44:14.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When templating IP addresses or subnet ranges from HCL in Helmfile v1.4.0, use `cidrhost`, `cidrnetmask`, `cidrsubnet`, or `cidrsubnets` with the required arguments for the calculation. [HCL Functions](https://github.com/helmfile/helmfile/blob/v1.4.0/docs/hcl_funcs.md)",
    "examples": [
      "cidrhost(\"10.0.0.0/8\", 2)",
      "cidrsubnet(\"10.0.0.0/8\", 8, 2)",
      "cidrsubnets(\"10.0.0.0/8\", 4, 4)"
    ],
    "gotchas": [
      "Version: v1.4.0",
      "cidrhost(prefix, hostnum): `prefix` (required): IP network address prefix.",
      "cidrhost(prefix, hostnum): `hostnum` (required): Host number within the prefix.",
      "cidrnetmask(prefix): `prefix` (required): IPv4 address prefix in CIDR notation.",
      "cidrsubnet(prefix, newbits, netnum): `prefix` (required): IP network address prefix.",
      "cidrsubnet(prefix, newbits, netnum): `newbits` (required): Number of bits used to extend the prefix.",
      "cidrsubnet(prefix, newbits, netnum): `netnum` (required): Subnet number within the prefix.",
      "cidrsubnets(prefix, newbits...): `prefix` (required): CIDR prefix containing the consecutive ranges.",
      "cidrsubnets(prefix, newbits...): `newbits...` (required): One or more bit counts for the ranges to calculate.",
      "The release describes these functions as additions to Helmfile's supported HCL functions."
    ]
  },
  "why_it_matters": "Template static IP addresses or subnet ranges for Kubernetes resources from HCL in a Helmfile repository.",
  "sources": [
    "https://github.com/helmfile/helmfile/releases/tag/v1.4.0",
    "https://github.com/helmfile/helmfile/pull/2426",
    "https://github.com/helmfile/helmfile/blob/v1.4.0/docs/hcl_funcs.md"
  ],
  "rank": 0.9702,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-030683ea47974d54-2:gate",
    "evidence_hash": "781944629b6e69e39885fcc12fabef6966532225525398eb8e1104d3a7b6be1b"
  },
  "review": {
    "draft_hash": "88b41e124050dd12547622f5a4acba74f320d10b6e353b213174305c9e06102c",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
