Skip to content

Commit

Permalink
fix(charts/nd-common): Fix missing layout structure for sidecar resou…
Browse files Browse the repository at this point in the history
…rces
  • Loading branch information
scohen-nd committed Jan 11, 2024
1 parent ed04d7a commit 2f67f68
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion charts/daemonset-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ maintainers:
email: [email protected]
dependencies:
- name: nd-common
version: 0.3.0
version: 0.3.1
repository: file://../nd-common
2 changes: 1 addition & 1 deletion charts/nd-common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: nd-common
description: A helper chart used by most of our other charts
type: library
version: 0.3.0
version: 0.3.1
appVersion: latest
2 changes: 1 addition & 1 deletion charts/nd-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A helper chart used by most of our other charts

![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

**This chart is a [Library Chart](https://helm.sh/docs/topics/library_charts/)** -
this means that the chart itself deploys no resources, and has no `.yaml`
Expand Down
8 changes: 4 additions & 4 deletions charts/nd-common/templates/_istio.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ Usage: To setup the values follow the regular k8s resources structure under the
memory: 60Mi
*/ -}}
{{- with .Values.istio.resources }}
sidecar.istio.io/proxyCPU: {{ .requests.cpu | default "100m" | quote }}
sidecar.istio.io/proxyCPULimit: {{ .limits.cpu | default "2" | quote }}
sidecar.istio.io/proxyMemory: {{ .requests.memory | default "128Mi" | quote }}
sidecar.istio.io/proxyMemoryLimit: {{ .limits.memory | default "1Gi" | quote }}
sidecar.istio.io/proxyCPU: {{ .requests.cpu | quote }}
sidecar.istio.io/proxyCPULimit: {{ .limits.cpu | quote }}
sidecar.istio.io/proxyMemory: {{ .requests.memory | quote }}
sidecar.istio.io/proxyMemoryLimit: {{ .limits.memory | quote }}
{{- end }}

{{- end }}
Expand Down
9 changes: 8 additions & 1 deletion charts/nd-common/values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# empty on purpose
istio:
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 2
memory: 1Gi
2 changes: 1 addition & 1 deletion charts/rollout-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ dependencies:
repository: https://k8s-charts.nextdoor.com
condition: istio-alerts.enabled
- name: nd-common
version: 0.3.0
version: 0.3.1
repository: file://../nd-common
2 changes: 1 addition & 1 deletion charts/rollout-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ kmsSecretsRegion: us-west-2 (AWS region where the KMS key is located)

| Repository | Name | Version |
|------------|------|---------|
| file://../nd-common | nd-common | 0.3.0 |
| file://../nd-common | nd-common | 0.3.1 |
| https://k8s-charts.nextdoor.com | istio-alerts | 0.2.0 |

## Values
Expand Down
2 changes: 1 addition & 1 deletion charts/simple-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ dependencies:
repository: https://k8s-charts.nextdoor.com
condition: istio-alerts.enabled
- name: nd-common
version: 0.3.0
version: 0.3.1
repository: file://../nd-common
2 changes: 1 addition & 1 deletion charts/simple-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ kmsSecretsRegion: us-west-2 (AWS region where the KMS key is located)

| Repository | Name | Version |
|------------|------|---------|
| file://../nd-common | nd-common | 0.3.0 |
| file://../nd-common | nd-common | 0.3.1 |
| https://k8s-charts.nextdoor.com | istio-alerts | 0.2.0 |

## Values
Expand Down
2 changes: 1 addition & 1 deletion charts/stateful-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ dependencies:
repository: https://k8s-charts.nextdoor.com
condition: istio-alerts.enabled
- name: nd-common
version: 0.3.0
version: 0.3.1
repository: file://../nd-common
2 changes: 1 addition & 1 deletion charts/stateful-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ kmsSecretsRegion: us-west-2 (AWS region where the KMS key is located)

| Repository | Name | Version |
|------------|------|---------|
| file://../nd-common | nd-common | 0.3.0 |
| file://../nd-common | nd-common | 0.3.1 |
| https://k8s-charts.nextdoor.com | istio-alerts | 0.2.0 |

## Values
Expand Down

0 comments on commit 2f67f68

Please sign in to comment.