Skip to content

Commit 39a029c

Browse files
[all]: Add namespaceOverride Value to all Charts that missing it (#1214)
* [all]: Add namespaceOverride Value to all Charts that missing it and add/fix (missing) values * chore: auto-generate values.schema.json Signed-off-by: cloudpirates-bot <cloudpirates-bot@users.noreply.github.com> * [all]: bump affected chart version * [mongodb]: fix lint error trailing-spaces and colons * [memcached]: add missing namespace override to httproute.yaml template * [timescaledb]: add missing namespace override to configmap.yaml template --------- Signed-off-by: cloudpirates-bot <cloudpirates-bot@users.noreply.github.com> Co-authored-by: cloudpirates-bot <cloudpirates-bot@users.noreply.github.com>
1 parent d3efd38 commit 39a029c

File tree

215 files changed

+429
-326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+429
-326
lines changed

charts/etcd/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: etcd
33
description: etcd is a distributed reliable key-value store for the most critical data of a distributed system
44
type: application
5-
version: 0.6.3
5+
version: 0.7.0
66
appVersion: "3.6.10"
77
keywords:
88
- etcd

charts/etcd/README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,16 @@ cosign verify --key cosign.pub registry-1.docker.io/cloudpirates/etcd:<version>
100100

101101
### Common Parameters
102102

103-
| Parameter | Description | Default |
104-
| ------------------- | ----------------------------------------------- | ------- |
105-
| `nameOverride` | String to partially override etcd.fullname | `""` |
106-
| `fullnameOverride` | String to fully override etcd.fullname | `""` |
107-
| `commonLabels` | Labels to add to all deployed objects | `{}` |
108-
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
109-
| `replicaCount` | Number of etcd replicas to deploy (must be odd) | `3` |
110-
| `podLabels` | Additional labels for etcd pods | `{}` |
111-
| `podAnnotations` | Additional annotations for etcd pods | `{}` |
103+
| Parameter | Description | Default |
104+
| ------------------- | -------------------------------------------------- | ------- |
105+
| `nameOverride` | String to partially override etcd.fullname | `""` |
106+
| `fullnameOverride` | String to fully override etcd.fullname | `""` |
107+
| `namespaceOverride` | String to override the namespace for all resources | `""` |
108+
| `commonLabels` | Labels to add to all deployed objects | `{}` |
109+
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
110+
| `replicaCount` | Number of etcd replicas to deploy (must be odd) | `3` |
111+
| `podLabels` | Additional labels for etcd pods | `{}` |
112+
| `podAnnotations` | Additional annotations for etcd pods | `{}` |
112113

113114
### Service Configuration
114115

charts/etcd/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Validate etcd values
7979
Generate etcd initial cluster string
8080
*/}}
8181
{{- define "etcd.initialCluster" -}}
82-
{{- $namespace := .Release.Namespace }}
82+
{{- $namespace := include "cloudpirates.namespace" . }}
8383
{{- $name := include "etcd.fullname" . -}}
8484
{{- $peerPort := .Values.service.peerPort -}}
8585
{{- $replicaCount := int .Values.replicaCount }}

charts/etcd/templates/networkpolicy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: networking.k8s.io/v1
33
kind: NetworkPolicy
44
metadata:
55
name: {{ include "etcd.fullname" . }}
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ include "cloudpirates.namespace" . }}
77
labels:
88
{{- include "etcd.labels" . | nindent 4 }}
99
{{- with (include "etcd.annotations" .) }}

charts/etcd/templates/poddisruptionbudget.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: policy/v1
33
kind: PodDisruptionBudget
44
metadata:
55
name: {{ include "etcd.fullname" . }}
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ include "cloudpirates.namespace" . }}
77
labels:
88
{{- include "etcd.labels" . | nindent 4 }}
99
{{- with (include "etcd.annotations" .) }}

charts/etcd/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: {{ include "etcd.fullname" . }}
5-
namespace: {{ .Release.Namespace }}
5+
namespace: {{ include "cloudpirates.namespace" . }}
66
labels:
77
{{- include "etcd.labels" . | nindent 4 }}
88
{{- if or (include "etcd.annotations" .) .Values.service.annotations }}
@@ -32,7 +32,7 @@ apiVersion: v1
3232
kind: Service
3333
metadata:
3434
name: {{ include "etcd.fullname" . }}-headless
35-
namespace: {{ .Release.Namespace }}
35+
namespace: {{ include "cloudpirates.namespace" . }}
3636
labels:
3737
{{- include "etcd.labels" . | nindent 4 }}
3838
spec:

charts/etcd/templates/serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
kind: ServiceAccount
44
metadata:
55
name: {{ include "etcd.serviceAccountName" . }}
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ include "cloudpirates.namespace" . }}
77
labels:
88
{{- include "etcd.labels" . | nindent 4 }}
99
{{- if or (include "etcd.annotations" .) .Values.serviceAccount.annotations }}

charts/etcd/templates/servicemonitor.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:
55
name: {{ include "etcd.fullname" . }}
6-
namespace: {{ default .Release.Namespace .Values.metrics.serviceMonitor.namespace }}
6+
namespace: {{ default (include "cloudpirates.namespace" .) .Values.metrics.serviceMonitor.namespace }}
77
labels:
88
{{- include "etcd.labels" . | nindent 4 }}
99
{{- with .Values.metrics.serviceMonitor.labels }}
@@ -38,5 +38,5 @@ spec:
3838
{{- end }}
3939
namespaceSelector:
4040
matchNames:
41-
- {{ .Release.Namespace }}
41+
- {{ include "cloudpirates.namespace" . }}
4242
{{- end }}

charts/etcd/templates/statefulset.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apps/v1
33
kind: StatefulSet
44
metadata:
55
name: {{ include "etcd.fullname" . }}
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ include "cloudpirates.namespace" . }}
77
labels:
88
{{- include "etcd.labels" . | nindent 4 }}
99
{{- with (include "etcd.annotations" .) }}
@@ -53,8 +53,8 @@ spec:
5353
- --name=$(POD_NAME)
5454
- --listen-peer-urls={{ if .Values.auth.peer.enabled }}https{{ else }}http{{ end }}://{{ .Values.config.listenPeerIp }}:{{ .Values.service.peerPort }}
5555
- --listen-client-urls={{ if .Values.auth.enabled }}https{{ else }}http{{ end }}://{{ .Values.config.listenClientIp }}:{{ .Values.service.clientPort }}
56-
- --advertise-client-urls={{ if .Values.auth.enabled }}https{{ else }}http{{ end }}://$(POD_NAME).{{ include "etcd.fullname" . }}-headless.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.clientPort }}
57-
- --initial-advertise-peer-urls={{ if .Values.auth.peer.enabled }}https{{ else }}http{{ end }}://$(POD_NAME).{{ include "etcd.fullname" . }}-headless.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.peerPort }}
56+
- --advertise-client-urls={{ if .Values.auth.enabled }}https{{ else }}http{{ end }}://$(POD_NAME).{{ include "etcd.fullname" . }}-headless.{{ include "cloudpirates.namespace" . }}.svc.cluster.local:{{ .Values.service.clientPort }}
57+
- --initial-advertise-peer-urls={{ if .Values.auth.peer.enabled }}https{{ else }}http{{ end }}://$(POD_NAME).{{ include "etcd.fullname" . }}-headless.{{ include "cloudpirates.namespace" . }}.svc.cluster.local:{{ .Values.service.peerPort }}
5858
- --initial-cluster={{ include "etcd.initialCluster" . }}
5959
- --initial-cluster-token={{ .Values.config.initialClusterToken }}
6060
- --initial-cluster-state={{ .Values.config.initialClusterState }}

charts/etcd/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@
220220
"nameOverride": {
221221
"type": "string"
222222
},
223+
"namespaceOverride": {
224+
"type": "string"
225+
},
223226
"networkPolicy": {
224227
"type": "object",
225228
"properties": {

0 commit comments

Comments
 (0)