@k8slens/extensions 6.0.2 → 6.1.0-git.02e03ac626.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 (279) hide show
  1. package/dist/src/common/app-event-bus/app-event-bus.global-override-for-injectable.d.ts +5 -0
  2. package/dist/src/common/application-update/selected-update-channel/default-update-channel.injectable.d.ts +1 -1
  3. package/dist/src/common/application-update/selected-update-channel/selected-update-channel.injectable.d.ts +2 -2
  4. package/dist/src/common/application-update/update-channels.d.ts +7 -3
  5. package/dist/src/common/base-store.d.ts +1 -1
  6. package/dist/src/common/cluster/cluster.d.ts +2 -0
  7. package/dist/src/common/cluster-store/cluster-store.global-override-for-injectable.d.ts +6 -0
  8. package/dist/src/common/error-reporting/initialize-sentry-reporting.global-override-for-injectable.d.ts +9 -0
  9. package/dist/src/common/error-reporting/initialize-sentry-reporting.injectable.d.ts +5 -0
  10. package/dist/src/common/front-end-routing/routes/welcome/default-welcome-route.injectable.d.ts +6 -0
  11. package/dist/src/common/front-end-routing/routes/welcome/welcome-route-config.injectable.d.ts +2 -0
  12. package/dist/src/common/fs/exec-file.injectable.d.ts +3 -1
  13. package/dist/src/common/fs/stat/stat.global-override-for-injectable.d.ts +5 -0
  14. package/dist/src/common/fs/stat/stat.injectable.d.ts +2 -0
  15. package/dist/src/common/fs/validate-directory.injectable.d.ts +4 -0
  16. package/dist/src/common/fs/watch/watch.global-override-for-injectable.d.ts +5 -0
  17. package/dist/src/common/fs/watch/watch.injectable.d.ts +4 -0
  18. package/dist/src/common/get-configuration-file-model/get-configuration-file-model.injectable.d.ts +1 -1
  19. package/dist/src/common/initializable-state/create.d.ts +15 -0
  20. package/dist/src/{behaviours/add-cluster/navigation-using-application-menu.test.d.ts → common/initializable-state/create.test.d.ts} +0 -0
  21. package/dist/src/common/ipc/broadcast-message.injectable.d.ts +2 -2
  22. package/dist/src/common/k8s-api/endpoints/daemon-set.api.d.ts +1 -1
  23. package/dist/src/common/k8s-api/endpoints/index.d.ts +1 -0
  24. package/dist/src/common/k8s-api/endpoints/job.api.d.ts +4 -3
  25. package/dist/src/common/k8s-api/endpoints/metrics.api.d.ts +5 -2
  26. package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +14 -129
  27. package/dist/src/common/k8s-api/endpoints/replica-set.api.d.ts +1 -1
  28. package/dist/src/common/k8s-api/endpoints/stateful-set.api.d.ts +1 -1
  29. package/dist/src/common/k8s-api/endpoints/types/capabilities.d.ts +17 -0
  30. package/dist/src/common/k8s-api/endpoints/types/container-port.d.ts +11 -0
  31. package/dist/src/common/k8s-api/endpoints/types/container.d.ts +158 -0
  32. package/dist/src/common/k8s-api/endpoints/types/env-from-source.d.ts +13 -0
  33. package/dist/src/common/k8s-api/endpoints/types/env-source.d.ts +11 -0
  34. package/dist/src/common/k8s-api/endpoints/types/env-var-key-selector.d.ts +9 -0
  35. package/dist/src/common/k8s-api/endpoints/types/env-var-source.d.ts +13 -0
  36. package/dist/src/common/k8s-api/endpoints/types/env-var.d.ts +10 -0
  37. package/dist/src/common/k8s-api/endpoints/types/exec-action.d.ts +18 -0
  38. package/dist/src/common/k8s-api/endpoints/types/handler.d.ts +15 -0
  39. package/dist/src/common/k8s-api/endpoints/types/http-get-action.d.ts +32 -0
  40. package/dist/src/common/k8s-api/endpoints/types/http-header.d.ts +17 -0
  41. package/dist/src/common/k8s-api/endpoints/types/index.d.ts +35 -0
  42. package/dist/src/common/k8s-api/endpoints/types/lifecycle.d.ts +15 -0
  43. package/dist/src/common/k8s-api/endpoints/types/object-field-selector.d.ts +8 -0
  44. package/dist/src/common/k8s-api/endpoints/types/pod-security-context.d.ts +20 -0
  45. package/dist/src/common/k8s-api/endpoints/types/probe.d.ts +70 -0
  46. package/dist/src/common/k8s-api/endpoints/types/resource-field-selector.d.ts +9 -0
  47. package/dist/src/common/k8s-api/endpoints/types/se-linux-options.d.ts +25 -0
  48. package/dist/src/common/k8s-api/endpoints/types/seccomp-profile.d.ts +27 -0
  49. package/dist/src/common/k8s-api/endpoints/types/security-context.d.ts +45 -0
  50. package/dist/src/common/k8s-api/endpoints/types/tcp-socket-action.d.ts +17 -0
  51. package/dist/src/common/k8s-api/endpoints/types/volume-device.d.ts +17 -0
  52. package/dist/src/common/k8s-api/endpoints/types/volume-mount.d.ts +12 -0
  53. package/dist/src/common/k8s-api/endpoints/types/windows-security-context-options.d.ts +36 -0
  54. package/dist/src/common/protocol-handler/router.d.ts +2 -0
  55. package/dist/src/common/test-utils/get-global-override.d.ts +4 -0
  56. package/dist/src/common/user-store/user-store.d.ts +1 -3
  57. package/dist/src/{behaviours/command-pallet/keyboard-shortcuts.test.d.ts → common/utils/__tests__/union-env-path.test.d.ts} +0 -0
  58. package/dist/src/common/utils/abort-controller.d.ts +1 -1
  59. package/dist/src/common/utils/app-version.d.ts +0 -2
  60. package/dist/src/common/utils/index.d.ts +0 -1
  61. package/dist/src/common/utils/open-link-in-browser.global-override-for-injectable.d.ts +9 -0
  62. package/dist/src/common/utils/open-link-in-browser.injectable.d.ts +3 -0
  63. package/dist/src/common/utils/singleton.d.ts +1 -1
  64. package/dist/src/common/utils/union-env-path.d.ts +12 -0
  65. package/dist/src/{main/app-paths/app-name → common/vars}/app-name.injectable.d.ts +0 -0
  66. package/dist/src/common/vars/application-copyright.injectable.d.ts +2 -0
  67. package/dist/src/common/vars/application-description.injectable.d.ts +2 -0
  68. package/dist/src/common/vars/application-information.global-override-for-injectable.d.ts +9 -0
  69. package/dist/src/common/vars/application-information.injectable.d.ts +8 -0
  70. package/dist/src/common/vars/build-semantic-version.injectable.d.ts +11 -0
  71. package/dist/src/common/vars/bundled-kubectl-version.injectable.d.ts +2 -0
  72. package/dist/src/common/vars/content-security-policy.injectable.d.ts +2 -0
  73. package/dist/src/common/vars/extension-api-version.injectable.d.ts +2 -0
  74. package/dist/src/common/vars/is-snap-package.global-override-for-injectable.d.ts +9 -0
  75. package/dist/src/common/vars/is-snap-package.injectable.d.ts +2 -0
  76. package/dist/src/{main/app-paths/app-name → common/vars}/product-name.injectable.d.ts +0 -0
  77. package/dist/src/common/vars/release-channel.injectable.d.ts +3 -0
  78. package/dist/src/common/vars/sentry-dsn-url.injectable.d.ts +2 -0
  79. package/dist/src/common/vars/store-migration-version.injectable.d.ts +2 -0
  80. package/dist/src/common/vars.d.ts +0 -8
  81. package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api-with-modifications.d.ts +1 -1
  82. package/dist/src/extensions/common-api/app.d.ts +14 -5
  83. package/dist/src/extensions/common-api/index.d.ts +2 -2
  84. package/dist/src/extensions/common-api/k8s-api.d.ts +2 -2
  85. package/dist/src/extensions/common-api/user-preferences.d.ts +7 -4
  86. package/dist/src/extensions/common-api/utils.d.ts +13 -3
  87. package/dist/src/extensions/extension-api.js +934 -669
  88. package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +9 -2
  89. package/dist/src/extensions/extension-discovery/is-compatible-extension/is-compatible-extension.d.ts +2 -7
  90. package/dist/src/extensions/extension-store.d.ts +1 -1
  91. package/dist/src/extensions/renderer-api/theming.d.ts +7 -1
  92. package/dist/src/{behaviours/extensions → features/add-cluster}/navigation-using-application-menu.test.d.ts +0 -0
  93. package/dist/src/{behaviours → features}/application-update/analytics-for-installing-update.test.d.ts +0 -0
  94. package/dist/src/{behaviours → features}/application-update/downgrading-version-update.test.d.ts +0 -0
  95. package/dist/src/{behaviours → features}/application-update/force-user-to-update-when-too-long-time-since-update-was-downloaded.test.d.ts +0 -0
  96. package/dist/src/{behaviours → features}/application-update/installing-update-using-topbar-button.test.d.ts +0 -0
  97. package/dist/src/{behaviours → features}/application-update/installing-update-using-tray.test.d.ts +0 -0
  98. package/dist/src/{behaviours → features}/application-update/installing-update.test.d.ts +0 -0
  99. package/dist/src/{behaviours → features}/application-update/periodical-checking-of-updates.test.d.ts +0 -0
  100. package/dist/src/{behaviours → features}/application-update/selection-of-update-stability.test.d.ts +0 -0
  101. package/dist/src/{behaviours → features}/cluster/extension-api/disable-cluster-pages-when-cluster-is-not-relevant.test.d.ts +0 -0
  102. package/dist/src/{behaviours → features}/cluster/extension-api/disable-sidebar-items-when-cluster-is-not-relevant.test.d.ts +0 -0
  103. package/dist/src/{behaviours → features}/cluster/extension-api/reactively-disable-cluster-pages.test.d.ts +0 -0
  104. package/dist/src/{behaviours → features}/cluster/kube-object-details/extension-api/disable-kube-object-detail-items-when-cluster-is-not-relevant.test.d.ts +0 -0
  105. package/dist/src/{behaviours → features}/cluster/kube-object-details/extension-api/reactively-hide-kube-object-detail-item.test.d.ts +0 -0
  106. package/dist/src/{behaviours → features}/cluster/kube-object-menu/extension-api/disable-kube-object-menu-items-when-cluster-is-not-relevant.test.d.ts +0 -0
  107. package/dist/src/{behaviours → features}/cluster/kube-object-menu/extension-api/reactively-hide-kube-object-menu-item.test.d.ts +0 -0
  108. package/dist/src/{behaviours → features}/cluster/kube-object-status-icon/extension-api/disable-kube-object-statuses-when-cluster-is-not-relevant.test.d.ts +0 -0
  109. package/dist/src/{behaviours → features}/cluster/kube-object-status-icon/extension-api/reactively-hide-kube-object-status.test.d.ts +0 -0
  110. package/dist/src/{behaviours → features}/cluster/kube-object-status-icon/show-status-for-a-kube-object.test.d.ts +0 -0
  111. package/dist/src/{behaviours → features}/cluster/namespaces/edit-namespace-from-new-tab.test.d.ts +0 -0
  112. package/dist/src/{behaviours → features}/cluster/namespaces/edit-namespace-from-previously-opened-tab.test.d.ts +0 -0
  113. package/dist/src/{behaviours → features}/cluster/order-of-sidebar-items.test.d.ts +0 -0
  114. package/dist/src/{behaviours → features}/cluster/sidebar-and-tab-navigation-for-core.test.d.ts +0 -0
  115. package/dist/src/{behaviours → features}/cluster/sidebar-and-tab-navigation-for-extensions.test.d.ts +0 -0
  116. package/dist/src/{behaviours → features}/cluster/visibility-of-sidebar-items.test.d.ts +0 -0
  117. package/dist/src/{behaviours/preferences/navigation-using-application-menu.test.d.ts → features/cluster/workload-overview.test.d.ts} +0 -0
  118. package/dist/src/{behaviours → features}/cluster/workloads/overview/extension-api/disable-workloads-overview-details-when-cluster-is-not-relevant.test.d.ts +0 -0
  119. package/dist/src/{behaviours → features}/cluster/workloads/overview/extension-api/order-of-workload-overview-details.test.d.ts +0 -0
  120. package/dist/src/{behaviours → features}/cluster/workloads/overview/extension-api/reactively-hide-workloads-overview-details-item.test.d.ts +0 -0
  121. package/dist/src/{behaviours/quitting-and-restarting-the-app/opening-application-window-using-tray.test.d.ts → features/command-pallet/keyboard-shortcuts.test.d.ts} +0 -0
  122. package/dist/src/{behaviours → features}/extension-special-characters-in-page-registrations.test.d.ts +0 -0
  123. package/dist/src/{behaviours/welcome → features/extensions}/navigation-using-application-menu.test.d.ts +0 -0
  124. package/dist/src/{behaviours → features}/helm-charts/add-custom-helm-repository-in-preferences.test.d.ts +0 -0
  125. package/dist/src/{behaviours → features}/helm-charts/add-helm-repository-from-list-in-preferences.test.d.ts +0 -0
  126. package/dist/src/{behaviours → features}/helm-charts/installing-chart/installing-helm-chart-from-new-tab.test.d.ts +0 -0
  127. package/dist/src/{behaviours → features}/helm-charts/installing-chart/installing-helm-chart-from-previously-opened-tab.test.d.ts +0 -0
  128. package/dist/src/{behaviours → features}/helm-charts/installing-chart/opening-dock-tab-for-installing-helm-chart.test.d.ts +0 -0
  129. package/dist/src/{behaviours → features}/helm-charts/listing-active-helm-repositories-in-preferences.test.d.ts +0 -0
  130. package/dist/src/{behaviours → features}/helm-charts/remove-helm-repository-from-list-of-active-repository-in-preferences.test.d.ts +0 -0
  131. package/dist/src/{behaviours → features}/helm-releases/showing-details-for-helm-release.test.d.ts +0 -0
  132. package/dist/src/{behaviours → features}/navigate-to-extension-page.test.d.ts +0 -0
  133. package/dist/src/{behaviours → features}/navigating-between-routes.test.d.ts +0 -0
  134. package/dist/src/{behaviours/quitting-and-restarting-the-app/quitting-the-app-using-application-menu.test.d.ts → features/pod-logs/download-logs.test.d.ts} +0 -0
  135. package/dist/src/{behaviours → features}/preferences/closing-preferences.test.d.ts +0 -0
  136. package/dist/src/{behaviours → features}/preferences/extension-adding-preference-tabs.test.d.ts +0 -0
  137. package/dist/src/{behaviours → features}/preferences/navigation-to-application-preferences.test.d.ts +0 -0
  138. package/dist/src/{behaviours → features}/preferences/navigation-to-editor-preferences.test.d.ts +0 -0
  139. package/dist/src/{behaviours → features}/preferences/navigation-to-extension-specific-preferences.test.d.ts +0 -0
  140. package/dist/src/{behaviours → features}/preferences/navigation-to-kubernetes-preferences.test.d.ts +0 -0
  141. package/dist/src/{behaviours → features}/preferences/navigation-to-proxy-preferences.test.d.ts +0 -0
  142. package/dist/src/{behaviours → features}/preferences/navigation-to-telemetry-preferences.test.d.ts +0 -0
  143. package/dist/src/{behaviours → features}/preferences/navigation-to-terminal-preferences.test.d.ts +0 -0
  144. package/dist/src/features/preferences/navigation-using-application-menu.test.d.ts +5 -0
  145. package/dist/src/{behaviours → features}/preferences/navigation-using-tray.test.d.ts +0 -0
  146. package/dist/src/features/quitting-and-restarting-the-app/opening-application-window-using-tray.test.d.ts +5 -0
  147. package/dist/src/features/quitting-and-restarting-the-app/quitting-the-app-using-application-menu.test.d.ts +5 -0
  148. package/dist/src/{behaviours → features}/resolve-system-proxy/resolve-system-proxy.test.d.ts +0 -0
  149. package/dist/src/{behaviours → features}/routes/extension-api/reactively-disable-global-pages.test.d.ts +0 -0
  150. package/dist/src/{behaviours → features}/status-bar/status-bar-items-originating-from-extensions.test.d.ts +0 -0
  151. package/dist/src/{behaviours/tray/clicking-tray-menu-item-originating-from-extension.test.d.ts → features/telemetry/emit-telemetry-from-specific-function-calls.test.d.ts} +0 -0
  152. package/dist/src/features/telemetry/renderer/emit-telemetry.injectable.d.ts +5 -0
  153. package/dist/src/features/telemetry/renderer/telemetry-decorator.injectable.d.ts +11 -0
  154. package/dist/src/features/telemetry/renderer/telemetry-white-list-for-functions.injectable.d.ts +2 -0
  155. package/dist/src/{behaviours/tray/extension-adding-tray-items.test.d.ts → features/tray/clicking-tray-menu-item-originating-from-extension.test.d.ts} +0 -0
  156. package/dist/src/{behaviours/tray/multiple-separators-originating-from-extension.test.d.ts → features/tray/extension-adding-tray-items.test.d.ts} +0 -0
  157. package/dist/src/features/tray/multiple-separators-originating-from-extension.test.d.ts +1 -0
  158. package/dist/src/features/welcome/navigation-using-application-menu.test.d.ts +5 -0
  159. package/dist/src/features/welcome/setting-welcome-page.test.d.ts +5 -0
  160. package/dist/src/main/__test__/cluster.test.d.ts +0 -4
  161. package/dist/src/main/build-version/setup-channel.injectable.d.ts +5 -0
  162. package/dist/src/main/electron-app/electron-app.global-override-for-injectable.d.ts +9 -0
  163. package/dist/src/main/helm/exec-helm/exec-helm.injectable.d.ts +2 -1
  164. package/dist/src/main/helm/helm-chart-manager-cache.injectable.d.ts +7 -0
  165. package/dist/src/main/helm/helm-chart-manager.d.ts +9 -3
  166. package/dist/src/main/helm/helm-chart-manager.injectable.d.ts +4 -0
  167. package/dist/src/main/helm/helm-release-manager.d.ts +1 -6
  168. package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-helm-manifest/call-for-helm-manifest.injectable.d.ts +4 -0
  169. package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/call-for-kube-resources-by-manifest.injectable.d.ts +5 -0
  170. package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.global-override-for-injectable.d.ts +5 -0
  171. package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.injectable.d.ts +8 -0
  172. package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.test.d.ts +1 -0
  173. package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/non-promise-exec-file.injectable.d.ts +4 -0
  174. package/dist/src/main/helm/helm-service/get-helm-release-resources/get-helm-release-resources.injectable.d.ts +4 -0
  175. package/dist/src/main/helm/helm-service/get-helm-release-resources/get-helm-release-resources.test.d.ts +5 -0
  176. package/dist/src/main/helm/helm-service/get-helm-release.global-override-for-injectable.d.ts +5 -0
  177. package/dist/src/main/helm/helm-service/update-helm-release.global-override-for-injectable.d.ts +11 -0
  178. package/dist/src/main/kube-auth-proxy/kube-auth-proxy.d.ts +3 -1
  179. package/dist/src/main/kube-auth-proxy/wait-until-port-is-used/wait-until-port-is-used.global-override-for-injectable.d.ts +5 -0
  180. package/dist/src/main/kube-auth-proxy/wait-until-port-is-used/wait-until-port-is-used.injectable.d.ts +3 -0
  181. package/dist/src/main/kubectl/kubectl.d.ts +2 -1
  182. package/dist/src/main/kubectl/version-map.injectable.d.ts +2 -0
  183. package/dist/src/main/lens-proxy/lens-proxy.d.ts +5 -4
  184. package/dist/src/main/menu/menu.d.ts +0 -6
  185. package/dist/src/main/menu/show-about.injectable.d.ts +1 -1
  186. package/dist/src/main/prometheus/helm-14.d.ts +14 -0
  187. package/dist/src/main/prometheus/helm.d.ts +3 -3
  188. package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.d.ts +2 -0
  189. package/dist/src/main/router/router.d.ts +1 -1
  190. package/dist/src/main/start-main-application/lens-window/application-window/application-window-injection-token.d.ts +2 -0
  191. package/dist/src/main/start-main-application/lens-window/application-window/create-application-window.injectable.d.ts +2 -0
  192. package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window.global-override-for-injectable.d.ts +5 -0
  193. package/dist/src/main/start-main-application/lens-window/application-window/create-first-application-window.injectable.d.ts +2 -0
  194. package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +18 -1
  195. package/dist/src/main/start-main-application/lens-window/application-window/get-current-application-window.injectable.d.ts +2 -0
  196. package/dist/src/main/start-main-application/lens-window/application-window/send-to-channel-in-electron-browser-window.injectable.d.ts +2 -2
  197. package/dist/src/main/start-main-application/lens-window/get-visible-windows.injectable.d.ts +1 -1
  198. package/dist/src/main/start-main-application/lens-window/reload-current-application-window.injectable.d.ts +2 -0
  199. package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts +1 -1
  200. package/dist/src/main/start-main-application/runnables/sentry/initialize-on-main.global-override-for-injectable.d.ts +9 -0
  201. package/dist/src/main/start-main-application/runnables/sentry/initialize-on-main.injectable.d.ts +3 -0
  202. package/dist/src/main/start-main-application/runnables/{setup-sentry.injectable.d.ts → sentry/setup.injectable.d.ts} +1 -1
  203. package/dist/src/main/start-main-application/start-main-application.injectable.d.ts +1 -1
  204. package/dist/src/main/tray/tray-menu-item/implementations/about-app-tray-item.injectable.d.ts +1 -1
  205. package/dist/src/main/tray/tray-menu-item/implementations/open-app-tray-item.injectable.d.ts +1 -1
  206. package/dist/src/main/utils/channel/ipc-main/ipc-main.global-override-for-injectable.d.ts +5 -0
  207. package/dist/src/main/utils/shell-env.d.ts +1 -1
  208. package/dist/src/main/vars/build-version/build-version.injectable.d.ts +2 -0
  209. package/dist/src/main/vars/build-version/get-build-version.injectable.d.ts +2 -0
  210. package/dist/src/main/vars/build-version/init.injectable.d.ts +4 -0
  211. package/dist/src/main/vars/default-update-channel/init.injectable.d.ts +2 -0
  212. package/dist/src/main/vars/semantic-build-version/init.injectable.d.ts +2 -0
  213. package/dist/src/renderer/api/catalog/entity/registry.d.ts +2 -0
  214. package/dist/src/renderer/components/+helm-releases/release-details/release-details-drawer-toolbar.d.ts +12 -0
  215. package/dist/src/renderer/components/+helm-releases/release-details/release-details-drawer.d.ts +12 -0
  216. package/dist/src/renderer/components/+helm-releases/release-details/release-details-model/call-for-helm-release/call-for-helm-release.injectable.d.ts +2 -1
  217. package/dist/src/renderer/components/+helm-releases/release-details/release-details-model/release-details-model.injectable.d.ts +15 -16
  218. package/dist/src/renderer/components/+welcome/{welcome-route-component.injectable.d.ts → default-welcome-route-component.injectable.d.ts} +2 -2
  219. package/dist/src/renderer/components/+workloads-overview/overview-workload-status.d.ts +19 -1
  220. package/dist/src/renderer/components/+workloads-overview/workloads/workload-injection-token.d.ts +2 -1
  221. package/dist/src/renderer/components/+workloads-pods/__tests__/pod-container-env.test.d.ts +5 -0
  222. package/dist/src/renderer/components/+workloads-pods/details/volumes/variant-helpers.d.ts +1 -1
  223. package/dist/src/renderer/components/+workloads-pods/pod-container-env.d.ts +4 -10
  224. package/dist/src/renderer/components/+workloads-pods/pod-details-container.d.ts +2 -2
  225. package/dist/src/renderer/components/chart/chart.d.ts +1 -0
  226. package/dist/src/renderer/components/cluster-settings/components/cluster-local-terminal-settings.d.ts +2 -1
  227. package/dist/src/renderer/components/cluster-settings/components/cluster-prometheus-setting.d.ts +1 -24
  228. package/dist/src/renderer/components/dock/logs/controls.d.ts +1 -3
  229. package/dist/src/renderer/components/dock/logs/create-pod-logs-tab.injectable.d.ts +2 -2
  230. package/dist/src/renderer/components/dock/logs/download-all-logs.injectable.d.ts +4 -0
  231. package/dist/src/renderer/components/dock/logs/download-logs-dropdown.d.ts +10 -0
  232. package/dist/src/renderer/components/dock/logs/download-logs.injectable.d.ts +2 -0
  233. package/dist/src/renderer/components/dock/logs/get-random-id-for-pod-logs-tab.injectable.d.ts +2 -0
  234. package/dist/src/renderer/components/dock/logs/logs-view-model.d.ts +6 -1
  235. package/dist/src/renderer/components/dock/terminal/terminal.d.ts +3 -1
  236. package/dist/src/renderer/components/dropdown/dropdown.d.ts +11 -0
  237. package/dist/src/renderer/components/status-bar/status-bar-registration.d.ts +5 -0
  238. package/dist/src/renderer/components/switch/form-switcher.d.ts +9 -2
  239. package/dist/src/renderer/components/switch/switcher.d.ts +7 -8
  240. package/dist/src/renderer/components/test-utils/get-application-builder.d.ts +30 -27
  241. package/dist/src/renderer/components/test-utils/get-extension-fake.d.ts +3 -6
  242. package/dist/src/renderer/components/tooltip/__mocks__/withTooltip.d.ts +1 -0
  243. package/dist/src/renderer/kube-watch-api/subscribe-stores.global-override-for-injectable.d.ts +5 -0
  244. package/dist/src/renderer/navigation/index.d.ts +0 -4
  245. package/dist/src/renderer/navigation/match-route.injectable.d.ts +3 -1
  246. package/dist/src/renderer/port-forward/open-port-forward.injectable.d.ts +4 -0
  247. package/dist/src/renderer/port-forward/port-forward-utils.d.ts +0 -1
  248. package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts +2 -5
  249. package/dist/src/renderer/themes/active-type.injectable.d.ts +5 -0
  250. package/dist/src/renderer/themes/active.injectable.d.ts +2 -0
  251. package/dist/src/renderer/themes/lens-dark.d.ts +2 -2
  252. package/dist/src/renderer/themes/lens-light.d.ts +2 -2
  253. package/dist/src/renderer/themes/store.d.ts +6 -5
  254. package/dist/src/renderer/utils/channel/ipc-renderer.global-override-for-injectable.d.ts +5 -0
  255. package/dist/src/renderer/utils/prevDefault.d.ts +1 -1
  256. package/dist/src/renderer/utils/storageHelper.d.ts +1 -1
  257. package/dist/src/renderer/vars/build-version/build-version.injectable.d.ts +2 -0
  258. package/dist/src/renderer/vars/build-version/init.injectable.d.ts +4 -0
  259. package/dist/src/renderer/vars/default-update-channel/init.injectable.d.ts +2 -0
  260. package/dist/src/renderer/vars/semantic-build-version/init.injectable.d.ts +2 -0
  261. package/dist/src/test-utils/channel-fakes/override-channels.d.ts +1 -1
  262. package/dist/src/test-utils/channel-fakes/override-messaging-from-main-to-window.d.ts +1 -1
  263. package/package.json +1 -1
  264. package/dist/src/common/sentry.d.ts +0 -10
  265. package/dist/src/common/utils/openBrowser.d.ts +0 -17
  266. package/dist/src/common/vars/app-semantic-version.injectable.d.ts +0 -3
  267. package/dist/src/common/vars/app-version.injectable.d.ts +0 -2
  268. package/dist/src/common/vars/package-json.injectable.d.ts +0 -360
  269. package/dist/src/extensions/extension-discovery/is-compatible-bundled-extension/is-compatible-bundled-extension.d.ts +0 -11
  270. package/dist/src/extensions/extension-discovery/is-compatible-bundled-extension/is-compatible-bundled-extension.injectable.d.ts +0 -2
  271. package/dist/src/main/helm/__mocks__/helm-chart-manager.d.ts +0 -11
  272. package/dist/src/main/routes/metrics/metrics-query.d.ts +0 -7
  273. package/dist/src/main/shell-sync.d.ts +0 -10
  274. package/dist/src/main/start-main-application/lens-window/application-window/application-window.injectable.d.ts +0 -2
  275. package/dist/src/main/start-main-application/lens-window/application-window/lens-window-injection-token.d.ts +0 -16
  276. package/dist/src/main/start-main-application/lens-window/reload-all-windows.injectable.d.ts +0 -2
  277. package/dist/src/main/start-main-application/lens-window/reload-window.injectable.d.ts +0 -3
  278. package/dist/src/renderer/components/+preferences/sentry-dns-url.injectable.d.ts +0 -2
  279. package/dist/src/renderer/components/test-utils/get-renderer-extension-fake.d.ts +0 -12
@@ -0,0 +1,158 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { Lifecycle } from "./lifecycle";
6
+ import type { ResourceRequirements } from "./resource-requirements";
7
+ import type { SecurityContext } from "./security-context";
8
+ import type { Probe } from "./probe";
9
+ import type { VolumeDevice } from "./volume-device";
10
+ import type { VolumeMount } from "./volume-mount";
11
+ import type { ContainerPort } from "./container-port";
12
+ import type { EnvFromSource } from "./env-from-source";
13
+ import type { EnvVar } from "./env-var";
14
+ /**
15
+ * A single application container that you want to run within a pod.
16
+ */
17
+ export interface Container {
18
+ /**
19
+ * Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable
20
+ * references `$(VAR_NAME)` are expanded using the container's environment.
21
+ *
22
+ * If a variable cannot be resolved, the reference in the input string will be unchanged.
23
+ * Double `$$` are reduced to a single `$`, which allows for escaping the `$(VAR_NAME)` syntax:
24
+ * i.e. `"$$(VAR_NAME)"` will produce the string literal `"$(VAR_NAME)`".
25
+ *
26
+ * Escaped references will never be expanded, regardless of whether the variable exists or not.
27
+ * Cannot be updated.
28
+ *
29
+ * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
30
+ */
31
+ args?: string[];
32
+ /**
33
+ * Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this
34
+ * is not provided. Variable references `$(VAR_NAME)` are expanded using the container's
35
+ * environment.
36
+ *
37
+ * If a variable cannot be resolved, the reference in the input string will be unchanged.
38
+ * Double `$$` are reduced to a single `$`, which allows for escaping the `$(VAR_NAME)` syntax:
39
+ * i.e. `"$$(VAR_NAME)"` will produce the string literal `"$(VAR_NAME)`".
40
+ *
41
+ * Escaped references will never be expanded, regardless of whether the variable exists or not.
42
+ * Cannot be updated.
43
+ *
44
+ * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
45
+ */
46
+ command?: string[];
47
+ /**
48
+ * List of environment variables to set in the container. Cannot be updated.
49
+ */
50
+ env?: EnvVar[];
51
+ /**
52
+ * List of sources to populate environment variables in the container. The keys defined within a
53
+ * source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the
54
+ * container is starting.
55
+ *
56
+ * When a key exists in multiple sources, the value associated with the last source will take
57
+ * precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be
58
+ * updated.
59
+ */
60
+ envFrom?: EnvFromSource[];
61
+ /**
62
+ * Docker image name.
63
+ *
64
+ * More info: https://kubernetes.io/docs/concepts/containers/images
65
+ */
66
+ image?: string;
67
+ /**
68
+ * Image pull policy. Defaults to `"Always"` if :latest tag is specified, or `"IfNotPresent"`
69
+ * otherwise. Cannot be updated.
70
+ *
71
+ * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
72
+ */
73
+ imagePullPolicy?: "Always" | "Never" | "IfNotPresent";
74
+ lifecycle?: Lifecycle;
75
+ livenessProbe?: Probe;
76
+ /**
77
+ * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique
78
+ * name. Cannot be updated.
79
+ */
80
+ name: string;
81
+ /**
82
+ * List of ports to expose from the container. Exposing a port here gives the system additional
83
+ * information about the network connections a container uses, but is primarily informational.
84
+ * Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is
85
+ * listening on the default `"0.0.0.0"` address inside a container will be accessible from the
86
+ * network. Cannot be updated.
87
+ */
88
+ ports?: ContainerPort[];
89
+ readinessProbe?: Probe;
90
+ resources?: ResourceRequirements;
91
+ securityContext?: SecurityContext;
92
+ startupProbe?: Probe;
93
+ /**
94
+ * Whether this container should allocate a buffer for stdin in the container runtime. If this is
95
+ * not set, reads from stdin in the container will always result in EOF.
96
+ *
97
+ * @default false
98
+ */
99
+ stdin?: boolean;
100
+ /**
101
+ * Whether the container runtime should close the stdin channel after it has been opened by a
102
+ * single attach. When stdin is true the stdin stream will remain open across multiple attach
103
+ * sessions.
104
+ *
105
+ * If stdinOnce is set to true, stdin is opened on container start, is empty until the first
106
+ * client attaches to stdin, and then remains open and accepts data until the client disconnects,
107
+ * at which time stdin is closed and remains closed until the container is restarted.
108
+ *
109
+ * If this flag is false, a container processes that reads from stdin will never receive an EOF.
110
+ *
111
+ * @default false
112
+ */
113
+ stdinOnce?: boolean;
114
+ /**
115
+ * Path at which the file to which the container's termination message will be written
116
+ * is mounted into the container's filesystem. Message written is intended to be brief final
117
+ * status, such as an assertion failure message.
118
+ *
119
+ * Will be truncated by the node if greater than 4096 bytes.
120
+ * The total message length across all containers will be limited to 12kb. Cannot be updated.
121
+ *
122
+ * @default "/dev/termination-log"
123
+ */
124
+ terminationMessagePath?: string;
125
+ /**
126
+ * Indicate how the termination message should be populated.
127
+ *
128
+ * - `File`: will use the contents of {@link terminationMessagePath} to populate the container
129
+ * status message on both success and failure.
130
+ *
131
+ * - `FallbackToLogsOnError`: will use the last chunk of container log output if the
132
+ * termination message file is empty and the container exited with an error.
133
+ *
134
+ * The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Cannot be updated.
135
+ *
136
+ * @default "File"
137
+ */
138
+ terminationMessagePolicy?: "File" | "FallbackToLogsOnError";
139
+ /**
140
+ * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
141
+ *
142
+ * @default false
143
+ */
144
+ tty?: boolean;
145
+ /**
146
+ * volumeDevices is the list of block devices to be used by the container.
147
+ */
148
+ volumeDevices?: VolumeDevice[];
149
+ /**
150
+ * Pod volumes to mount into the container's filesystem. Cannot be updated.
151
+ */
152
+ volumeMounts?: VolumeMount[];
153
+ /**
154
+ * Container's working directory. If not specified, the container runtime's default will be used,
155
+ * which might be configured in the container image. Cannot be updated.
156
+ */
157
+ workingDir?: string;
158
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { EnvSource } from "./env-source";
6
+ export interface EnvFromSource {
7
+ configMapRef?: EnvSource;
8
+ /**
9
+ * An identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
10
+ */
11
+ prefix?: string;
12
+ secretRef?: EnvSource;
13
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { LocalObjectReference } from "../../kube-object";
6
+ export interface EnvSource extends LocalObjectReference {
7
+ /**
8
+ * Whether the object must be defined
9
+ */
10
+ optional?: boolean;
11
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export interface EnvVarKeySelector {
6
+ key: string;
7
+ name?: string;
8
+ optional?: boolean;
9
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { EnvVarKeySelector } from "./env-var-key-selector";
6
+ import type { ObjectFieldSelector } from "./object-field-selector";
7
+ import type { ResourceFieldSelector } from "./resource-field-selector";
8
+ export interface EnvVarSource {
9
+ configMapKeyRef?: EnvVarKeySelector;
10
+ fieldRef?: ObjectFieldSelector;
11
+ resourceFieldRef?: ResourceFieldSelector;
12
+ secretKeyRef?: EnvVarKeySelector;
13
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { EnvVarSource } from "./env-var-source";
6
+ export interface EnvVar {
7
+ name: string;
8
+ value?: string;
9
+ valueFrom?: EnvVarSource;
10
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /**
6
+ * ExecAction describes a "run in container" action.
7
+ */
8
+ export interface ExecAction {
9
+ /**
10
+ * Command is the command line to execute inside the container, the working directory for the
11
+ * command is root ('\\') in the container's filesystem. The command is simply exec'd, it is not
12
+ * run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell,
13
+ * you need to explicitly call out to that shell.
14
+ *
15
+ * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
16
+ */
17
+ command?: string[];
18
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { ExecAction } from "./exec-action";
6
+ import type { HttpGetAction } from "./http-get-action";
7
+ import type { TcpSocketAction } from "./tcp-socket-action";
8
+ /**
9
+ * Handler defines a specific action that should be taken.
10
+ */
11
+ export interface Handler {
12
+ exec?: ExecAction;
13
+ httpGet?: HttpGetAction;
14
+ tcpSocket?: TcpSocketAction;
15
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { HttpHeader } from "./http-header";
6
+ /**
7
+ * An action based on HTTP Get requests.
8
+ */
9
+ export interface HttpGetAction {
10
+ /**
11
+ * Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.
12
+ */
13
+ host?: string;
14
+ /**
15
+ * Custom headers to set in the request. HTTP allows repeated headers.
16
+ */
17
+ httpHeaders?: HttpHeader[];
18
+ /**
19
+ * Path to access on the HTTP server.
20
+ */
21
+ path?: string;
22
+ /**
23
+ * The PORT to request from.
24
+ */
25
+ port: string | number;
26
+ /**
27
+ * Scheme to use for connecting to the host.
28
+ *
29
+ * @default "HTTP"
30
+ */
31
+ scheme?: string;
32
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /**
6
+ * A custom header to be used in HTTP probes and get actions
7
+ */
8
+ export interface HttpHeader {
9
+ /**
10
+ * Field name
11
+ */
12
+ name: string;
13
+ /**
14
+ * The value of the field
15
+ */
16
+ value: string;
17
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export * from "./aggregation-rule";
6
+ export * from "./capabilities";
7
+ export * from "./container";
8
+ export * from "./container-port";
9
+ export * from "./env-from-source";
10
+ export * from "./env-source";
11
+ export * from "./env-var-key-selector";
12
+ export * from "./env-var-source";
13
+ export * from "./env-var";
14
+ export * from "./exec-action";
15
+ export * from "./handler";
16
+ export * from "./http-get-action";
17
+ export * from "./http-header";
18
+ export * from "./job-template-spec";
19
+ export * from "./lifecycle";
20
+ export * from "./object-field-selector";
21
+ export * from "./persistent-volume-claim-template-spec";
22
+ export * from "./pod-security-context";
23
+ export * from "./pod-template-spec";
24
+ export * from "./policy-rule";
25
+ export * from "./probe";
26
+ export * from "./resource-field-selector";
27
+ export * from "./resource-requirements";
28
+ export * from "./role-ref";
29
+ export * from "./se-linux-options";
30
+ export * from "./seccomp-profile";
31
+ export * from "./subject";
32
+ export * from "./tcp-socket-action";
33
+ export * from "./volume-device";
34
+ export * from "./volume-mount";
35
+ export * from "./windows-security-context-options";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { Handler } from "./handler";
6
+ /**
7
+ * Lifecycle describes actions that the management system should take in response to container
8
+ * lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container
9
+ * blocks until the action is complete, unless the container process fails, in which case the
10
+ * handler is aborted.
11
+ */
12
+ export interface Lifecycle {
13
+ postStart?: Handler;
14
+ preStop?: Handler;
15
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export interface ObjectFieldSelector {
6
+ apiVersion?: string;
7
+ fieldPath: string;
8
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { SeLinuxOptions } from "./se-linux-options";
6
+ import type { SeccompProfile } from "./seccomp-profile";
7
+ import type { WindowsSecurityContextOptions } from "./windows-security-context-options";
8
+ import type { Sysctl } from "../pod.api";
9
+ export interface PodSecurityContext {
10
+ fsGroup?: number;
11
+ fsGroupChangePolicy?: string;
12
+ runAsGroup?: number;
13
+ runAsNonRoot?: boolean;
14
+ runAsUser?: number;
15
+ seLinuxOptions?: SeLinuxOptions;
16
+ seccompProfile?: SeccompProfile;
17
+ supplementalGroups?: number[];
18
+ sysctls?: Sysctl;
19
+ windowsOptions?: WindowsSecurityContextOptions;
20
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { ExecAction } from "./exec-action";
6
+ import type { HttpGetAction } from "./http-get-action";
7
+ import type { TcpSocketAction } from "./tcp-socket-action";
8
+ /**
9
+ * Describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
10
+ */
11
+ export interface Probe {
12
+ exec?: ExecAction;
13
+ /**
14
+ * Minimum consecutive failures for the probe to be considered failed after having succeeded.
15
+ *
16
+ * @default 3
17
+ * @minimum 1
18
+ */
19
+ failureThreshold?: number;
20
+ httpGet?: HttpGetAction;
21
+ /**
22
+ * Duration after the container has started before liveness probes are initiated.
23
+ *
24
+ * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
25
+ */
26
+ initialDelaySeconds?: number;
27
+ /**
28
+ * How often to perform the probe.
29
+ *
30
+ * @default 10
31
+ * @minimum 1
32
+ */
33
+ periodSeconds?: number;
34
+ /**
35
+ * Minimum consecutive successes for the probe to be considered successful after having failed.
36
+ *
37
+ * Must be 1 for liveness and startup.
38
+ *
39
+ * @default 1
40
+ * @minimum 1
41
+ */
42
+ successThreshold?: number;
43
+ tcpSocket?: TcpSocketAction;
44
+ /**
45
+ * Duration the pod needs to terminate gracefully upon probe failure.
46
+ *
47
+ * The grace period is the duration in seconds after the processes running in the pod are sent a
48
+ * termination signal and the time when the processes are forcibly halted with a kill signal.
49
+ *
50
+ * Set this value longer than the expected cleanup time for your process.
51
+ *
52
+ * If this value is not set, the pod's terminationGracePeriodSeconds will be used. Otherwise,
53
+ * this value overrides the value provided by the pod spec. Value must be non-negative integer.
54
+ * The value zero indicates stop immediately via the kill signal (no opportunity to shut down).
55
+ *
56
+ * This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
57
+ *
58
+ * @minimum 1
59
+ */
60
+ terminationGracePeriodSeconds?: number;
61
+ /**
62
+ * Duration after which the probe times out.
63
+ *
64
+ * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
65
+ *
66
+ * @default 1
67
+ * @minimum 1
68
+ */
69
+ timeoutSeconds?: number;
70
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export interface ResourceFieldSelector {
6
+ containerName?: string;
7
+ divisor?: string;
8
+ resource: string;
9
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /**
6
+ * SELinuxOptions are the labels to be applied to the container
7
+ */
8
+ export interface SeLinuxOptions {
9
+ /**
10
+ * The SELinux `level` label that applies to the container.
11
+ */
12
+ level?: string;
13
+ /**
14
+ * The SELinux `role` label that applies to the container.
15
+ */
16
+ role?: string;
17
+ /**
18
+ * The SELinux `type` label that applies to the container.
19
+ */
20
+ type?: string;
21
+ /**
22
+ * The SELinux `user` label that applies to the container.
23
+ */
24
+ user?: string;
25
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /**
6
+ * Defines a pod's or a container's seccomp profile settings. Only one profile source may be set.
7
+ */
8
+ export interface SeccompProfile {
9
+ /**
10
+ * Indicates a profile defined in a file on the node should be used. The profile must be
11
+ * preconfigured on the node to work. Must be a descending path, relative to the kubelet's
12
+ * configured seccomp profile location. Must only be set if type is "Localhost".
13
+ */
14
+ localhostProfile?: string;
15
+ /**
16
+ * Indicates which kind of seccomp profile will be applied.
17
+ *
18
+ * Options:
19
+ *
20
+ * | Value | Description |
21
+ * |--|--|
22
+ * | `Localhost` | A profile defined in a file on the node should be used. |
23
+ * | `RuntimeDefault` | The container runtime default profile should be used. |
24
+ * | `Unconfined` | No profile should be applied. |
25
+ */
26
+ type: "Localhost" | "RuntimeDefault" | "Unconfined";
27
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { Capabilities } from "./capabilities";
6
+ import type { SeLinuxOptions } from "./se-linux-options";
7
+ import type { SeccompProfile } from "./seccomp-profile";
8
+ import type { WindowsSecurityContextOptions } from "./windows-security-context-options";
9
+ /**
10
+ * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.
11
+ */
12
+ export interface SecurityContext {
13
+ /**
14
+ * AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN
15
+ */
16
+ allowPrivilegeEscalation?: boolean;
17
+ capabilities?: Capabilities;
18
+ /**
19
+ * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.
20
+ */
21
+ privileged?: boolean;
22
+ /**
23
+ * procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled.
24
+ */
25
+ procMount?: string;
26
+ /**
27
+ * Whether this container has a read-only root filesystem. Default is false.
28
+ */
29
+ readOnlyRootFilesystem?: boolean;
30
+ /**
31
+ * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
32
+ */
33
+ runAsGroup?: number;
34
+ /**
35
+ * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
36
+ */
37
+ runAsNonRoot?: boolean;
38
+ /**
39
+ * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
40
+ */
41
+ runAsUser?: number;
42
+ seLinuxOptions?: SeLinuxOptions;
43
+ seccompProfile?: SeccompProfile;
44
+ windowsOptions?: WindowsSecurityContextOptions;
45
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /**
6
+ * An action based on opening a socket
7
+ */
8
+ export interface TcpSocketAction {
9
+ /**
10
+ * Host name to connect to, defaults to the pod IP.
11
+ */
12
+ host?: string;
13
+ /**
14
+ * Port to connect to
15
+ */
16
+ port: number | string;
17
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /**
6
+ * A mapping of a raw block device within a container.
7
+ */
8
+ export interface VolumeDevice {
9
+ /**
10
+ * The path inside of the container that the device will be mapped to.
11
+ */
12
+ devicePath: string;
13
+ /**
14
+ * Must match the name of a persistentVolumeClaim in the pod
15
+ */
16
+ name: string;
17
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export interface VolumeMount {
6
+ name: string;
7
+ readOnly?: boolean;
8
+ mountPath: string;
9
+ mountPropagation?: string;
10
+ subPath?: string;
11
+ subPathExpr?: string;
12
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /**
6
+ * Windows-specific options and credentials.
7
+ */
8
+ export interface WindowsSecurityContextOptions {
9
+ /**
10
+ * The location of the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa)
11
+ * inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.
12
+ */
13
+ gmsaCredentialSpec?: string;
14
+ /**
15
+ * The name of the GMSA credential spec to use.
16
+ */
17
+ gmsaCredentialSpecName?: string;
18
+ /**
19
+ * Determines if a container should be run as a 'Host Process' container.
20
+ *
21
+ * This field is alpha-level and will only be honored by components that enable the
22
+ * WindowsHostProcessContainers feature flag.
23
+ *
24
+ * Setting this field without the feature flag will result in errors when validating the Pod.
25
+ *
26
+ * All of a Pod's containers must have the same effective HostProcess value (it is not allowed to
27
+ * have a mix of HostProcess containers and non-HostProcess containers).
28
+ *
29
+ * In addition, if HostProcess is true then HostNetwork must also be set to true.
30
+ */
31
+ hostProcess?: boolean;
32
+ /**
33
+ * The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
34
+ */
35
+ runAsUserName?: string;
36
+ }