Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.cache/
.bash_history
/compute-domain-controller
/compute-domain-daemon
/compute-domain-kubelet-plugin
/gpu-kubelet-plugin
/webhook
.idea
[._]*.sw[a-p]
coverage.out
Expand Down
8 changes: 8 additions & 0 deletions cmd/compute-domain-daemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@ func newApp() *cli.App {

// Run invokes the IMEX daemon and manages its lifecycle.
func run(ctx context.Context, cancel context.CancelFunc, flags *Flags) error {
// Verify that CDI container edits were applied by the container runtime by
// checking for COMPUTE_DOMAIN_UUID, which is always injected as part of the
// CDI edits. If it is missing, CDI is likely disabled and the daemon cannot
// function correctly (e.g. the /imexd mount will be missing).
if flags.computeDomainUUID == "" {
return fmt.Errorf("CDI container edits did not apply -- is CDI enabled in your container runtime?")
}

common.StartDebugSignalHandlers()

// Validate feature gate dependencies
Expand Down
Loading