File tree 2 files changed +28
-6
lines changed
2 files changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ locals {
78
78
]
79
79
# The extra containers of the repo_server pod must have resource requests/limits in order to allow this component
80
80
# to autoscale properly.
81
- resources = { # TODO Maybe these resources should be different from the repo_server one.
82
- requests = { for k , v in var . resources . repo_server . requests : k => v if v != null }
83
- limits = { for k , v in var . resources . repo_server . limits : k => v if v != null }
81
+ resources = {
82
+ requests = { for k , v in var . resources . kustomized_helm_cmp . requests : k => v if v != null }
83
+ limits = { for k , v in var . resources . kustomized_helm_cmp . limits : k => v if v != null }
84
84
}
85
85
},
86
86
{
@@ -111,9 +111,9 @@ locals {
111
111
]
112
112
# The extra containers of the repo_server pod must have resource requests/limits in order to allow this component
113
113
# to autoscale properly.
114
- resources = { # TODO Maybe these resources should be different from the repo_server one.
115
- requests = { for k , v in var . resources . repo_server . requests : k => v if v != null }
116
- limits = { for k , v in var . resources . repo_server . limits : k => v if v != null }
114
+ resources = {
115
+ requests = { for k , v in var . resources . helmfile_cmp . requests : k => v if v != null }
116
+ limits = { for k , v in var . resources . helmfile_cmp . limits : k => v if v != null }
117
117
}
118
118
}
119
119
]
Original file line number Diff line number Diff line change @@ -128,6 +128,28 @@ variable "resources" {
128
128
}), {})
129
129
}), {})
130
130
131
+ kustomized_helm_cmp = optional (object ({
132
+ requests = optional (object ({
133
+ cpu = optional (string , " 100m" )
134
+ memory = optional (string , " 128Mi" )
135
+ }), {})
136
+ limits = optional (object ({
137
+ cpu = optional (string )
138
+ memory = optional (string )
139
+ }), {})
140
+ }), {})
141
+
142
+ helmfile_cmp = optional (object ({
143
+ requests = optional (object ({
144
+ cpu = optional (string , " 100m" )
145
+ memory = optional (string , " 128Mi" )
146
+ }), {})
147
+ limits = optional (object ({
148
+ cpu = optional (string )
149
+ memory = optional (string )
150
+ }), {})
151
+ }), {})
152
+
131
153
server = optional (object ({
132
154
requests = optional (object ({
133
155
cpu = optional (string , " 50m" )
You can’t perform that action at this time.
0 commit comments