From 4561e0e96eceea762bccb99e5887be4faf854427 Mon Sep 17 00:00:00 2001 From: Bob Fournier Date: Mon, 23 Feb 2026 11:36:39 -0500 Subject: [PATCH] AGENT-1416: Add default NodeDisruptionPolicy for IRI Avoid node reboot upon deletion of the IRI resource as its not necessary. Added "None" action policy for the following which are affected by the IRI resource deletion: Files: 1. /etc/iri-registry - TLS certificates directory 2. /usr/local/bin/load-registry-image.sh - Registry loading script 3. /var/lib/iri-registry - Registry data directory and subdirs Units: 1. iri-registry.service - The systemd service that runs the registry --- pkg/apihelpers/apihelpers.go | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/pkg/apihelpers/apihelpers.go b/pkg/apihelpers/apihelpers.go index c787365c93..90fc2907d4 100644 --- a/pkg/apihelpers/apihelpers.go +++ b/pkg/apihelpers/apihelpers.go @@ -108,6 +108,40 @@ var ( }, }, }, + { + Path: "/etc/iri-registry", + Actions: []opv1.NodeDisruptionPolicyStatusAction{ + { + Type: opv1.NoneStatusAction, + }, + }, + }, + { + Path: "/usr/local/bin/load-registry-image.sh", + Actions: []opv1.NodeDisruptionPolicyStatusAction{ + { + Type: opv1.NoneStatusAction, + }, + }, + }, + { + Path: "/var/lib/iri-registry", + Actions: []opv1.NodeDisruptionPolicyStatusAction{ + { + Type: opv1.NoneStatusAction, + }, + }, + }, + }, + Units: []opv1.NodeDisruptionPolicyStatusUnit{ + { + Name: "iri-registry.service", + Actions: []opv1.NodeDisruptionPolicyStatusAction{ + { + Type: opv1.NoneStatusAction, + }, + }, + }, }, SSHKey: opv1.NodeDisruptionPolicyStatusSSHKey{ Actions: []opv1.NodeDisruptionPolicyStatusAction{