-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutputs.tf
1935 lines (1315 loc) · 128 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
output "output" {
value = {
for app, config in var.appConfig:
app => {
api_service = contains(keys(local.api_service.applications), app) ? {
metadata = {
generation = try(kubernetes_api_service.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_api_service.instance[app].metadata.0.name,null)
# Name of the api_service, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_api_service.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this api_service that can be used by clients to determine when api_service has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_api_service.instance[app].metadata.0.self_link,null)
# A URL representing this api_service.
uid = try(kubernetes_api_service.instance[app].metadata.0.uid,null)
# The unique in time and space value for this api_service. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
certificate_signing_request = contains(keys(local.certificate_signing_request.applications), app) ? {
certificate = try(kubernetes_certificate_signing_request.instance[app].certificate,null)
# If request was approved, the controller will place the issued certificate here.
metadata = {
generation = try(kubernetes_certificate_signing_request.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_certificate_signing_request.instance[app].metadata.0.name,null)
# Name of the certificate signing request, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_certificate_signing_request.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this certificate signing request that can be used by clients to determine when certificate signing request has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_certificate_signing_request.instance[app].metadata.0.self_link,null)
# A URL representing this certificate signing request.
uid = try(kubernetes_certificate_signing_request.instance[app].metadata.0.uid,null)
# The unique in time and space value for this certificate signing request. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
cluster_role = contains(keys(local.cluster_role.applications), app) ? {
metadata = {
generation = try(kubernetes_cluster_role.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_cluster_role.instance[app].metadata.0.name,null)
# Name of the clusterRole, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_cluster_role.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this clusterRole that can be used by clients to determine when clusterRole has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_cluster_role.instance[app].metadata.0.self_link,null)
# A URL representing this clusterRole.
uid = try(kubernetes_cluster_role.instance[app].metadata.0.uid,null)
# The unique in time and space value for this clusterRole. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
cluster_role_binding = contains(keys(local.cluster_role_binding.applications), app) ? {
metadata = {
generation = try(kubernetes_cluster_role_binding.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_cluster_role_binding.instance[app].metadata.0.name,null)
# Name of the clusterRoleBinding, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_cluster_role_binding.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this clusterRoleBinding that can be used by clients to determine when clusterRoleBinding has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_cluster_role_binding.instance[app].metadata.0.self_link,null)
# A URL representing this clusterRoleBinding.
uid = try(kubernetes_cluster_role_binding.instance[app].metadata.0.uid,null)
# The unique in time and space value for this clusterRoleBinding. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
subject = {
apiGroup = try(kubernetes_cluster_role_binding.instance[app].subject.0.api_group,null)
# The API group of the subject resource.
}
} : null
config_map = contains(keys(local.config_map.applications), app) ? {
metadata = {
generation = try(kubernetes_config_map.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_config_map.instance[app].metadata.0.name,null)
# Name of the config map, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_config_map.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this config map that can be used by clients to determine when config map has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_config_map.instance[app].metadata.0.self_link,null)
# A URL representing this config map.
uid = try(kubernetes_config_map.instance[app].metadata.0.uid,null)
# The unique in time and space value for this config map. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
cron_job = contains(keys(local.cron_job.applications), app) ? {
metadata = {
generation = try(kubernetes_cron_job.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_cron_job.instance[app].metadata.0.name,null)
# Name of the cronjob, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_cron_job.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this cronjob that can be used by clients to determine when cronjob has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_cron_job.instance[app].metadata.0.self_link,null)
# A URL representing this cronjob.
uid = try(kubernetes_cron_job.instance[app].metadata.0.uid,null)
# The unique in time and space value for this cronjob. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_job_template_metadata = {
generation = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.metadata.0.name,null)
# Name of the jobTemplateSpec, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.metadata.0.resource_version,null)
# An opaque value that represents the internal version of this jobTemplateSpec that can be used by clients to determine when jobTemplateSpec has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.metadata.0.self_link,null)
# A URL representing this jobTemplateSpec.
uid = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.metadata.0.uid,null)
# The unique in time and space value for this jobTemplateSpec. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_job_template_spec_template_metadata = {
generation = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.metadata.0.name,null)
# Name of the job, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.metadata.0.resource_version,null)
# An opaque value that represents the internal version of this job that can be used by clients to determine when job has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.metadata.0.self_link,null)
# A URL representing this job.
uid = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.metadata.0.uid,null)
# The unique in time and space value for this job. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_job_template_spec_template_spec = {
hostname = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.hostname,null)
# Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.
nodeName = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.node_name,null)
# NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.
serviceAccountName = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.service_account_name,null)
# ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md.
}
spec_job_template_spec_template_spec_container = {
imagePullPolicy = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.container.0.image_pull_policy,null)
# Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images
terminationMessagePolicy = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.container.0.termination_message_policy,null)
# Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
}
spec_job_template_spec_template_spec_container_resources_limits = {
cpu = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.container.0.resources.0.limits.0.cpu,null)
memory = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.container.0.resources.0.limits.0.memory,null)
}
spec_job_template_spec_template_spec_container_resources_requests = {
cpu = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.container.0.resources.0.requests.0.cpu,null)
memory = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.container.0.resources.0.requests.0.memory,null)
}
spec_job_template_spec_template_spec_init_container = {
imagePullPolicy = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.init_container.0.image_pull_policy,null)
# Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images
terminationMessagePolicy = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.init_container.0.termination_message_policy,null)
# Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
}
spec_job_template_spec_template_spec_init_container_resources_limits = {
cpu = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.init_container.0.resources.0.limits.0.cpu,null)
memory = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.init_container.0.resources.0.limits.0.memory,null)
}
spec_job_template_spec_template_spec_init_container_resources_requests = {
cpu = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.init_container.0.resources.0.requests.0.cpu,null)
memory = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.init_container.0.resources.0.requests.0.memory,null)
}
spec_job_template_spec_template_spec_volume_azure_disk = {
kind = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.volume.0.azure_disk.0.kind,null)
# The type for the data disk. Expected values: Shared, Dedicated, Managed. Defaults to Shared
}
spec_job_template_spec_template_spec_volume_ceph_fs_secret_ref = {
namespace = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.volume.0.ceph_fs.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_job_template_spec_template_spec_volume_csi_controller_expand_secret_ref = {
namespace = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.volume.0.csi.0.controller_expand_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_job_template_spec_template_spec_volume_csi_controller_publish_secret_ref = {
namespace = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.volume.0.csi.0.controller_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_job_template_spec_template_spec_volume_csi_node_publish_secret_ref = {
namespace = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.volume.0.csi.0.node_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_job_template_spec_template_spec_volume_csi_node_stage_secret_ref = {
namespace = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.volume.0.csi.0.node_stage_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_job_template_spec_template_spec_volume_flex_volume_secret_ref = {
namespace = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.volume.0.flex_volume.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_job_template_spec_template_spec_volume_rbd = {
keyring = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.volume.0.rbd.0.keyring,null)
# Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
}
spec_job_template_spec_template_spec_volume_rbd_secret_ref = {
namespace = try(kubernetes_cron_job.instance[app].spec.0.job_template.0.spec.0.template.0.spec.0.volume.0.rbd.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
} : null
csi_driver = contains(keys(local.csi_driver.applications), app) ? {
metadata = {
generation = try(kubernetes_csi_driver.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_csi_driver.instance[app].metadata.0.name,null)
# Name of the csi driver, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_csi_driver.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this csi driver that can be used by clients to determine when csi driver has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_csi_driver.instance[app].metadata.0.self_link,null)
# A URL representing this csi driver.
uid = try(kubernetes_csi_driver.instance[app].metadata.0.uid,null)
# The unique in time and space value for this csi driver. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
daemonset = contains(keys(local.daemonset.applications), app) ? {
metadata = {
generation = try(kubernetes_daemonset.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_daemonset.instance[app].metadata.0.name,null)
# Name of the daemonset, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_daemonset.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this daemonset that can be used by clients to determine when daemonset has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_daemonset.instance[app].metadata.0.self_link,null)
# A URL representing this daemonset.
uid = try(kubernetes_daemonset.instance[app].metadata.0.uid,null)
# The unique in time and space value for this daemonset. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_template_metadata = {
generation = try(kubernetes_daemonset.instance[app].spec.0.template.0.metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_daemonset.instance[app].spec.0.template.0.metadata.0.name,null)
# Name of the daemon set, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_daemonset.instance[app].spec.0.template.0.metadata.0.resource_version,null)
# An opaque value that represents the internal version of this daemon set that can be used by clients to determine when daemon set has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_daemonset.instance[app].spec.0.template.0.metadata.0.self_link,null)
# A URL representing this daemon set.
uid = try(kubernetes_daemonset.instance[app].spec.0.template.0.metadata.0.uid,null)
# The unique in time and space value for this daemon set. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_template_spec = {
hostname = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.hostname,null)
# Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.
nodeName = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.node_name,null)
# NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.
serviceAccountName = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.service_account_name,null)
# ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md.
}
spec_template_spec_container = {
imagePullPolicy = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.container.0.image_pull_policy,null)
# Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images
terminationMessagePolicy = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.container.0.termination_message_policy,null)
# Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
}
spec_template_spec_container_resources_limits = {
cpu = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.container.0.resources.0.limits.0.cpu,null)
memory = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.container.0.resources.0.limits.0.memory,null)
}
spec_template_spec_container_resources_requests = {
cpu = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.container.0.resources.0.requests.0.cpu,null)
memory = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.container.0.resources.0.requests.0.memory,null)
}
spec_template_spec_init_container = {
imagePullPolicy = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.init_container.0.image_pull_policy,null)
# Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images
terminationMessagePolicy = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.init_container.0.termination_message_policy,null)
# Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
}
spec_template_spec_init_container_resources_limits = {
cpu = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.limits.0.cpu,null)
memory = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.limits.0.memory,null)
}
spec_template_spec_init_container_resources_requests = {
cpu = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.requests.0.cpu,null)
memory = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.requests.0.memory,null)
}
spec_template_spec_volume_azure_disk = {
kind = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.volume.0.azure_disk.0.kind,null)
# The type for the data disk. Expected values: Shared, Dedicated, Managed. Defaults to Shared
}
spec_template_spec_volume_ceph_fs_secret_ref = {
namespace = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.volume.0.ceph_fs.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_controller_expand_secret_ref = {
namespace = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.controller_expand_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_controller_publish_secret_ref = {
namespace = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.controller_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_node_publish_secret_ref = {
namespace = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.node_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_node_stage_secret_ref = {
namespace = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.node_stage_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_flex_volume_secret_ref = {
namespace = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.volume.0.flex_volume.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_rbd = {
keyring = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.volume.0.rbd.0.keyring,null)
# Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
}
spec_template_spec_volume_rbd_secret_ref = {
namespace = try(kubernetes_daemonset.instance[app].spec.0.template.0.spec.0.volume.0.rbd.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
} : null
default_service_account = contains(keys(local.default_service_account.applications), app) ? {
defaultSecretName = try(kubernetes_default_service_account.instance[app].default_secret_name,null)
metadata = {
generation = try(kubernetes_default_service_account.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
resourceVersion = try(kubernetes_default_service_account.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this service account that can be used by clients to determine when service account has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_default_service_account.instance[app].metadata.0.self_link,null)
# A URL representing this service account.
uid = try(kubernetes_default_service_account.instance[app].metadata.0.uid,null)
# The unique in time and space value for this service account. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
deployment = contains(keys(local.deployment.applications), app) ? {
metadata = {
generation = try(kubernetes_deployment.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_deployment.instance[app].metadata.0.name,null)
# Name of the deployment, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_deployment.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this deployment that can be used by clients to determine when deployment has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_deployment.instance[app].metadata.0.self_link,null)
# A URL representing this deployment.
uid = try(kubernetes_deployment.instance[app].metadata.0.uid,null)
# The unique in time and space value for this deployment. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_template_metadata = {
generation = try(kubernetes_deployment.instance[app].spec.0.template.0.metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_deployment.instance[app].spec.0.template.0.metadata.0.name,null)
# Name of the pod, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_deployment.instance[app].spec.0.template.0.metadata.0.resource_version,null)
# An opaque value that represents the internal version of this pod that can be used by clients to determine when pod has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_deployment.instance[app].spec.0.template.0.metadata.0.self_link,null)
# A URL representing this pod.
uid = try(kubernetes_deployment.instance[app].spec.0.template.0.metadata.0.uid,null)
# The unique in time and space value for this pod. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_template_spec = {
hostname = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.hostname,null)
# Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.
nodeName = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.node_name,null)
# NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.
serviceAccountName = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.service_account_name,null)
# ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md.
}
spec_template_spec_container = {
imagePullPolicy = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.container.0.image_pull_policy,null)
# Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images
terminationMessagePolicy = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.container.0.termination_message_policy,null)
# Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
}
spec_template_spec_container_resources_limits = {
cpu = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.container.0.resources.0.limits.0.cpu,null)
memory = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.container.0.resources.0.limits.0.memory,null)
}
spec_template_spec_container_resources_requests = {
cpu = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.container.0.resources.0.requests.0.cpu,null)
memory = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.container.0.resources.0.requests.0.memory,null)
}
spec_template_spec_init_container = {
imagePullPolicy = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.init_container.0.image_pull_policy,null)
# Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images
terminationMessagePolicy = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.init_container.0.termination_message_policy,null)
# Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
}
spec_template_spec_init_container_resources_limits = {
cpu = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.limits.0.cpu,null)
memory = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.limits.0.memory,null)
}
spec_template_spec_init_container_resources_requests = {
cpu = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.requests.0.cpu,null)
memory = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.requests.0.memory,null)
}
spec_template_spec_volume_azure_disk = {
kind = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.volume.0.azure_disk.0.kind,null)
# The type for the data disk. Expected values: Shared, Dedicated, Managed. Defaults to Shared
}
spec_template_spec_volume_ceph_fs_secret_ref = {
namespace = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.volume.0.ceph_fs.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_controller_expand_secret_ref = {
namespace = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.controller_expand_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_controller_publish_secret_ref = {
namespace = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.controller_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_node_publish_secret_ref = {
namespace = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.node_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_node_stage_secret_ref = {
namespace = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.node_stage_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_flex_volume_secret_ref = {
namespace = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.volume.0.flex_volume.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_rbd = {
keyring = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.volume.0.rbd.0.keyring,null)
# Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
}
spec_template_spec_volume_rbd_secret_ref = {
namespace = try(kubernetes_deployment.instance[app].spec.0.template.0.spec.0.volume.0.rbd.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
} : null
endpoints = contains(keys(local.endpoints.applications), app) ? {
metadata = {
generation = try(kubernetes_endpoints.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_endpoints.instance[app].metadata.0.name,null)
# Name of the endpoints, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_endpoints.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this endpoints that can be used by clients to determine when endpoints has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_endpoints.instance[app].metadata.0.self_link,null)
# A URL representing this endpoints.
uid = try(kubernetes_endpoints.instance[app].metadata.0.uid,null)
# The unique in time and space value for this endpoints. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
horizontal_pod_autoscaler = contains(keys(local.horizontal_pod_autoscaler.applications), app) ? {
metadata = {
generation = try(kubernetes_horizontal_pod_autoscaler.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_horizontal_pod_autoscaler.instance[app].metadata.0.name,null)
# Name of the horizontal pod autoscaler, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_horizontal_pod_autoscaler.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this horizontal pod autoscaler that can be used by clients to determine when horizontal pod autoscaler has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_horizontal_pod_autoscaler.instance[app].metadata.0.self_link,null)
# A URL representing this horizontal pod autoscaler.
uid = try(kubernetes_horizontal_pod_autoscaler.instance[app].metadata.0.uid,null)
# The unique in time and space value for this horizontal pod autoscaler. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec = {
targetCpuUtilizationPercentage = try(kubernetes_horizontal_pod_autoscaler.instance[app].spec.0.target_cpu_utilization_percentage,null)
# Target average CPU utilization (represented as a percentage of requested CPU) over all the pods. If not specified the default autoscaling policy will be used.
}
} : null
ingress = contains(keys(local.ingress.applications), app) ? {
loadBalancerIngress = try(kubernetes_ingress.instance[app].load_balancer_ingress,null)
metadata = {
generation = try(kubernetes_ingress.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_ingress.instance[app].metadata.0.name,null)
# Name of the ingress, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_ingress.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this ingress that can be used by clients to determine when ingress has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_ingress.instance[app].metadata.0.self_link,null)
# A URL representing this ingress.
uid = try(kubernetes_ingress.instance[app].metadata.0.uid,null)
# The unique in time and space value for this ingress. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_backend = {
servicePort = try(kubernetes_ingress.instance[app].spec.0.backend.0.service_port,null)
# Specifies the port of the referenced service.
}
spec_rule_http_path_backend = {
servicePort = try(kubernetes_ingress.instance[app].spec.0.rule.0.http.0.path.0.backend.0.service_port,null)
# Specifies the port of the referenced service.
}
} : null
job = contains(keys(local.job.applications), app) ? {
metadata = {
generation = try(kubernetes_job.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
labels = try(kubernetes_job.instance[app].metadata.0.labels,null)
# Map of string keys and values that can be used to organize and categorize (scope and select) the job. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels
name = try(kubernetes_job.instance[app].metadata.0.name,null)
# Name of the job, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_job.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this job that can be used by clients to determine when job has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_job.instance[app].metadata.0.self_link,null)
# A URL representing this job.
uid = try(kubernetes_job.instance[app].metadata.0.uid,null)
# The unique in time and space value for this job. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_template_metadata = {
generation = try(kubernetes_job.instance[app].spec.0.template.0.metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_job.instance[app].spec.0.template.0.metadata.0.name,null)
# Name of the job, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_job.instance[app].spec.0.template.0.metadata.0.resource_version,null)
# An opaque value that represents the internal version of this job that can be used by clients to determine when job has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_job.instance[app].spec.0.template.0.metadata.0.self_link,null)
# A URL representing this job.
uid = try(kubernetes_job.instance[app].spec.0.template.0.metadata.0.uid,null)
# The unique in time and space value for this job. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_template_spec = {
hostname = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.hostname,null)
# Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.
nodeName = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.node_name,null)
# NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.
serviceAccountName = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.service_account_name,null)
# ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md.
}
spec_template_spec_container = {
imagePullPolicy = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.container.0.image_pull_policy,null)
# Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images
terminationMessagePolicy = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.container.0.termination_message_policy,null)
# Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
}
spec_template_spec_container_resources_limits = {
cpu = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.container.0.resources.0.limits.0.cpu,null)
memory = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.container.0.resources.0.limits.0.memory,null)
}
spec_template_spec_container_resources_requests = {
cpu = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.container.0.resources.0.requests.0.cpu,null)
memory = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.container.0.resources.0.requests.0.memory,null)
}
spec_template_spec_init_container = {
imagePullPolicy = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.init_container.0.image_pull_policy,null)
# Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images
terminationMessagePolicy = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.init_container.0.termination_message_policy,null)
# Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
}
spec_template_spec_init_container_resources_limits = {
cpu = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.limits.0.cpu,null)
memory = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.limits.0.memory,null)
}
spec_template_spec_init_container_resources_requests = {
cpu = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.requests.0.cpu,null)
memory = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.init_container.0.resources.0.requests.0.memory,null)
}
spec_template_spec_volume_azure_disk = {
kind = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.volume.0.azure_disk.0.kind,null)
# The type for the data disk. Expected values: Shared, Dedicated, Managed. Defaults to Shared
}
spec_template_spec_volume_ceph_fs_secret_ref = {
namespace = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.volume.0.ceph_fs.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_controller_expand_secret_ref = {
namespace = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.controller_expand_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_controller_publish_secret_ref = {
namespace = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.controller_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_node_publish_secret_ref = {
namespace = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.node_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_csi_node_stage_secret_ref = {
namespace = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.volume.0.csi.0.node_stage_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_flex_volume_secret_ref = {
namespace = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.volume.0.flex_volume.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_template_spec_volume_rbd = {
keyring = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.volume.0.rbd.0.keyring,null)
# Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
}
spec_template_spec_volume_rbd_secret_ref = {
namespace = try(kubernetes_job.instance[app].spec.0.template.0.spec.0.volume.0.rbd.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
} : null
limit_range = contains(keys(local.limit_range.applications), app) ? {
metadata = {
generation = try(kubernetes_limit_range.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_limit_range.instance[app].metadata.0.name,null)
# Name of the limit range, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_limit_range.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this limit range that can be used by clients to determine when limit range has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_limit_range.instance[app].metadata.0.self_link,null)
# A URL representing this limit range.
uid = try(kubernetes_limit_range.instance[app].metadata.0.uid,null)
# The unique in time and space value for this limit range. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_limit = {
defaultRequest = try(kubernetes_limit_range.instance[app].spec.0.limit.0.default_request,null)
# The default resource requirement request value by resource name if resource request is omitted.
}
} : null
mutating_webhook_configuration = contains(keys(local.mutating_webhook_configuration.applications), app) ? {
metadata = {
generation = try(kubernetes_mutating_webhook_configuration.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_mutating_webhook_configuration.instance[app].metadata.0.name,null)
# Name of the mutating webhook configuration, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_mutating_webhook_configuration.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this mutating webhook configuration that can be used by clients to determine when mutating webhook configuration has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_mutating_webhook_configuration.instance[app].metadata.0.self_link,null)
# A URL representing this mutating webhook configuration.
uid = try(kubernetes_mutating_webhook_configuration.instance[app].metadata.0.uid,null)
# The unique in time and space value for this mutating webhook configuration. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
namespace = contains(keys(local.namespace.applications), app) ? {
metadata = {
generation = try(kubernetes_namespace.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_namespace.instance[app].metadata.0.name,null)
# Name of the namespace, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_namespace.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this namespace that can be used by clients to determine when namespace has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_namespace.instance[app].metadata.0.self_link,null)
# A URL representing this namespace.
uid = try(kubernetes_namespace.instance[app].metadata.0.uid,null)
# The unique in time and space value for this namespace. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
network_policy = contains(keys(local.network_policy.applications), app) ? {
metadata = {
generation = try(kubernetes_network_policy.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_network_policy.instance[app].metadata.0.name,null)
# Name of the network policy, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_network_policy.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this network policy that can be used by clients to determine when network policy has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_network_policy.instance[app].metadata.0.self_link,null)
# A URL representing this network policy.
uid = try(kubernetes_network_policy.instance[app].metadata.0.uid,null)
# The unique in time and space value for this network policy. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
} : null
persistent_volume = contains(keys(local.persistent_volume.applications), app) ? {
metadata = {
generation = try(kubernetes_persistent_volume.instance[app].metadata.0.generation,null)
# A sequence number representing a specific generation of the desired state.
name = try(kubernetes_persistent_volume.instance[app].metadata.0.name,null)
# Name of the persistent volume, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
resourceVersion = try(kubernetes_persistent_volume.instance[app].metadata.0.resource_version,null)
# An opaque value that represents the internal version of this persistent volume that can be used by clients to determine when persistent volume has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
selfLink = try(kubernetes_persistent_volume.instance[app].metadata.0.self_link,null)
# A URL representing this persistent volume.
uid = try(kubernetes_persistent_volume.instance[app].metadata.0.uid,null)
# The unique in time and space value for this persistent volume. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
}
spec_persistent_volume_source_azure_disk = {
kind = try(kubernetes_persistent_volume.instance[app].spec.0.persistent_volume_source.0.azure_disk.0.kind,null)
# The type for the data disk. Expected values: Shared, Dedicated, Managed. Defaults to Shared
}
spec_persistent_volume_source_ceph_fs_secret_ref = {
namespace = try(kubernetes_persistent_volume.instance[app].spec.0.persistent_volume_source.0.ceph_fs.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_persistent_volume_source_csi_controller_expand_secret_ref = {
namespace = try(kubernetes_persistent_volume.instance[app].spec.0.persistent_volume_source.0.csi.0.controller_expand_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_persistent_volume_source_csi_controller_publish_secret_ref = {
namespace = try(kubernetes_persistent_volume.instance[app].spec.0.persistent_volume_source.0.csi.0.controller_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_persistent_volume_source_csi_node_publish_secret_ref = {
namespace = try(kubernetes_persistent_volume.instance[app].spec.0.persistent_volume_source.0.csi.0.node_publish_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_persistent_volume_source_csi_node_stage_secret_ref = {
namespace = try(kubernetes_persistent_volume.instance[app].spec.0.persistent_volume_source.0.csi.0.node_stage_secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_persistent_volume_source_flex_volume_secret_ref = {
namespace = try(kubernetes_persistent_volume.instance[app].spec.0.persistent_volume_source.0.flex_volume.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
spec_persistent_volume_source_rbd = {
keyring = try(kubernetes_persistent_volume.instance[app].spec.0.persistent_volume_source.0.rbd.0.keyring,null)
# Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
}
spec_persistent_volume_source_rbd_secret_ref = {
namespace = try(kubernetes_persistent_volume.instance[app].spec.0.persistent_volume_source.0.rbd.0.secret_ref.0.namespace,null)
# Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
}
} : null
persistent_volume_claim = contains(keys(local.persistent_volume_claim.applications), app) ? {
metadata = {