@openshift-assisted/ui-lib 2.39.5 → 2.41.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.
Files changed (156) hide show
  1. package/build/@types/cim/components/InfraEnv/InfraTableToolbar.d.ts.map +1 -1
  2. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  3. package/build/@types/cim/index.d.ts +1 -0
  4. package/build/@types/cim/index.d.ts.map +1 -1
  5. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +1 -0
  6. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
  7. package/build/@types/common/components/clusterDetail/ClusterCredentials.d.ts.map +1 -1
  8. package/build/@types/common/components/clusterWizard/ClusterWizardStep.d.ts.map +1 -1
  9. package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
  10. package/build/@types/common/components/ui/ClusterEventsToolbar.d.ts.map +1 -1
  11. package/build/@types/common/components/ui/WizardFooter.d.ts +1 -0
  12. package/build/@types/common/components/ui/WizardFooter.d.ts.map +1 -1
  13. package/build/@types/common/components/ui/WizardNavItem.d.ts +1 -1
  14. package/build/@types/common/components/ui/WizardNavItem.d.ts.map +1 -1
  15. package/build/@types/common/components/ui/formik/MultiSelectField.d.ts.map +1 -1
  16. package/build/@types/common/components/ui/formik/types.d.ts +2 -2
  17. package/build/@types/common/components/ui/formik/types.d.ts.map +1 -1
  18. package/build/@types/common/components/ui/utils.d.ts +1 -1
  19. package/build/@types/common/components/ui/utils.d.ts.map +1 -1
  20. package/build/@types/common/config/constants.d.ts.map +1 -1
  21. package/build/@types/common/config/docs_links.d.ts +1 -0
  22. package/build/@types/common/config/docs_links.d.ts.map +1 -1
  23. package/build/@types/common/index.d.ts +0 -3
  24. package/build/@types/common/index.d.ts.map +1 -1
  25. package/build/@types/ocm/components/HostsClusterDetailTab/utils.d.ts.map +1 -1
  26. package/build/@types/ocm/components/clusterConfiguration/CustomManifestCheckbox.d.ts.map +1 -1
  27. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  28. package/build/@types/ocm/components/clusterConfiguration/operators/bundleSpecs.d.ts.map +1 -1
  29. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.d.ts.map +1 -1
  30. package/build/@types/ocm/components/clusterDetail/ClusterDetailStatusMessages.d.ts.map +1 -1
  31. package/build/@types/ocm/components/clusterDetail/ClusterDetailsButtonGroup.d.ts +1 -0
  32. package/build/@types/ocm/components/clusterDetail/ClusterDetailsButtonGroup.d.ts.map +1 -1
  33. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  34. package/build/@types/ocm/components/clusterWizard/CredentialsDownload.d.ts +7 -0
  35. package/build/@types/ocm/components/clusterWizard/CredentialsDownload.d.ts.map +1 -0
  36. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +1 -1
  37. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
  38. package/build/@types/ocm/components/clusters/ClustersListToolbar.d.ts.map +1 -1
  39. package/build/@types/ocm/config/constants.d.ts +0 -2
  40. package/build/@types/ocm/config/constants.d.ts.map +1 -1
  41. package/build/@types/ocm/services/ClustersService.d.ts +0 -1
  42. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  43. package/build/cjs/cim/components/ClusterDeployment/ShortCapacitySummary.js +1 -1
  44. package/build/cjs/cim/components/ClusterDeployment/ShortCapacitySummary.js.map +1 -1
  45. package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js +12 -12
  46. package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js.map +1 -1
  47. package/build/cjs/cim/components/helpers/toAssisted.js +3 -5
  48. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  49. package/build/cjs/cim/components/helpers/versions.js +1 -1
  50. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  51. package/build/cjs/cim/index.js +1 -0
  52. package/build/cjs/cim/index.js.map +1 -1
  53. package/build/cjs/common/api/assisted-service/ClustersAPI.js +5 -0
  54. package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
  55. package/build/cjs/common/components/clusterDetail/ClusterCredentials.js +1 -1
  56. package/build/cjs/common/components/clusterDetail/ClusterCredentials.js.map +1 -1
  57. package/build/cjs/common/components/clusterWizard/ClusterWizardStep.js +2 -4
  58. package/build/cjs/common/components/clusterWizard/ClusterWizardStep.js.map +1 -1
  59. package/build/cjs/common/components/operators/operatorSpecs.js +2 -2
  60. package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
  61. package/build/cjs/common/components/ui/ClusterEventsToolbar.js +18 -10
  62. package/build/cjs/common/components/ui/ClusterEventsToolbar.js.map +1 -1
  63. package/build/cjs/common/components/ui/WizardFooter.js +2 -2
  64. package/build/cjs/common/components/ui/WizardFooter.js.map +1 -1
  65. package/build/cjs/common/components/ui/WizardNavItem.js +2 -2
  66. package/build/cjs/common/components/ui/WizardNavItem.js.map +1 -1
  67. package/build/cjs/common/components/ui/formik/MultiSelectField.js +26 -28
  68. package/build/cjs/common/components/ui/formik/MultiSelectField.js.map +1 -1
  69. package/build/cjs/common/components/ui/utils.js +1 -1
  70. package/build/cjs/common/components/ui/utils.js.map +1 -1
  71. package/build/cjs/common/config/constants.js +4 -6
  72. package/build/cjs/common/config/constants.js.map +1 -1
  73. package/build/cjs/common/config/docs_links.js +2 -1
  74. package/build/cjs/common/config/docs_links.js.map +1 -1
  75. package/build/cjs/common/index.js +0 -3
  76. package/build/cjs/common/index.js.map +1 -1
  77. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2Wizard.js +2 -2
  78. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2Wizard.js.map +1 -1
  79. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2WizardNav.js +5 -5
  80. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2WizardNav.js.map +1 -1
  81. package/build/cjs/ocm/components/HostsClusterDetailTab/utils.js +8 -4
  82. package/build/cjs/ocm/components/HostsClusterDetailTab/utils.js.map +1 -1
  83. package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js +0 -11
  84. package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js.map +1 -1
  85. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +23 -1
  86. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  87. package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js +2 -2
  88. package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js +6 -20
  89. package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js.map +1 -1
  90. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js +3 -3
  91. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js.map +1 -1
  92. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js +16 -14
  93. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js.map +1 -1
  94. package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js +1 -0
  95. package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js.map +1 -1
  96. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +6 -2
  97. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  98. package/build/cjs/ocm/components/clusterWizard/ClusterWizard.js +3 -3
  99. package/build/cjs/ocm/components/clusterWizard/ClusterWizard.js.map +1 -1
  100. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +1 -1
  101. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
  102. package/build/cjs/ocm/components/clusterWizard/ClusterWizardNavigation.js +5 -5
  103. package/build/cjs/ocm/components/clusterWizard/ClusterWizardNavigation.js.map +1 -1
  104. package/build/cjs/ocm/components/clusterWizard/CredentialsDownload.js +62 -0
  105. package/build/cjs/ocm/components/clusterWizard/CredentialsDownload.js.map +1 -0
  106. package/build/cjs/ocm/components/clusterWizard/constants.js +1 -1
  107. package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
  108. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +3 -3
  109. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
  110. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +3 -3
  111. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
  112. package/build/cjs/ocm/config/constants.js +1 -155
  113. package/build/cjs/ocm/config/constants.js.map +1 -1
  114. package/build/cjs/ocm/services/ClustersService.js +0 -26
  115. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  116. package/lib/cim/components/ClusterDeployment/ShortCapacitySummary.tsx +1 -1
  117. package/lib/cim/components/InfraEnv/InfraTableToolbar.tsx +40 -28
  118. package/lib/cim/components/helpers/toAssisted.ts +3 -4
  119. package/lib/cim/components/helpers/versions.ts +1 -1
  120. package/lib/cim/index.ts +1 -0
  121. package/lib/common/api/assisted-service/ClustersAPI.ts +6 -0
  122. package/lib/common/components/clusterDetail/ClusterCredentials.tsx +12 -2
  123. package/lib/common/components/clusterWizard/ClusterWizardStep.tsx +2 -4
  124. package/lib/common/components/operators/operatorSpecs.tsx +3 -2
  125. package/lib/common/components/ui/ClusterEventsToolbar.tsx +78 -45
  126. package/lib/common/components/ui/WizardFooter.tsx +3 -0
  127. package/lib/common/components/ui/WizardNavItem.tsx +1 -1
  128. package/lib/common/components/ui/formik/MultiSelectField.tsx +98 -58
  129. package/lib/common/components/ui/formik/types.ts +2 -2
  130. package/lib/common/components/ui/utils.ts +4 -2
  131. package/lib/common/config/constants.ts +4 -6
  132. package/lib/common/config/docs_links.ts +3 -0
  133. package/lib/common/index.ts +0 -4
  134. package/lib/ocm/components/AddHosts/day2Wizard/Day2Wizard.tsx +1 -1
  135. package/lib/ocm/components/AddHosts/day2Wizard/Day2WizardNav.tsx +5 -5
  136. package/lib/ocm/components/HostsClusterDetailTab/utils.ts +5 -1
  137. package/lib/ocm/components/clusterConfiguration/CustomManifestCheckbox.tsx +0 -13
  138. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +29 -1
  139. package/lib/ocm/components/clusterConfiguration/operators/OperatorCheckbox.tsx +2 -2
  140. package/lib/ocm/components/clusterConfiguration/operators/bundleSpecs.tsx +8 -26
  141. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.tsx +9 -7
  142. package/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx +18 -19
  143. package/lib/ocm/components/clusterDetail/ClusterDetailsButtonGroup.tsx +2 -0
  144. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +6 -2
  145. package/lib/ocm/components/clusterWizard/ClusterWizard.tsx +3 -3
  146. package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +1 -1
  147. package/lib/ocm/components/clusterWizard/ClusterWizardNavigation.tsx +5 -5
  148. package/lib/ocm/components/clusterWizard/CredentialsDownload.tsx +105 -0
  149. package/lib/ocm/components/clusterWizard/constants.ts +1 -1
  150. package/lib/ocm/components/clusterWizard/wizardTransition.ts +4 -4
  151. package/lib/ocm/components/clusters/ClustersListToolbar.tsx +39 -19
  152. package/lib/ocm/config/constants.ts +0 -156
  153. package/lib/ocm/services/ClustersService.ts +0 -29
  154. package/package.json +3 -3
  155. /package/build/cjs/{common/styles.css → ocm/components/clusterDetail/ClusterDetailsButtonGroup.css} +0 -0
  156. /package/lib/{common/styles.css → ocm/components/clusterDetail/ClusterDetailsButtonGroup.css} +0 -0
@@ -39,159 +39,3 @@ export const ocmPermissionsToAIPermissions = (
39
39
  }
40
40
  return permissions;
41
41
  };
42
-
43
- //TO-DO: Assisted-Migration. Provisional code. Needs to be removed when MTV integration be finished
44
- export const yamlContentAssistedMigration1 = `apiVersion: v1
45
- kind: Namespace
46
- metadata:
47
- name: openshift-gitops-operator
48
- ---
49
- apiVersion: operators.coreos.com/v1
50
- kind: OperatorGroup
51
- metadata:
52
- name: openshift-gitops-operator
53
- namespace: openshift-gitops-operator
54
- spec:
55
- upgradeStrategy: Default
56
- ---
57
- apiVersion: operators.coreos.com/v1alpha1
58
- kind: Subscription
59
- metadata:
60
- name: openshift-gitops-operator
61
- namespace: openshift-gitops-operator
62
- spec:
63
- channel: latest
64
- installPlanApproval: Automatic
65
- name: openshift-gitops-operator
66
- source: redhat-operators
67
- sourceNamespace: openshift-marketplace
68
- `;
69
-
70
- export const yamlContentAssistedMigration2 = `apiVersion: rbac.authorization.k8s.io/v1
71
- kind: ClusterRole
72
- metadata:
73
- name: namespace-manager
74
- rules:
75
- - apiGroups: [""]
76
- resources: ["namespaces"]
77
- verbs: ["get", "create", "update", "delete"]
78
- ---
79
- apiVersion: rbac.authorization.k8s.io/v1
80
- kind: ClusterRoleBinding
81
- metadata:
82
- name: namespace-manager-binding
83
- subjects:
84
- - kind: ServiceAccount
85
- name: openshift-gitops-argocd-application-controller
86
- namespace: openshift-gitops
87
- roleRef:
88
- kind: ClusterRole
89
- name: namespace-manager
90
- apiGroup: rbac.authorization.k8s.io
91
- ---
92
- apiVersion: rbac.authorization.k8s.io/v1
93
- kind: Role
94
- metadata:
95
- name: persistentvolumeclaim-manager
96
- namespace: openshift-image-registry
97
- rules:
98
- - apiGroups: [""]
99
- resources: ["persistentvolumeclaims"]
100
- verbs: ["get", "create", "update", "delete"]
101
- ---
102
- apiVersion: rbac.authorization.k8s.io/v1
103
- kind: RoleBinding
104
- metadata:
105
- name: persistentvolumeclaim-manager-binding
106
- namespace: openshift-image-registry
107
- subjects:
108
- - kind: ServiceAccount
109
- name: openshift-gitops-argocd-application-controller
110
- namespace: openshift-gitops
111
- roleRef:
112
- kind: Role
113
- name: persistentvolumeclaim-manager
114
- apiGroup: rbac.authorization.k8s.io
115
- ---
116
- apiVersion: rbac.authorization.k8s.io/v1
117
- kind: ClusterRole
118
- metadata:
119
- name: job-manager
120
- rules:
121
- - apiGroups: ["batch"]
122
- resources: ["jobs"]
123
- verbs: ["get", "create", "update", "delete"]
124
- ---
125
- apiVersion: rbac.authorization.k8s.io/v1
126
- kind: ClusterRoleBinding
127
- metadata:
128
- name: job-manager-binding
129
- subjects:
130
- - kind: ServiceAccount
131
- name: openshift-gitops-argocd-application-controller
132
- namespace: openshift-gitops
133
- roleRef:
134
- kind: ClusterRole
135
- name: job-manager
136
- apiGroup: rbac.authorization.k8s.io
137
- ---
138
- apiVersion: rbac.authorization.k8s.io/v1
139
- kind: ClusterRole
140
- metadata:
141
- name: argocd-application-controller
142
- rules:
143
- - apiGroups: [""]
144
- resources: ["serviceaccounts", "services", "secrets"]
145
- verbs: ["create", "get", "list", "update", "delete", "patch"]
146
- - apiGroups: ["apps"]
147
- resources: ["deployments"]
148
- verbs: ["create", "get", "list", "update", "delete", "patch"]
149
- - apiGroups: ["route.openshift.io"]
150
- resources: ["routes"]
151
- verbs: ["create", "get", "list", "update", "delete", "patch"]
152
- - apiGroups: ["image.openshift.io"]
153
- resources: ["imagestreams"]
154
- verbs: ["create", "get", "list", "update", "delete", "patch"]
155
- - apiGroups: ["build.openshift.io"]
156
- resources: ["buildconfigs"]
157
- verbs: ["create", "get", "list", "update", "delete", "patch"]
158
-
159
- ---
160
- apiVersion: rbac.authorization.k8s.io/v1
161
- kind: ClusterRoleBinding
162
- metadata:
163
- name: argocd-application-controller-binding
164
- subjects:
165
- - kind: ServiceAccount
166
- name: openshift-gitops-argocd-application-controller
167
- namespace: openshift-gitops
168
- roleRef:
169
- kind: ClusterRole
170
- name: argocd-application-controller
171
- apiGroup: rbac.authorization.k8s.io
172
- ---
173
- apiVersion: rbac.authorization.k8s.io/v1
174
- kind: Role
175
- metadata:
176
- name: argocd-secrets-role
177
- namespace: openshift-mtv
178
- rules:
179
- - apiGroups: [""]
180
- resources: ["secrets"]
181
- verbs: ["create", "get", "list", "update", "delete", "patch"]
182
-
183
- ---
184
- apiVersion: rbac.authorization.k8s.io/v1
185
- kind: RoleBinding
186
- metadata:
187
- name: argocd-secrets-rolebinding
188
- namespace: openshift-mtv
189
- subjects:
190
- - kind: ServiceAccount
191
- name: openshift-gitops-argocd-application-controller
192
- namespace: openshift-gitops
193
- roleRef:
194
- kind: Role
195
- name: argocd-secrets-role
196
- apiGroup: rbac.authorization.k8s.io
197
- `;
@@ -20,8 +20,6 @@ import {
20
20
  AI_UI_TAG,
21
21
  } from '../../common/config/constants';
22
22
  import { isInOcm } from '../../common/api/axiosClient';
23
- import { yamlContentAssistedMigration1, yamlContentAssistedMigration2 } from '../config';
24
- import jsYaml from 'js-yaml';
25
23
 
26
24
  const ClustersService = {
27
25
  findHost(hosts: Cluster['hosts'] = [], hostId: Host['id']) {
@@ -167,32 +165,5 @@ const ClustersService = {
167
165
  this.getUpdateManifestParams(existingManifest, updatedManifest),
168
166
  );
169
167
  },
170
-
171
- //TO-DO: Assisted-Migration. Provisional code. Needs to be removed when MTV integration be finished
172
- async createClusterManifestsForAssistedMigration(clusterId: Cluster['id']) {
173
- const manifests: CustomManifestValues[] = [];
174
-
175
- const parsedYaml1 = jsYaml.dump(yamlContentAssistedMigration1);
176
- manifests.push({
177
- folder: 'openshift',
178
- filename: '0gitops.yaml',
179
- manifestYaml: parsedYaml1,
180
- created: true,
181
- });
182
-
183
- const parsedYaml2 = jsYaml.dump(yamlContentAssistedMigration2);
184
- manifests.push({
185
- folder: 'openshift',
186
- filename: '1rolebindings.yaml',
187
- manifestYaml: parsedYaml2,
188
- created: true,
189
- });
190
-
191
- const promises = manifests.map((manifest) => {
192
- return ClustersAPI.createCustomManifest(clusterId, this.transformFormViewManifest(manifest));
193
- });
194
- return Promise.all(promises);
195
- },
196
168
  };
197
-
198
169
  export default ClustersService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@openshift-assisted/locales": "2.39.5",
4
- "@openshift-assisted/types": "2.39.5",
3
+ "@openshift-assisted/locales": "2.41.0",
4
+ "@openshift-assisted/types": "2.41.0",
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.39.5"
143
+ "version": "2.41.0"
144
144
  }