diff options
| author | wbc6080 <wangbincheng4@huawei.com> | 2023-12-20 10:33:23 +0800 |
|---|---|---|
| committer | wbc6080 <wangbincheng4@huawei.com> | 2023-12-29 10:14:16 +0800 |
| commit | 51c6081cf9e303060b974d5e17dc835fee77830a (patch) | |
| tree | 193fc277013c775b827bad47598543f150fdd843 /pkg | |
| parent | Merge pull request #5299 from Shelley-BaoYue/remove-runtimetype (diff) | |
| download | kubeedge-51c6081cf9e303060b974d5e17dc835fee77830a.tar.gz | |
support configuring dmisock path in edgecore
Signed-off-by: wbc6080 <wangbincheng4@huawei.com>
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/apis/componentconfig/edgecore/v1alpha2/default.go | 6 | ||||
| -rw-r--r-- | pkg/apis/componentconfig/edgecore/v1alpha2/types.go | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/pkg/apis/componentconfig/edgecore/v1alpha2/default.go b/pkg/apis/componentconfig/edgecore/v1alpha2/default.go index 8924ebfa5..f51a027a8 100644 --- a/pkg/apis/componentconfig/edgecore/v1alpha2/default.go +++ b/pkg/apis/componentconfig/edgecore/v1alpha2/default.go @@ -142,7 +142,8 @@ func NewDefaultEdgeCoreConfig() (config *EdgeCoreConfig) { Timeout: 60, }, DeviceTwin: &DeviceTwin{ - Enable: true, + Enable: true, + DMISockPath: constants.DefaultDMISockPath, }, DBTest: &DBTest{ Enable: false, @@ -179,6 +180,9 @@ func NewMinEdgeCoreConfig() (config *EdgeCoreConfig) { DataSource: DataBaseDataSource, }, Modules: &Modules{ + DeviceTwin: &DeviceTwin{ + DMISockPath: constants.DefaultDMISockPath, + }, Edged: &Edged{ Enable: true, TailoredKubeletConfig: &defaultTailedKubeletConfig, diff --git a/pkg/apis/componentconfig/edgecore/v1alpha2/types.go b/pkg/apis/componentconfig/edgecore/v1alpha2/types.go index 624070a55..6d8130ebd 100644 --- a/pkg/apis/componentconfig/edgecore/v1alpha2/types.go +++ b/pkg/apis/componentconfig/edgecore/v1alpha2/types.go @@ -1023,6 +1023,9 @@ type DeviceTwin struct { // if set to false (for debugging etc.), skip checking other DeviceTwin configs. // default true Enable bool `json:"enable"` + // DMISockPath sets the path to dmi.sock + // default "/etc/kubeedge/dmi.sock" + DMISockPath string `json:"dmiSockPath,omitempty"` } // DBTest indicates the DBTest module config |
