Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
c281fde3
Unverified
Commit
c281fde3
authored
Apr 15, 2025
by
julienmancuso
Committed by
GitHub
Apr 15, 2025
Browse files
fix: check for resource in pipeline helm chart (#687)
parent
643659c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
deploy/Kubernetes/pipeline/chart/templates/deployment.yaml
deploy/Kubernetes/pipeline/chart/templates/deployment.yaml
+6
-0
No files found.
deploy/Kubernetes/pipeline/chart/templates/deployment.yaml
View file @
c281fde3
...
@@ -48,9 +48,12 @@ spec:
...
@@ -48,9 +48,12 @@ spec:
command
:
command
:
-
sh
-
sh
-
-c
-
-c
{{
if .config.resources
}}
resources
:
resources
:
requests
:
requests
:
{{
if .config.resources.cpu
}}
cpu
:
"
{{
.config.resources.cpu
}}"
cpu
:
"
{{
.config.resources.cpu
}}"
{{
end
}}
{{
if .config.resources.memory
}}
{{
if .config.resources.memory
}}
memory
:
"
{{
.config.resources.memory
}}"
memory
:
"
{{
.config.resources.memory
}}"
{{
end
}}
{{
end
}}
...
@@ -58,13 +61,16 @@ spec:
...
@@ -58,13 +61,16 @@ spec:
nvidia.com/gpu
:
"
{{
.config.resources.gpu
}}"
nvidia.com/gpu
:
"
{{
.config.resources.gpu
}}"
{{
end
}}
{{
end
}}
limits
:
limits
:
{{
if .config.resources.cpu
}}
cpu
:
"
{{
.config.resources.cpu
}}"
cpu
:
"
{{
.config.resources.cpu
}}"
{{
end
}}
{{
if .config.resources.memory
}}
{{
if .config.resources.memory
}}
memory
:
"
{{
.config.resources.memory
}}"
memory
:
"
{{
.config.resources.memory
}}"
{{
end
}}
{{
end
}}
{{
if .config.resources.gpu
}}
{{
if .config.resources.gpu
}}
nvidia.com/gpu
:
"
{{
.config.resources.gpu
}}"
nvidia.com/gpu
:
"
{{
.config.resources.gpu
}}"
{{
end
}}
{{
end
}}
{{
end
}}
env
:
env
:
-
name
:
TRAFFIC_TIMEOUT
-
name
:
TRAFFIC_TIMEOUT
value
:
"
{{
.config.traffic.timeout
}}"
value
:
"
{{
.config.traffic.timeout
}}"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment