Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
qiuqunfeng
waf-console
Commits
61c9949f
Commit
61c9949f
authored
Feb 08, 2025
by
qiuqunfeng
Browse files
commit
parent
07c304c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
internal/service/waf.go
internal/service/waf.go
+2
-1
No files found.
internal/service/waf.go
View file @
61c9949f
...
@@ -52,9 +52,10 @@ func (s *wafService) GetWaf(ctx context.Context, regionCode, namespace, gatewayN
...
@@ -52,9 +52,10 @@ func (s *wafService) GetWaf(ctx context.Context, regionCode, namespace, gatewayN
func
(
s
*
wafService
)
CreateWaf
(
ctx
context
.
Context
,
req
*
CreateWafReq
)
(
*
WafService
,
error
)
{
func
(
s
*
wafService
)
CreateWaf
(
ctx
context
.
Context
,
req
*
CreateWafReq
)
(
*
WafService
,
error
)
{
// Create the WAF service resource
// Create the WAF service resource
name
:=
fmt
.
Sprintf
(
"%s-%d"
,
req
.
GatewayName
,
req
.
Port
)
service
:=
&
v1alpha1
.
Service
{
service
:=
&
v1alpha1
.
Service
{
ObjectMeta
:
metav1
.
ObjectMeta
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
req
.
GatewayN
ame
,
Name
:
n
ame
,
Namespace
:
req
.
Namespace
,
Namespace
:
req
.
Namespace
,
},
},
Spec
:
v1alpha1
.
ServiceSpec
{
Spec
:
v1alpha1
.
ServiceSpec
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment