Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ref.semverFilter to OCIRepository API #1391

Closed
Tracked by #4712
stefanprodan opened this issue Mar 4, 2024 · 1 comment · Fixed by #1407
Closed
Tracked by #4712

Add ref.semverFilter to OCIRepository API #1391

stefanprodan opened this issue Mar 4, 2024 · 1 comment · Fixed by #1407
Labels
area/oci OCI related issues and pull requests enhancement New feature or request

Comments

@stefanprodan
Copy link
Member

To cope with the semver range limitation where it's not possible to select only pre-releases, I propose we introduce regex filtering capabilities similar to what we have in ImagePolicy.

Example of selecting only pre-releases:

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
  name: podinfo
  namespace: default
spec:
  interval: 5m0s
  url: oci://ghcr.io/stefanprodan/manifests/podinfo
  ref:
    semver: '>=1.0.0-0' # select latest version stable and pre-releases
    semverFilter: '.*-rc.*' # include only release candidates
@hirenko-v
Copy link

hello @stefanprodan. Is it possible to add similar to GitRepository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/oci OCI related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants