{
  "slug": "flux-create-source-oci-supports-ocirepository-layer-selectors-1c17e6104f21",
  "title": "flux create source oci supports OCIRepository layer selectors",
  "tools": [
    "flux"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-30T15:48:09.000Z",
  "announced_at": "2026-06-30T15:48:09.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you need an OCIRepository to select and process a specific OCI layer, run `flux create source oci` with `--layer-selector=<media-type>:<operation>` and `--export` to render the resource YAML.",
    "examples": [
      "flux create source oci <name> --url=<oci-url> --tag=<tag> --layer-selector=<media-type>:<operation> --export"
    ],
    "gotchas": [
      "Version: v2.9.0",
      "<name>: Positional OCIRepository name. The docs do not mark it required.",
      "--url: OCI repository URL. The docs do not mark it required.",
      "--tag: OCI artifact tag. The docs do not mark it required.",
      "--layer-selector: Layer selector in `<media-type>:<operation>` form; the docs do not mark the flag required. Supported operations are `extract` and `copy`.",
      "mediaType: Selects the first OCI layer matching this media type.",
      "operation: `extract` extracts the compressed layer to storage by default; `copy` stores the compressed layer as-is. The documented allowed values are `extract` and `copy`.",
      "--export: Exports the generated resource in YAML format to stdout.",
      "The operation must be one of the supported API values `extract` or `copy`.",
      "The source states that this adds CLI support for fields already supported by the OCIRepository API and source-controller; it does not change controller behavior or the API."
    ]
  },
  "why_it_matters": "Export an OCIRepository that selects and processes a specific OCI layer.",
  "sources": [
    "https://github.com/fluxcd/flux2/releases/tag/v2.9.0",
    "https://github.com/fluxcd/flux2/pull/5892",
    "https://fluxcd.io/flux/cmd/flux_create_source_oci/",
    "https://fluxcd.io/flux/components/source/api/v1/"
  ],
  "rank": 0.96018,
  "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-d4dc415b1cefd189-17:gate",
    "evidence_hash": "f719b7a3225a7a50dddebee9d2bbb46e454b3c63ab3b9d94dcabcba8747b984f"
  },
  "review": {
    "draft_hash": "7b97de4f619e6840513be3c3bed9c805cb33e4c4e4dc9b13b3944931b1789cb3",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
