mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +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";
|
description = "Kubernetes version to use";
|
||||||
type = types.enum versions;
|
type = types.enum versions;
|
||||||
default = lib.lists.last versions;
|
default = lib.lists.last versions;
|
||||||
|
example = "1.24";
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace = mkOption {
|
namespace = mkOption {
|
||||||
description = "Default namespace where to deploy kubernetes resources";
|
description = "Default namespace where to deploy kubernetes resources";
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
|
example = "default";
|
||||||
};
|
};
|
||||||
|
|
||||||
customResources = mkOption {
|
customResources = mkOption {
|
||||||
|
|
@ -332,22 +334,35 @@ in {
|
||||||
|
|
||||||
customTypes = mkOption {
|
customTypes = mkOption {
|
||||||
description = "List of custom resource types to make API for";
|
description = "List of custom resource types to make API for";
|
||||||
|
example = [
|
||||||
|
{
|
||||||
|
helmchartconfig = {
|
||||||
|
attrName = "helmchartconfig";
|
||||||
|
kind = "HelmChartConfig";
|
||||||
|
version = "v1";
|
||||||
|
group = "helm.cattle.io";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
type =
|
type =
|
||||||
coerceListOfSubmodulesToAttrs
|
coerceListOfSubmodulesToAttrs
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
description = "Custom type group";
|
description = "Custom type group";
|
||||||
|
example = "helm.cattle.io";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
version = mkOption {
|
version = mkOption {
|
||||||
description = "Custom type version";
|
description = "Custom type version";
|
||||||
|
example = "v1";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
kind = mkOption {
|
kind = mkOption {
|
||||||
description = "Custom type kind";
|
description = "Custom type kind";
|
||||||
|
example = "HelmChartConfig";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -359,6 +374,7 @@ in {
|
||||||
|
|
||||||
attrName = mkOption {
|
attrName = mkOption {
|
||||||
description = "Name of the nixified attribute";
|
description = "Name of the nixified attribute";
|
||||||
|
# default = name;
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue