Files
buzz/deploy/charts/buzz/examples/argocd-app.yaml
Nick Kampe 36cf932ff0 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>
2026-08-01 12:08:45 -04:00

81 lines
2.7 KiB
YAML

# ArgoCD Application — GitOps-safe Buzz install.
#
# Prerequisite: a Secret named `buzz-secrets` in namespace `buzz` containing
# (any subset of) the keys consumed by `secrets.existingSecret`. See
# `secret-sample.yaml` for the schema.
#
# Why `existingSecret` and not chart autogen: ArgoCD renders manifests with
# `helm template`, in which mode Helm's `lookup` function returns empty and
# any chart-side `randAlphaNum` call regenerates on every sync. The
# chart-managed Secret path is for `helm install` / `helm upgrade` only.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: buzz
namespace: argocd
spec:
project: default
source:
# Argo CD >= 3.1 native OCI sources: repoURL must be the FULL chart
# artifact path — with the `repoURL: …/charts` + `chart: buzz` split
# 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:
releaseName: buzz
values: |
relayUrl: wss://buzz.example.com
ownerPubkey: "0000000000000000000000000000000000000000000000000000000000000000" # replace
replicaCount: 3
secrets:
existingSecret: buzz-secrets
externalPostgresql:
# DATABASE_URL also lives in buzz-secrets; this is here only if you
# prefer the URL stored in values vs. the Secret. Pick one.
url: ""
externalRedis:
url: ""
s3:
endpoint: "https://s3.us-east-1.amazonaws.com"
bucket: "buzz-media"
region: "us-east-1"
addressingStyle: virtual
# accessKey / secretKey live in buzz-secrets
persistence:
git:
enabled: true
accessMode: ReadWriteOnce # RWO is fine at any replicaCount (object-store-backed git)
storageClass: "" # any RWO class; no shared/RWX filesystem needed
size: 50Gi
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
# WebSocket: long-lived; raise proxy timeouts.
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
tls:
- hosts: [buzz.example.com]
secretName: buzz-tls
destination:
server: https://kubernetes.default.svc
namespace: buzz
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true