Skip to content

Commit 83fdb0f

Browse files
authored
Merge pull request #29 from kubescape/reg-check
add check registry command type
2 parents 2195e1b + 91cbeb3 commit 83fdb0f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/command/commands.go

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const (
1212
OperatorCommandTypeCreateRegistry OperatorCommandType = "CreateRegistry"
1313
OperatorCommandTypeUpdateRegistry OperatorCommandType = "UpdateRegistry"
1414
OperatorCommandTypeDeleteRegistry OperatorCommandType = "DeleteRegistry"
15+
OperatorCommandTypeCheckRegistry OperatorCommandType = "CheckRegistry"
1516
)
1617

1718
// ResponseCommand

pkg/command/types/v1alpha1/types.go

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type OperatorCommandStatus struct {
4141
CompletedAt *metav1.Time `json:"completedAt,omitempty"` // CompletedAt is the time at which the command was completed
4242
Executer string `json:"executer,omitempty"` // Executer is the entity that executed the command
4343
Error *OperatorCommandStatusError `json:"error,omitempty"` // Error is the error that occurred during the execution of the command (if any)
44+
Payload []byte `json:"payload,omitempty"` // Payload is the response payload from execution of the command (if any)
4445
}
4546

4647
type OperatorCommandStatusError struct {

0 commit comments

Comments
 (0)