Skip to content

Conversation

@faebr
Copy link
Collaborator

@faebr faebr commented Oct 8, 2025

The following was a prefixClaim accepted by kube-api. The regex needs brackets around the or statement so the startline and endline characters in the regex always apply.

---
apiVersion: netbox.dev/v1
kind: PrefixClaim
metadata:
  labels:
    app.kubernetes.io/name: netbox-operator
    app.kubernetes.io/managed-by: kustomize
  name: prefixclaim-sample
spec:
  tenant: "Dunder-Mifflin, Inc."
  site: "DM-Akron"
  description: "some description"
  comments: "your comments"
  preserveInNetbox: true
  parentPrefix: "2.0.0.0/16"
  prefixLength: "/222222222222222222222"

@faebr faebr requested review from bruelea and jstudler October 8, 2025 15:43
@faebr faebr merged commit ae3110c into main Oct 9, 2025
13 checks passed
@faebr faebr deleted the bugfix/fix-regex-prefixclaim-prefix branch October 9, 2025 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants