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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Now, Pods that require a video capture device, such as an object detection servi
```yaml
resources:
limits:
squat.ai/video: 1
devic.es/video: 1
```

The `--device` flag can be provided multiple times to allow the plugin to discover and allocate different types of resources.
Expand Down Expand Up @@ -61,7 +61,7 @@ spec:
name: http
resources:
limits:
squat.ai/video: 1
devic.es/video: 1
EOF
```

Expand Down Expand Up @@ -98,7 +98,7 @@ Usage of generic-device-plugin:
For example, to expose serial devices that may or may not be present: {"name": "serial", "groups": [{"paths": [{"path": "/dev/ttyS0", "optional": true}, {"path": "/dev/ttyUSB0", "optional": true}]}]}
If mountPath is a directory, the device will be mounted to the directory with the name of the device.
For example, to expose the serial devices to the /dev/serial directory: {"name": "serial", "groups": [{"paths": [{"path": "/dev/ttyUSB*", "mountPath": "/dev/serial/"}]}]}
--domain string The domain to use when when declaring devices. (default "squat.ai")
--domain string The domain to use when when declaring devices. (default "devic.es")
--listen string The address at which to listen for health and metrics. (default ":8080")
--log-level string Log level to use. Possible values: all, debug, info, warn, error, none (default "info")
--plugin-directory string The directory in which to create plugin sockets. (default "/var/lib/kubelet/device-plugins/")
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/squat/generic-device-plugin/deviceplugin"
)

const defaultDomain = "squat.ai"
const defaultDomain = "devic.es"

// initConfig defines config flags, config file, and envs
func initConfig() error {
Expand Down
2 changes: 1 addition & 1 deletion e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestE2EBasic(t *testing.T) {
testutil.Ok(t, err, string(out))
out, err = kubectl(context.Background(), e, "rollout", "status", "daemonset", "generic-device-plugin", "--namespace", "kube-system").CombinedOutput()
testutil.Ok(t, err, string(out))
out, err = kubectl(context.Background(), e, "patch", "deployment", "fuse", "--patch", `{"spec": {"template": {"spec": {"containers": [{"name": "fuse", "resources": {"limits": {"squat.ai/fuse": 1}}}]}}}}`).CombinedOutput()
out, err = kubectl(context.Background(), e, "patch", "deployment", "fuse", "--patch", `{"spec": {"template": {"spec": {"containers": [{"name": "fuse", "resources": {"limits": {"devic.es/fuse": 1}}}]}}}}`).CombinedOutput()
testutil.Ok(t, err, string(out))
out, err = kubectl(context.Background(), e, "rollout", "status", "deployment", "fuse").CombinedOutput()
testutil.Ok(t, err, string(out))
Expand Down
Loading