Skip to content

Commit

Permalink
GITBOOK-253: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
mouuii authored and gitbook-bot committed Feb 6, 2025
1 parent d6a5d71 commit 6cdb9ca
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Binary file added .gitbook/assets/1738806802694.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/1738806919607.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (70).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -797,3 +797,14 @@ func (s *Server) InstallAPIs(restStorageProviders ...RESTStorageProvider) error
}
```

比较重要的是 InstallLegacyAPIGroup,由于历史遗留问题,k8s 最核心的一些资源 group 为空,比如 pod,deployment,service

<figure><img src="../../.gitbook/assets/image (70).png" alt=""><figcaption></figcaption></figure>

这里的 apigroupinfo 由上面NewRESTStorage 生成,我们可以点进方法里看看到底有哪些核心资源:

<figure><img src="../../.gitbook/assets/1738806802694.png" alt=""><figcaption></figcaption></figure>

有一些资源附带的特殊方法,也会在这里注册进 storage:

<figure><img src="../../.gitbook/assets/1738806919607.png" alt=""><figcaption></figcaption></figure>

0 comments on commit 6cdb9ca

Please sign in to comment.