1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-06 16:57:10 +00:00
node-feature-discovery/test/e2e/utils
adrianc 3f012c2d5a
Add support running with OwnerReferencesPermissionEnforcement
when OwnerReferencesPermissionEnforcement validating webhook is
enabled additional permissions are required to set/update owner ref
field. NFD worker sets/updates NodeFeature owner ref field to
the worker pod and owning daemonset.

owner reference can only be updated if the worker has delete permissions
for NodeFeatures.

if owner reference has blockOwnerDeletion (as the case for the daemonset
owner reference) then it requires update permissions to the finalizers
of the owner, to avoid this, we set blockOwnerDeleteion to false for all
owners referenced from NFD worker pod when setting/updating NodeFeature
owner ref.

Signed-off-by: adrianc <adrianc@nvidia.com>
2025-01-08 13:44:30 +02:00
..
daemonset e2e: separate daemonset functions from pod 2022-11-29 14:39:52 +02:00
deployment Fix pkg name for test/utils/deployment 2023-10-16 16:11:20 +02:00
pod Drop NFD gRPC API 2024-10-29 15:15:18 +01:00
config.go Bump go.mod k8s.io to 1.26 2022-12-13 12:12:46 +02:00
configmap.go test/e2e: use proper context 2023-04-18 14:55:09 +03:00
crd.go Add NodeFeatureGroup CRD 2024-05-23 16:34:08 +02:00
node.go test/e2e: use proper context 2023-04-18 14:55:09 +03:00
noderesourcetopology.go test/e2e: simplify, remove unnecessary check 2024-08-30 16:42:45 +03:00
rbac.go Add support running with OwnerReferencesPermissionEnforcement 2025-01-08 13:44:30 +02:00