-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ivan Sim <[email protected]>
- Loading branch information
Showing
8 changed files
with
139 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ bin | |
kubelet.log | ||
kubelet-v1.31.0 | ||
kubelet/run | ||
|
||
flatcar | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package plugins | ||
|
||
import "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1" | ||
|
||
const ( | ||
Healthy DeviceHealth = v1beta1.Healthy | ||
Unhealthy DeviceHealth = v1beta1.Unhealthy | ||
) | ||
|
||
// Device represents a device managed by this plugin. | ||
type Device struct { | ||
ID string | ||
Health DeviceHealth | ||
} | ||
|
||
// DeviceState maintains the last seen of a device at a given timestamp. | ||
type DeviceState struct { | ||
LastSeenTimestamp int64 | ||
*Device | ||
} | ||
|
||
type DeviceHealth string | ||
|
||
func (h DeviceHealth) String() string { | ||
return string(h) | ||
} |