未验证 提交 563f554a 编写于 作者: Z zhuxiaoyang

update resourceMap

Signed-off-by: Nzhuxiaoyang <sunzhu@yunify.com>
上级 468f7edd
......@@ -39,6 +39,7 @@ const (
persistentvolumeclaimsKey = "persistentvolumeclaims"
jobsKey = "count/jobs.batch"
cronJobsKey = "count/cronjobs.batch"
s2iBuilders = "count/s2ibuilders.devops.kubesphere.io"
)
type NamespacedResourceQuota struct {
......@@ -63,7 +64,9 @@ var (
persistentvolumeclaimsKey: resources.PersistentVolumeClaims,
podsKey: resources.Pods,
jobsKey: resources.Jobs,
cronJobsKey: resources.CronJobs}
cronJobsKey: resources.CronJobs,
s2iBuilders: resources.S2iBuilders,
}
)
func getUsage(namespace, resource string) (int, error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册