mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat(k8s): deprecate createCustomTypesFromCRDs, only support in legacy
This commit is contained in:
parent
13e47144fd
commit
3534f5fc61
2 changed files with 9 additions and 19 deletions
|
|
@ -190,8 +190,15 @@ in {
|
|||
) config.kubernetes.modules
|
||||
);
|
||||
|
||||
# create custom types from CRDs was old behavior
|
||||
createCustomTypesFromCRDs = true;
|
||||
# custom types created from customResourceDefinitions
|
||||
customTypes =
|
||||
mapAttrsToList (name: crd: {
|
||||
group = crd.spec.group;
|
||||
version = crd.spec.version;
|
||||
kind = crd.spec.names.kind;
|
||||
name = crd.spec.names.plural;
|
||||
attrName = mkOptionDefault name;
|
||||
}) (config.kubernetes.resources.customResourceDefinitions or {});
|
||||
|
||||
defaultModuleConfiguration.all = {
|
||||
_file = head options.kubernetes.defaultModuleConfiguration.files;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue