Commit b6a83272 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

commit

parent 2dc4972e
...@@ -10,10 +10,14 @@ spec: ...@@ -10,10 +10,14 @@ spec:
metadata: metadata:
labels: labels:
app: tensorsec-waf-console app: tensorsec-waf-console
app.kubernetes.io/name: waf-console
spec: spec:
imagePullSecrets:
- name: harbor-admin-secret
containers: containers:
- name: waf-console - name: waf-console
image: harbor.tensorsecurity.com/tensorsecurity/waf-console:testcn image: harbor.tensorsecurity.com/tensorsecurity/waf-console:testcn
imagePullPolicy: Always
resources: resources:
limits: limits:
memory: "128Mi" memory: "128Mi"
......
...@@ -54,7 +54,7 @@ func (s *wafService) CreateWaf(ctx context.Context, req *CreateWafReq) (*Waf, er ...@@ -54,7 +54,7 @@ func (s *wafService) CreateWaf(ctx context.Context, req *CreateWafReq) (*Waf, er
// Get enabled rule categories from DB // Get enabled rule categories from DB
var ruleCategories []model.WafRuleCategory 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) 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