operator: add differentiation label

Add one device plugin specific label to differentiate our operator
from all the possible operators within same namespace.

Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
This commit is contained in:
Tuomas Katila 2024-03-11 15:38:11 +02:00
parent 52be7ed1e9
commit 6a4434bd7f
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@ kind: Namespace
metadata:
labels:
control-plane: controller-manager
manager: intel-deviceplugin-operator
name: system
---
apiVersion: apps/v1
@ -12,15 +13,18 @@ metadata:
namespace: system
labels:
control-plane: controller-manager
manager: intel-deviceplugin-operator
spec:
selector:
matchLabels:
control-plane: controller-manager
manager: intel-deviceplugin-operator
replicas: 1
template:
metadata:
labels:
control-plane: controller-manager
manager: intel-deviceplugin-operator
spec:
containers:
- image: docker.io/intel/intel-deviceplugin-operator:devel

View File

@ -12,3 +12,4 @@ spec:
targetPort: https
selector:
control-plane: controller-manager
manager: intel-deviceplugin-operator