forked from fediversity/fediversity
remove readOnly to facilitate user overrides
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
bb100b698e
commit
2c760d94f6
2 changed files with 0 additions and 17 deletions
|
|
@ -94,14 +94,12 @@ in
|
|||
resources = mkOption {
|
||||
description = "Compute resources required by an application";
|
||||
type = application.config.config-mapping.function-type;
|
||||
readOnly = true;
|
||||
default = application.config.config-mapping.apply;
|
||||
};
|
||||
# TODO(@fricklerhandwerk): this needs a better name
|
||||
config-mapping = mkOption {
|
||||
description = "Function type for the mapping from application configuration to required resources";
|
||||
type = functionType;
|
||||
readOnly = true;
|
||||
default = {
|
||||
input-type = submodule application.config.module;
|
||||
output-type = application-resources;
|
||||
|
|
@ -138,9 +136,7 @@ in
|
|||
resource-mapping = mkOption {
|
||||
description = "Function type for the mapping from resources to a deployment";
|
||||
type = functionType;
|
||||
readOnly = true;
|
||||
default = {
|
||||
type-output = false;
|
||||
input-type = submodule {
|
||||
options = {
|
||||
deployment-name = mkOption {
|
||||
|
|
@ -158,9 +154,7 @@ in
|
|||
config-mapping = mkOption {
|
||||
description = "Mapping from a configuration to a deployment";
|
||||
type = functionType;
|
||||
readOnly = true;
|
||||
default = {
|
||||
type-output = false;
|
||||
input-type = submodule {
|
||||
options = {
|
||||
deployment-name = mkOption {
|
||||
|
|
@ -192,7 +186,6 @@ in
|
|||
deployment = mkOption {
|
||||
description = "Generate a deployment from a configuration, by applying an environment's resource policies to the applications' resource mappings";
|
||||
type = environment.config.config-mapping.function-type;
|
||||
readOnly = true;
|
||||
default = environment.config.config-mapping.apply;
|
||||
};
|
||||
};
|
||||
|
|
@ -202,7 +195,6 @@ in
|
|||
configuration = mkOption {
|
||||
description = "Configuration type declaring options to be set by operators";
|
||||
type = optionType;
|
||||
readOnly = true;
|
||||
default = submodule {
|
||||
options = {
|
||||
enable = lib.mkEnableOption "your Fediversity configuration";
|
||||
|
|
|
|||
|
|
@ -73,7 +73,6 @@ let
|
|||
{
|
||||
options = {
|
||||
value = mkOption {
|
||||
readOnly = true;
|
||||
default = lib.mapAttrs' (k: v: lib.nameValuePair "TF_HTTP_${lib.toUpper k}" (builtins.toString v)) {
|
||||
inherit (config)
|
||||
address
|
||||
|
|
@ -214,7 +213,6 @@ in
|
|||
};
|
||||
run = mkOption {
|
||||
type = types.package;
|
||||
readOnly = true;
|
||||
default =
|
||||
let
|
||||
inherit (config)
|
||||
|
|
@ -296,7 +294,6 @@ in
|
|||
};
|
||||
run = mkOption {
|
||||
type = types.package;
|
||||
readOnly = true;
|
||||
default =
|
||||
let
|
||||
inherit (config)
|
||||
|
|
@ -370,7 +367,6 @@ in
|
|||
};
|
||||
run = mkOption {
|
||||
type = types.package;
|
||||
readOnly = true;
|
||||
default =
|
||||
let
|
||||
inherit (config)
|
||||
|
|
@ -517,7 +513,6 @@ in
|
|||
};
|
||||
run = mkOption {
|
||||
type = types.package;
|
||||
readOnly = true;
|
||||
default =
|
||||
let
|
||||
inherit (config)
|
||||
|
|
@ -606,7 +601,6 @@ in
|
|||
};
|
||||
run = mkOption {
|
||||
type = types.package;
|
||||
readOnly = true;
|
||||
default = tfApply {
|
||||
inherit (config) httpBackend;
|
||||
directory = "tf-netbox-cluster-type";
|
||||
|
|
@ -684,7 +678,6 @@ in
|
|||
};
|
||||
run = mkOption {
|
||||
type = types.package;
|
||||
readOnly = true;
|
||||
default = tfApply {
|
||||
inherit (config) httpBackend;
|
||||
directory = "tf-netbox-cluster";
|
||||
|
|
@ -728,7 +721,6 @@ in
|
|||
};
|
||||
run = mkOption {
|
||||
type = types.package;
|
||||
readOnly = true;
|
||||
default =
|
||||
let
|
||||
inherit (config)
|
||||
|
|
@ -771,7 +763,6 @@ in
|
|||
};
|
||||
run = mkOption {
|
||||
type = types.package;
|
||||
readOnly = true;
|
||||
default = tfApply {
|
||||
inherit (config) httpBackend;
|
||||
directory = "tf-netbox-get-ip";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue