Skip to content

[o2ims] Grant create on provisioning requests and probe the operator - #149

Draft
thc1006 wants to merge 1 commit into
nephio-project:mainfrom
thc1006:o2ims-follow-nephio-1197
Draft

thc1006 wants to merge 1 commit into
nephio-project:mainfrom
thc1006:o2ims-follow-nephio-1197

Conversation

@thc1006

@thc1006 thc1006 commented Nov 4, 2026

Copy link
Copy Markdown
Member

Companion to nephio-project/nephio#1197. Please keep this as a draft until #1197 is merged and its image is built.

  • rbac.yaml: the northbound API creates provisioning requests, and the role had no create for them. Status and finalizers are separate rules now. The admission rule named admissionregistration.k8s.io/v1 as a group, which is not a group, so it granted nothing. No handler registers a webhook, so it is removed.
  • deployment.yaml: liveness and readiness probes on kopf's /healthz, which answers 500 when the northbound API does not accept a connection. The API listens on loopback, so it gets no port and no Service.

Before merging, the image has to move from 2097228064147640320 to the build of #1197. The current image does not pass --liveness, so with these probes it would be restarted again and again. I will update the tag here once that build exists.

Both files pass kubectl apply --dry-run=server against a kube-apiserver. With the old role, kubectl auth can-i create provisioningrequests as the operator's service account answers no; with this one it answers yes.

Thank you for taking a look.

The northbound API creates provisioning requests, and the role had no
create verb for them. Status and finalizers are separate rules now. The
admission rule named admissionregistration.k8s.io/v1 as a group, which is
not one, so it granted nothing; no handler registers a webhook, so it is
removed.

The deployment gets liveness and readiness probes on kopf's /healthz,
which answers 500 when the northbound API does not accept a connection.
The API listens on loopback, so it gets no port.

Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
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.

1 participant