Skip to content

Conversation

@fprzewozny
Copy link

Hey,
Small but needed change, using the current template generation of custom ConfigMap simply fails due to incorrect data type provided to template. Also official documentation shows the correct syntax: https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/latest/gpu-operator-mig.html#example-custom-mig-configuration

apiVersion: v1
kind: ConfigMap
metadata:
  name: custom-mig-config
data:
  config.yaml: |
    version: v1
    mig-configs:
      all-disabled:
        - devices: all
          mig-enabled: false
      
      five-1g-one-2g:
        - devices: all 
          mig-enabled: true
          mig-devices:
            "1g.10gb": 5
            "2g.20gb": 1

Thanks!

@copy-pr-bot
Copy link

copy-pr-bot bot commented Feb 14, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Signed-off-by: Franciszek Przewoźny <fprzewozny@opera.com>
@fprzewozny fprzewozny force-pushed the fix-migManager-data-sample-config branch from f2b47dc to d1ae5dd Compare February 14, 2025 12:14
@tariq1890
Copy link
Contributor

Thank you for catching this @fprzewozny !

@tariq1890
Copy link
Contributor

/ok-to-test

@tariq1890 tariq1890 enabled auto-merge March 6, 2025 19:28
@tariq1890 tariq1890 merged commit 6aeea0d into NVIDIA:main Mar 6, 2025
12 checks passed
@fprzewozny fprzewozny deleted the fix-migManager-data-sample-config branch May 13, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants