@@ -28,16 +28,17 @@ type InspectRuleSpec struct {
2828 // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
2929 // Important: Run "make" to regenerate code after modifying this file
3030
31- PrometheusEndpoint string `json:"prometheusEndpoint,omitempty"`
32- Opas []OpaRule `json:"opas,omitempty"`
33- Prometheus []PrometheusRule `json:"prometheus,omitempty"`
34- FileChange []FileChangeRule `json:"fileChange,omitempty" `
35- Sysctl []SysRule `json:"sysctl,omitempty"`
36- Systemd []SysRule `json:"systemd,omitempty"`
37- FileFilter []FileFilterRule `json:"fileFilter,omitempty"`
38- CustomCommand []CustomCommandRule `json:"customCommand,omitempty"`
39- NodeInfo []NodeInfo `json:"nodeInfo,omitempty"`
40- ServiceConnect []ServiceConnectRuleItem `json:"serviceConnect,omitempty"`
31+ ComponentExclude []string `json:"componentExclude,omitempty"`
32+ PrometheusEndpoint string `json:"prometheusEndpoint,omitempty"`
33+ Opas []OpaRule `json:"opas,omitempty"`
34+ Prometheus []PrometheusRule `json:"prometheus,omitempty"`
35+ FileChange []FileChangeRule `json:"fileChange,omitempty" `
36+ Sysctl []SysRule `json:"sysctl,omitempty"`
37+ Systemd []SysRule `json:"systemd,omitempty"`
38+ FileFilter []FileFilterRule `json:"fileFilter,omitempty"`
39+ CustomCommand []CustomCommandRule `json:"customCommand,omitempty"`
40+ NodeInfo []NodeInfoRule `json:"nodeInfo,omitempty"`
41+ ServiceConnect []ServiceConnectRule `json:"serviceConnect,omitempty"`
4142}
4243type RuleItemBases struct {
4344 Name string `json:"name,omitempty"`
@@ -46,7 +47,7 @@ type RuleItemBases struct {
4647 Level Level `json:"level,omitempty"`
4748}
4849
49- type ServiceConnectRuleItem struct {
50+ type ServiceConnectRule struct {
5051 RuleItemBases `json:",inline"`
5152 Namespace string `json:"namespace,omitempty"`
5253 Workspace string `json:"workspace,omitempty"`
@@ -57,7 +58,7 @@ type Node struct {
5758 NodeSelector map [string ]string `json:"nodeSelector,omitempty"`
5859}
5960
60- type NodeInfo struct {
61+ type NodeInfoRule struct {
6162 RuleItemBases `json:",inline"`
6263 Node `json:",inline"`
6364 ResourcesType string `json:"resourcesType,omitempty"`
0 commit comments