File tree Expand file tree Collapse file tree 6 files changed +44
-0
lines changed
terraform-modules/concourse/app Expand file tree Collapse file tree 6 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,22 @@ data "helm_template" "concourse" {
5555 name = " concourse.worker.runtime"
5656 value = " containerd"
5757 }
58+
59+ dynamic "set" {
60+ for_each = var. concourse_max_days_to_retain_build_logs != null ? [1 ] : []
61+ content {
62+ name = " concourse.web.maxDaysToRetainBuildLogs"
63+ value = var. concourse_max_days_to_retain_build_logs
64+ }
65+ }
66+
67+ dynamic "set" {
68+ for_each = var. concourse_max_build_logs_to_retain != null ? [1 ] : []
69+ content {
70+ name = " concourse.web.maxBuildLogsToRetain"
71+ value = var. concourse_max_build_logs_to_retain
72+ }
73+ }
5874}
5975
6076data "carvel_ytt" "concourse_app" {
Original file line number Diff line number Diff line change @@ -16,3 +16,15 @@ variable "concourse_container_placement_strategy" { nullable = false }
1616
1717variable "load_balancer_ip" { nullable = false }
1818variable "load_balancer_dns" { nullable = false }
19+
20+ variable "concourse_max_days_to_retain_build_logs" {
21+ description = " Optional: Max days to retain build logs in Concourse"
22+ type = number
23+ default = null
24+ }
25+
26+ variable "concourse_max_build_logs_to_retain" {
27+ description = " Optional: Max build logs to retain in Concourse"
28+ type = number
29+ default = null
30+ }
Original file line number Diff line number Diff line change @@ -52,4 +52,6 @@ inputs = {
5252 concourse_github_mainTeam = local.config.concourse_github_mainTeam
5353 concourse_github_mainTeamUser = local.config.concourse_github_mainTeamUser
5454 concourse_container_placement_strategy = local.config.concourse_container_placement_strategy
55+ concourse_max_days_to_retain_build_logs = local.config.concourse_max_days_to_retain_build_logs
56+ concourse_max_build_logs_to_retain = local.config.concourse_max_build_logs_to_retain
5557}
Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ concourse_github_mainTeamUser: ""
2323# Concourse worker placement strategy: https://concourse-ci.org/container-placement.html
2424# Use default strategy for test system
2525concourse_container_placement_strategy : " volume-locality"
26+ # Optional: Set the maximum number of days to retain Concourse build logs.
27+ # If not set, the default Concourse is configured to feel very snappy!.
28+ concourse_max_days_to_retain_build_logs : 30
29+ # Optional: Set the maximum number of build logs to retain.
30+ # If not set or set to 0, the default Concourse is configured to feel very snappy!.
31+ concourse_max_build_logs_to_retain : 200
2632
2733# Concourse helm chart
2834concourse_helm_version : " 18.1.1"
Original file line number Diff line number Diff line change @@ -52,4 +52,6 @@ inputs = {
5252 concourse_github_mainTeam = local.config.concourse_github_mainTeam
5353 concourse_github_mainTeamUser = local.config.concourse_github_mainTeamUser
5454 concourse_container_placement_strategy = local.config.concourse_container_placement_strategy
55+ concourse_max_days_to_retain_build_logs = local.config.concourse_max_days_to_retain_build_logs
56+ concourse_max_build_logs_to_retain = local.config.concourse_max_build_logs_to_retain
5557}
Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ concourse_github_mainTeamUser: ""
2323# Concourse worker placement strategy: https://concourse-ci.org/container-placement.html
2424# The cloud controller unit tests cause a high system load on workers, so place them on workers with few containers
2525concourse_container_placement_strategy : " fewest-build-containers"
26+ # Optional: Set the maximum number of days to retain Concourse build logs.
27+ # If not set or set to 0, the default Concourse is configured to feel very snappy!.
28+ concourse_max_days_to_retain_build_logs : 30
29+ # Optional: Set the maximum number of build logs to retain.
30+ # If not set or set to 0, the default Concourse is configured to feel very snappy!.
31+ concourse_max_build_logs_to_retain : 200
2632
2733# Concourse helm chart
2834concourse_helm_version : " 18.1.1"
You can’t perform that action at this time.
0 commit comments