@rancher/shell 3.0.0-rc.7 → 3.0.0-rc.9

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 (60) hide show
  1. package/assets/styles/global/_tooltip.scss +1 -12
  2. package/assets/translations/en-us.yaml +13 -1
  3. package/components/CodeMirror.vue +18 -15
  4. package/components/PromptRemove.vue +2 -2
  5. package/components/Questions/index.vue +2 -2
  6. package/components/ResourceDetail/Masthead.vue +1 -0
  7. package/components/ResourceDetail/index.vue +6 -7
  8. package/components/auth/RoleDetailEdit.vue +1 -6
  9. package/components/auth/__tests__/RoleDetailEdit.test.ts +53 -16
  10. package/components/form/ArrayList.vue +7 -3
  11. package/components/form/ColorInput.vue +13 -2
  12. package/components/form/__tests__/ColorInput.test.ts +27 -0
  13. package/components/formatter/CloudCredExpired.vue +69 -0
  14. package/components/formatter/Date.vue +1 -1
  15. package/components/nav/TopLevelMenu.vue +115 -51
  16. package/components/nav/__tests__/TopLevelMenu.test.ts +49 -23
  17. package/config/labels-annotations.js +9 -5
  18. package/core/types.ts +1 -1
  19. package/detail/provisioning.cattle.io.cluster.vue +0 -4
  20. package/edit/cis.cattle.io.clusterscanbenchmark.vue +2 -0
  21. package/edit/constraints.gatekeeper.sh.constraint/index.vue +2 -0
  22. package/edit/fleet.cattle.io.cluster.vue +4 -0
  23. package/edit/helm.cattle.io.projecthelmchart.vue +2 -0
  24. package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +2 -0
  25. package/edit/kontainerDriver.vue +2 -0
  26. package/edit/logging-flow/index.vue +2 -0
  27. package/edit/management.cattle.io.project.vue +4 -1
  28. package/edit/management.cattle.io.projectroletemplatebinding.vue +2 -1
  29. package/edit/management.cattle.io.user.vue +3 -0
  30. package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +2 -0
  31. package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +2 -0
  32. package/edit/monitoring.coreos.com.prometheusrule/index.vue +2 -0
  33. package/edit/monitoring.coreos.com.receiver/index.vue +2 -0
  34. package/edit/monitoring.coreos.com.route.vue +2 -0
  35. package/edit/networking.istio.io.destinationrule/index.vue +2 -0
  36. package/edit/nodeDriver.vue +2 -0
  37. package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +4 -1
  38. package/edit/provisioning.cattle.io.cluster/import.vue +2 -0
  39. package/edit/provisioning.cattle.io.cluster/index.vue +7 -2
  40. package/edit/provisioning.cattle.io.cluster/rke2.vue +30 -7
  41. package/edit/ui.cattle.io.navlink.vue +4 -3
  42. package/list/provisioning.cattle.io.cluster.vue +57 -10
  43. package/machine-config/vmwarevsphere.vue +133 -95
  44. package/mixins/vue-select-overrides.js +0 -1
  45. package/models/catalog.cattle.io.app.js +4 -3
  46. package/models/cloudcredential.js +158 -2
  47. package/models/management.cattle.io.globalrole.js +6 -0
  48. package/models/management.cattle.io.roletemplate.js +6 -0
  49. package/models/nodedriver.js +5 -0
  50. package/models/provisioning.cattle.io.cluster.js +35 -1
  51. package/package.json +9 -2
  52. package/pages/c/_cluster/apps/charts/index.vue +0 -6
  53. package/pages/c/_cluster/explorer/__tests__/index.test.ts +6 -3
  54. package/pages/c/_cluster/explorer/index.vue +44 -22
  55. package/pages/c/_cluster/manager/cloudCredential/index.vue +68 -4
  56. package/pages/home.vue +1 -0
  57. package/plugins/dashboard-store/mutations.js +24 -3
  58. package/plugins/dashboard-store/resource-class.js +6 -0
  59. package/store/type-map.js +4 -2
  60. package/types/shell/index.d.ts +12 -1
package/store/type-map.js CHANGED
@@ -2022,8 +2022,10 @@ function hasCustom(state, rootState, kind, key, fallback) {
2022
2022
  return cache[key];
2023
2023
  }
2024
2024
 
2025
- // Check to see if the custom kind is provided by a plugin
2026
- if (!!rootState.$plugin.getDynamic(kind, key)) {
2025
+ // Check to see if the custom kind is provided by a plugin (ignore booleans)
2026
+ const pluginComponent = rootState.$plugin.getDynamic(kind, key);
2027
+
2028
+ if (typeof pluginComponent !== 'boolean' && !!pluginComponent) {
2027
2029
  cache[key] = true;
2028
2030
 
2029
2031
  return cache[key];
@@ -37,6 +37,7 @@ export const CATTLE_PUBLIC_ENDPOINTS: "field.cattle.io/publicEndpoints";
37
37
  export const TARGET_WORKLOADS: "field.cattle.io/targetWorkloadIds";
38
38
  export const UI_MANAGED: "management.cattle.io/ui-managed";
39
39
  export const CREATOR_ID: "field.cattle.io/creatorId";
40
+ export const CREATOR_PRINCIPAL_ID: "field.cattle.io/creator-principal-name";
40
41
  export const RESOURCE_QUOTA: "field.cattle.io/resourceQuota";
41
42
  export const AZURE_MIGRATED: "auth.cattle.io/azuread-endpoint-migrated";
42
43
  export const WORKSPACE_ANNOTATION: "objectset.rio.cattle.io/id";
@@ -112,6 +113,7 @@ export namespace CATALOG {
112
113
  const SOURCE_REPO_NAME: string;
113
114
  const COLOR: string;
114
115
  const DISPLAY_NAME: string;
116
+ const CLUSTER_REPO_NAME: string;
115
117
  const SUPPORTED_OS: string;
116
118
  const PERMITTED_OS: string;
117
119
  const DEPLOYED_OS: string;
@@ -158,6 +160,9 @@ export namespace CLUSTER_BADGE {
158
160
  export const ICON_TEXT: string;
159
161
  }
160
162
  export const SYSTEM_LABELS: string[];
163
+ export namespace CLOUD_CREDENTIALS {
164
+ const EXPIRATION: string;
165
+ }
161
166
  }
162
167
 
163
168
  // @shell/config/query-params
@@ -2979,7 +2984,13 @@ export default class Resource {
2979
2984
  };
2980
2985
  };
2981
2986
  goToDetail(): void;
2982
- goToClone(moreQuery?: {}): void;
2987
+ /**
2988
+ * Resource action redirects to the detail page with a query parameter 'clone'
2989
+ * When the query parameter is present, the view will fetch the resource to clone define in the parameter
2990
+ * E.g.: /my-id?mode=clone
2991
+ * @param {*} moreQuery
2992
+ */
2993
+ goToClone(moreQuery?: any): void;
2983
2994
  goToEdit(moreQuery?: {}): void;
2984
2995
  goToViewConfig(moreQuery?: {}): void;
2985
2996
  goToEditYaml(): void;