SKS-1825: Set the default APIGroup and Kind for IPPool CR used in ElfMachineTemplate #172
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
简化 IPPool 的配置,默认情况下只需要配置 IPPool name 即可,可以不填写 apiGroup 和 kind。
Change
CAPE 当前使用 ipam.metal3.io IPPool 作为默认的 IP Pool,在 ElfMachineTemplate webhook 默认设置即可,这样创建出来的 ElfMachine 会自动使用默认的 IPPool 配置。
测试
1.ElfMachineTemplate 未设置
apiGroup
和kind
的 IPPoolipam.metal3.io
和IPPool
ipam.metal3.io
和IPPool