mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove old implementation made redundant with competition for preferences of helm repositories
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
0fbc79a9e2
commit
6342458419
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -308,119 +308,6 @@ exports[`deactivate helm repository from list of active repositories in preferen
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
||||||
>
|
>
|
||||||
@ -510,7 +397,6 @@ exports[`deactivate helm repository from list of active repositories in preferen
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
@ -879,119 +765,6 @@ exports[`deactivate helm repository from list of active repositories in preferen
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow css-b62m3t-container"
|
class="Select theme-lens box grow css-b62m3t-container"
|
||||||
>
|
>
|
||||||
@ -1066,7 +839,6 @@ exports[`deactivate helm repository from list of active repositories in preferen
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
@ -1463,119 +1235,6 @@ exports[`deactivate helm repository from list of active repositories in preferen
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow css-b62m3t-container"
|
class="Select theme-lens box grow css-b62m3t-container"
|
||||||
>
|
>
|
||||||
@ -1650,7 +1309,6 @@ exports[`deactivate helm repository from list of active repositories in preferen
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
@ -2047,119 +1705,6 @@ exports[`deactivate helm repository from list of active repositories in preferen
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
||||||
>
|
>
|
||||||
@ -2249,7 +1794,6 @@ exports[`deactivate helm repository from list of active repositories in preferen
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
|
|||||||
@ -308,119 +308,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
||||||
>
|
>
|
||||||
@ -510,7 +397,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
@ -879,119 +765,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
||||||
>
|
>
|
||||||
@ -1081,7 +854,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
@ -1450,119 +1222,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow css-b62m3t-container"
|
class="Select theme-lens box grow css-b62m3t-container"
|
||||||
>
|
>
|
||||||
@ -1637,7 +1296,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
@ -2062,119 +1720,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
||||||
>
|
>
|
||||||
@ -2264,7 +1809,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
@ -2633,119 +2177,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
||||||
>
|
>
|
||||||
@ -2835,7 +2266,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
@ -3204,119 +2634,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow css-b62m3t-container"
|
class="Select theme-lens box grow css-b62m3t-container"
|
||||||
>
|
>
|
||||||
@ -3391,7 +2708,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
@ -3766,119 +3082,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
<div
|
<div
|
||||||
class="flex gaps"
|
class="flex gaps"
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
class="Select theme-lens box grow Select--is-disabled css-3iigni-container"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
id="react-select-HelmRepoSelect-live-region"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
aria-atomic="false"
|
|
||||||
aria-live="polite"
|
|
||||||
aria-relevant="additions text"
|
|
||||||
class="css-1f43avz-a11yText-A11yText"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="Select__control Select__control--is-disabled css-1insrsq-control"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__value-container css-319lph-ValueContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Select__placeholder css-14el2xx-placeholder"
|
|
||||||
id="react-select-HelmRepoSelect-placeholder"
|
|
||||||
>
|
|
||||||
Repositories
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__input-container css-jzldcf-Input"
|
|
||||||
data-value=""
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-autocomplete="list"
|
|
||||||
aria-describedby="react-select-HelmRepoSelect-placeholder"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-haspopup="true"
|
|
||||||
autocapitalize="none"
|
|
||||||
autocomplete="off"
|
|
||||||
autocorrect="off"
|
|
||||||
class="Select__input"
|
|
||||||
disabled=""
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
role="combobox"
|
|
||||||
spellcheck="false"
|
|
||||||
style="opacity: 1; width: 100%; grid-area: 1 / 2; min-width: 2px; border: 0px; margin: 0px; outline: 0; padding: 0px;"
|
|
||||||
tabindex="0"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="Select__indicators css-1hb7zxy-IndicatorsContainer"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__loading-indicator css-at12u2-loadingIndicator"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="css-1xtdfmb-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-zoievk-LoadingDot"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="css-x748d8-LoadingDot"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="Select__indicator-separator css-109onse-indicatorSeparator"
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
aria-hidden="true"
|
|
||||||
class="Select__indicator Select__dropdown-indicator css-tlfecz-indicatorContainer"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="css-tj5bde-Svg"
|
|
||||||
focusable="false"
|
|
||||||
height="20"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
width="20"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
class="Button primary"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Add Custom Helm Repo
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="repos"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="pt-5 relative"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="Spinner singleColor center"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
class="flex gaps"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens box grow css-b62m3t-container"
|
class="Select theme-lens box grow css-b62m3t-container"
|
||||||
>
|
>
|
||||||
@ -3953,7 +3156,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="add-custom-helm-repo-button"
|
data-testid="add-custom-helm-repo-button"
|
||||||
|
|||||||
@ -15,7 +15,6 @@ import * as LensExtensionsCommonApi from "../extensions/common-api";
|
|||||||
import * as LensExtensionsRendererApi from "../extensions/renderer-api";
|
import * as LensExtensionsRendererApi from "../extensions/renderer-api";
|
||||||
import { delay } from "../common/utils";
|
import { delay } from "../common/utils";
|
||||||
import { isMac, isDevelopment } from "../common/vars";
|
import { isMac, isDevelopment } from "../common/vars";
|
||||||
import { HelmRepoManager } from "../main/helm/helm-repo-manager";
|
|
||||||
import { DefaultProps } from "./mui-base-theme";
|
import { DefaultProps } from "./mui-base-theme";
|
||||||
import configurePackages from "../common/configure-packages";
|
import configurePackages from "../common/configure-packages";
|
||||||
import * as initializers from "./initializers";
|
import * as initializers from "./initializers";
|
||||||
@ -151,8 +150,6 @@ export async function bootstrap(di: DiContainer) {
|
|||||||
|
|
||||||
extensionInstallationStateStore.bindIpcListeners();
|
extensionInstallationStateStore.bindIpcListeners();
|
||||||
|
|
||||||
HelmRepoManager.createInstance(); // initialize the manager
|
|
||||||
|
|
||||||
// Register additional store listeners
|
// Register additional store listeners
|
||||||
clusterStore.registerIpcListener();
|
clusterStore.registerIpcListener();
|
||||||
|
|
||||||
|
|||||||
@ -1,220 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import "./add-helm-repo-dialog.scss";
|
|
||||||
|
|
||||||
import React from "react";
|
|
||||||
import type { FileFilter } from "electron";
|
|
||||||
import { observable, makeObservable, action } from "mobx";
|
|
||||||
import { observer } from "mobx-react";
|
|
||||||
import type { DialogProps } from "../dialog";
|
|
||||||
import { Dialog } from "../dialog";
|
|
||||||
import { Wizard, WizardStep } from "../wizard";
|
|
||||||
import { Input } from "../input";
|
|
||||||
import { Checkbox } from "../checkbox";
|
|
||||||
import { Button } from "../button";
|
|
||||||
import { systemName, isUrl, isPath } from "../input/input_validators";
|
|
||||||
import { SubTitle } from "../layout/sub-title";
|
|
||||||
import { Icon } from "../icon";
|
|
||||||
import { Notifications } from "../notifications";
|
|
||||||
import { type HelmRepo, HelmRepoManager } from "../../../main/helm/helm-repo-manager";
|
|
||||||
import { requestOpenFilePickingDialog } from "../../ipc";
|
|
||||||
|
|
||||||
export interface AddHelmRepoDialogProps extends Partial<DialogProps> {
|
|
||||||
onAddRepo: () => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum FileType {
|
|
||||||
CaFile = "caFile",
|
|
||||||
KeyFile = "keyFile",
|
|
||||||
CertFile = "certFile",
|
|
||||||
}
|
|
||||||
|
|
||||||
const dialogState = observable.object({
|
|
||||||
isOpen: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
function getEmptyRepo(): HelmRepo {
|
|
||||||
return { name: "", url: "", username: "", password: "", insecureSkipTlsVerify: false, caFile: "", keyFile: "", certFile: "" };
|
|
||||||
}
|
|
||||||
@observer
|
|
||||||
export class AddHelmRepoDialog extends React.Component<AddHelmRepoDialogProps> {
|
|
||||||
private static keyExtensions = ["key", "keystore", "jks", "p12", "pfx", "pem"];
|
|
||||||
private static certExtensions = ["crt", "cer", "ca-bundle", "p7b", "p7c", "p7s", "p12", "pfx", "pem"];
|
|
||||||
|
|
||||||
constructor(props: AddHelmRepoDialogProps) {
|
|
||||||
super(props);
|
|
||||||
makeObservable(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
static open() {
|
|
||||||
dialogState.isOpen = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static close() {
|
|
||||||
dialogState.isOpen = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@observable helmRepo = getEmptyRepo();
|
|
||||||
@observable showOptions = false;
|
|
||||||
|
|
||||||
@action
|
|
||||||
close = () => {
|
|
||||||
AddHelmRepoDialog.close();
|
|
||||||
this.helmRepo = getEmptyRepo();
|
|
||||||
this.showOptions = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
setFilepath(type: FileType, value: string) {
|
|
||||||
this.helmRepo[type] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
getFilePath(type: FileType) {
|
|
||||||
return this.helmRepo[type];
|
|
||||||
}
|
|
||||||
|
|
||||||
async selectFileDialog(type: FileType, fileFilter: FileFilter) {
|
|
||||||
const { canceled, filePaths } = await requestOpenFilePickingDialog({
|
|
||||||
defaultPath: this.getFilePath(type),
|
|
||||||
properties: ["openFile", "showHiddenFiles"],
|
|
||||||
message: `Select file`,
|
|
||||||
buttonLabel: `Use file`,
|
|
||||||
filters: [
|
|
||||||
fileFilter,
|
|
||||||
{ name: "Any", extensions: ["*"] },
|
|
||||||
],
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!canceled && filePaths.length) {
|
|
||||||
this.setFilepath(type, filePaths[0]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async addCustomRepo() {
|
|
||||||
try {
|
|
||||||
await HelmRepoManager.getInstance().addRepo(this.helmRepo);
|
|
||||||
Notifications.ok((
|
|
||||||
<>
|
|
||||||
{"Helm repository "}
|
|
||||||
<b>{this.helmRepo.name}</b>
|
|
||||||
{" has been added."}
|
|
||||||
</>
|
|
||||||
));
|
|
||||||
this.props.onAddRepo();
|
|
||||||
this.close();
|
|
||||||
} catch (err) {
|
|
||||||
Notifications.error((
|
|
||||||
<>
|
|
||||||
{"Adding helm branch "}
|
|
||||||
<b>{this.helmRepo.name}</b>
|
|
||||||
{" has failed: "}
|
|
||||||
{String(err)}
|
|
||||||
</>
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
renderFileInput(placeholder:string, fileType:FileType, fileExtensions:string[]){
|
|
||||||
return (
|
|
||||||
<div className="flex gaps align-center">
|
|
||||||
<Input
|
|
||||||
placeholder={placeholder}
|
|
||||||
validators={isPath}
|
|
||||||
className="box grow"
|
|
||||||
value={this.getFilePath(fileType)}
|
|
||||||
onChange={v => this.setFilepath(fileType, v)}
|
|
||||||
/>
|
|
||||||
<Icon
|
|
||||||
material="folder"
|
|
||||||
onClick={() => this.selectFileDialog(fileType, { name: placeholder, extensions: fileExtensions })}
|
|
||||||
tooltip="Browse"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
renderOptions() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<SubTitle title="Security settings" />
|
|
||||||
<Checkbox
|
|
||||||
label="Skip TLS certificate checks for the repository"
|
|
||||||
value={this.helmRepo.insecureSkipTlsVerify}
|
|
||||||
onChange={v => this.helmRepo.insecureSkipTlsVerify = v}
|
|
||||||
/>
|
|
||||||
{this.renderFileInput("Key file", FileType.KeyFile, AddHelmRepoDialog.keyExtensions)}
|
|
||||||
{this.renderFileInput("Ca file", FileType.CaFile, AddHelmRepoDialog.certExtensions)}
|
|
||||||
{this.renderFileInput("Certificate file", FileType.CertFile, AddHelmRepoDialog.certExtensions)}
|
|
||||||
<SubTitle title="Chart Repository Credentials" />
|
|
||||||
<Input
|
|
||||||
placeholder="Username"
|
|
||||||
value={this.helmRepo.username}
|
|
||||||
onChange= {v => this.helmRepo.username = v}
|
|
||||||
/>
|
|
||||||
<Input
|
|
||||||
type="password"
|
|
||||||
placeholder="Password"
|
|
||||||
value={this.helmRepo.password}
|
|
||||||
onChange={v => this.helmRepo.password = v}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
|
||||||
const { ...dialogProps } = this.props;
|
|
||||||
|
|
||||||
const header = <h5>Add custom Helm Repo</h5>;
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Dialog
|
|
||||||
{...dialogProps}
|
|
||||||
className="AddHelmRepoDialog"
|
|
||||||
isOpen={dialogState.isOpen}
|
|
||||||
close={this.close}
|
|
||||||
>
|
|
||||||
<Wizard header={header} done={this.close}>
|
|
||||||
<WizardStep
|
|
||||||
contentClass="flow column"
|
|
||||||
nextLabel="Add"
|
|
||||||
next={() => this.addCustomRepo()}
|
|
||||||
>
|
|
||||||
<div className="flex column gaps">
|
|
||||||
<Input
|
|
||||||
autoFocus
|
|
||||||
required
|
|
||||||
placeholder="Helm repo name"
|
|
||||||
trim
|
|
||||||
validators={systemName}
|
|
||||||
value={this.helmRepo.name}
|
|
||||||
onChange={v => this.helmRepo.name = v}
|
|
||||||
/>
|
|
||||||
<Input
|
|
||||||
required
|
|
||||||
placeholder="URL"
|
|
||||||
validators={isUrl}
|
|
||||||
value={this.helmRepo.url}
|
|
||||||
onChange={v => this.helmRepo.url = v}
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
plain
|
|
||||||
className="accordion"
|
|
||||||
onClick={() => this.showOptions = !this.showOptions}
|
|
||||||
>
|
|
||||||
More
|
|
||||||
<Icon
|
|
||||||
small
|
|
||||||
tooltip="More"
|
|
||||||
material={this.showOptions ? "remove" : "add"}
|
|
||||||
/>
|
|
||||||
</Button>
|
|
||||||
{this.showOptions && this.renderOptions()}
|
|
||||||
</div>
|
|
||||||
</WizardStep>
|
|
||||||
</Wizard>
|
|
||||||
</Dialog>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,202 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import styles from "./helm-charts.module.scss";
|
|
||||||
|
|
||||||
import React from "react";
|
|
||||||
import { observable, makeObservable, computed } from "mobx";
|
|
||||||
|
|
||||||
import type { HelmRepo } from "../../../main/helm/helm-repo-manager";
|
|
||||||
import { HelmRepoManager } from "../../../main/helm/helm-repo-manager";
|
|
||||||
import { Button } from "../button";
|
|
||||||
import { Icon } from "../icon";
|
|
||||||
import { Notifications } from "../notifications";
|
|
||||||
import type { SelectOption } from "../select";
|
|
||||||
import { Select } from "../select";
|
|
||||||
import { AddHelmRepoDialog } from "./add-helm-repo-dialog";
|
|
||||||
import { observer } from "mobx-react";
|
|
||||||
import { RemovableItem } from "./removable-item";
|
|
||||||
import { Notice } from "../+extensions/notice";
|
|
||||||
import { Spinner } from "../spinner";
|
|
||||||
import { noop } from "../../utils";
|
|
||||||
import type { SingleValue } from "react-select";
|
|
||||||
|
|
||||||
@observer
|
|
||||||
export class HelmCharts extends React.Component {
|
|
||||||
@observable loadingRepos = false;
|
|
||||||
@observable loadingAvailableRepos = false;
|
|
||||||
@observable repos: HelmRepo[] = [];
|
|
||||||
@observable addedRepos = observable.map<string, HelmRepo>();
|
|
||||||
|
|
||||||
constructor(props: {}) {
|
|
||||||
super(props);
|
|
||||||
makeObservable(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@computed get repoOptions() {
|
|
||||||
return this.repos.map(repo => ({
|
|
||||||
value: repo,
|
|
||||||
label: repo.name,
|
|
||||||
isSelected: this.addedRepos.has(repo.name),
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
componentDidMount() {
|
|
||||||
this.loadAvailableRepos().catch(noop);
|
|
||||||
this.loadRepos().catch(noop);
|
|
||||||
}
|
|
||||||
|
|
||||||
async loadAvailableRepos() {
|
|
||||||
this.loadingAvailableRepos = true;
|
|
||||||
|
|
||||||
try {
|
|
||||||
if (!this.repos.length) {
|
|
||||||
this.repos = await HelmRepoManager.getInstance().loadAvailableRepos();
|
|
||||||
}
|
|
||||||
} catch (err) {
|
|
||||||
Notifications.error(String(err));
|
|
||||||
}
|
|
||||||
|
|
||||||
this.loadingAvailableRepos = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
async loadRepos() {
|
|
||||||
this.loadingRepos = true;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const repos = await HelmRepoManager.getInstance().repositories(); // via helm-cli
|
|
||||||
|
|
||||||
this.addedRepos.replace(repos.map(repo => [repo.name, repo]));
|
|
||||||
} catch (err) {
|
|
||||||
Notifications.error(String(err));
|
|
||||||
}
|
|
||||||
|
|
||||||
this.loadingRepos = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
async addRepo(repo: HelmRepo) {
|
|
||||||
try {
|
|
||||||
await HelmRepoManager.getInstance().addRepo(repo);
|
|
||||||
this.addedRepos.set(repo.name, repo);
|
|
||||||
} catch (err) {
|
|
||||||
Notifications.error((
|
|
||||||
<>
|
|
||||||
{"Adding helm branch "}
|
|
||||||
<b>{repo.name}</b>
|
|
||||||
{" has failed: "}
|
|
||||||
{String(err)}
|
|
||||||
</>
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async removeRepo(repo: HelmRepo) {
|
|
||||||
try {
|
|
||||||
await HelmRepoManager.getInstance().removeRepo(repo);
|
|
||||||
this.addedRepos.delete(repo.name);
|
|
||||||
} catch (err) {
|
|
||||||
Notifications.error(
|
|
||||||
<>
|
|
||||||
{"Removing helm branch "}
|
|
||||||
<b>{repo.name}</b>
|
|
||||||
{" has failed: "}
|
|
||||||
{String(err)}
|
|
||||||
</>,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onRepoSelect = async (option: SingleValue<{ value: HelmRepo }>): Promise<void> => {
|
|
||||||
if (!option) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.addedRepos.has(option.value.name)) {
|
|
||||||
return void Notifications.ok((
|
|
||||||
<>
|
|
||||||
{"Helm repo "}
|
|
||||||
<b>{option.value.name}</b>
|
|
||||||
{" already in use."}
|
|
||||||
</>
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
await this.addRepo(option.value);
|
|
||||||
};
|
|
||||||
|
|
||||||
formatOptionLabel = ({ value, isSelected }: SelectOption<HelmRepo>) => (
|
|
||||||
<div className="flex gaps">
|
|
||||||
<span>{value.name}</span>
|
|
||||||
{isSelected && (
|
|
||||||
<Icon
|
|
||||||
small
|
|
||||||
material="check"
|
|
||||||
className="box right" />
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
|
|
||||||
renderRepositories() {
|
|
||||||
const repos = Array.from(this.addedRepos);
|
|
||||||
|
|
||||||
if (this.loadingRepos) {
|
|
||||||
return <div className="pt-5 relative"><Spinner center/></div>;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!repos.length) {
|
|
||||||
return (
|
|
||||||
<Notice>
|
|
||||||
<div className="flex-grow text-center">The repositories have not been added yet</div>
|
|
||||||
</Notice>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return repos.map(([name, repo]) => {
|
|
||||||
return (
|
|
||||||
<RemovableItem
|
|
||||||
key={name}
|
|
||||||
onRemove={() => this.removeRepo(repo)}
|
|
||||||
className="mt-3"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<div data-testid="repository-name" className={styles.repoName}>{name}</div>
|
|
||||||
<div className={styles.repoUrl}>{repo.url}</div>
|
|
||||||
</div>
|
|
||||||
</RemovableItem>
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<div className="flex gaps">
|
|
||||||
<Select
|
|
||||||
id="HelmRepoSelect"
|
|
||||||
placeholder="Repositories"
|
|
||||||
isLoading={this.loadingAvailableRepos}
|
|
||||||
isDisabled={this.loadingAvailableRepos}
|
|
||||||
options={this.repoOptions}
|
|
||||||
onChange={this.onRepoSelect}
|
|
||||||
value={this.repos}
|
|
||||||
formatOptionLabel={this.formatOptionLabel}
|
|
||||||
controlShouldRenderValue={false}
|
|
||||||
className="box grow"
|
|
||||||
themeName="lens"
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
primary
|
|
||||||
label="Add Custom Helm Repo"
|
|
||||||
onClick={AddHelmRepoDialog.open}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<AddHelmRepoDialog onAddRepo={() => this.loadRepos()}/>
|
|
||||||
<div className={styles.repos}>
|
|
||||||
{this.renderRepositories()}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -4,9 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { HelmCharts } from "./kubernetes/helm-charts/helm-charts";
|
||||||
import { HelmCharts } from "./helm-charts";
|
|
||||||
import { HelmCharts as HelmCharts2 } from "./kubernetes/helm-charts/helm-charts-2";
|
|
||||||
import { KubeconfigSyncs } from "./kubeconfig-syncs";
|
import { KubeconfigSyncs } from "./kubeconfig-syncs";
|
||||||
import { KubectlBinaries } from "./kubectl-binaries";
|
import { KubectlBinaries } from "./kubectl-binaries";
|
||||||
import { Preferences } from "./preferences";
|
import { Preferences } from "./preferences";
|
||||||
@ -27,7 +25,6 @@ export const Kubernetes = observer(() => (
|
|||||||
<section id="helm">
|
<section id="helm">
|
||||||
<h2>Helm Charts</h2>
|
<h2>Helm Charts</h2>
|
||||||
<HelmCharts />
|
<HelmCharts />
|
||||||
<HelmCharts2 />
|
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</Preferences>
|
</Preferences>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "../../../add-helm-repo-dialog.scss";
|
import "./add-helm-repo-dialog.scss";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Wizard, WizardStep } from "../../../../wizard";
|
import { Wizard, WizardStep } from "../../../../wizard";
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "../../../add-helm-repo-dialog.scss";
|
import "./add-helm-repo-dialog.scss";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Dialog } from "../../../../dialog";
|
import { Dialog } from "../../../../dialog";
|
||||||
|
|||||||
@ -39,7 +39,6 @@ const NonInjectedActivationOfPublicHelmRepository = observer(({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
|
||||||
<Select
|
<Select
|
||||||
id="selection-of-active-public-helm-repository"
|
id="selection-of-active-public-helm-repository"
|
||||||
placeholder="Repositories"
|
placeholder="Repositories"
|
||||||
@ -53,7 +52,6 @@ const NonInjectedActivationOfPublicHelmRepository = observer(({
|
|||||||
className="box grow"
|
className="box grow"
|
||||||
themeName="lens"
|
themeName="lens"
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import styles from "../../helm-charts.module.scss";
|
import styles from "./helm-charts.module.scss";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user