mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
docs(chart): fix ArgoCD example for native OCI sources (full artifact repoURL + path) (#3426)
## Problem `examples/argocd-app.yaml` uses the split form: ```yaml repoURL: oci://ghcr.io/block/buzz/charts chart: buzz targetRevision: 0.1.0 ``` On ArgoCD >= 3.0 (native OCI sources), the `chart` field is **ignored** for `oci://` repoURLs, so ArgoCD tries to pull the `charts` path itself and fails with `403 … repository:block/buzz/charts:pull denied` — a misleading error that reads like an auth problem. Additionally, spec validation rejects the Application without a `path` (`spec.source.repoURL and either spec.source.path or spec.source.chart are required`), since `chart` isn't recognized for OCI. Hit both on ArgoCD 3.4.4 following the example verbatim. ## Fix Use the full chart artifact path as `repoURL`, add `path: "."`, bump the pinned example version to the latest published chart (0.1.6), and leave a comment explaining both traps: ```yaml repoURL: oci://ghcr.io/block/buzz/charts/buzz path: . targetRevision: 0.1.6 ``` Verified working in production (ArgoCD 3.4.4, anonymous GHCR pull, chart 0.1.6). Related open PRs/issues: none found. --------- Signed-off-by: Kampe <blindside328@gmail.com> Signed-off-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@buzz.block.builderlab.xyz> Co-authored-by: Kampe <blindside328@gmail.com> Co-authored-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -16,9 +16,14 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
repoURL: oci://ghcr.io/block/buzz/charts
|
# Argo CD >= 3.1 native OCI sources: repoURL must be the FULL chart
|
||||||
chart: buzz
|
# artifact path — with the `repoURL: …/charts` + `chart: buzz` split
|
||||||
targetRevision: 0.1.0
|
# form, the `chart` field is ignored for oci:// URLs and the fetch
|
||||||
|
# fails with a 403 (`repository:block/buzz/charts:pull` denied). The
|
||||||
|
# spec validator still requires `path`; use "." for OCI sources.
|
||||||
|
repoURL: oci://ghcr.io/block/buzz/charts/buzz
|
||||||
|
path: .
|
||||||
|
targetRevision: 0.1.7
|
||||||
helm:
|
helm:
|
||||||
releaseName: buzz
|
releaseName: buzz
|
||||||
values: |
|
values: |
|
||||||
|
|||||||
Reference in New Issue
Block a user