@openshift-assisted/types 2.53.0 → 2.54.0

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.
@@ -103,9 +103,23 @@ export interface Bundle {
103
103
  */
104
104
  description?: string;
105
105
  /**
106
- * List of operators associated with the bundle.
106
+ * List of operators always included in the bundle.
107
107
  */
108
108
  operators?: string[];
109
+ /**
110
+ * List of operators that can be optionally selected by the user for this bundle. All are selected by default.
111
+ */
112
+ optionalOperators?: string[];
113
+ }
114
+ export interface BundleCreateParams {
115
+ /**
116
+ * Bundle identifier (e.g., "openshift-ai").
117
+ */
118
+ id: string;
119
+ /**
120
+ * List of optional operator names the user selected for this bundle.
121
+ */
122
+ optionalOperators?: string[];
109
123
  }
110
124
  export interface Cluster {
111
125
  /**
@@ -332,10 +346,18 @@ export interface Cluster {
332
346
  * A comma-separated list of NTP sources (name or IP) going to be added to all the hosts.
333
347
  */
334
348
  additionalNtpSource?: string;
349
+ /**
350
+ * A comma-separated list of NTP sources (name or IP) to be used as the only NTP configuration for the cluster hosts.
351
+ */
352
+ ntpSources?: string;
335
353
  /**
336
354
  * Operators that are associated with this cluster.
337
355
  */
338
356
  monitoredOperators?: MonitoredOperator[];
357
+ /**
358
+ * Bundles that were selected for this cluster, with the optional operators chosen by the user. Derived from monitored operators' sourceBundles. Not persisted directly.
359
+ */
360
+ operatorBundles?: BundleCreateParams[];
339
361
  /**
340
362
  * Unique identifier of the AMS subscription in OCM.
341
363
  */
@@ -494,11 +516,22 @@ export interface ClusterCreateParams {
494
516
  */
495
517
  additionalNtpSource?: string;
496
518
  /**
497
- * List of OLM operators to be installed.
519
+ * A comma-separated list of NTP sources (name or IP) to be used as the only NTP configuration for the cluster hosts.
520
+ */
521
+ ntpSources?: string;
522
+ /**
523
+ * List of standalone OLM operators to be installed (not part of any bundle).
498
524
  * For the full list of supported operators, check the endpoint `/v2/supported-operators`:
499
525
  *
500
526
  */
501
527
  olmOperators?: OperatorCreateParams[];
528
+ /**
529
+ * List of operator bundles selected by the user with their optional operator choices.
530
+ * The backend expands bundles into their required operators, adds selected optional operators,
531
+ * resolves all dependencies, and tracks bundle membership via sourceBundles on monitored operators.
532
+ *
533
+ */
534
+ operatorBundles?: BundleCreateParams[];
502
535
  /**
503
536
  * Enable/disable hyperthreading on master nodes, arbiter nodes, worker nodes, or a combination of them.
504
537
  */
@@ -2366,6 +2399,10 @@ export interface MonitoredOperator {
2366
2399
  * Whether the operator can't be installed without being required by another operator.
2367
2400
  */
2368
2401
  dependencyOnly?: boolean;
2402
+ /**
2403
+ * IDs of the bundles this operator was selected through. Empty for standalone selections. An operator can belong to multiple bundles.
2404
+ */
2405
+ sourceBundles?: string[];
2369
2406
  }
2370
2407
  export type MonitoredOperatorsList = MonitoredOperator[];
2371
2408
  export interface MtuReport {
@@ -2935,11 +2972,22 @@ export interface V2ClusterUpdateParams {
2935
2972
  */
2936
2973
  additionalNtpSource?: string;
2937
2974
  /**
2938
- * List of OLM operators to be installed.
2975
+ * A comma-separated list of NTP sources (name or IP) to be used as the only NTP configuration for the cluster hosts.
2976
+ */
2977
+ ntpSources?: string;
2978
+ /**
2979
+ * List of standalone OLM operators to be installed (not part of any bundle).
2939
2980
  * For the full list of supported operators, check the endpoint `/v2/supported-operators`:
2940
2981
  *
2941
2982
  */
2942
2983
  olmOperators?: OperatorCreateParams[];
2984
+ /**
2985
+ * List of operator bundles selected by the user with their optional operator choices.
2986
+ * The backend expands bundles into their required operators, adds selected optional operators,
2987
+ * resolves all dependencies, and tracks bundle membership via sourceBundles on monitored operators.
2988
+ *
2989
+ */
2990
+ operatorBundles?: BundleCreateParams[];
2943
2991
  /**
2944
2992
  * Enable/disable hyperthreading on master nodes, arbiter nodes, worker nodes, or a combination of them.
2945
2993
  */
package/package.json CHANGED
@@ -43,9 +43,9 @@
43
43
  "lint": "yarn run -T eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache ."
44
44
  },
45
45
  "devDependencies": {
46
- "@types/js-yaml": "^4.0.1",
47
- "js-yaml": "^4.1.1",
46
+ "@types/js-yaml": "^4.0.9",
47
+ "js-yaml": "^4.2.0",
48
48
  "sw2dts": "^2.6.3"
49
49
  },
50
- "version": "2.53.0"
50
+ "version": "2.54.0"
51
51
  }