From c1df6800dfe319712f50d31623acb46df1272553 Mon Sep 17 00:00:00 2001 From: refaelm Date: Mon, 11 Nov 2024 16:24:59 +0200 Subject: [PATCH 1/2] add check registry command type Signed-off-by: refaelm --- pkg/command/commands.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/command/commands.go b/pkg/command/commands.go index 0f532d8..3c5fd98 100644 --- a/pkg/command/commands.go +++ b/pkg/command/commands.go @@ -12,6 +12,7 @@ const ( OperatorCommandTypeCreateRegistry OperatorCommandType = "CreateRegistry" OperatorCommandTypeUpdateRegistry OperatorCommandType = "UpdateRegistry" OperatorCommandTypeDeleteRegistry OperatorCommandType = "DeleteRegistry" + OperatorCommandTypeCheckRegistry OperatorCommandType = "CheckRegistry" ) // ResponseCommand From 91cbeb3cab7dc1bb5e07336513d3a7996f7fbc9f Mon Sep 17 00:00:00 2001 From: refaelm Date: Tue, 12 Nov 2024 09:38:52 +0200 Subject: [PATCH 2/2] add payload to command status Signed-off-by: refaelm --- pkg/command/types/v1alpha1/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/command/types/v1alpha1/types.go b/pkg/command/types/v1alpha1/types.go index 6747f78..ac2071f 100644 --- a/pkg/command/types/v1alpha1/types.go +++ b/pkg/command/types/v1alpha1/types.go @@ -41,6 +41,7 @@ type OperatorCommandStatus struct { CompletedAt *metav1.Time `json:"completedAt,omitempty"` // CompletedAt is the time at which the command was completed Executer string `json:"executer,omitempty"` // Executer is the entity that executed the command Error *OperatorCommandStatusError `json:"error,omitempty"` // Error is the error that occurred during the execution of the command (if any) + Payload []byte `json:"payload,omitempty"` // Payload is the response payload from execution of the command (if any) } type OperatorCommandStatusError struct {