0

I want the flux to be able to read and triggers with versioning such as v2.2.9, v2.2.9a, v2.2.9b

Currently it was working for v2.2.9, v2.3.0 but not when appending alphabet at the end.

kind: ImagePolicy
metadata:
  name: node-deployment
  namespace: flux-system
spec:
  imageRepositoryRef:
    name: node-deployment
  filterTags:
    # pattern: '^v2\.\d+\.\d+[a-zA-Z0-9]*$'
    pattern: '^2\\.2\\.9[a-z]?$'
  policy:
    semver:
      range: '^2.x'

1 Answer 1

0

You can find the 2 officially suggested regular expressions on the Semantic Versioning homepage: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.