mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
add custom resource option examples
This commit is contained in:
parent
7ba59d844f
commit
a85d680f57
1 changed files with 16 additions and 0 deletions
|
|
@ -283,12 +283,14 @@ in {
|
|||
description = "Kubernetes version to use";
|
||||
type = types.enum versions;
|
||||
default = lib.lists.last versions;
|
||||
example = "1.24";
|
||||
};
|
||||
|
||||
namespace = mkOption {
|
||||
description = "Default namespace where to deploy kubernetes resources";
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "default";
|
||||
};
|
||||
|
||||
customResources = mkOption {
|
||||
|
|
@ -332,22 +334,35 @@ in {
|
|||
|
||||
customTypes = mkOption {
|
||||
description = "List of custom resource types to make API for";
|
||||
example = [
|
||||
{
|
||||
helmchartconfig = {
|
||||
attrName = "helmchartconfig";
|
||||
kind = "HelmChartConfig";
|
||||
version = "v1";
|
||||
group = "helm.cattle.io";
|
||||
};
|
||||
}
|
||||
];
|
||||
type =
|
||||
coerceListOfSubmodulesToAttrs
|
||||
{
|
||||
options = {
|
||||
group = mkOption {
|
||||
description = "Custom type group";
|
||||
example = "helm.cattle.io";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
version = mkOption {
|
||||
description = "Custom type version";
|
||||
example = "v1";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
kind = mkOption {
|
||||
description = "Custom type kind";
|
||||
example = "HelmChartConfig";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
|
|
@ -359,6 +374,7 @@ in {
|
|||
|
||||
attrName = mkOption {
|
||||
description = "Name of the nixified attribute";
|
||||
# default = name;
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue