mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
climc: fix k8s sa not register
This commit is contained in:
@@ -36,6 +36,7 @@ func init() {
|
||||
|
||||
modules.Register(RbacRoles)
|
||||
modules.Register(RbacRoleBindings)
|
||||
modules.Register(ServiceAccounts)
|
||||
}
|
||||
|
||||
func (m RbacRoleManager) GetType(obj jsonutils.JSONObject) interface{} {
|
||||
|
||||
@@ -22,8 +22,9 @@ type ChartListOptions struct {
|
||||
BaseListOptions
|
||||
Repo string `help:"Repository name"`
|
||||
RepoUrl string `help:"Repository url"`
|
||||
AllVersion bool `json:"Get Chart all history versions"`
|
||||
Keyword string `json:"Chart keyword"`
|
||||
AllVersion bool `help:"Get Chart all history versions"`
|
||||
Keyword string `help:"Chart keyword"`
|
||||
Version string `help:"Chart semver version filter"`
|
||||
}
|
||||
|
||||
func (o ChartListOptions) Params() *jsonutils.JSONDict {
|
||||
@@ -40,6 +41,9 @@ func (o ChartListOptions) Params() *jsonutils.JSONDict {
|
||||
if o.AllVersion {
|
||||
params.Add(jsonutils.JSONTrue, "all_version")
|
||||
}
|
||||
if len(o.Version) != 0 {
|
||||
params.Add(jsonutils.NewString(o.Version), "version")
|
||||
}
|
||||
if len(o.Keyword) != 0 {
|
||||
params.Add(jsonutils.NewString(o.Keyword), "keyword")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user