@crossplane-org/function-sdk-typescript 0.4.0 → 0.5.0-20260827072540-b57af71829cd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,92 @@ import { Client, makeGenericClientConstructor, } from "@grpc/grpc-js";
9
9
  import { Duration } from "./google/protobuf/duration.js";
10
10
  import { Struct } from "./google/protobuf/struct.js";
11
11
  export const protobufPackage = "apiextensions.fn.proto.v1";
12
+ /**
13
+ * Capability indicates that Crossplane supports a particular feature.
14
+ * Functions can check for capabilities to determine whether Crossplane will
15
+ * honor a particular request or response field.
16
+ */
17
+ export var Capability;
18
+ (function (Capability) {
19
+ Capability[Capability["CAPABILITY_UNSPECIFIED"] = 0] = "CAPABILITY_UNSPECIFIED";
20
+ /**
21
+ * CAPABILITY_CAPABILITIES - Crossplane sends capabilities in RequestMeta. If this capability is
22
+ * present, the function knows that if another capability is absent, it's
23
+ * because Crossplane doesn't support it (not because Crossplane predates
24
+ * capability advertisement). Added in Crossplane v2.2.
25
+ */
26
+ Capability[Capability["CAPABILITY_CAPABILITIES"] = 1] = "CAPABILITY_CAPABILITIES";
27
+ /**
28
+ * CAPABILITY_REQUIRED_RESOURCES - Crossplane supports the requirements.resources field. Functions can return
29
+ * resource requirements and Crossplane will fetch the requested resources and
30
+ * return them in required_resources. Added in Crossplane v1.15.
31
+ */
32
+ Capability[Capability["CAPABILITY_REQUIRED_RESOURCES"] = 2] = "CAPABILITY_REQUIRED_RESOURCES";
33
+ /**
34
+ * CAPABILITY_CREDENTIALS - Crossplane supports the credentials field. Functions can receive
35
+ * credentials from secrets specified in the Composition. Added in Crossplane
36
+ * v1.16.
37
+ */
38
+ Capability[Capability["CAPABILITY_CREDENTIALS"] = 3] = "CAPABILITY_CREDENTIALS";
39
+ /**
40
+ * CAPABILITY_CONDITIONS - Crossplane supports the conditions field. Functions can return status
41
+ * conditions to be applied to the XR and optionally its claim. Added in
42
+ * Crossplane v1.17.
43
+ */
44
+ Capability[Capability["CAPABILITY_CONDITIONS"] = 4] = "CAPABILITY_CONDITIONS";
45
+ /**
46
+ * CAPABILITY_REQUIRED_SCHEMAS - Crossplane supports the requirements.schemas field. Functions can request
47
+ * OpenAPI schemas and Crossplane will return them in required_schemas. Added
48
+ * in Crossplane v2.2.
49
+ */
50
+ Capability[Capability["CAPABILITY_REQUIRED_SCHEMAS"] = 5] = "CAPABILITY_REQUIRED_SCHEMAS";
51
+ Capability[Capability["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
52
+ })(Capability || (Capability = {}));
53
+ export function capabilityFromJSON(object) {
54
+ switch (object) {
55
+ case 0:
56
+ case "CAPABILITY_UNSPECIFIED":
57
+ return Capability.CAPABILITY_UNSPECIFIED;
58
+ case 1:
59
+ case "CAPABILITY_CAPABILITIES":
60
+ return Capability.CAPABILITY_CAPABILITIES;
61
+ case 2:
62
+ case "CAPABILITY_REQUIRED_RESOURCES":
63
+ return Capability.CAPABILITY_REQUIRED_RESOURCES;
64
+ case 3:
65
+ case "CAPABILITY_CREDENTIALS":
66
+ return Capability.CAPABILITY_CREDENTIALS;
67
+ case 4:
68
+ case "CAPABILITY_CONDITIONS":
69
+ return Capability.CAPABILITY_CONDITIONS;
70
+ case 5:
71
+ case "CAPABILITY_REQUIRED_SCHEMAS":
72
+ return Capability.CAPABILITY_REQUIRED_SCHEMAS;
73
+ case -1:
74
+ case "UNRECOGNIZED":
75
+ default:
76
+ return Capability.UNRECOGNIZED;
77
+ }
78
+ }
79
+ export function capabilityToJSON(object) {
80
+ switch (object) {
81
+ case Capability.CAPABILITY_UNSPECIFIED:
82
+ return "CAPABILITY_UNSPECIFIED";
83
+ case Capability.CAPABILITY_CAPABILITIES:
84
+ return "CAPABILITY_CAPABILITIES";
85
+ case Capability.CAPABILITY_REQUIRED_RESOURCES:
86
+ return "CAPABILITY_REQUIRED_RESOURCES";
87
+ case Capability.CAPABILITY_CREDENTIALS:
88
+ return "CAPABILITY_CREDENTIALS";
89
+ case Capability.CAPABILITY_CONDITIONS:
90
+ return "CAPABILITY_CONDITIONS";
91
+ case Capability.CAPABILITY_REQUIRED_SCHEMAS:
92
+ return "CAPABILITY_REQUIRED_SCHEMAS";
93
+ case Capability.UNRECOGNIZED:
94
+ default:
95
+ return "UNRECOGNIZED";
96
+ }
97
+ }
12
98
  /** Ready indicates whether a resource should be considered ready. */
13
99
  export var Ready;
14
100
  (function (Ready) {
@@ -207,6 +293,7 @@ function createBaseRunFunctionRequest() {
207
293
  extraResources: {},
208
294
  credentials: {},
209
295
  requiredResources: {},
296
+ requiredSchemas: {},
210
297
  };
211
298
  }
212
299
  export const RunFunctionRequest = {
@@ -235,6 +322,9 @@ export const RunFunctionRequest = {
235
322
  globalThis.Object.entries(message.requiredResources).forEach(([key, value]) => {
236
323
  RunFunctionRequest_RequiredResourcesEntry.encode({ key: key, value }, writer.uint32(66).fork()).join();
237
324
  });
325
+ globalThis.Object.entries(message.requiredSchemas).forEach(([key, value]) => {
326
+ RunFunctionRequest_RequiredSchemasEntry.encode({ key: key, value }, writer.uint32(74).fork()).join();
327
+ });
238
328
  return writer;
239
329
  },
240
330
  decode(input, length) {
@@ -309,6 +399,16 @@ export const RunFunctionRequest = {
309
399
  }
310
400
  continue;
311
401
  }
402
+ case 9: {
403
+ if (tag !== 74) {
404
+ break;
405
+ }
406
+ const entry9 = RunFunctionRequest_RequiredSchemasEntry.decode(reader, reader.uint32());
407
+ if (entry9.value !== undefined) {
408
+ message.requiredSchemas[entry9.key] = entry9.value;
409
+ }
410
+ continue;
411
+ }
312
412
  }
313
413
  if ((tag & 7) === 4 || tag === 0) {
314
414
  break;
@@ -352,6 +452,17 @@ export const RunFunctionRequest = {
352
452
  return acc;
353
453
  }, {})
354
454
  : {},
455
+ requiredSchemas: isObject(object.requiredSchemas)
456
+ ? globalThis.Object.entries(object.requiredSchemas).reduce((acc, [key, value]) => {
457
+ acc[key] = Schema.fromJSON(value);
458
+ return acc;
459
+ }, {})
460
+ : isObject(object.required_schemas)
461
+ ? globalThis.Object.entries(object.required_schemas).reduce((acc, [key, value]) => {
462
+ acc[key] = Schema.fromJSON(value);
463
+ return acc;
464
+ }, {})
465
+ : {},
355
466
  };
356
467
  },
357
468
  toJSON(message) {
@@ -398,6 +509,15 @@ export const RunFunctionRequest = {
398
509
  });
399
510
  }
400
511
  }
512
+ if (message.requiredSchemas) {
513
+ const entries = globalThis.Object.entries(message.requiredSchemas);
514
+ if (entries.length > 0) {
515
+ obj.requiredSchemas = {};
516
+ entries.forEach(([k, v]) => {
517
+ obj.requiredSchemas[k] = Schema.toJSON(v);
518
+ });
519
+ }
520
+ }
401
521
  return obj;
402
522
  },
403
523
  create(base) {
@@ -435,6 +555,12 @@ export const RunFunctionRequest = {
435
555
  }
436
556
  return acc;
437
557
  }, {});
558
+ message.requiredSchemas = globalThis.Object.entries(object.requiredSchemas ?? {}).reduce((acc, [key, value]) => {
559
+ if (value !== undefined) {
560
+ acc[key] = Schema.fromPartial(value);
561
+ }
562
+ return acc;
563
+ }, {});
438
564
  return message;
439
565
  },
440
566
  };
@@ -648,6 +774,76 @@ export const RunFunctionRequest_RequiredResourcesEntry = {
648
774
  return message;
649
775
  },
650
776
  };
777
+ function createBaseRunFunctionRequest_RequiredSchemasEntry() {
778
+ return { key: "", value: undefined };
779
+ }
780
+ export const RunFunctionRequest_RequiredSchemasEntry = {
781
+ encode(message, writer = new BinaryWriter()) {
782
+ if (message.key !== "") {
783
+ writer.uint32(10).string(message.key);
784
+ }
785
+ if (message.value !== undefined) {
786
+ Schema.encode(message.value, writer.uint32(18).fork()).join();
787
+ }
788
+ return writer;
789
+ },
790
+ decode(input, length) {
791
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
792
+ const end = length === undefined ? reader.len : reader.pos + length;
793
+ const message = createBaseRunFunctionRequest_RequiredSchemasEntry();
794
+ while (reader.pos < end) {
795
+ const tag = reader.uint32();
796
+ switch (tag >>> 3) {
797
+ case 1: {
798
+ if (tag !== 10) {
799
+ break;
800
+ }
801
+ message.key = reader.string();
802
+ continue;
803
+ }
804
+ case 2: {
805
+ if (tag !== 18) {
806
+ break;
807
+ }
808
+ message.value = Schema.decode(reader, reader.uint32());
809
+ continue;
810
+ }
811
+ }
812
+ if ((tag & 7) === 4 || tag === 0) {
813
+ break;
814
+ }
815
+ reader.skip(tag & 7);
816
+ }
817
+ return message;
818
+ },
819
+ fromJSON(object) {
820
+ return {
821
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
822
+ value: isSet(object.value) ? Schema.fromJSON(object.value) : undefined,
823
+ };
824
+ },
825
+ toJSON(message) {
826
+ const obj = {};
827
+ if (message.key !== "") {
828
+ obj.key = message.key;
829
+ }
830
+ if (message.value !== undefined) {
831
+ obj.value = Schema.toJSON(message.value);
832
+ }
833
+ return obj;
834
+ },
835
+ create(base) {
836
+ return RunFunctionRequest_RequiredSchemasEntry.fromPartial(base ?? {});
837
+ },
838
+ fromPartial(object) {
839
+ const message = createBaseRunFunctionRequest_RequiredSchemasEntry();
840
+ message.key = object.key ?? "";
841
+ message.value = (object.value !== undefined && object.value !== null)
842
+ ? Schema.fromPartial(object.value)
843
+ : undefined;
844
+ return message;
845
+ },
846
+ };
651
847
  function createBaseCredentials() {
652
848
  return { credentialData: undefined };
653
849
  }
@@ -1058,13 +1254,18 @@ export const RunFunctionResponse = {
1058
1254
  },
1059
1255
  };
1060
1256
  function createBaseRequestMeta() {
1061
- return { tag: "" };
1257
+ return { tag: "", capabilities: [] };
1062
1258
  }
1063
1259
  export const RequestMeta = {
1064
1260
  encode(message, writer = new BinaryWriter()) {
1065
1261
  if (message.tag !== "") {
1066
1262
  writer.uint32(10).string(message.tag);
1067
1263
  }
1264
+ writer.uint32(18).fork();
1265
+ for (const v of message.capabilities) {
1266
+ writer.int32(v);
1267
+ }
1268
+ writer.join();
1068
1269
  return writer;
1069
1270
  },
1070
1271
  decode(input, length) {
@@ -1081,6 +1282,20 @@ export const RequestMeta = {
1081
1282
  message.tag = reader.string();
1082
1283
  continue;
1083
1284
  }
1285
+ case 2: {
1286
+ if (tag === 16) {
1287
+ message.capabilities.push(reader.int32());
1288
+ continue;
1289
+ }
1290
+ if (tag === 18) {
1291
+ const end2 = reader.uint32() + reader.pos;
1292
+ while (reader.pos < end2) {
1293
+ message.capabilities.push(reader.int32());
1294
+ }
1295
+ continue;
1296
+ }
1297
+ break;
1298
+ }
1084
1299
  }
1085
1300
  if ((tag & 7) === 4 || tag === 0) {
1086
1301
  break;
@@ -1090,13 +1305,21 @@ export const RequestMeta = {
1090
1305
  return message;
1091
1306
  },
1092
1307
  fromJSON(object) {
1093
- return { tag: isSet(object.tag) ? globalThis.String(object.tag) : "" };
1308
+ return {
1309
+ tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
1310
+ capabilities: globalThis.Array.isArray(object?.capabilities)
1311
+ ? object.capabilities.map((e) => capabilityFromJSON(e))
1312
+ : [],
1313
+ };
1094
1314
  },
1095
1315
  toJSON(message) {
1096
1316
  const obj = {};
1097
1317
  if (message.tag !== "") {
1098
1318
  obj.tag = message.tag;
1099
1319
  }
1320
+ if (message.capabilities?.length) {
1321
+ obj.capabilities = message.capabilities.map((e) => capabilityToJSON(e));
1322
+ }
1100
1323
  return obj;
1101
1324
  },
1102
1325
  create(base) {
@@ -1105,11 +1328,12 @@ export const RequestMeta = {
1105
1328
  fromPartial(object) {
1106
1329
  const message = createBaseRequestMeta();
1107
1330
  message.tag = object.tag ?? "";
1331
+ message.capabilities = object.capabilities?.map((e) => e) || [];
1108
1332
  return message;
1109
1333
  },
1110
1334
  };
1111
1335
  function createBaseRequirements() {
1112
- return { extraResources: {}, resources: {} };
1336
+ return { extraResources: {}, resources: {}, schemas: {} };
1113
1337
  }
1114
1338
  export const Requirements = {
1115
1339
  encode(message, writer = new BinaryWriter()) {
@@ -1119,6 +1343,9 @@ export const Requirements = {
1119
1343
  globalThis.Object.entries(message.resources).forEach(([key, value]) => {
1120
1344
  Requirements_ResourcesEntry.encode({ key: key, value }, writer.uint32(18).fork()).join();
1121
1345
  });
1346
+ globalThis.Object.entries(message.schemas).forEach(([key, value]) => {
1347
+ Requirements_SchemasEntry.encode({ key: key, value }, writer.uint32(26).fork()).join();
1348
+ });
1122
1349
  return writer;
1123
1350
  },
1124
1351
  decode(input, length) {
@@ -1148,6 +1375,16 @@ export const Requirements = {
1148
1375
  }
1149
1376
  continue;
1150
1377
  }
1378
+ case 3: {
1379
+ if (tag !== 26) {
1380
+ break;
1381
+ }
1382
+ const entry3 = Requirements_SchemasEntry.decode(reader, reader.uint32());
1383
+ if (entry3.value !== undefined) {
1384
+ message.schemas[entry3.key] = entry3.value;
1385
+ }
1386
+ continue;
1387
+ }
1151
1388
  }
1152
1389
  if ((tag & 7) === 4 || tag === 0) {
1153
1390
  break;
@@ -1175,6 +1412,12 @@ export const Requirements = {
1175
1412
  return acc;
1176
1413
  }, {})
1177
1414
  : {},
1415
+ schemas: isObject(object.schemas)
1416
+ ? globalThis.Object.entries(object.schemas).reduce((acc, [key, value]) => {
1417
+ acc[key] = SchemaSelector.fromJSON(value);
1418
+ return acc;
1419
+ }, {})
1420
+ : {},
1178
1421
  };
1179
1422
  },
1180
1423
  toJSON(message) {
@@ -1197,6 +1440,15 @@ export const Requirements = {
1197
1440
  });
1198
1441
  }
1199
1442
  }
1443
+ if (message.schemas) {
1444
+ const entries = globalThis.Object.entries(message.schemas);
1445
+ if (entries.length > 0) {
1446
+ obj.schemas = {};
1447
+ entries.forEach(([k, v]) => {
1448
+ obj.schemas[k] = SchemaSelector.toJSON(v);
1449
+ });
1450
+ }
1451
+ }
1200
1452
  return obj;
1201
1453
  },
1202
1454
  create(base) {
@@ -1217,6 +1469,12 @@ export const Requirements = {
1217
1469
  }
1218
1470
  return acc;
1219
1471
  }, {});
1472
+ message.schemas = globalThis.Object.entries(object.schemas ?? {}).reduce((acc, [key, value]) => {
1473
+ if (value !== undefined) {
1474
+ acc[key] = SchemaSelector.fromPartial(value);
1475
+ }
1476
+ return acc;
1477
+ }, {});
1220
1478
  return message;
1221
1479
  },
1222
1480
  };
@@ -1360,6 +1618,205 @@ export const Requirements_ResourcesEntry = {
1360
1618
  return message;
1361
1619
  },
1362
1620
  };
1621
+ function createBaseRequirements_SchemasEntry() {
1622
+ return { key: "", value: undefined };
1623
+ }
1624
+ export const Requirements_SchemasEntry = {
1625
+ encode(message, writer = new BinaryWriter()) {
1626
+ if (message.key !== "") {
1627
+ writer.uint32(10).string(message.key);
1628
+ }
1629
+ if (message.value !== undefined) {
1630
+ SchemaSelector.encode(message.value, writer.uint32(18).fork()).join();
1631
+ }
1632
+ return writer;
1633
+ },
1634
+ decode(input, length) {
1635
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1636
+ const end = length === undefined ? reader.len : reader.pos + length;
1637
+ const message = createBaseRequirements_SchemasEntry();
1638
+ while (reader.pos < end) {
1639
+ const tag = reader.uint32();
1640
+ switch (tag >>> 3) {
1641
+ case 1: {
1642
+ if (tag !== 10) {
1643
+ break;
1644
+ }
1645
+ message.key = reader.string();
1646
+ continue;
1647
+ }
1648
+ case 2: {
1649
+ if (tag !== 18) {
1650
+ break;
1651
+ }
1652
+ message.value = SchemaSelector.decode(reader, reader.uint32());
1653
+ continue;
1654
+ }
1655
+ }
1656
+ if ((tag & 7) === 4 || tag === 0) {
1657
+ break;
1658
+ }
1659
+ reader.skip(tag & 7);
1660
+ }
1661
+ return message;
1662
+ },
1663
+ fromJSON(object) {
1664
+ return {
1665
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
1666
+ value: isSet(object.value) ? SchemaSelector.fromJSON(object.value) : undefined,
1667
+ };
1668
+ },
1669
+ toJSON(message) {
1670
+ const obj = {};
1671
+ if (message.key !== "") {
1672
+ obj.key = message.key;
1673
+ }
1674
+ if (message.value !== undefined) {
1675
+ obj.value = SchemaSelector.toJSON(message.value);
1676
+ }
1677
+ return obj;
1678
+ },
1679
+ create(base) {
1680
+ return Requirements_SchemasEntry.fromPartial(base ?? {});
1681
+ },
1682
+ fromPartial(object) {
1683
+ const message = createBaseRequirements_SchemasEntry();
1684
+ message.key = object.key ?? "";
1685
+ message.value = (object.value !== undefined && object.value !== null)
1686
+ ? SchemaSelector.fromPartial(object.value)
1687
+ : undefined;
1688
+ return message;
1689
+ },
1690
+ };
1691
+ function createBaseSchemaSelector() {
1692
+ return { apiVersion: "", kind: "" };
1693
+ }
1694
+ export const SchemaSelector = {
1695
+ encode(message, writer = new BinaryWriter()) {
1696
+ if (message.apiVersion !== "") {
1697
+ writer.uint32(10).string(message.apiVersion);
1698
+ }
1699
+ if (message.kind !== "") {
1700
+ writer.uint32(18).string(message.kind);
1701
+ }
1702
+ return writer;
1703
+ },
1704
+ decode(input, length) {
1705
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1706
+ const end = length === undefined ? reader.len : reader.pos + length;
1707
+ const message = createBaseSchemaSelector();
1708
+ while (reader.pos < end) {
1709
+ const tag = reader.uint32();
1710
+ switch (tag >>> 3) {
1711
+ case 1: {
1712
+ if (tag !== 10) {
1713
+ break;
1714
+ }
1715
+ message.apiVersion = reader.string();
1716
+ continue;
1717
+ }
1718
+ case 2: {
1719
+ if (tag !== 18) {
1720
+ break;
1721
+ }
1722
+ message.kind = reader.string();
1723
+ continue;
1724
+ }
1725
+ }
1726
+ if ((tag & 7) === 4 || tag === 0) {
1727
+ break;
1728
+ }
1729
+ reader.skip(tag & 7);
1730
+ }
1731
+ return message;
1732
+ },
1733
+ fromJSON(object) {
1734
+ return {
1735
+ apiVersion: isSet(object.apiVersion)
1736
+ ? globalThis.String(object.apiVersion)
1737
+ : isSet(object.api_version)
1738
+ ? globalThis.String(object.api_version)
1739
+ : "",
1740
+ kind: isSet(object.kind) ? globalThis.String(object.kind) : "",
1741
+ };
1742
+ },
1743
+ toJSON(message) {
1744
+ const obj = {};
1745
+ if (message.apiVersion !== "") {
1746
+ obj.apiVersion = message.apiVersion;
1747
+ }
1748
+ if (message.kind !== "") {
1749
+ obj.kind = message.kind;
1750
+ }
1751
+ return obj;
1752
+ },
1753
+ create(base) {
1754
+ return SchemaSelector.fromPartial(base ?? {});
1755
+ },
1756
+ fromPartial(object) {
1757
+ const message = createBaseSchemaSelector();
1758
+ message.apiVersion = object.apiVersion ?? "";
1759
+ message.kind = object.kind ?? "";
1760
+ return message;
1761
+ },
1762
+ };
1763
+ function createBaseSchema() {
1764
+ return { openapiV3: undefined };
1765
+ }
1766
+ export const Schema = {
1767
+ encode(message, writer = new BinaryWriter()) {
1768
+ if (message.openapiV3 !== undefined) {
1769
+ Struct.encode(Struct.wrap(message.openapiV3), writer.uint32(10).fork()).join();
1770
+ }
1771
+ return writer;
1772
+ },
1773
+ decode(input, length) {
1774
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1775
+ const end = length === undefined ? reader.len : reader.pos + length;
1776
+ const message = createBaseSchema();
1777
+ while (reader.pos < end) {
1778
+ const tag = reader.uint32();
1779
+ switch (tag >>> 3) {
1780
+ case 1: {
1781
+ if (tag !== 10) {
1782
+ break;
1783
+ }
1784
+ message.openapiV3 = Struct.unwrap(Struct.decode(reader, reader.uint32()));
1785
+ continue;
1786
+ }
1787
+ }
1788
+ if ((tag & 7) === 4 || tag === 0) {
1789
+ break;
1790
+ }
1791
+ reader.skip(tag & 7);
1792
+ }
1793
+ return message;
1794
+ },
1795
+ fromJSON(object) {
1796
+ return {
1797
+ openapiV3: isObject(object.openapiV3)
1798
+ ? object.openapiV3
1799
+ : isObject(object.openapi_v3)
1800
+ ? object.openapi_v3
1801
+ : undefined,
1802
+ };
1803
+ },
1804
+ toJSON(message) {
1805
+ const obj = {};
1806
+ if (message.openapiV3 !== undefined) {
1807
+ obj.openapiV3 = message.openapiV3;
1808
+ }
1809
+ return obj;
1810
+ },
1811
+ create(base) {
1812
+ return Schema.fromPartial(base ?? {});
1813
+ },
1814
+ fromPartial(object) {
1815
+ const message = createBaseSchema();
1816
+ message.openapiV3 = object.openapiV3 ?? undefined;
1817
+ return message;
1818
+ },
1819
+ };
1363
1820
  function createBaseResourceSelector() {
1364
1821
  return { apiVersion: "", kind: "", matchName: undefined, matchLabels: undefined, namespace: undefined };
1365
1822
  }