Skip to content

Commit

Permalink
Make MPS daemonset conditional
Browse files Browse the repository at this point in the history
Only deploy the MPS daemonset if the deviceplugin is deployed.

Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Feb 6, 2024
1 parent b53c545 commit 4845769
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{{- if .Values.devicePlugin.enabled }}
---
{{- $hasConfigMap := (include "nvidia-device-plugin.hasConfigMap" .) | trim }}
{{- $configMapName := (include "nvidia-device-plugin.configMapName" .) | trim }}
Expand Down Expand Up @@ -224,3 +225,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}

0 comments on commit 4845769

Please sign in to comment.