You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested this in a new kind cluster on a public registry to verify the change:
Example
➜ kubectl apply -f https://github.com/fluxcd/flux2/releases/download/v2.1.2/install.yaml
namespace/flux-system created
...
➜ cat <<EOF | kubectl apply -f -apiVersion: source.toolkit.fluxcd.io/v1beta2kind: OCIRepositorymetadata: name: podinfo namespace: defaultspec: interval: 5m0s url: oci://ghcr.io/stefanprodan/manifests/podinfo ref: tag: 6.6.2@sha256:6ca1d018a562caa81bfee3c56c41d255b085bbdb30da79e09849559680df8675EOF
ocirepository.source.toolkit.fluxcd.io/podinfo created
➜ kubectl get ocirepo -A
NAMESPACE NAME URL READY STATUS AGE
default podinfo oci://ghcr.io/stefanprodan/manifests/podinfo True stored artifact for digest 'sha256:6ca1d018a562caa81bfee3c56c41d255b085bbdb30da79e09849559680df8675' 52s
➜ kubectl apply -f https://github.com/fluxcd/flux2/releases/download/v2.2.3/install.yaml
namespace/flux-system unchanged
resourcequota/critical-pods configured
...
➜ kubectl get ocirepo -A
NAMESPACE NAME URL READY STATUS AGE
default podinfo oci://ghcr.io/stefanprodan/manifests/podinfo False failed to determine artifact digest: GET https://github.com/-/v2/packages/container/package/stefanprodan%!!(MISSING)F(MISSING)manifests%!!(MISSING)F(MISSING)podinfo%!!(MISSING)F(MISSING)manifests%!!(MISSING)F(MISSING)6.6.2: unexpected status code 404 Not Found: Not Found 116s
➜ cat <<EOF | kubectl apply -f -apiVersion: source.toolkit.fluxcd.io/v1beta2kind: OCIRepositorymetadata: name: podinfo namespace: defaultspec: interval: 5m0s url: oci://ghcr.io/stefanprodan/manifests/podinfo ref: tag: 6.6.2EOF
ocirepository.source.toolkit.fluxcd.io/podinfo configured
➜ kubectl get ocirepo -A
NAMESPACE NAME URL READY STATUS AGE
default podinfo oci://ghcr.io/stefanprodan/manifests/podinfo True stored artifact for digest '6.6.2@sha256:6ca1d018a562caa81bfee3c56c41d255b085bbdb30da79e09849559680df8675' 3m23s
The changelog did not indicate any intended change in that regard. This is probably a side effect of changing from crane to remote: #1244
Thanks for taking a look :)
The text was updated successfully, but these errors were encountered:
maboehm
changed the title
[bug] Regression: OCIRepositories can no longer specify tag@digest in
[bug] Regression: OCIRepositories can no longer specify tag@digest
May 3, 2024
After upgrading flux from
v2.1.x
tov2.2.x
the source controller can no longer pullOCIRepositories
that specify a tag and digest like:which produces this beautiful status error:
I tested this in a new kind cluster on a public registry to verify the change:
Example
The changelog did not indicate any intended change in that regard. This is probably a side effect of changing from crane to remote: #1244
Thanks for taking a look :)
The text was updated successfully, but these errors were encountered: