Skip to content

Commit 16e3b21

Browse files
committed
imp: update cluster flakeModule for generic infra attrs
1 parent 8b8a7d9 commit 16e3b21

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

flakeModules/cluster.nix

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111
# flake.cardano-parts.cluster.infra.aws.region
1212
# flake.cardano-parts.cluster.infra.aws.regions
1313
# flake.cardano-parts.cluster.infra.generic.abortOnMissingIpModule
14+
# flake.cardano-parts.cluster.infra.generic.costCenter
15+
# flake.cardano-parts.cluster.infra.generic.environment
1416
# flake.cardano-parts.cluster.infra.generic.function
1517
# flake.cardano-parts.cluster.infra.generic.organization
18+
# flake.cardano-parts.cluster.infra.generic.owner
19+
# flake.cardano-parts.cluster.infra.generic.project
1620
# flake.cardano-parts.cluster.infra.generic.repo
1721
# flake.cardano-parts.cluster.infra.generic.tribe
1822
# flake.cardano-parts.cluster.infra.generic.warnOnMissingIpModule
@@ -223,6 +227,35 @@ flake @ {
223227
default = true;
224228
};
225229

230+
costCenter = mkOption {
231+
type = optionCheck "string" "infra.generic.costCenter" "str";
232+
description = mdDoc ''
233+
The cardano-parts cluster infra generic costCenter.
234+
235+
By default, the costCenter string for tagging cloud resources is
236+
treated as a secret and must be added to the
237+
secrets/tf/cluster.tfvars file.
238+
239+
The string declared for this option should be the name of the secret
240+
var stored in the cluster.tfvars file.
241+
242+
This option is required by IOG IT/Finance.
243+
'';
244+
example = "tag_costCenter";
245+
default = null;
246+
};
247+
248+
environment = mkOption {
249+
type = optionCheck "string" "infra.generic.environment" "str";
250+
description = mdDoc ''
251+
The cardano-parts cluster infra generic environment.
252+
253+
This option is required by IOG IT/Finance.
254+
'';
255+
example = "testnets";
256+
default = null;
257+
};
258+
226259
function = mkOption {
227260
type = optionCheck "string" "infra.generic.function" "str";
228261
description = mdDoc "The cardano-parts cluster infra generic function.";
@@ -237,6 +270,28 @@ flake @ {
237270
default = null;
238271
};
239272

273+
owner = mkOption {
274+
type = optionCheck "string" "infra.generic.owner" "str";
275+
description = mdDoc ''
276+
The cardano-parts cluster infra generic owner.
277+
278+
This option is required by IOG IT/Finance.
279+
'';
280+
example = "ioe";
281+
default = null;
282+
};
283+
284+
project = mkOption {
285+
type = optionCheck "string" "infra.generic.project" "str";
286+
description = mdDoc ''
287+
The cardano-parts cluster infra generic project.
288+
289+
This option is required by IOG IT/Finance.
290+
'';
291+
example = "cardano-playground";
292+
default = null;
293+
};
294+
240295
repo = mkOption {
241296
type = optionCheck "string" "infra.generic.repo" "str";
242297
description = mdDoc "The cardano-parts cluster infra generic repo.";

0 commit comments

Comments
 (0)