Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Bk Bcs Saas
Commits
884652df
Unverified
Commit
884652df
authored
3 years ago
by
jamesge
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
minor: use smart_str to convert bytes to str
parent
50dbe46f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bcs-app/backend/web_console/pod_life_cycle.py
+1
-1
bcs-app/backend/web_console/pod_life_cycle.py
with
1 addition
and
1 deletion
+1
-1
bcs-app/backend/web_console/pod_life_cycle.py
+
1
-
1
View file @
884652df
...
...
@@ -261,7 +261,7 @@ def get_service_account_token(k8s_client) -> Optional[str]:
if
not
item
.
metadata
.
name
.
startswith
(
token_prefix
):
continue
return
base64
.
b64decode
(
item
.
data
[
"token"
])
.
decode
(
'utf-8'
)
return
smart_str
(
base64
.
b64decode
(
item
.
data
[
"token"
]))
def
create_service_account_rbac
(
k8s_client
,
ctx
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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