Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: configmanager.go
Generated by this command:
mockgen -source=configmanager.go -package=configmanager -destination=mock_configmanager.go ConfigManager
Package configmanager is a generated GoMock package.
Index ¶
Constants ¶
const ( ConfigManagerName = "device-config-manager" // DefaultDCMConfigMapName is the ConfigMap metadata.name mounted when spec.configManager.config // is unset or has an empty name (see api/v1alpha1 ConfigManagerSpec.Config godoc). // The DeviceConfig reconciler creates this ConfigMap in the DeviceConfig namespace when DCM is // enabled and no explicit config reference is set (see EnsureDefaultDCMConfigMap). // The Helm chart also installs the same object by default (values: defaultDCMConfigMap); if it // already exists, the reconciler leaves it unchanged. DefaultDCMConfigMapName = "default-dcm-config" // ConfigManagerConfigVolumeName is the Pod volume and VolumeMount name for the DCM ConfigMap. ConfigManagerConfigVolumeName = "config-manager-config-volume" // DefaultDCMConfigMountPath is where the DCM container expects ConfigMap data (e.g. config.json). DefaultDCMConfigMountPath = "/etc/config-manager/" )
Variables ¶
This section is empty.
Functions ¶
func EnsureDefaultDCMConfigMap ¶ added in v1.5.0
func EnsureDefaultDCMConfigMap(ctx context.Context, c client.Client, devConfig *amdv1alpha1.DeviceConfig) error
EnsureDefaultDCMConfigMap creates ConfigMap DefaultDCMConfigMapName in devConfig.Namespace when DCM is enabled and spec.configManager.config is unset or has an empty name. If the ConfigMap already exists, it is unchanged.
Types ¶
type ConfigManager ¶
type ConfigManager interface {
SetConfigManagerAsDesired(ds *appsv1.DaemonSet, devConfig *amdv1alpha1.DeviceConfig) error
}
func NewConfigManager ¶
func NewConfigManager(scheme *runtime.Scheme) ConfigManager
type MockConfigManager ¶
type MockConfigManager struct {
// contains filtered or unexported fields
}
MockConfigManager is a mock of ConfigManager interface.
func NewMockConfigManager ¶
func NewMockConfigManager(ctrl *gomock.Controller) *MockConfigManager
NewMockConfigManager creates a new mock instance.
func (*MockConfigManager) EXPECT ¶
func (m *MockConfigManager) EXPECT() *MockConfigManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigManager) SetConfigManagerAsDesired ¶
func (m *MockConfigManager) SetConfigManagerAsDesired(ds *v1.DaemonSet, devConfig *v1alpha1.DeviceConfig) error
SetConfigManagerAsDesired mocks base method.
type MockConfigManagerMockRecorder ¶
type MockConfigManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigManagerMockRecorder is the mock recorder for MockConfigManager.
func (*MockConfigManagerMockRecorder) SetConfigManagerAsDesired ¶
func (mr *MockConfigManagerMockRecorder) SetConfigManagerAsDesired(ds, devConfig any) *gomock.Call
SetConfigManagerAsDesired indicates an expected call of SetConfigManagerAsDesired.