Skip to content

Commit e05e719

Browse files
add resources to Server Pods (#2399)
Co-authored-by: [email protected] <[email protected]>
1 parent b88140c commit e05e719

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

kubernetes/samples/scripts/common/utility.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,23 +272,23 @@ function getKubernetesClusterIP {
272272
function buildServerPodResources {
273273

274274
if [ -n "${serverPodMemoryRequest}" ]; then
275-
local memoryRequest=" memory\: \"${serverPodMemoryRequest}\"\n"
275+
local memoryRequest=" memory\: \"${serverPodMemoryRequest}\"\n"
276276
fi
277277
if [ -n "${serverPodCpuRequest}" ]; then
278-
local cpuRequest=" cpu\: \"${serverPodCpuRequest}\"\n"
278+
local cpuRequest=" cpu\: \"${serverPodCpuRequest}\"\n"
279279
fi
280280
if [ -n "${memoryRequest}" ] || [ -n "${cpuRequest}" ]; then
281-
local requests=" requests\: \n$memoryRequest $cpuRequest"
281+
local requests=" requests\: \n$memoryRequest $cpuRequest"
282282
fi
283283

284284
if [ -n "${serverPodMemoryLimit}" ]; then
285-
local memoryLimit=" memory\: \"${serverPodMemoryLimit}\"\n"
285+
local memoryLimit=" memory\: \"${serverPodMemoryLimit}\"\n"
286286
fi
287287
if [ -n "${serverPodCpuLimit}" ]; then
288-
local cpuLimit=" cpu\: \"${serverPodCpuLimit}\"\n"
288+
local cpuLimit=" cpu\: \"${serverPodCpuLimit}\"\n"
289289
fi
290290
if [ -n "${memoryLimit}" ] || [ -n "${cpuLimit}" ]; then
291-
local limits=" limits\: \n$memoryLimit $cpuLimit"
291+
local limits=" limits\: \n$memoryLimit $cpuLimit"
292292
fi
293293

294294
if [ -n "${requests}" ] || [ -n "${limits}" ]; then
@@ -686,7 +686,7 @@ function updateModelFile {
686686
sed -i -e "s:%MII_CONFIG_MAP%:${miiConfigMap}:g" ${modelFile}
687687
sed -i -e "s:%WDT_DOMAIN_TYPE%:${wdtDomainType}:g" ${modelFile}
688688

689-
#buildServerPodResources
689+
buildServerPodResources
690690
if [ -z "${serverPodResources}" ]; then
691691
sed -i -e "/%OPTIONAL_SERVERPOD_RESOURCES%/d" ${modelFile}
692692
else

0 commit comments

Comments
 (0)