-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add k8s api provider plugins #71
Conversation
cc2c89f
to
6d6ecb0
Compare
6d6ecb0
to
f67b013
Compare
f67b013
to
fce1b02
Compare
fce1b02
to
332cc7b
Compare
bb1b153
to
176632c
Compare
PhaseColumnRenderer(), | ||
NameColumnRenderer('jobs'), | ||
NameSpaceColumnRenderer(), | ||
WorkloadImageColumnRenderer(), | ||
CompletionsCountColumnRenderer(), | ||
DurationColumnRenderer(), | ||
AgeColumnRenderer(), | ||
]; | ||
] as Column<ResourceModel>[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为什么要使用 as
呢?
const newOne = cloneDeep(this._rawYaml); | ||
const path = 'spec.template.metadata.annotations'; | ||
const annotations = get(newOne, path, {}); | ||
set(newOne, path, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该要使用 immutable set,不要修改到原来的值,否则更新失败的时候数据会对不上
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没关系,这个值已经clonedeep过了
改动
DovetailCRUD
一般不再需要传formatter
了,因为plugin里面都已经格式化好了。但暂时没有全部删掉,以防一些特殊需求。restoreItem
方法