Skip to content

Commit

Permalink
fix(secret): 修复kubernetes.io/dockerconfigjson类型secret不能编辑的问退
Browse files Browse the repository at this point in the history
(cherry picked from commit 5fab9a0)
  • Loading branch information
zhengkunwang223 authored and wanghe-fit2cloud committed Nov 23, 2021
1 parent 66c7ec5 commit 2eec1df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export default {
if (this.dataObj && this.dataObj[".dockerconfigjson"]) {
const { Base64 } = require("js-base64")
const value = Base64.decode(this.dataObj[".dockerconfigjson"])
const auths = JSON.parse(value)
const obj = JSON.parse(value)
const auths = obj.auths
for (const key in auths) {
if (Object.prototype.hasOwnProperty.call(auths, key)) {
this.form = {
Expand Down

0 comments on commit 2eec1df

Please sign in to comment.