Skip to content

Commit 98f176d

Browse files
preslavgerchevarlimus
authored andcommitted
🧹 Drop deprecated v8 kind.
Signed-off-by: Preslav <preslav@mondoo.com>
1 parent 93e2434 commit 98f176d

File tree

3 files changed

+0
-117
lines changed

3 files changed

+0
-117
lines changed

providers-sdk/v1/inventory/deprecated_v8.go

Lines changed: 0 additions & 71 deletions
This file was deleted.

providers-sdk/v1/inventory/inventory.proto

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ message Config {
200200
// conflict with the old "backend" while allowing us to load the field from
201201
// yaml.
202202
ProviderType backend = 28;
203-
DeprecatedV8_Kind kind = 24;
204203
// ^^
205204

206205
string host = 2;
@@ -247,46 +246,6 @@ message Discovery {
247246
map<string,string> filter = 2;
248247
}
249248

250-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
251-
// protolint:disable:next ENUM_NAMES_UPPER_CAMEL_CASE
252-
enum DeprecatedV8_Kind {
253-
// protolint:disable:next ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH
254-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
255-
KIND_UNKNOWN = 0;
256-
257-
// at rest
258-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
259-
KIND_VIRTUAL_MACHINE_IMAGE = 1;
260-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
261-
KIND_CONTAINER_IMAGE = 2;
262-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
263-
KIND_CODE = 3;
264-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
265-
KIND_PACKAGE = 4;
266-
267-
// in motion
268-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
269-
KIND_VIRTUAL_MACHINE = 5;
270-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
271-
KIND_CONTAINER = 6;
272-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
273-
KIND_PROCESS = 7;
274-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
275-
KIND_API = 8;
276-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
277-
KIND_BARE_METAL = 9;
278-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
279-
KIND_NETWORK = 10;
280-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
281-
KIND_K8S_OBJECT = 11;
282-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
283-
KIND_AWS_OBJECT = 12;
284-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
285-
KIND_GCP_OBJECT = 13;
286-
// protolint:disable:next ENUM_FIELD_NAMES_PREFIX
287-
KIND_AZURE_OBJECT= 14;
288-
}
289-
290249
message Platform {
291250
string name = 1;
292251
string arch = 3;
@@ -299,10 +258,6 @@ message Platform {
299258
// technology url for this asset, raw version of an AssetUrl
300259
repeated string technology_url_segments = 9;
301260

302-
// FIXME: DEPRECATED, remove in v10 vv
303-
DeprecatedV8_Kind deprecated_v8_kind = 20;
304-
// ^^
305-
306261
string runtime = 21;
307262
// FIXME: DEPRECATED, mark as reserved in v12 (or later) vv
308263
map<string, string> labels = 22;

providers/network/provider/provider.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ func (s *Service) connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
170170
}
171171

172172
conf.Backend = inventory.ProviderType_HOST
173-
conf.Kind = inventory.DeprecatedV8_Kind_KIND_NETWORK
174173

175174
var upstream *upstream.UpstreamClient
176175
var err error

0 commit comments

Comments
 (0)