From 8774dee09ef81b4f4b9b9623c21b59eda01105c9 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 27 Mar 2024 11:20:37 +0100 Subject: [PATCH] DRA api: explicitly reserve finalizer for Kubernetes The k8s.io in the string and conventions around finalizers for DRA driver controllers implied that this is for use by Kubernetes, but it's better to be explicit about this. --- staging/src/k8s.io/api/resource/v1alpha2/types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/staging/src/k8s.io/api/resource/v1alpha2/types.go b/staging/src/k8s.io/api/resource/v1alpha2/types.go index 9005144cf69..2441f17eca4 100644 --- a/staging/src/k8s.io/api/resource/v1alpha2/types.go +++ b/staging/src/k8s.io/api/resource/v1alpha2/types.go @@ -26,6 +26,8 @@ import ( const ( // Finalizer is the finalizer that gets set for claims // which were allocated through a builtin controller. + // Reserved for use by Kubernetes, DRA driver controllers must + // use their own finalizer. Finalizer = "dra.k8s.io/delete-protection" )