@openshift-assisted/ui-lib 2.14.12-cim → 2.14.14-cim

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.
Files changed (23) hide show
  1. package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.d.ts.map +1 -1
  2. package/build/@types/cim/components/Hypershift/forms/NodePoolAgentsForm.d.ts.map +1 -1
  3. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +24 -24
  4. package/build/@types/common/api/assisted-service/ComponentVersionsAPI.d.ts +1 -1
  5. package/build/@types/common/api/assisted-service/EventsAPI.d.ts +1 -1
  6. package/build/@types/common/api/assisted-service/HostsAPI.d.ts +6 -6
  7. package/build/@types/common/api/assisted-service/InfraEnvsAPI.d.ts +7 -7
  8. package/build/@types/common/api/assisted-service/ManagedDomainsAPI.d.ts +1 -1
  9. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts +2 -2
  10. package/build/@types/common/api/assisted-service/SupportedOpenshiftVersionsAPI.d.ts +1 -1
  11. package/build/@types/common/api/assisted-service/UISettingsAPI.d.ts +2 -2
  12. package/build/@types/ocm/services/ClustersService.d.ts +5 -5
  13. package/build/@types/ocm/services/HostsService.d.ts +11 -11
  14. package/build/@types/ocm/services/InfraEnvsService.d.ts +2 -2
  15. package/build/@types/ocm/services/UISettingsService.d.ts +1 -1
  16. package/build/@types/ocm/store/slices/infra-envs/thunks.d.ts +1 -1
  17. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.js +0 -28
  18. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.js.map +1 -1
  19. package/build/cjs/cim/components/Hypershift/forms/NodePoolAgentsForm.js +8 -3
  20. package/build/cjs/cim/components/Hypershift/forms/NodePoolAgentsForm.js.map +1 -1
  21. package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.tsx +1 -33
  22. package/lib/cim/components/Hypershift/forms/NodePoolAgentsForm.tsx +24 -12
  23. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"NodePoolForm.d.ts","sourceRoot":"","sources":["../../../../../../../lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAQ1E,OAAO,oBAAoB,CAAC;AAG5B,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuI7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"NodePoolForm.d.ts","sourceRoot":"","sources":["../../../../../../../lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAO1E,OAAO,oBAAoB,CAAC;AAG5B,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwG7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NodePoolAgentsForm.d.ts","sourceRoot":"","sources":["../../../../../../lib/cim/components/Hypershift/forms/NodePoolAgentsForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIlD,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,kBAAkB,8FAQrB,uBAAuB,sBAiEzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"NodePoolAgentsForm.d.ts","sourceRoot":"","sources":["../../../../../../lib/cim/components/Hypershift/forms/NodePoolAgentsForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIlD,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,kBAAkB,8FAQrB,uBAAuB,sBA6EzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -15,30 +15,30 @@ declare const ClustersAPI: {
15
15
  makeDownloadsCredentialsPresignedBaseURI(clusterId: Cluster['id']): string;
16
16
  makeDownloadsFilesPresignedBaseURI(clusterId: Cluster['id']): string;
17
17
  makeActionsBaseURI(clusterId: string): string;
18
- downloadClusterCredentials(clusterId: Cluster['id'], fileName: string): Promise<AxiosResponse<Blob, any>>;
19
- getPresignedForClusterCredentials({ clusterId, fileName, hostId, logsType, }: ClustersAPIGetPresignedOptions): Promise<AxiosResponse<PresignedUrl, any>>;
20
- getPresignedForClusterFiles({ clusterId, fileName, hostId, logsType, }: ClustersAPIGetPresignedOptions): Promise<AxiosResponse<PresignedUrl, any>>;
21
- list(): Promise<AxiosResponse<Cluster[], any>>;
22
- get(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any>>;
23
- getPreflightRequirements(clusterId: Cluster['id']): Promise<AxiosResponse<PreflightHardwareRequirements, any>>;
24
- getDefaultConfig(): Promise<AxiosResponse<ClusterDefaultConfig, any>>;
25
- deregister(clusterId: Cluster['id']): Promise<AxiosResponse<void, any>>;
26
- register(params: ClusterCreateParams): Promise<AxiosResponse<Cluster, any>>;
27
- update(clusterId: Cluster['id'], params: V2ClusterUpdateParams): Promise<AxiosResponse<Cluster, any>>;
28
- install(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any>>;
29
- cancel(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any>>;
30
- reset(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any>>;
31
- registerAddHosts(params: ImportClusterParams): Promise<AxiosResponse<Cluster, any>>;
32
- allowAddHosts(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any>>;
33
- downloadLogs(clusterId: Cluster['id'], hostId?: Host['id']): Promise<AxiosResponse<Blob, any>>;
34
- getCredentials(clusterId: Cluster['id']): Promise<AxiosResponse<Credentials, any>>;
35
- listByOpenshiftId(openshiftId: Cluster['openshiftClusterId']): Promise<AxiosResponse<Cluster[], any>>;
36
- listBySubscriptionIds(subscriptionIds: Cluster['amsSubscriptionId'][]): Promise<AxiosResponse<Cluster[], any>>;
37
- getManifests(clusterId: Cluster['id']): Promise<AxiosResponse<ListManifests, any>>;
38
- createCustomManifest(clusterId: Cluster['id'], params: CreateManifestParams): Promise<AxiosResponse<Manifest, any>>;
39
- removeCustomManifest(clusterId: Cluster['id'], folderName: string, fileName: string): Promise<AxiosResponse<void, any>>;
40
- getManifestContent(clusterId: Cluster['id'], folderName: string, fileName: string): Promise<AxiosResponse<Blob, any>>;
41
- updateCustomManifest(clusterId: Cluster['id'], params: UpdateManifestParams): Promise<AxiosResponse<Manifest, any>>;
18
+ downloadClusterCredentials(clusterId: Cluster['id'], fileName: string): Promise<AxiosResponse<Blob, any, {}>>;
19
+ getPresignedForClusterCredentials({ clusterId, fileName, hostId, logsType, }: ClustersAPIGetPresignedOptions): Promise<AxiosResponse<PresignedUrl, any, {}>>;
20
+ getPresignedForClusterFiles({ clusterId, fileName, hostId, logsType, }: ClustersAPIGetPresignedOptions): Promise<AxiosResponse<PresignedUrl, any, {}>>;
21
+ list(): Promise<AxiosResponse<Cluster[], any, {}>>;
22
+ get(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any, {}>>;
23
+ getPreflightRequirements(clusterId: Cluster['id']): Promise<AxiosResponse<PreflightHardwareRequirements, any, {}>>;
24
+ getDefaultConfig(): Promise<AxiosResponse<ClusterDefaultConfig, any, {}>>;
25
+ deregister(clusterId: Cluster['id']): Promise<AxiosResponse<void, any, {}>>;
26
+ register(params: ClusterCreateParams): Promise<AxiosResponse<Cluster, any, {}>>;
27
+ update(clusterId: Cluster['id'], params: V2ClusterUpdateParams): Promise<AxiosResponse<Cluster, any, {}>>;
28
+ install(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any, {}>>;
29
+ cancel(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any, {}>>;
30
+ reset(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any, {}>>;
31
+ registerAddHosts(params: ImportClusterParams): Promise<AxiosResponse<Cluster, any, {}>>;
32
+ allowAddHosts(clusterId: Cluster['id']): Promise<AxiosResponse<Cluster, any, {}>>;
33
+ downloadLogs(clusterId: Cluster['id'], hostId?: Host['id']): Promise<AxiosResponse<Blob, any, {}>>;
34
+ getCredentials(clusterId: Cluster['id']): Promise<AxiosResponse<Credentials, any, {}>>;
35
+ listByOpenshiftId(openshiftId: Cluster['openshiftClusterId']): Promise<AxiosResponse<Cluster[], any, {}>>;
36
+ listBySubscriptionIds(subscriptionIds: Cluster['amsSubscriptionId'][]): Promise<AxiosResponse<Cluster[], any, {}>>;
37
+ getManifests(clusterId: Cluster['id']): Promise<AxiosResponse<ListManifests, any, {}>>;
38
+ createCustomManifest(clusterId: Cluster['id'], params: CreateManifestParams): Promise<AxiosResponse<Manifest, any, {}>>;
39
+ removeCustomManifest(clusterId: Cluster['id'], folderName: string, fileName: string): Promise<AxiosResponse<void, any, {}>>;
40
+ getManifestContent(clusterId: Cluster['id'], folderName: string, fileName: string): Promise<AxiosResponse<Blob, any, {}>>;
41
+ updateCustomManifest(clusterId: Cluster['id'], params: UpdateManifestParams): Promise<AxiosResponse<Manifest, any, {}>>;
42
42
  };
43
43
  export default ClustersAPI;
44
44
  //# sourceMappingURL=ClustersAPI.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { ListVersions } from '@openshift-assisted/types/assisted-installer-service';
2
2
  declare const ComponentVersionsAPI: {
3
3
  makeBaseURI(): string;
4
- list(): Promise<import("axios").AxiosResponse<ListVersions, any>>;
4
+ list(): Promise<import("axios").AxiosResponse<ListVersions, any, {}>>;
5
5
  };
6
6
  export default ComponentVersionsAPI;
7
7
  //# sourceMappingURL=ComponentVersionsAPI.d.ts.map
@@ -3,7 +3,7 @@ declare const EventsAPI: {
3
3
  makeBaseURI(): string;
4
4
  abort(): void;
5
5
  createParams({ clusterId, hostIds, infraEnvId, severities, deletedHosts, clusterLevel, message, limit, offset, }: V2Events): string;
6
- list(options: V2Events): Promise<import("axios").AxiosResponse<EventList, any>>;
6
+ list(options: V2Events): Promise<import("axios").AxiosResponse<EventList, any, {}>>;
7
7
  };
8
8
  export default EventsAPI;
9
9
  //# sourceMappingURL=EventsAPI.d.ts.map
@@ -4,12 +4,12 @@ declare const HostsAPI: {
4
4
  abortLastGetRequest(): void;
5
5
  makeBaseURI(infraEnvId: InfraEnv['id'], hostId?: Host['id']): string;
6
6
  makeActionsBaseURI(infraEnvId: InfraEnv['id'], hostId: Host['id']): string;
7
- list(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<Host[], any>>;
8
- get(infraEnvId: InfraEnv['id'], hostId: Host['id']): Promise<AxiosResponse<Host, any>>;
9
- update(infraEnvId: InfraEnv['id'], hostId: Host['id'], params: HostUpdateParams): Promise<AxiosResponse<Host, any>>;
10
- deregister(infraEnvId: InfraEnv['id'], hostId: Host['id']): Promise<AxiosResponse<void, any>>;
11
- reset(infraEnvId: InfraEnv['id'], hostId: Host['id']): Promise<AxiosResponse<Host, any>>;
12
- installHost(infraEnvId: InfraEnv['id'], hostId: Host['id']): Promise<AxiosResponse<Host, any>>;
7
+ list(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<Host[], any, {}>>;
8
+ get(infraEnvId: InfraEnv['id'], hostId: Host['id']): Promise<AxiosResponse<Host, any, {}>>;
9
+ update(infraEnvId: InfraEnv['id'], hostId: Host['id'], params: HostUpdateParams): Promise<AxiosResponse<Host, any, {}>>;
10
+ deregister(infraEnvId: InfraEnv['id'], hostId: Host['id']): Promise<AxiosResponse<void, any, {}>>;
11
+ reset(infraEnvId: InfraEnv['id'], hostId: Host['id']): Promise<AxiosResponse<Host, any, {}>>;
12
+ installHost(infraEnvId: InfraEnv['id'], hostId: Host['id']): Promise<AxiosResponse<Host, any, {}>>;
13
13
  };
14
14
  export default HostsAPI;
15
15
  //# sourceMappingURL=HostsAPI.d.ts.map
@@ -7,13 +7,13 @@ declare const InfraEnvsAPI: {
7
7
  * Retrieves the list of infra-envs.
8
8
  * @param clusterId If provided, returns only infra-envs which directly reference the given clusterId.
9
9
  */
10
- list(clusterId?: string): Promise<AxiosResponse<InfraEnv[], any>>;
11
- get(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<InfraEnv, any>>;
12
- update(infraEnvId: InfraEnv['id'], params: InfraEnvUpdateParams): Promise<AxiosResponse<InfraEnv, any>>;
13
- register(params: InfraEnvCreateParams): Promise<AxiosResponse<InfraEnv, any>>;
14
- deregister(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<void, any>>;
15
- getImageUrl(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<PresignedUrl, any>>;
16
- getIpxeImageUrl(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<PresignedUrl, any>>;
10
+ list(clusterId?: string): Promise<AxiosResponse<InfraEnv[], any, {}>>;
11
+ get(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<InfraEnv, any, {}>>;
12
+ update(infraEnvId: InfraEnv['id'], params: InfraEnvUpdateParams): Promise<AxiosResponse<InfraEnv, any, {}>>;
13
+ register(params: InfraEnvCreateParams): Promise<AxiosResponse<InfraEnv, any, {}>>;
14
+ deregister(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<void, any, {}>>;
15
+ getImageUrl(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<PresignedUrl, any, {}>>;
16
+ getIpxeImageUrl(infraEnvId: InfraEnv['id']): Promise<AxiosResponse<PresignedUrl, any, {}>>;
17
17
  };
18
18
  export default InfraEnvsAPI;
19
19
  //# sourceMappingURL=InfraEnvsAPI.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { ManagedDomain } from '@openshift-assisted/types/assisted-installer-service';
2
2
  declare const ManagedDomainsAPI: {
3
3
  makeBaseURI(): string;
4
- list(): Promise<import("axios").AxiosResponse<ManagedDomain[], any>>;
4
+ list(): Promise<import("axios").AxiosResponse<ManagedDomain[], any, {}>>;
5
5
  };
6
6
  export default ManagedDomainsAPI;
7
7
  //# sourceMappingURL=ManagedDomainsAPI.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { ArchitecturesSupportsLevel, FeaturesSupportsLevel } from '../../components/featureSupportLevels/types';
2
2
  declare const NewFeatureSupportLevelsAPI: {
3
3
  makeBaseURI(): string;
4
- featuresSupportLevel(openshiftVersion: string, cpuArchitecture?: string, platformType?: string): Promise<import("axios").AxiosResponse<FeaturesSupportsLevel, any>>;
5
- architecturesSupportLevel(openshiftVersion: string): Promise<import("axios").AxiosResponse<ArchitecturesSupportsLevel, any>>;
4
+ featuresSupportLevel(openshiftVersion: string, cpuArchitecture?: string, platformType?: string): Promise<import("axios").AxiosResponse<FeaturesSupportsLevel, any, {}>>;
5
+ architecturesSupportLevel(openshiftVersion: string): Promise<import("axios").AxiosResponse<ArchitecturesSupportsLevel, any, {}>>;
6
6
  };
7
7
  export default NewFeatureSupportLevelsAPI;
8
8
  //# sourceMappingURL=NewFeatureSupportLevelsAPI.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { OpenshiftVersion } from '@openshift-assisted/types/assisted-installer-service';
2
2
  declare const SupportedOpenshiftVersionsAPI: {
3
3
  makeBaseURI(latestRelease: boolean): string;
4
- list(latestRelease: boolean): Promise<import("axios").AxiosResponse<OpenshiftVersion[], any>>;
4
+ list(latestRelease: boolean): Promise<import("axios").AxiosResponse<OpenshiftVersion[], any, {}>>;
5
5
  };
6
6
  export default SupportedOpenshiftVersionsAPI;
7
7
  //# sourceMappingURL=SupportedOpenshiftVersionsAPI.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { Cluster } from '@openshift-assisted/types/./assisted-installer-service';
2
2
  declare const UISettingsAPI: {
3
3
  makeBaseURI(clusterId: Cluster['id']): string;
4
- get(clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<string, any>>;
5
- put(clusterId: Cluster['id'], data: string): Promise<import("axios").AxiosResponse<string, any>>;
4
+ get(clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<string, any, {}>>;
5
+ put(clusterId: Cluster['id'], data: string): Promise<import("axios").AxiosResponse<string, any, {}>>;
6
6
  };
7
7
  export default UISettingsAPI;
8
8
  //# sourceMappingURL=UISettingsAPI.d.ts.map
@@ -9,8 +9,8 @@ declare const ClustersService: {
9
9
  data: Blob;
10
10
  fileName: string | undefined;
11
11
  }>;
12
- update(clusterId: Cluster['id'], clusterTags: Cluster['tags'], params: V2ClusterUpdateParams): Promise<import("axios").AxiosResponse<Cluster, any>>;
13
- install(clusterId: Cluster['id'], clusterTags: Cluster['tags']): Promise<import("axios").AxiosResponse<Cluster, any>>;
12
+ update(clusterId: Cluster['id'], clusterTags: Cluster['tags'], params: V2ClusterUpdateParams): Promise<import("axios").AxiosResponse<Cluster, any, {}>>;
13
+ install(clusterId: Cluster['id'], clusterTags: Cluster['tags']): Promise<import("axios").AxiosResponse<Cluster, any, {}>>;
14
14
  updateClusterTags(clusterTags: Cluster['tags'], params: V2ClusterUpdateParams): V2ClusterUpdateParams;
15
15
  get(clusterId: Cluster['id']): Promise<Cluster>;
16
16
  transformFormViewManifest(manifest: CustomManifestValues): {
@@ -19,9 +19,9 @@ declare const ClustersService: {
19
19
  content: string;
20
20
  };
21
21
  getUpdateManifestParams(existingManifest: CustomManifestValues, updatedManifest: CustomManifestValues): UpdateManifestParams;
22
- createClusterManifests(manifests: CustomManifestValues[], clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<import("@openshift-assisted/types/assisted-installer-service").Manifest, any>[]>;
23
- removeClusterManifests(customManifests: ListManifestsExtended, clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<void, any>[]>;
24
- updateCustomManifest(existingManifest: CustomManifestValues, updatedManifest: CustomManifestValues, clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<import("@openshift-assisted/types/assisted-installer-service").Manifest, any>>;
22
+ createClusterManifests(manifests: CustomManifestValues[], clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<import("@openshift-assisted/types/assisted-installer-service").Manifest, any, {}>[]>;
23
+ removeClusterManifests(customManifests: ListManifestsExtended, clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<void, any, {}>[]>;
24
+ updateCustomManifest(existingManifest: CustomManifestValues, updatedManifest: CustomManifestValues, clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<import("@openshift-assisted/types/assisted-installer-service").Manifest, any, {}>>;
25
25
  };
26
26
  export default ClustersService;
27
27
  //# sourceMappingURL=ClustersService.d.ts.map
@@ -5,17 +5,17 @@ declare const HostsService: {
5
5
  * all of them have a valid infraEnvId value.
6
6
  * @param hosts
7
7
  */
8
- removeAll(hosts: Host[]): Promise<import("axios").AxiosResponse<void, any>[]>;
9
- update(host: Host, params: HostUpdateParams): Promise<import("axios").AxiosResponse<Host, any>>;
10
- updateHostName(host: Host, newHostName: HostUpdateParams['hostName']): Promise<import("axios").AxiosResponse<Host, any>>;
11
- updateRole(host: Host, newHostRole: HostUpdateParams['hostRole']): Promise<import("axios").AxiosResponse<Host, any>>;
12
- updateHostODF(host: Host, newNodeLabels: HostUpdateParams['nodeLabels']): Promise<import("axios").AxiosResponse<Host, any>>;
13
- updateDiskRole(host: Host, diskId: Required<Disk>['id'], newDiskRole: DiskRole): Promise<import("axios").AxiosResponse<Host, any>>;
14
- updateFormattingDisks(host: Host, diskIdValue: Required<Disk>['id'], shouldSkipFormat: boolean): Promise<import("axios").AxiosResponse<Host, any>>;
15
- delete(host: Host): Promise<import("axios").AxiosResponse<void, any>>;
16
- reset(host: Host): Promise<import("axios").AxiosResponse<Host, any>>;
17
- install(host: Host): Promise<import("axios").AxiosResponse<Host, any>>;
18
- installAll(hosts: Host[]): Promise<import("axios").AxiosResponse<Host, any>[]>;
8
+ removeAll(hosts: Host[]): Promise<import("axios").AxiosResponse<void, any, {}>[]>;
9
+ update(host: Host, params: HostUpdateParams): Promise<import("axios").AxiosResponse<Host, any, {}>>;
10
+ updateHostName(host: Host, newHostName: HostUpdateParams['hostName']): Promise<import("axios").AxiosResponse<Host, any, {}>>;
11
+ updateRole(host: Host, newHostRole: HostUpdateParams['hostRole']): Promise<import("axios").AxiosResponse<Host, any, {}>>;
12
+ updateHostODF(host: Host, newNodeLabels: HostUpdateParams['nodeLabels']): Promise<import("axios").AxiosResponse<Host, any, {}>>;
13
+ updateDiskRole(host: Host, diskId: Required<Disk>['id'], newDiskRole: DiskRole): Promise<import("axios").AxiosResponse<Host, any, {}>>;
14
+ updateFormattingDisks(host: Host, diskIdValue: Required<Disk>['id'], shouldSkipFormat: boolean): Promise<import("axios").AxiosResponse<Host, any, {}>>;
15
+ delete(host: Host): Promise<import("axios").AxiosResponse<void, any, {}>>;
16
+ reset(host: Host): Promise<import("axios").AxiosResponse<Host, any, {}>>;
17
+ install(host: Host): Promise<import("axios").AxiosResponse<Host, any, {}>>;
18
+ installAll(hosts: Host[]): Promise<import("axios").AxiosResponse<Host, any, {}>[]>;
19
19
  };
20
20
  export default HostsService;
21
21
  //# sourceMappingURL=HostsService.d.ts.map
@@ -7,8 +7,8 @@ declare const InfraEnvsService: {
7
7
  getAllInfraEnvIds(clusterId: Cluster['id']): Promise<string[]>;
8
8
  getAllInfraEnvs(clusterId: Cluster['id']): Promise<InfraEnv[]>;
9
9
  create(params: InfraEnvCreateParams): Promise<InfraEnv>;
10
- removeAll(clusterId: Cluster['id']): Promise<AxiosResponse<void, any>[]>;
11
- updateAllInfraEnvsToDhcp(clusterId: Cluster['id']): Promise<AxiosResponse<InfraEnv, any>[]>;
10
+ removeAll(clusterId: Cluster['id']): Promise<AxiosResponse<void, any, {}>[]>;
11
+ updateAllInfraEnvsToDhcp(clusterId: Cluster['id']): Promise<AxiosResponse<InfraEnv, any, {}>[]>;
12
12
  setDummyStaticConfigToInfraEnv(infraEnvId: InfraEnv['id']): Promise<InfraEnv>;
13
13
  syncStaticIpConfigs(clusterId: Cluster['id'], currentInfraEnvId: InfraEnv['id'], staticNetworkConfig: HostStaticNetworkConfig[]): Promise<InfraEnv>;
14
14
  makeInfraEnvName(cpuArchitecture: string, name?: string): string;
@@ -2,7 +2,7 @@ import { Cluster } from '@openshift-assisted/types/./assisted-installer-service'
2
2
  import { UISettingsValues } from '../../common';
3
3
  declare const UISettingService: {
4
4
  fetch(clusterId: Cluster['id']): Promise<UISettingsValues>;
5
- update(clusterId: Cluster['id'], data: UISettingsValues): Promise<import("axios").AxiosResponse<string, any>>;
5
+ update(clusterId: Cluster['id'], data: UISettingsValues): Promise<import("axios").AxiosResponse<string, any, {}>>;
6
6
  };
7
7
  export default UISettingService;
8
8
  //# sourceMappingURL=UISettingsService.d.ts.map
@@ -20,7 +20,7 @@ export declare const createInfraEnv: import("@reduxjs/toolkit").AsyncThunk<Infra
20
20
  fulfilledMeta?: unknown;
21
21
  rejectedMeta?: unknown;
22
22
  }>;
23
- export declare const removeAllInfraEnvs: import("@reduxjs/toolkit").AsyncThunk<import("axios").AxiosResponse<void, any>[], void, {
23
+ export declare const removeAllInfraEnvs: import("@reduxjs/toolkit").AsyncThunk<import("axios").AxiosResponse<void, any, {}>[], void, {
24
24
  state?: unknown;
25
25
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
26
26
  extra?: unknown;
@@ -10,15 +10,11 @@ const ClusterDeployment_1 = require("../../../ClusterDeployment");
10
10
  const formik_1 = require("formik");
11
11
  const helpers_1 = require("../../../helpers");
12
12
  const use_translation_wrapper_1 = require("../../../../../common/hooks/use-translation-wrapper");
13
- const useFormikHelpers_1 = require("../../../../../common/hooks/useFormikHelpers");
14
13
  require("./NodePoolForm.css");
15
14
  const NodePoolAgentsForm_1 = tslib_1.__importDefault(require("../../forms/NodePoolAgentsForm"));
16
15
  const NodePoolForm = ({ infraEnvs, agents, index, onRemove }) => {
17
16
  const { t } = (0, use_translation_wrapper_1.useTranslation)();
18
17
  const { values } = (0, formik_1.useFormikContext)();
19
- const { setValue: setCountValue } = (0, useFormikHelpers_1.useFormikHelpers)(`nodePools[${index}].count`);
20
- const { setValue: setMinAutoscalingValue } = (0, useFormikHelpers_1.useFormikHelpers)(`nodePools[${index}].autoscaling.minReplicas`);
21
- const { setValue: setMaxAutoscalingValue } = (0, useFormikHelpers_1.useFormikHelpers)(`nodePools[${index}].autoscaling.maxReplicas`);
22
18
  const [isExpanded, setExpanded] = React.useState(true);
23
19
  const infraEnvAgents = React.useMemo(() => {
24
20
  const infraEnv = infraEnvs.find((ie) => { var _a; return ((_a = ie.metadata) === null || _a === void 0 ? void 0 : _a.namespace) === values.agentNamespace; });
@@ -43,30 +39,6 @@ const NodePoolForm = ({ infraEnvs, agents, index, onRemove }) => {
43
39
  : values.nodePools[i].count;
44
40
  }
45
41
  const maxAgents = Math.max(0, Math.min(matchingAgents.length, availableAgents.length - previousNodePoolsCount));
46
- const currentCount = values.nodePools[index].useAutoscaling
47
- ? values.nodePools[index].autoscaling.maxReplicas
48
- : values.nodePools[index].count;
49
- React.useEffect(() => {
50
- if (currentCount > maxAgents) {
51
- if (values.nodePools[index].useAutoscaling) {
52
- if (maxAgents === 0) {
53
- void setMinAutoscalingValue(maxAgents);
54
- }
55
- void setMaxAutoscalingValue(maxAgents);
56
- }
57
- else {
58
- void setCountValue(maxAgents);
59
- }
60
- }
61
- }, [
62
- maxAgents,
63
- currentCount,
64
- values.nodePools,
65
- index,
66
- setCountValue,
67
- setMinAutoscalingValue,
68
- setMaxAutoscalingValue,
69
- ]);
70
42
  return (React.createElement(react_core_1.Stack, { hasGutter: true },
71
43
  React.createElement(react_core_1.StackItem, null,
72
44
  React.createElement(react_core_1.Level, { hasGutter: true },
@@ -1 +1 @@
1
- {"version":3,"file":"NodePoolForm.js","sourceRoot":"","sources":["../../../../../../../lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.tsx"],"names":[],"mappings":";;;AAAA,uDAagC;AAChC,qDAA+B;AAC/B,iFAA6E;AAC7E,8EAA2C;AAC3C,kDAAwD;AAExD,kEAA+D;AAE/D,mCAA0C;AAC1C,8CAAyD;AACzD,iGAAqF;AACrF,mFAAgF;AAEhF,8BAA4B;AAC5B,gGAAgE;AAShE,MAAM,YAAY,GAAgC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3F,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,EAA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K,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,MAAM;iCAClD,CAAC,CACI,CACC,CACV,CACJ,CACI,CACG;gBACX,KAAK,KAAK,CAAC,IAAI,CACd,oBAAC,sBAAS;oBACR,oBAAC,mBAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAE,oBAAC,sBAAS,OAAG,EAAE,OAAO,EAAE,QAAQ,GAAI,CACvD,CACb,CACK,CACE;QACX,UAAU,IAAI,CACb,oBAAC,sBAAS,IAAC,SAAS,EAAC,uBAAuB;YAC1C,oBAAC,4BAAkB,IACjB,MAAM,EAAE,cAAc,EACtB,SAAS,EAAE,aAAa,KAAK,QAAQ,EACrC,SAAS,EAAE,aAAa,KAAK,cAAc,EAC3C,eAAe,EAAE,aAAa,KAAK,cAAc,EACjD,kBAAkB,EAAE,aAAa,KAAK,iBAAiB,EACvD,SAAS,EAAE,SAAS,GACpB,CACQ,CACb,CACK,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"NodePoolForm.js","sourceRoot":"","sources":["../../../../../../../lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.tsx"],"names":[],"mappings":";;;AAAA,uDAagC;AAChC,qDAA+B;AAC/B,iFAA6E;AAC7E,8EAA2C;AAC3C,kDAAwD;AAExD,kEAA+D;AAE/D,mCAA0C;AAC1C,8CAAyD;AACzD,iGAAqF;AAErF,8BAA4B;AAC5B,gGAAgE;AAShE,MAAM,YAAY,GAAgC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3F,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,yBAAgB,GAAmB,CAAC;IACvD,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,Q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GAAI,CACxC;4BACX,oBAAC,qBAAQ;gCACP,oBAAC,kBAAK,IAAC,OAAO,EAAC,SAAS,IACrB,CAAC,CAAC,8BAA8B,EAAE;oCACjC,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,MAAM;iCAClD,CAAC,CACI,CACC,CACV,CACJ,CACI,CACG;gBACX,KAAK,KAAK,CAAC,IAAI,CACd,oBAAC,sBAAS;oBACR,oBAAC,mBAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAE,oBAAC,sBAAS,OAAG,EAAE,OAAO,EAAE,QAAQ,GAAI,CACvD,CACb,CACK,CACE;QACX,UAAU,IAAI,CACb,oBAAC,sBAAS,IAAC,SAAS,EAAC,uBAAuB;YAC1C,oBAAC,4BAAkB,IACjB,MAAM,EAAE,cAAc,EACtB,SAAS,EAAE,aAAa,KAAK,QAAQ,EACrC,SAAS,EAAE,aAAa,KAAK,cAAc,EAC3C,eAAe,EAAE,aAAa,KAAK,cAAc,EACjD,kBAAkB,EAAE,aAAa,KAAK,iBAAiB,EACvD,SAAS,EAAE,SAAS,GACpB,CACQ,CACb,CACK,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,YAAY,CAAC"}
@@ -9,6 +9,7 @@ const LabelsSelector_1 = require("../../ClusterDeployment/LabelsSelector");
9
9
  const formik_1 = require("formik");
10
10
  const NodePoolAgentsForm = ({ agents, labelName, countName, autoscalingName, maxAgents, useAutoscalingName, isEdit = false, }) => {
11
11
  const { t } = (0, use_translation_wrapper_1.useTranslation)();
12
+ const [{ value: count }] = (0, formik_1.useField)(countName);
12
13
  const [{ value: minValue }] = (0, formik_1.useField)(`${autoscalingName}.minReplicas`);
13
14
  const [{ value: maxValue }] = (0, formik_1.useField)(`${autoscalingName}.maxReplicas`);
14
15
  const [{ value: useAutoscalingValue }] = (0, formik_1.useField)(useAutoscalingName);
@@ -23,10 +24,14 @@ const NodePoolAgentsForm = ({ agents, labelName, countName, autoscalingName, max
23
24
  React.createElement(common_1.CheckboxField, { name: useAutoscalingName, label: t('ai:Use autoscaling') })),
24
25
  useAutoscalingValue ? (React.createElement(React.Fragment, null,
25
26
  React.createElement(react_core_1.GridItem, null,
26
- React.createElement(common_1.NumberInputField, { name: `${autoscalingName}.minReplicas`, label: t('ai:Minimum number of hosts'), isRequired: true, minValue: 1, maxValue: maxValue || maxAgents })),
27
+ React.createElement(common_1.NumberInputField, { name: `${autoscalingName}.minReplicas`, label: t('ai:Minimum number of hosts'), isRequired: true, minValue: 1, maxValue: maxValue })),
27
28
  React.createElement(react_core_1.GridItem, null,
28
- React.createElement(common_1.NumberInputField, { name: `${autoscalingName}.maxReplicas`, label: t('ai:Maximum number of hosts'), isRequired: true, minValue: minValue || 1, maxValue: maxAgents, helperText: helperText })))) : (React.createElement(react_core_1.GridItem, null,
29
- React.createElement(common_1.NumberInputField, { label: t('ai:Number of hosts'), idPostfix: "count", name: countName, isRequired: true, minValue: 0, maxValue: maxAgents, helperText: helperText })))));
29
+ React.createElement(common_1.NumberInputField, { name: `${autoscalingName}.maxReplicas`, label: t('ai:Maximum number of hosts'), isRequired: true, minValue: minValue || 1, helperText: helperText })))) : (React.createElement(React.Fragment, null,
30
+ React.createElement(react_core_1.GridItem, null,
31
+ React.createElement(common_1.NumberInputField, { label: t('ai:Number of hosts'), idPostfix: "count", name: countName, isRequired: true, minValue: 0, helperText: helperText })))),
32
+ (useAutoscalingValue ? maxValue : count) > maxAgents && (React.createElement(react_core_1.GridItem, null,
33
+ React.createElement(react_core_1.Alert, { isInline: true, variant: react_core_1.AlertVariant.warning, title: t('ai:Host count exceeds the current number of available hosts.') },
34
+ React.createElement(react_core_1.Text, null, t('ai:Scale down the nodepool or make more hosts available.')))))));
30
35
  };
31
36
  exports.default = NodePoolAgentsForm;
32
37
  //# sourceMappingURL=NodePoolAgentsForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodePoolAgentsForm.js","sourceRoot":"","sources":["../../../../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BAAC,yBAAgB,IACf,IAAI,EAAE,GAAG,eAAe,cAAc,EACtC,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC,EACtC,UAAU,QACV,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,QAAQ,IAAI,SAAS,GAC/B,CACO;YACX,oBAAC,qBAAQ;gBACP,oBAAC,yBAAgB,IACf,IAAI,EAAE,GAAG,eAAe,cAAc,EACtC,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC,EACtC,UAAU,QACV,QAAQ,EAAE,QAAQ,IAAI,CAAC,EACvB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,UAAU,GACtB,CACO,CACV,CACJ,CAAC,CAAC,CAAC,CACF,oBAAC,qBAAQ;YACP,oBAAC,yBAAgB,IACf,KAAK,EAAE,CAAC,CAAC,oBAAoB,CAAC,EAC9B,SAAS,EAAC,OAAO,EACjB,IAAI,EAAE,SAAS,EACf,UAAU,QACV,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,UAAU,GACtB,CACO,CACZ,CACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"NodePoolAgentsForm.js","sourceRoot":"","sources":["../../../../../../lib/cim/components/Hypershift/forms/NodePoolAgentsForm.tsx"],"names":[],"mappings":";;;AAAA,uDAAmF;AACnF,qDAA+B;AAC/B,+CAAkF;AAClF,8FAAkF;AAElF,2EAA4E;AAC5E,mCAAkC;AAYlC,MAAM,kBAAkB,GAAG,CAAC,EAC1B,MAAM,EACN,SAAS,EACT,SAAS,EACT,eAAe,EACf,SAAS,EACT,kBAAkB,EAClB,MAAM,GAAG,KAAK,GACU,EAAE,EAAE;IAC5B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAE/B,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAQ,EAAS,SAAS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UAAU,EAAE,UAAU,GACtB,CACO,CACV,CACJ,CAAC,CAAC,CAAC,CACF;YACE,oBAAC,qBAAQ;gBACP,oBAAC,yBAAgB,IACf,KAAK,EAAE,CAAC,CAAC,oBAAoB,CAAC,EAC9B,SAAS,EAAC,OAAO,EACjB,IAAI,EAAE,SAAS,EACf,UAAU,QACV,QAAQ,EAAE,CAAC,EACX,UAAU,EAAE,UAAU,GACtB,CACO,CACV,CACJ;QACA,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CACvD,oBAAC,qBAAQ;YACP,oBAAC,kBAAK,IACJ,QAAQ,QACR,OAAO,EAAE,yBAAY,CAAC,OAAO,EAC7B,KAAK,EAAE,CAAC,CAAC,8DAA8D,CAAC;gBAExE,oBAAC,iBAAI,QAAE,CAAC,CAAC,0DAA0D,CAAC,CAAQ,CACtE,CACC,CACZ,CACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
@@ -22,7 +22,6 @@ import { HostsFormValues } from './types';
22
22
  import { useFormikContext } from 'formik';
23
23
  import { getAgentsForSelection } from '../../../helpers';
24
24
  import { useTranslation } from '../../../../../common/hooks/use-translation-wrapper';
25
- import { useFormikHelpers } from '../../../../../common/hooks/useFormikHelpers';
26
25
 
27
26
  import './NodePoolForm.css';
28
27
  import NodePoolAgentsForm from '../../forms/NodePoolAgentsForm';
@@ -37,14 +36,8 @@ type NodePoolFormProps = {
37
36
  const NodePoolForm: React.FC<NodePoolFormProps> = ({ infraEnvs, agents, index, onRemove }) => {
38
37
  const { t } = useTranslation();
39
38
  const { values } = useFormikContext<HostsFormValues>();
40
- const { setValue: setCountValue } = useFormikHelpers(`nodePools[${index}].count`);
41
- const { setValue: setMinAutoscalingValue } = useFormikHelpers(
42
- `nodePools[${index}].autoscaling.minReplicas`,
43
- );
44
- const { setValue: setMaxAutoscalingValue } = useFormikHelpers(
45
- `nodePools[${index}].autoscaling.maxReplicas`,
46
- );
47
39
  const [isExpanded, setExpanded] = React.useState(true);
40
+
48
41
  const infraEnvAgents = React.useMemo(() => {
49
42
  const infraEnv = infraEnvs.find((ie) => ie.metadata?.namespace === values.agentNamespace);
50
43
  return agents.filter((agent) => isAgentOfInfraEnv(infraEnv, agent));
@@ -79,31 +72,6 @@ const NodePoolForm: React.FC<NodePoolFormProps> = ({ infraEnvs, agents, index, o
79
72
  Math.min(matchingAgents.length, availableAgents.length - previousNodePoolsCount),
80
73
  );
81
74
 
82
- const currentCount = values.nodePools[index].useAutoscaling
83
- ? values.nodePools[index].autoscaling.maxReplicas
84
- : values.nodePools[index].count;
85
-
86
- React.useEffect(() => {
87
- if (currentCount > maxAgents) {
88
- if (values.nodePools[index].useAutoscaling) {
89
- if (maxAgents === 0) {
90
- void setMinAutoscalingValue(maxAgents);
91
- }
92
- void setMaxAutoscalingValue(maxAgents);
93
- } else {
94
- void setCountValue(maxAgents);
95
- }
96
- }
97
- }, [
98
- maxAgents,
99
- currentCount,
100
- values.nodePools,
101
- index,
102
- setCountValue,
103
- setMinAutoscalingValue,
104
- setMaxAutoscalingValue,
105
- ]);
106
-
107
75
  return (
108
76
  <Stack hasGutter>
109
77
  <StackItem>
@@ -1,4 +1,4 @@
1
- import { Grid, GridItem } from '@patternfly/react-core';
1
+ import { Alert, AlertVariant, Grid, GridItem, Text } from '@patternfly/react-core';
2
2
  import * as React from 'react';
3
3
  import { CheckboxField, NumberInputField, PopoverIcon } from '../../../../common';
4
4
  import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
@@ -27,6 +27,7 @@ const NodePoolAgentsForm = ({
27
27
  }: NodePoolAgentsFormProps) => {
28
28
  const { t } = useTranslation();
29
29
 
30
+ const [{ value: count }] = useField<number>(countName);
30
31
  const [{ value: minValue }] = useField<number>(`${autoscalingName}.minReplicas`);
31
32
  const [{ value: maxValue }] = useField<number>(`${autoscalingName}.maxReplicas`);
32
33
  const [{ value: useAutoscalingValue }] = useField<boolean>(useAutoscalingName);
@@ -60,7 +61,7 @@ const NodePoolAgentsForm = ({
60
61
  label={t('ai:Minimum number of hosts')}
61
62
  isRequired
62
63
  minValue={1}
63
- maxValue={maxValue || maxAgents}
64
+ maxValue={maxValue}
64
65
  />
65
66
  </GridItem>
66
67
  <GridItem>
@@ -69,22 +70,33 @@ const NodePoolAgentsForm = ({
69
70
  label={t('ai:Maximum number of hosts')}
70
71
  isRequired
71
72
  minValue={minValue || 1}
72
- maxValue={maxAgents}
73
73
  helperText={helperText}
74
74
  />
75
75
  </GridItem>
76
76
  </>
77
77
  ) : (
78
+ <>
79
+ <GridItem>
80
+ <NumberInputField
81
+ label={t('ai:Number of hosts')}
82
+ idPostfix="count"
83
+ name={countName}
84
+ isRequired
85
+ minValue={0}
86
+ helperText={helperText}
87
+ />
88
+ </GridItem>
89
+ </>
90
+ )}
91
+ {(useAutoscalingValue ? maxValue : count) > maxAgents && (
78
92
  <GridItem>
79
- <NumberInputField
80
- label={t('ai:Number of hosts')}
81
- idPostfix="count"
82
- name={countName}
83
- isRequired
84
- minValue={0}
85
- maxValue={maxAgents}
86
- helperText={helperText}
87
- />
93
+ <Alert
94
+ isInline
95
+ variant={AlertVariant.warning}
96
+ title={t('ai:Host count exceeds the current number of available hosts.')}
97
+ >
98
+ <Text>{t('ai:Scale down the nodepool or make more hosts available.')}</Text>
99
+ </Alert>
88
100
  </GridItem>
89
101
  )}
90
102
  </Grid>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@openshift-assisted/locales": "2.14.12-cim",
4
- "@openshift-assisted/types": "2.14.12-cim",
3
+ "@openshift-assisted/locales": "2.14.14-cim",
4
+ "@openshift-assisted/types": "2.14.14-cim",
5
5
  "@openshift-console/dynamic-plugin-sdk": "0.0.3",
6
6
  "@patternfly/patternfly": "5.2.0",
7
7
  "@patternfly/react-code-editor": "5.2.0",
@@ -140,5 +140,5 @@
140
140
  ]
141
141
  }
142
142
  },
143
- "version": "2.14.12-cim"
143
+ "version": "2.14.14-cim"
144
144
  }