@rancher/shell 0.3.16 → 0.3.17

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 (144) hide show
  1. package/assets/images/wechat-qr-code.jpg +0 -0
  2. package/assets/translations/en-us.yaml +69 -14
  3. package/assets/translations/zh-hans.yaml +87 -7
  4. package/chart/__tests__/S3.test.ts +50 -0
  5. package/chart/rancher-backup/S3.vue +21 -0
  6. package/chart/rancher-backup/index.vue +4 -0
  7. package/components/CommunityLinks.vue +1 -0
  8. package/components/FileDiff.vue +92 -85
  9. package/components/ResourceDetail/index.vue +4 -12
  10. package/components/ResourceList/index.vue +1 -1
  11. package/components/ResourceTable.vue +50 -2
  12. package/components/YamlEditor.vue +1 -0
  13. package/components/auth/RoleDetailEdit.vue +1 -0
  14. package/components/form/NameNsDescription.vue +28 -12
  15. package/components/form/NodeAffinity.vue +2 -2
  16. package/components/form/PodAffinity.vue +2 -2
  17. package/components/form/ResourceTabs/index.vue +8 -2
  18. package/components/form/Select.vue +16 -0
  19. package/components/form/__tests__/NodeAffinity.test.ts +38 -0
  20. package/components/form/__tests__/PodAffinity.test.ts +46 -0
  21. package/components/formatter/ClusterLink.vue +8 -4
  22. package/components/formatter/ImageName.vue +23 -0
  23. package/components/formatter/PodImages.vue +7 -1
  24. package/components/formatter/__tests__/ClusterLink.test.ts +101 -0
  25. package/components/nav/Header.vue +2 -2
  26. package/config/__test__/home-links.test.ts +62 -0
  27. package/config/home-links.js +15 -3
  28. package/config/labels-annotations.js +5 -1
  29. package/config/router.js +0 -4
  30. package/config/settings.ts +4 -0
  31. package/config/table-headers.js +6 -5
  32. package/config/uiplugins.js +50 -5
  33. package/core/plugin-helpers.js +20 -12
  34. package/core/plugin.ts +9 -0
  35. package/core/plugins.js +1 -1
  36. package/core/types-provisioning.ts +253 -0
  37. package/core/types.ts +17 -3
  38. package/detail/autoscaling.horizontalpodautoscaler/index.vue +50 -1
  39. package/detail/node.vue +6 -6
  40. package/detail/pod.vue +2 -6
  41. package/detail/provisioning.cattle.io.cluster.vue +46 -7
  42. package/detail/workload/index.vue +9 -9
  43. package/edit/__tests__/fleet.cattle.io.gitrepo.test.ts +62 -0
  44. package/edit/auth/github.vue +1 -0
  45. package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +130 -0
  46. package/edit/autoscaling.horizontalpodautoscaler/index.vue +79 -0
  47. package/edit/fleet.cattle.io.gitrepo.vue +18 -1
  48. package/edit/namespace.vue +9 -1
  49. package/edit/networking.k8s.io.ingress/RulePath.vue +0 -2
  50. package/edit/provisioning.cattle.io.cluster/AgentConfiguration.vue +1 -30
  51. package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +79 -1
  52. package/edit/provisioning.cattle.io.cluster/index.vue +52 -0
  53. package/edit/provisioning.cattle.io.cluster/rke2.vue +330 -150
  54. package/edit/ui.cattle.io.navlink.vue +2 -1
  55. package/initialize/App.js +3 -13
  56. package/initialize/layouts.ts +26 -0
  57. package/list/provisioning.cattle.io.cluster.vue +8 -1
  58. package/middleware/authenticated.js +93 -5
  59. package/mixins/brand.js +39 -3
  60. package/mixins/child-hook.js +2 -2
  61. package/mixins/create-edit-view/impl.js +2 -2
  62. package/models/fleet.cattle.io.gitrepo.js +1 -0
  63. package/models/provisioning.cattle.io.cluster.js +9 -1
  64. package/package.json +2 -2
  65. package/pages/about.vue +8 -2
  66. package/pages/auth/login.vue +1 -1
  67. package/pages/auth/logout.vue +11 -3
  68. package/pages/c/_cluster/apps/charts/index.vue +5 -2
  69. package/pages/c/_cluster/apps/charts/install.vue +5 -0
  70. package/pages/c/_cluster/explorer/index.vue +1 -10
  71. package/pages/c/_cluster/uiplugins/AddExtensionRepos.vue +177 -0
  72. package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +19 -3
  73. package/pages/c/_cluster/uiplugins/RemoveUIPlugins.vue +90 -21
  74. package/pages/c/_cluster/uiplugins/SetupUIPlugins.vue +107 -37
  75. package/pages/c/_cluster/uiplugins/index.vue +155 -44
  76. package/pages/docs/_doc.vue +9 -3
  77. package/pages/home.vue +5 -5
  78. package/pages/support/index.vue +10 -4
  79. package/pkg/auto-import.js +1 -1
  80. package/plugins/clean-tooltip-directive.js +1 -1
  81. package/plugins/dashboard-store/resource-class.js +35 -2
  82. package/plugins/plugin.js +9 -1
  83. package/rancher-components/BadgeState/BadgeState.vue +5 -1
  84. package/rancher-components/Banner/Banner.test.ts +51 -1
  85. package/rancher-components/Banner/Banner.vue +134 -53
  86. package/rancher-components/Card/Card.vue +24 -7
  87. package/rancher-components/Form/Checkbox/Checkbox.test.ts +20 -29
  88. package/rancher-components/Form/Checkbox/Checkbox.vue +45 -20
  89. package/rancher-components/Form/LabeledInput/LabeledInput.test.ts +2 -8
  90. package/rancher-components/Form/LabeledInput/LabeledInput.vue +22 -10
  91. package/rancher-components/Form/Radio/RadioButton.vue +30 -13
  92. package/rancher-components/Form/Radio/RadioGroup.vue +26 -7
  93. package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +7 -6
  94. package/rancher-components/Form/ToggleSwitch/ToggleSwitch.test.ts +25 -38
  95. package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +23 -11
  96. package/rancher-components/LabeledTooltip/LabeledTooltip.vue +19 -5
  97. package/rancher-components/StringList/StringList.test.ts +453 -49
  98. package/rancher-components/StringList/StringList.vue +44 -26
  99. package/scripts/extension/publish +2 -2
  100. package/scripts/typegen.sh +1 -0
  101. package/server/server-middleware.js +4 -12
  102. package/store/index.js +13 -0
  103. package/store/prefs.js +0 -3
  104. package/store/type-map.js +17 -29
  105. package/types/shell/index.d.ts +236 -83
  106. package/utils/kube.js +9 -0
  107. package/utils/object.js +27 -0
  108. package/utils/settings.ts +2 -2
  109. package/vue.config.js +3 -2
  110. package/components/.DS_Store +0 -0
  111. package/components/__tests__/.DS_Store +0 -0
  112. package/creators/pkg/package-lock.json +0 -37
  113. package/pages/safeMode.vue +0 -17
  114. package/rancher-components/components/BadgeState/BadgeState.spec.ts +0 -12
  115. package/rancher-components/components/BadgeState/BadgeState.vue +0 -111
  116. package/rancher-components/components/BadgeState/index.ts +0 -1
  117. package/rancher-components/components/Banner/Banner.test.ts +0 -63
  118. package/rancher-components/components/Banner/Banner.vue +0 -244
  119. package/rancher-components/components/Banner/index.ts +0 -1
  120. package/rancher-components/components/Card/Card.vue +0 -167
  121. package/rancher-components/components/Card/index.ts +0 -1
  122. package/rancher-components/components/Form/Checkbox/Checkbox.test.ts +0 -68
  123. package/rancher-components/components/Form/Checkbox/Checkbox.vue +0 -420
  124. package/rancher-components/components/Form/Checkbox/index.ts +0 -1
  125. package/rancher-components/components/Form/LabeledInput/LabeledInput.test.ts +0 -23
  126. package/rancher-components/components/Form/LabeledInput/LabeledInput.vue +0 -355
  127. package/rancher-components/components/Form/LabeledInput/index.ts +0 -1
  128. package/rancher-components/components/Form/Radio/RadioButton.vue +0 -287
  129. package/rancher-components/components/Form/Radio/RadioGroup.vue +0 -254
  130. package/rancher-components/components/Form/Radio/index.ts +0 -2
  131. package/rancher-components/components/Form/TextArea/TextAreaAutoGrow.vue +0 -170
  132. package/rancher-components/components/Form/TextArea/index.ts +0 -1
  133. package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.test.ts +0 -94
  134. package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.vue +0 -149
  135. package/rancher-components/components/Form/ToggleSwitch/index.ts +0 -1
  136. package/rancher-components/components/Form/index.ts +0 -5
  137. package/rancher-components/components/LabeledTooltip/LabeledTooltip.vue +0 -151
  138. package/rancher-components/components/LabeledTooltip/index.ts +0 -1
  139. package/rancher-components/components/StringList/StringList.test.ts +0 -484
  140. package/rancher-components/components/StringList/StringList.vue +0 -611
  141. package/rancher-components/components/StringList/index.ts +0 -1
  142. package/yarn-error.log +0 -196
  143. /package/rancher-components/{components/Card → Card}/Card.test.ts +0 -0
  144. /package/rancher-components/{components/Form → Form}/Radio/RadioButton.test.ts +0 -0
@@ -21,6 +21,143 @@ declare module 'vue/types/vue' {
21
21
 
22
22
  declare module 'js-yaml';
23
23
 
24
+ // @shell/config/labels-annotations
25
+
26
+ declare module '@shell/config/labels-annotations' {
27
+ export const NORMAN_NAME: "field.cattle.io/name";
28
+ export const DESCRIPTION: "field.cattle.io/description";
29
+ export const HOSTNAME: "kubernetes.io/hostname";
30
+ export const TIMESTAMP: "cattle.io/timestamp";
31
+ export const SYSTEM_NAMESPACE: "management.cattle.io/system-namespace";
32
+ export const PROJECT: "field.cattle.io/projectId";
33
+ export const DEFAULT_PROJECT: "authz.management.cattle.io/default-project";
34
+ export const SYSTEM_PROJECT: "authz.management.cattle.io/system-project";
35
+ export const CONTAINER_DEFAULT_RESOURCE_LIMIT: "field.cattle.io/containerDefaultResourceLimit";
36
+ export const CATTLE_PUBLIC_ENDPOINTS: "field.cattle.io/publicEndpoints";
37
+ export const TARGET_WORKLOADS: "field.cattle.io/targetWorkloadIds";
38
+ export const UI_MANAGED: "management.cattle.io/ui-managed";
39
+ export const CREATOR_ID: "field.cattle.io/creatorId";
40
+ export const RESOURCE_QUOTA: "field.cattle.io/resourceQuota";
41
+ export const AZURE_MIGRATED: "auth.cattle.io/azuread-endpoint-migrated";
42
+ export const WORKSPACE_ANNOTATION: "objectset.rio.cattle.io/id";
43
+ export namespace KUBERNETES {
44
+ const SERVICE_ACCOUNT_UID: string;
45
+ const SERVICE_ACCOUNT_NAME: string;
46
+ const MANAGED_BY: string;
47
+ const MANAGED_NAME: string;
48
+ const INSTANCE: string;
49
+ }
50
+ export namespace CERTMANAGER {
51
+ const ISSUER: string;
52
+ }
53
+ export namespace STORAGE {
54
+ const DEFAULT_STORAGE_CLASS: string;
55
+ const BETA_DEFAULT_STORAGE_CLASS: string;
56
+ }
57
+ export namespace MANAGEMENT_NODE {
58
+ const NODE_NAME: string;
59
+ }
60
+ export namespace NODE_ROLES {
61
+ const CONTROL_PLANE_OLD: string;
62
+ const CONTROL_PLANE: string;
63
+ const WORKER: string;
64
+ const ETCD: string;
65
+ }
66
+ export namespace MACHINE_ROLES {
67
+ const CONTROL_PLANE_1: string;
68
+ export { CONTROL_PLANE_1 as CONTROL_PLANE };
69
+ const WORKER_1: string;
70
+ export { WORKER_1 as WORKER };
71
+ const ETCD_1: string;
72
+ export { ETCD_1 as ETCD };
73
+ }
74
+ export namespace CAPI {
75
+ const DEPLOYMENT_NAME: string;
76
+ const CREDENTIAL_DRIVER: string;
77
+ const CLUSTER_NAMESPACE: string;
78
+ const FORCE_MACHINE_REMOVE: string;
79
+ const MACHINE_NAME: string;
80
+ const DELETE_MACHINE: string;
81
+ const PROVIDER: string;
82
+ const SECRET_AUTH: string;
83
+ const SECRET_WILL_DELETE: string;
84
+ const UI_CUSTOM_PROVIDER: string;
85
+ }
86
+ export namespace CATALOG {
87
+ const CERTIFIED: string;
88
+ const _RANCHER: string;
89
+ const _PARTNER: string;
90
+ const _OTHER: string;
91
+ const EXPERIMENTAL: string;
92
+ const NAMESPACE: string;
93
+ const RELEASE_NAME: string;
94
+ const FEATURED: string;
95
+ const REQUIRES_GVK: string;
96
+ const PROVIDES: string;
97
+ const AUTO_INSTALL_GVK: string;
98
+ const AUTO_INSTALL: string;
99
+ const HIDDEN: string;
100
+ const REQUESTS_CPU: string;
101
+ const REQUESTS_MEMORY: string;
102
+ const SCOPE: string;
103
+ const _MANAGEMENT: string;
104
+ const _DOWNSTREAM: string;
105
+ const TYPE: string;
106
+ const _APP: string;
107
+ const _CLUSTER_TPL: string;
108
+ const _CLUSTER_TOOL: string;
109
+ const COMPONENT: string;
110
+ const SOURCE_REPO_TYPE: string;
111
+ const SOURCE_REPO_NAME: string;
112
+ const COLOR: string;
113
+ const DISPLAY_NAME: string;
114
+ const SUPPORTED_OS: string;
115
+ const PERMITTED_OS: string;
116
+ const DEPLOYED_OS: string;
117
+ const MIGRATED: string;
118
+ const MANAGED: string;
119
+ const HIDDEN_REPO: string;
120
+ }
121
+ export namespace FLEET {
122
+ export const CLUSTER_DISPLAY_NAME: string;
123
+ export const CLUSTER_NAME: string;
124
+ export const BUNDLE_ID: string;
125
+ const MANAGED_1: string;
126
+ export { MANAGED_1 as MANAGED };
127
+ }
128
+ export namespace RBAC {
129
+ const PRODUCT: string;
130
+ }
131
+ export namespace RKE {
132
+ const EXTERNAL_IP: string;
133
+ }
134
+ export namespace SNAPSHOT {
135
+ const CLUSTER_NAME_1: string;
136
+ export { CLUSTER_NAME_1 as CLUSTER_NAME };
137
+ }
138
+ export namespace ISTIO {
139
+ const AUTO_INJECTION: string;
140
+ }
141
+ export const LABELS_TO_IGNORE_REGEX: RegExp[];
142
+ export const ANNOTATIONS_TO_IGNORE_REGEX: RegExp[];
143
+ export const ANNOTATIONS_TO_FOLD: RegExp[];
144
+ export namespace HCI {
145
+ const CLOUD_INIT: string;
146
+ const CLOUD_PROVIDER_IPAM: string;
147
+ const NETWORK_ROUTE: string;
148
+ const IMAGE_NAME: string;
149
+ const NETWORK_TYPE: string;
150
+ const PRIMARY_SERVICE: string;
151
+ }
152
+ export namespace CLUSTER_BADGE {
153
+ export const TEXT: string;
154
+ const COLOR_1: string;
155
+ export { COLOR_1 as COLOR };
156
+ export const ICON_TEXT: string;
157
+ }
158
+ export const SYSTEM_LABELS: string[];
159
+ }
160
+
24
161
  // @shell/config/query-params
25
162
 
26
163
  declare module '@shell/config/query-params' {
@@ -471,7 +608,7 @@ export namespace DURATION {
471
608
  const formatter_16: string;
472
609
  export { formatter_16 as formatter };
473
610
  }
474
- export namespace IMAGE {
611
+ export namespace IMAGE_NAME {
475
612
  const name_29: string;
476
613
  export { name_29 as name };
477
614
  const labelKey_29: string;
@@ -480,6 +617,8 @@ export namespace IMAGE {
480
617
  export { value_28 as value };
481
618
  const sort_29: string[];
482
619
  export { sort_29 as sort };
620
+ const formatter_17: string;
621
+ export { formatter_17 as formatter };
483
622
  }
484
623
  export namespace POD_IMAGES {
485
624
  const name_30: string;
@@ -492,16 +631,16 @@ export namespace POD_IMAGES {
492
631
  export { getValue_8 as getValue };
493
632
  const sort_30: string;
494
633
  export { sort_30 as sort };
495
- const formatter_17: string;
496
- export { formatter_17 as formatter };
634
+ const formatter_18: string;
635
+ export { formatter_18 as formatter };
497
636
  }
498
637
  export namespace POD_RESTARTS {
499
638
  const name_31: string;
500
639
  export { name_31 as name };
501
640
  const labelKey_31: string;
502
641
  export { labelKey_31 as labelKey };
503
- const formatter_18: string;
504
- export { formatter_18 as formatter };
642
+ const formatter_19: string;
643
+ export { formatter_19 as formatter };
505
644
  export const delayLoading: boolean;
506
645
  const value_30: string;
507
646
  export { value_30 as value };
@@ -518,8 +657,8 @@ export namespace ENDPOINTS {
518
657
  export { labelKey_32 as labelKey };
519
658
  const value_31: string;
520
659
  export { value_31 as value };
521
- const formatter_19: string;
522
- export { formatter_19 as formatter };
660
+ const formatter_20: string;
661
+ export { formatter_20 as formatter };
523
662
  const width_7: number;
524
663
  export { width_7 as width };
525
664
  const align_3: string;
@@ -534,8 +673,8 @@ export namespace SCALE {
534
673
  export { value_32 as value };
535
674
  const sort_31: string[];
536
675
  export { sort_31 as sort };
537
- const formatter_20: string;
538
- export { formatter_20 as formatter };
676
+ const formatter_21: string;
677
+ export { formatter_21 as formatter };
539
678
  const width_8: number;
540
679
  export { width_8 as width };
541
680
  const align_4: string;
@@ -560,8 +699,8 @@ export namespace WEIGHT {
560
699
  export { value_34 as value };
561
700
  const sort_33: string;
562
701
  export { sort_33 as sort };
563
- const formatter_21: string;
564
- export { formatter_21 as formatter };
702
+ const formatter_22: string;
703
+ export { formatter_22 as formatter };
565
704
  const width_9: number;
566
705
  export { width_9 as width };
567
706
  const align_5: string;
@@ -674,8 +813,8 @@ export namespace USER_ID {
674
813
  export { labelKey_45 as labelKey };
675
814
  const value_44: string;
676
815
  export { value_44 as value };
677
- const formatter_22: string;
678
- export { formatter_22 as formatter };
816
+ const formatter_23: string;
817
+ export { formatter_23 as formatter };
679
818
  const canBeVariable_5: boolean;
680
819
  export { canBeVariable_5 as canBeVariable };
681
820
  const sort_38: string;
@@ -712,8 +851,8 @@ export namespace IMAGE_SIZE {
712
851
  export { value_47 as value };
713
852
  const sort_41: string[];
714
853
  export { sort_41 as sort };
715
- const formatter_23: string;
716
- export { formatter_23 as formatter };
854
+ const formatter_24: string;
855
+ export { formatter_24 as formatter };
717
856
  }
718
857
  export namespace TYPE {
719
858
  const name_49: string;
@@ -783,8 +922,8 @@ export namespace LAST_HEARTBEAT_TIME {
783
922
  export { value_53 as value };
784
923
  const sort_47: string[];
785
924
  export { sort_47 as sort };
786
- const formatter_24: string;
787
- export { formatter_24 as formatter };
925
+ const formatter_25: string;
926
+ export { formatter_25 as formatter };
788
927
  const width_18: number;
789
928
  export { width_18 as width };
790
929
  }
@@ -809,8 +948,8 @@ export namespace OBJECT {
809
948
  export { sort_49 as sort };
810
949
  const canBeVariable_6: boolean;
811
950
  export { canBeVariable_6 as canBeVariable };
812
- const formatter_25: string;
813
- export { formatter_25 as formatter };
951
+ const formatter_26: string;
952
+ export { formatter_26 as formatter };
814
953
  }
815
954
  export namespace RECLAIM_POLICY {
816
955
  const name_57: string;
@@ -873,8 +1012,8 @@ export namespace BUILT_IN {
873
1012
  export { sort_55 as sort };
874
1013
  const align_9: string;
875
1014
  export { align_9 as align };
876
- const formatter_26: string;
877
- export { formatter_26 as formatter };
1015
+ const formatter_27: string;
1016
+ export { formatter_27 as formatter };
878
1017
  }
879
1018
  export namespace CLUSTER_CREATOR_DEFAULT {
880
1019
  const name_63: string;
@@ -887,8 +1026,8 @@ export namespace CLUSTER_CREATOR_DEFAULT {
887
1026
  export { sort_56 as sort };
888
1027
  const align_10: string;
889
1028
  export { align_10 as align };
890
- const formatter_27: string;
891
- export { formatter_27 as formatter };
1029
+ const formatter_28: string;
1030
+ export { formatter_28 as formatter };
892
1031
  }
893
1032
  export namespace RBAC_DEFAULT {
894
1033
  const name_64: string;
@@ -897,8 +1036,8 @@ export namespace RBAC_DEFAULT {
897
1036
  export { labelKey_64 as labelKey };
898
1037
  const value_63: string;
899
1038
  export { value_63 as value };
900
- const formatter_28: string;
901
- export { formatter_28 as formatter };
1039
+ const formatter_29: string;
1040
+ export { formatter_29 as formatter };
902
1041
  const sort_57: string[];
903
1042
  export { sort_57 as sort };
904
1043
  }
@@ -909,8 +1048,8 @@ export namespace RBAC_BUILTIN {
909
1048
  export { labelKey_65 as labelKey };
910
1049
  const value_64: string;
911
1050
  export { value_64 as value };
912
- const formatter_29: string;
913
- export { formatter_29 as formatter };
1051
+ const formatter_30: string;
1052
+ export { formatter_30 as formatter };
914
1053
  const sort_58: string[];
915
1054
  export { sort_58 as sort };
916
1055
  }
@@ -953,8 +1092,8 @@ export namespace INGRESS_DEFAULT_BACKEND {
953
1092
  export { value_68 as value };
954
1093
  const sort_62: string[];
955
1094
  export { sort_62 as sort };
956
- const formatter_30: string;
957
- export { formatter_30 as formatter };
1095
+ const formatter_31: string;
1096
+ export { formatter_31 as formatter };
958
1097
  const width_19: number;
959
1098
  export { width_19 as width };
960
1099
  const align_11: string;
@@ -967,8 +1106,8 @@ export namespace INGRESS_TARGET {
967
1106
  export { labelKey_70 as labelKey };
968
1107
  const value_69: string;
969
1108
  export { value_69 as value };
970
- const formatter_31: string;
971
- export { formatter_31 as formatter };
1109
+ const formatter_32: string;
1110
+ export { formatter_32 as formatter };
972
1111
  const sort_63: string;
973
1112
  export { sort_63 as sort };
974
1113
  }
@@ -981,12 +1120,12 @@ export namespace SPEC_TYPE {
981
1120
  export { value_70 as value };
982
1121
  const sort_64: string;
983
1122
  export { sort_64 as sort };
984
- const formatter_32: string;
985
- export { formatter_32 as formatter };
986
- }
987
- export namespace TARGET_PORT {
988
1123
  const formatter_33: string;
989
1124
  export { formatter_33 as formatter };
1125
+ }
1126
+ export namespace TARGET_PORT {
1127
+ const formatter_34: string;
1128
+ export { formatter_34 as formatter };
990
1129
  const labelKey_72: string;
991
1130
  export { labelKey_72 as labelKey };
992
1131
  const name_72: string;
@@ -997,8 +1136,8 @@ export namespace TARGET_PORT {
997
1136
  export { value_71 as value };
998
1137
  }
999
1138
  export namespace SELECTOR {
1000
- const formatter_34: string;
1001
- export { formatter_34 as formatter };
1139
+ const formatter_35: string;
1140
+ export { formatter_35 as formatter };
1002
1141
  const name_73: string;
1003
1142
  export { name_73 as name };
1004
1143
  const labelKey_73: string;
@@ -1059,8 +1198,8 @@ export namespace LAST_UPDATED {
1059
1198
  export { labelKey_78 as labelKey };
1060
1199
  const value_77: string;
1061
1200
  export { value_77 as value };
1062
- const formatter_35: string;
1063
- export { formatter_35 as formatter };
1201
+ const formatter_36: string;
1202
+ export { formatter_36 as formatter };
1064
1203
  export namespace formatterOpts_3 {
1065
1204
  const addSuffix: boolean;
1066
1205
  }
@@ -1091,8 +1230,8 @@ export namespace WORKLOAD_ENDPOINTS {
1091
1230
  export { value_80 as value };
1092
1231
  export function getValue_11(row: any): any;
1093
1232
  export { getValue_11 as getValue };
1094
- const formatter_36: string;
1095
- export { formatter_36 as formatter };
1233
+ const formatter_37: string;
1234
+ export { formatter_37 as formatter };
1096
1235
  const dashIfEmpty_5: boolean;
1097
1236
  export { dashIfEmpty_5 as dashIfEmpty };
1098
1237
  const breakpoint_1: any;
@@ -1104,8 +1243,8 @@ export namespace WORKLOAD_HEALTH_SCALE {
1104
1243
  export { name_81 as name };
1105
1244
  const labelKey_80: string;
1106
1245
  export { labelKey_80 as labelKey };
1107
- const formatter_37: string;
1108
- export { formatter_37 as formatter };
1246
+ const formatter_38: string;
1247
+ export { formatter_38 as formatter };
1109
1248
  export function getValue_12(): any;
1110
1249
  export { getValue_12 as getValue };
1111
1250
  const width_21: number;
@@ -1129,8 +1268,8 @@ export namespace FLEET_SUMMARY {
1129
1268
  export { sort_73 as sort };
1130
1269
  const search_7: boolean;
1131
1270
  export { search_7 as search };
1132
- const formatter_38: string;
1133
- export { formatter_38 as formatter };
1271
+ const formatter_39: string;
1272
+ export { formatter_39 as formatter };
1134
1273
  const align_12: string;
1135
1274
  export { align_12 as align };
1136
1275
  const width_22: number;
@@ -1147,8 +1286,8 @@ export namespace APP_SUMMARY {
1147
1286
  export { sort_74 as sort };
1148
1287
  const search_8: boolean;
1149
1288
  export { search_8 as search };
1150
- const formatter_39: string;
1151
- export { formatter_39 as formatter };
1289
+ const formatter_40: string;
1290
+ export { formatter_40 as formatter };
1152
1291
  const align_13: string;
1153
1292
  export { align_13 as align };
1154
1293
  const width_23: number;
@@ -1163,8 +1302,8 @@ export namespace CONSTRAINT_VIOLATION_CONSTRAINT_LINK {
1163
1302
  export { value_83 as value };
1164
1303
  const sort_75: string;
1165
1304
  export { sort_75 as sort };
1166
- const formatter_40: string;
1167
- export { formatter_40 as formatter };
1305
+ const formatter_41: string;
1306
+ export { formatter_41 as formatter };
1168
1307
  export namespace formatterOpts_4 {
1169
1308
  export namespace options_1 {
1170
1309
  const internal_1: boolean;
@@ -1185,8 +1324,8 @@ export namespace CONSTRAINT_VIOLATION_RESOURCE_LINK {
1185
1324
  export { sort_76 as sort };
1186
1325
  const search_9: string;
1187
1326
  export { search_9 as search };
1188
- const formatter_41: string;
1189
- export { formatter_41 as formatter };
1327
+ const formatter_42: string;
1328
+ export { formatter_42 as formatter };
1190
1329
  export namespace formatterOpts_5 {
1191
1330
  export namespace options_2 {
1192
1331
  const internal_2: boolean;
@@ -1237,8 +1376,8 @@ export namespace CONSTRAINT_VIOLATION_TEMPLATE_LINK {
1237
1376
  export { value_88 as value };
1238
1377
  const sort_80: string;
1239
1378
  export { sort_80 as sort };
1240
- const formatter_42: string;
1241
- export { formatter_42 as formatter };
1379
+ const formatter_43: string;
1380
+ export { formatter_43 as formatter };
1242
1381
  export namespace formatterOpts_6 {
1243
1382
  export namespace options_3 {
1244
1383
  const internal_3: boolean;
@@ -1257,8 +1396,8 @@ export namespace CONSTRAINT_VIOLATION_COUNT {
1257
1396
  export { value_89 as value };
1258
1397
  const sort_81: string;
1259
1398
  export { sort_81 as sort };
1260
- const formatter_43: string;
1261
- export { formatter_43 as formatter };
1399
+ const formatter_44: string;
1400
+ export { formatter_44 as formatter };
1262
1401
  export namespace formatterOpts_7 {
1263
1402
  function qualityFn(value: any): "error" | "success" | "warning";
1264
1403
  function qualityFn(value: any): "error" | "success" | "warning";
@@ -1274,8 +1413,8 @@ export namespace RECEIVER_PROVIDERS {
1274
1413
  export { value_90 as value };
1275
1414
  const sort_82: string;
1276
1415
  export { sort_82 as sort };
1277
- const formatter_44: string;
1278
- export { formatter_44 as formatter };
1416
+ const formatter_45: string;
1417
+ export { formatter_45 as formatter };
1279
1418
  }
1280
1419
  export namespace CONFIGURED_RECEIVER {
1281
1420
  const name_92: string;
@@ -1286,8 +1425,8 @@ export namespace CONFIGURED_RECEIVER {
1286
1425
  export { value_91 as value };
1287
1426
  const sort_83: string;
1288
1427
  export { sort_83 as sort };
1289
- const formatter_45: string;
1290
- export { formatter_45 as formatter };
1428
+ const formatter_46: string;
1429
+ export { formatter_46 as formatter };
1291
1430
  export namespace formatterOpts_8 {
1292
1431
  export namespace options_4 {
1293
1432
  const internal_4: boolean;
@@ -1308,8 +1447,8 @@ export namespace GROUP_NAME {
1308
1447
  export { sort_84 as sort };
1309
1448
  const search_11: string[];
1310
1449
  export { search_11 as search };
1311
- const formatter_46: string;
1312
- export { formatter_46 as formatter };
1450
+ const formatter_47: string;
1451
+ export { formatter_47 as formatter };
1313
1452
  const width_24: number;
1314
1453
  export { width_24 as width };
1315
1454
  }
@@ -1320,8 +1459,8 @@ export namespace GROUP_ROLE_NAME {
1320
1459
  export { labelKey_91 as labelKey };
1321
1460
  const value_93: string;
1322
1461
  export { value_93 as value };
1323
- const formatter_47: string;
1324
- export { formatter_47 as formatter };
1462
+ const formatter_48: string;
1463
+ export { formatter_48 as formatter };
1325
1464
  }
1326
1465
  export namespace HPA_REFERENCE {
1327
1466
  const name_95: string;
@@ -1366,8 +1505,8 @@ export namespace CURRENT_REPLICA {
1366
1505
  export namespace EXPIRY_STATE {
1367
1506
  const value_98: string;
1368
1507
  export { value_98 as value };
1369
- const formatter_48: string;
1370
- export { formatter_48 as formatter };
1508
+ const formatter_49: string;
1509
+ export { formatter_49 as formatter };
1371
1510
  }
1372
1511
  export namespace ACCESS_KEY {
1373
1512
  const name_99: string;
@@ -1416,8 +1555,8 @@ export namespace EXPIRES {
1416
1555
  export { sort_92 as sort };
1417
1556
  const width_27: number;
1418
1557
  export { width_27 as width };
1419
- const formatter_49: string;
1420
- export { formatter_49 as formatter };
1558
+ const formatter_50: string;
1559
+ export { formatter_50 as formatter };
1421
1560
  }
1422
1561
  export namespace RESTART {
1423
1562
  const name_102: string;
@@ -1428,8 +1567,8 @@ export namespace RESTART {
1428
1567
  export { value_102 as value };
1429
1568
  const sort_93: string[];
1430
1569
  export { sort_93 as sort };
1431
- const formatter_50: string;
1432
- export { formatter_50 as formatter };
1570
+ const formatter_51: string;
1571
+ export { formatter_51 as formatter };
1433
1572
  const width_28: number;
1434
1573
  export { width_28 as width };
1435
1574
  const align_17: string;
@@ -1454,8 +1593,8 @@ export namespace FEATURE_DESCRIPTION {
1454
1593
  export { align_18 as align };
1455
1594
  const sort_94: string[];
1456
1595
  export { sort_94 as sort };
1457
- const formatter_51: string;
1458
- export { formatter_51 as formatter };
1596
+ const formatter_52: string;
1597
+ export { formatter_52 as formatter };
1459
1598
  export namespace formatterOpts_9 {
1460
1599
  const prefix: string;
1461
1600
  }
@@ -1474,8 +1613,8 @@ export namespace STATE_NORMAN {
1474
1613
  export { width_29 as width };
1475
1614
  const _default_1: string;
1476
1615
  export { _default_1 as default };
1477
- const formatter_52: string;
1478
- export { formatter_52 as formatter };
1616
+ const formatter_53: string;
1617
+ export { formatter_53 as formatter };
1479
1618
  }
1480
1619
  export namespace KUBE_NODE_OS {
1481
1620
  const name_106: string;
@@ -1486,8 +1625,8 @@ export namespace KUBE_NODE_OS {
1486
1625
  export { value_106 as value };
1487
1626
  const sort_96: string[];
1488
1627
  export { sort_96 as sort };
1489
- const formatter_53: string;
1490
- export { formatter_53 as formatter };
1628
+ const formatter_54: string;
1629
+ export { formatter_54 as formatter };
1491
1630
  }
1492
1631
  export namespace MACHINE_NODE_OS {
1493
1632
  const name_107: string;
@@ -1498,8 +1637,8 @@ export namespace MACHINE_NODE_OS {
1498
1637
  export { value_107 as value };
1499
1638
  const sort_97: string[];
1500
1639
  export { sort_97 as sort };
1501
- const formatter_54: string;
1502
- export { formatter_54 as formatter };
1640
+ const formatter_55: string;
1641
+ export { formatter_55 as formatter };
1503
1642
  const dashIfEmpty_7: boolean;
1504
1643
  export { dashIfEmpty_7 as dashIfEmpty };
1505
1644
  }
@@ -1512,8 +1651,8 @@ export namespace MANAGEMENT_NODE_OS {
1512
1651
  export { value_108 as value };
1513
1652
  const sort_98: string[];
1514
1653
  export { sort_98 as sort };
1515
- const formatter_55: string;
1516
- export { formatter_55 as formatter };
1654
+ const formatter_56: string;
1655
+ export { formatter_56 as formatter };
1517
1656
  const dashIfEmpty_8: boolean;
1518
1657
  export { dashIfEmpty_8 as dashIfEmpty };
1519
1658
  }
@@ -1524,8 +1663,8 @@ export namespace FLEET_BUNDLE_LAST_UPDATED {
1524
1663
  export { labelKey_106 as labelKey };
1525
1664
  const value_109: string;
1526
1665
  export { value_109 as value };
1527
- const formatter_56: string;
1528
- export { formatter_56 as formatter };
1666
+ const formatter_57: string;
1667
+ export { formatter_57 as formatter };
1529
1668
  export namespace formatterOpts_10 {
1530
1669
  const addSuffix_1: boolean;
1531
1670
  export { addSuffix_1 as addSuffix };
@@ -1923,7 +2062,7 @@ export default _default;
1923
2062
  // @shell/mixins/create-edit-view
1924
2063
 
1925
2064
  declare module '@shell/mixins/create-edit-view' {
1926
- declare var _default: import("vue/types/vue").ExtendedVue<Vue, {
2065
+ declare var _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, {
1927
2066
  errors: any[];
1928
2067
  }, {
1929
2068
  done(): any;
@@ -1949,7 +2088,7 @@ declare var _default: import("vue/types/vue").ExtendedVue<Vue, {
1949
2088
  initialValue: any;
1950
2089
  liveValue: any;
1951
2090
  doneEvent: boolean;
1952
- }>;
2091
+ }, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin>;
1953
2092
  export default _default;
1954
2093
  import Vue from "vue";
1955
2094
  }
@@ -1980,6 +2119,7 @@ export function getStateLabel(state: any): string;
1980
2119
  export function colorForState(state: any, isError: any, isTransitioning: any): string;
1981
2120
  export function stateDisplay(state: any): any;
1982
2121
  export function stateSort(color: any, display: any): string;
2122
+ export function isConditionReadyAndWaiting(condition: any): boolean;
1983
2123
  export namespace STATES_ENUM {
1984
2124
  const IN_USE: string;
1985
2125
  const IN_PROGRESS: string;
@@ -2671,6 +2811,12 @@ export default function _default(product: any, chartName: any, defaultResourceOr
2671
2811
  }) => Promise<any>;
2672
2812
  }
2673
2813
 
2814
+ // @shell/utils/kube
2815
+
2816
+ declare module '@shell/utils/kube' {
2817
+ export function normalizeName(str: any): any;
2818
+ }
2819
+
2674
2820
  // @shell/utils/monitoring
2675
2821
 
2676
2822
  declare module '@shell/utils/monitoring' {
@@ -2781,7 +2927,14 @@ export function applyChangeset(obj: any, changeset: any): any;
2781
2927
  * Creates an object composed of the `object` properties `predicate` returns
2782
2928
  */
2783
2929
  export function pickBy(obj?: {}, predicate?: (value: any, key: any) => boolean): {};
2930
+ export { isEqualBasic as isEqual };
2784
2931
  export function toDictionary(array: any, callback: any): any;
2932
+ /**
2933
+ * Super simple lodash isEqual equivalent.
2934
+ *
2935
+ * Only checks root properties for strict equality
2936
+ */
2937
+ declare function isEqualBasic(from: any, to: any): boolean;
2785
2938
  }
2786
2939
 
2787
2940
  // @shell/utils/parse-externalid
package/utils/kube.js ADDED
@@ -0,0 +1,9 @@
1
+ export function normalizeName(str) {
2
+ return (str || '')
3
+ .trim()
4
+ .toLowerCase()
5
+ .replace(/\s+/g, '-')
6
+ .replace(/-+/g, '-')
7
+ .replace(/^-+/, '')
8
+ .replace(/-+$/, '');
9
+ }
package/utils/object.js CHANGED
@@ -218,6 +218,33 @@ export function diff(from, to) {
218
218
  return out;
219
219
  }
220
220
 
221
+ /**
222
+ * Super simple lodash isEqual equivalent.
223
+ *
224
+ * Only checks root properties for strict equality
225
+ */
226
+ function isEqualBasic(from, to) {
227
+ const fromKeys = Object.keys(from || {});
228
+ const toKeys = Object.keys(to || {});
229
+
230
+ if (fromKeys.length !== toKeys.length) {
231
+ return false;
232
+ }
233
+
234
+ for (let i = 0; i < fromKeys.length; i++) {
235
+ const fromValue = from[fromKeys[i]];
236
+ const toValue = to[fromKeys[i]];
237
+
238
+ if (fromValue !== toValue) {
239
+ return false;
240
+ }
241
+ }
242
+
243
+ return true;
244
+ }
245
+
246
+ export { isEqualBasic as isEqual };
247
+
221
248
  export function changeset(from, to, parentPath = []) {
222
249
  let out = {};
223
250
 
package/utils/settings.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { MANAGEMENT } from '@shell/config/types';
2
2
  import { Store } from 'vuex';
3
3
  import { DEFAULT_PERF_SETTING, SETTING } from '@shell/config/settings';
4
- import { GC_PREFERENCES } from 'utils/gc/gc-types';
4
+ import { GC_PREFERENCES } from '@shell/utils/gc/gc-types';
5
5
 
6
6
  export const fetchOrCreateSetting = async(store: Store<any>, id: string, val: string, save = true): Promise<any> => {
7
7
  let setting;
@@ -56,7 +56,7 @@ export const getPerformanceSetting = (rootGetters: Record<string, (arg0: string,
56
56
  manualRefresh: {};
57
57
  disableWebsocketNotification: boolean;
58
58
  garbageCollection: GC_PREFERENCES;
59
- forceNsFilterV2: {};
59
+ forceNsFilterV2: any;
60
60
  advancedWorker: {};
61
61
  } => {
62
62
  const perfSettingResource = rootGetters['management/byId'](MANAGEMENT.SETTING, SETTING.UI_PERFORMANCE);