Commit 0e4ce783 authored by StevenLeiZhang's avatar StevenLeiZhang Committed by github-actions[bot]
Browse files

Fix: vela status api can not return customized arguments of addon

Signed-off-by: default avatarStevenLeiZhang <zhangleiic@163.com>
(cherry picked from commit 1580b1030a1a698e81c290980ea312175e30c648)
parent 3e47887b
Showing with 5 additions and 4 deletions
+5 -4
......@@ -204,10 +204,11 @@ func (u *defaultAddonHandler) StatusAddon(ctx context.Context, name string) (*ap
if err != nil && !errors2.IsNotFound(err) {
return nil, bcode.ErrAddonSecretGet
} else if errors2.IsNotFound(err) {
res.Args = make(map[string]string, len(sec.Data))
for k, v := range sec.Data {
res.Args[k] = string(v)
}
return &res, nil
}
res.Args = make(map[string]string, len(sec.Data))
for k, v := range sec.Data {
res.Args[k] = string(v)
}
return &res, nil
......
Supports Markdown
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