From 34227c8d4acf6a97396e193caf97ed86218934eb Mon Sep 17 00:00:00 2001 From: b0m313 <13.spring.03@gmail.com> Date: Wed, 13 Dec 2023 22:30:45 +0000 Subject: [PATCH] feat(CRD): Add Network field --- Nimbus/api/v1/securityintent_types.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Nimbus/api/v1/securityintent_types.go b/Nimbus/api/v1/securityintent_types.go index 30cee56b..cbd58274 100644 --- a/Nimbus/api/v1/securityintent_types.go +++ b/Nimbus/api/v1/securityintent_types.go @@ -15,7 +15,7 @@ type SecurityIntentSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file - Intent Intent `json:"intent"` // Define the details of the security policy. + Intent Intent `json:"intent"` // Define the details of the security policy. } // Intent defines the security policy details @@ -37,6 +37,11 @@ type Resource struct { ToPorts []ToPort `json:"toPorts,omitempty"` } +// Network defines the network-related policies +type Network struct { + MatchProtocols []MatchProtocol `json:"matchProtocols,omitempty"` +} + // Process defines the process-related policies type Process struct { MatchPaths []MatchPath `json:"matchPaths,omitempty"`