File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ type RuleS2SSpec struct {
3737 // ServiceRef is a reference to the target service
3838 // +kubebuilder:validation:Required
3939 ServiceRef NamespacedObjectReference `json:"serviceRef"`
40+
41+ // +optional
42+ Description string `json:"description,omitempty"`
4043}
4144
4245// RuleS2SStatus defines the observed state of RuleS2S.
Original file line number Diff line number Diff line change 3939 spec :
4040 description : RuleS2SSpec defines the desired state of RuleS2S.
4141 properties :
42+ description :
43+ type : string
4244 serviceLocalRef :
4345 description : ServiceLocalRef is a reference to the local service
4446 properties :
Original file line number Diff line number Diff line change @@ -1761,7 +1761,7 @@ func (r *RuleS2SReconciler) couldBeLegacyRuleForRuleS2S(
17611761 return false
17621762 }
17631763
1764- // Check if rule has empty ports (the main indicator of the problem we're fixing)
1764+ // Check if rule has empty ports
17651765 if len (rule .Spec .Ports ) > 0 && rule .Spec .Ports [0 ].D == "" {
17661766 // This is likely an orphaned rule with empty ports that should be deleted
17671767 return true
You can’t perform that action at this time.
0 commit comments