Commit b6a83272 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

commit

parent 2dc4972e
......@@ -10,10 +10,14 @@ spec:
metadata:
labels:
app: tensorsec-waf-console
app.kubernetes.io/name: waf-console
spec:
imagePullSecrets:
- name: harbor-admin-secret
containers:
- name: waf-console
image: harbor.tensorsecurity.com/tensorsecurity/waf-console:testcn
imagePullPolicy: Always
resources:
limits:
memory: "128Mi"
......
......@@ -54,7 +54,7 @@ func (s *wafService) CreateWaf(ctx context.Context, req *CreateWafReq) (*Waf, er
// Get enabled rule categories from DB
var ruleCategories []model.WafRuleCategory
if err := s.db.Model(&model.WafRuleCategory{}).Where("status = ?", 1).Find(&ruleCategories).Error; err != nil {
if err := s.db.Model(&model.WafRuleCategory{}).Where("status = ?", 0).Find(&ruleCategories).Error; err != nil {
return nil, fmt.Errorf("failed to get rule categories: %v", err)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment