mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
Overwrite old values correctly, don't cache current resources list
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
```bash
|
```bash
|
||||||
helm repo add komodorio https://helm-charts.komodor.io
|
helm repo add komodorio https://helm-charts.komodor.io
|
||||||
helm repo update
|
helm repo update
|
||||||
helm upgrade --install my-release komodorio/helm-dashboard
|
helm upgrade --install helm-dashboard komodorio/helm-dashboard
|
||||||
```
|
```
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
@@ -17,14 +17,13 @@ While installed inside cluster, Helm Dashboard will run some additional backgrou
|
|||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Kubernetes 1.16+
|
- Kubernetes 1.16+
|
||||||
- Helm 3+
|
|
||||||
|
|
||||||
## Installing the Chart
|
## Installing the Chart
|
||||||
|
|
||||||
To install the chart with the release name `my-release`:
|
To install the chart with the release name `helm-dashboard`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install my-release .
|
helm install helm-dashboard .
|
||||||
```
|
```
|
||||||
|
|
||||||
The command deploys Helm Dashboard on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.
|
The command deploys Helm Dashboard on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.
|
||||||
@@ -33,10 +32,10 @@ The command deploys Helm Dashboard on the Kubernetes cluster in the default conf
|
|||||||
|
|
||||||
## Uninstalling the Chart
|
## Uninstalling the Chart
|
||||||
|
|
||||||
To uninstall/delete the `my-release` deployment:
|
To uninstall/delete the `helm-dashboard` deployment:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm uninstall my-release
|
helm uninstall helm-dashboard
|
||||||
```
|
```
|
||||||
|
|
||||||
The command removes all the Kubernetes components associated with the chart and deletes the release.
|
The command removes all the Kubernetes components associated with the chart and deletes the release.
|
||||||
@@ -80,7 +79,7 @@ The following table lists the configurable parameters of the chart and their def
|
|||||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm upgrade --install my-release komodorio/helm-dashboard --set dashboard.allowWriteActions=true --set service.port=9090
|
helm upgrade --install helm-dashboard komodorio/helm-dashboard --set dashboard.allowWriteActions=true --set service.port=9090
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Tip**: You can use the default [values.yaml](values.yaml)
|
> **Tip**: You can use the default [values.yaml](values.yaml)
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ func (h *HelmHandler) History(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *HelmHandler) Resources(c *gin.Context) {
|
func (h *HelmHandler) Resources(c *gin.Context) {
|
||||||
h.EnableClientCache(c)
|
// can't enable the client cache because resource list changes with time
|
||||||
|
|
||||||
rel := h.getRelease(c)
|
rel := h.getRelease(c)
|
||||||
if rel == nil {
|
if rel == nil {
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ func (r *Release) Upgrade(repoChart string, version string, justTemplate bool, v
|
|||||||
cmd.Version = version
|
cmd.Version = version
|
||||||
|
|
||||||
cmd.DryRun = justTemplate
|
cmd.DryRun = justTemplate
|
||||||
|
cmd.ResetValues = true
|
||||||
|
|
||||||
chrt, err := locateChart(cmd.ChartPathOptions, repoChart, r.Settings)
|
chrt, err := locateChart(cmd.ChartPathOptions, repoChart, r.Settings)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user