Skip to content

Commit

Permalink
fix: don't assume custom resources have a spec field; closes hall#35
Browse files Browse the repository at this point in the history
  • Loading branch information
khaled committed Dec 23, 2024
1 parent d6ddf1b commit 37fb539
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions modules/k8s.nix
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,7 @@ with lib; let
description = "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.";
type = types.nullOr (types.submodule config.definitions."io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta");
};

spec = mkOption {
description = "Module spec";
type = types.either types.attrs (types.submodule ct.module);
default = { };
};
};
} // (ct.module or {});

config = {
apiVersion = mkOptionDefault "${ct.group}/${ct.version}";
Expand Down

0 comments on commit 37fb539

Please sign in to comment.