@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.
- package/assets/styles/global/_tooltip.scss +1 -12
- package/assets/translations/en-us.yaml +13 -1
- package/components/CodeMirror.vue +18 -15
- package/components/PromptRemove.vue +2 -2
- package/components/Questions/index.vue +2 -2
- package/components/ResourceDetail/Masthead.vue +1 -0
- package/components/ResourceDetail/index.vue +6 -7
- package/components/auth/RoleDetailEdit.vue +1 -6
- package/components/auth/__tests__/RoleDetailEdit.test.ts +53 -16
- package/components/form/ArrayList.vue +7 -3
- package/components/form/ColorInput.vue +13 -2
- package/components/form/__tests__/ColorInput.test.ts +27 -0
- package/components/formatter/CloudCredExpired.vue +69 -0
- package/components/formatter/Date.vue +1 -1
- package/components/nav/TopLevelMenu.vue +115 -51
- package/components/nav/__tests__/TopLevelMenu.test.ts +49 -23
- package/config/labels-annotations.js +9 -5
- package/core/types.ts +1 -1
- package/detail/provisioning.cattle.io.cluster.vue +0 -4
- package/edit/cis.cattle.io.clusterscanbenchmark.vue +2 -0
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +2 -0
- package/edit/fleet.cattle.io.cluster.vue +4 -0
- package/edit/helm.cattle.io.projecthelmchart.vue +2 -0
- package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +2 -0
- package/edit/kontainerDriver.vue +2 -0
- package/edit/logging-flow/index.vue +2 -0
- package/edit/management.cattle.io.project.vue +4 -1
- package/edit/management.cattle.io.projectroletemplatebinding.vue +2 -1
- package/edit/management.cattle.io.user.vue +3 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +2 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +2 -0
- package/edit/monitoring.coreos.com.prometheusrule/index.vue +2 -0
- package/edit/monitoring.coreos.com.receiver/index.vue +2 -0
- package/edit/monitoring.coreos.com.route.vue +2 -0
- package/edit/networking.istio.io.destinationrule/index.vue +2 -0
- package/edit/nodeDriver.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +4 -1
- package/edit/provisioning.cattle.io.cluster/import.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/index.vue +7 -2
- package/edit/provisioning.cattle.io.cluster/rke2.vue +30 -7
- package/edit/ui.cattle.io.navlink.vue +4 -3
- package/list/provisioning.cattle.io.cluster.vue +57 -10
- package/machine-config/vmwarevsphere.vue +133 -95
- package/mixins/vue-select-overrides.js +0 -1
- package/models/catalog.cattle.io.app.js +4 -3
- package/models/cloudcredential.js +158 -2
- package/models/management.cattle.io.globalrole.js +6 -0
- package/models/management.cattle.io.roletemplate.js +6 -0
- package/models/nodedriver.js +5 -0
- package/models/provisioning.cattle.io.cluster.js +35 -1
- package/package.json +9 -2
- package/pages/c/_cluster/apps/charts/index.vue +0 -6
- package/pages/c/_cluster/explorer/__tests__/index.test.ts +6 -3
- package/pages/c/_cluster/explorer/index.vue +44 -22
- package/pages/c/_cluster/manager/cloudCredential/index.vue +68 -4
- package/pages/home.vue +1 -0
- package/plugins/dashboard-store/mutations.js +24 -3
- package/plugins/dashboard-store/resource-class.js +6 -0
- package/store/type-map.js +4 -2
- 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
|
-
|
|
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];
|
package/types/shell/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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;
|