Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
config_repository
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
config_repository
Commits
f69f720d
Commit
f69f720d
authored
Nov 17, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除useSystemName
parent
a9307cf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
replace.py
yaml/replace.py
+0
-3
replace_config.yaml
yaml/replace_config.yaml
+1
-8
No files found.
yaml/replace.py
View file @
f69f720d
...
@@ -50,9 +50,6 @@ for file in files:
...
@@ -50,9 +50,6 @@ for file in files:
if
rule
.
get
(
'useNamespace'
,
None
)
and
rule
[
'to'
]:
if
rule
.
get
(
'useNamespace'
,
None
)
and
rule
[
'to'
]:
rule
[
'to'
]
=
'-'
+
namespace
+
rule
[
'to'
]
rule
[
'to'
]
=
'-'
+
namespace
+
rule
[
'to'
]
if
rule
.
get
(
'useSystemName'
,
None
)
and
rule
[
'reg'
]:
rule
[
'reg'
]
=
rule
[
'reg'
]
+
'/'
+
project
+
'/public'
if
rule
[
'reg'
]:
if
rule
[
'reg'
]:
p
=
re
.
compile
(
r''
+
rule
[
'reg'
])
p
=
re
.
compile
(
r''
+
rule
[
'reg'
])
line
=
re
.
sub
(
p
,
rule
[
'to'
],
line
)
line
=
re
.
sub
(
p
,
rule
[
'to'
],
line
)
...
...
yaml/replace_config.yaml
View file @
f69f720d
# reg: 匹配的正则
# reg: 匹配的正则
# to: 正则匹配后替换需要的值
# to: 正则匹配后替换需要的值
# useNamespace: 是否在替换的值前追加 '-[namespace名称]'
# useNamespace: 是否在替换的值前追加 '-[namespace名称]'
# useSystemName: 项目名称
lkbDomain
:
&lkbDomain
'
.liangkebang.com'
lkbDomain
:
&lkbDomain
'
.liangkebang.com'
...
@@ -37,11 +36,6 @@ h5AuthRule: &h5AuthRule
...
@@ -37,11 +36,6 @@ h5AuthRule: &h5AuthRule
to
:
'
operator.liangkebang.com'
to
:
'
operator.liangkebang.com'
staticRule
:
&staticRule
staticRule
:
&staticRule
reg
:
'
static.q-gp.com'
to
:
'
'
useSystemName
:
true
staticRule2
:
&staticRule2
reg
:
'
//static[-/0-9a-z.]*public'
reg
:
'
//static[-/0-9a-z.]*public'
to
:
'
'
to
:
'
'
...
@@ -52,5 +46,4 @@ common: &common
...
@@ -52,5 +46,4 @@ common: &common
# xyqbApiDomainRule: *xyqbApiDomainRule
# xyqbApiDomainRule: *xyqbApiDomainRule
qgApiRule
:
*qgApiRule
qgApiRule
:
*qgApiRule
qgCookieRule
:
*qgCookieRule
qgCookieRule
:
*qgCookieRule
# staticRule: *staticRule
staticRule
:
*staticRule
staticRule2
:
*staticRule2
\ No newline at end of file
\ No newline at end of file
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