Skip to content

Commit 33c9e0f

Browse files
fix: vendor in psmdb and enable percona flag temporarily to test e2e tests
1 parent df350be commit 33c9e0f

File tree

26 files changed

+28528
-14
lines changed

26 files changed

+28528
-14
lines changed

distros/kubernetes/nvsentinel/Chart.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ dependencies:
3535
- name: metadata-collector
3636
repository: ""
3737
version: 0.1.0
38-
digest: sha256:213412942dd8de06d0af46e8e7c98bef2efb351169398844e49d3b5638a51aa5
39-
generated: "2025-11-13T21:34:00.135123541+05:30"
38+
- name: kubernetes-object-monitor
39+
repository: ""
40+
version: 0.1.0
41+
digest: sha256:b72ab10b3e61b4073ae964a5e4062d251f238852b38b0445a2c3269114b26b30
42+
generated: "2025-11-19T14:51:23.601934963+05:30"

distros/kubernetes/nvsentinel/charts/mongodb-store/Chart.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ dependencies:
33
repository: ""
44
version: 16.2.2
55
- name: psmdb-operator
6-
repository: https://percona.github.io/percona-helm-charts
6+
repository: ""
77
version: 1.21.1
88
- name: psmdb-db
9-
repository: https://percona.github.io/percona-helm-charts
9+
repository: ""
1010
version: 1.21.1
11-
digest: sha256:43954132079671769fc43fc397e624ab46a8672059bc818822c08b1b474432b8
12-
generated: "2025-11-13T15:43:07.889174963+05:30"
11+
digest: sha256:6c3f19302e146b500b13919d0b3b89a0f37e069ce719e8daadfda1a82302418d
12+
generated: "2025-11-19T14:50:21.20416968+05:30"

distros/kubernetes/nvsentinel/charts/mongodb-store/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ dependencies:
2626
condition: mongodb-store.useBitnami
2727
- name: psmdb-operator
2828
version: "1.21.1"
29-
repository: "https://percona.github.io/percona-helm-charts"
29+
repository: ""
3030
condition: mongodb-store.usePerconaOperator
3131
- name: psmdb-db
3232
version: "1.21.1"
33-
repository: "https://percona.github.io/percona-helm-charts"
33+
repository: ""
3434
condition: mongodb-store.usePerconaOperator
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj
22+
.vscode/
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v2
2+
appVersion: 1.21.1
3+
description: A Helm chart for installing Percona Server MongoDB Cluster Databases
4+
using the PSMDB Operator.
5+
home: https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html
6+
maintainers:
7+
8+
name: nmarukovich
9+
10+
name: jvpasinatto
11+
12+
name: eleo007
13+
name: psmdb-db
14+
version: 1.21.1

distros/kubernetes/nvsentinel/charts/mongodb-store/charts/psmdb-db/README.md

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
3+
% _____
4+
%%% | __ \
5+
###%%%%%%%%%%%%* | |__) |__ _ __ ___ ___ _ __ __ _
6+
### ##%% %%%% | ___/ _ \ '__/ __/ _ \| '_ \ / _` |
7+
#### ##% %%%% | | | __/ | | (_| (_) | | | | (_| |
8+
### #### %%% |_| \___|_| \___\___/|_| |_|\__,_|
9+
,((### ### %%% _ _ _____ _
10+
(((( (### #### %%%% | | / _ \ / ____| | |
11+
((( ((# ###### | | _| (_) |___ | (___ __ _ _ _ __ _ __| |
12+
(((( (((# #### | |/ /> _ </ __| \___ \ / _` | | | |/ _` |/ _` |
13+
/(( ,((( *### | <| (_) \__ \ ____) | (_| | |_| | (_| | (_| |
14+
//// ((( #### |_|\_\\___/|___/ |_____/ \__, |\__,_|\__,_|\__,_|
15+
/// (((( #### | |
16+
/////////////(((((((((((((((((######## |_| Join @ percona.com/k8s
17+
18+
19+
Join Percona Squad! Get early access to new product features, invite-only ”ask me anything” sessions with Percona Kubernetes experts, and monthly swag raffles.
20+
21+
>>> https://percona.com/k8s <<<
22+
23+
Percona Server for MongoDB cluster is deployed now. Get the username and password:
24+
25+
ADMIN_USER=$(kubectl -n {{ .Release.Namespace }} get secrets {{ include "psmdb-database.fullname" . }}-secrets -o jsonpath="{.data.MONGODB_USER_ADMIN_USER}" | base64 --decode)
26+
ADMIN_PASSWORD=$(kubectl -n {{ .Release.Namespace }} get secrets {{ include "psmdb-database.fullname" . }}-secrets -o jsonpath="{.data.MONGODB_USER_ADMIN_PASSWORD}" | base64 --decode)
27+
28+
Connect to the cluster:
29+
{{- if .Values.sharding.enabled }}
30+
31+
kubectl run -i --rm --tty percona-client --image=percona/percona-server-mongodb:7.0 --restart=Never \
32+
-- mongosh "mongodb://${ADMIN_USER}:${ADMIN_PASSWORD}@{{ include "psmdb-database.fullname" . }}-mongos.{{ .Release.Namespace }}.svc.cluster.local/admin?ssl=false"
33+
34+
{{- else }}
35+
36+
kubectl run -i --rm --tty percona-client --image=percona/percona-server-mongodb:7.0 --restart=Never \
37+
-- mongosh "mongodb+srv://${ADMIN_USER}:${ADMIN_PASSWORD}@{{ include "psmdb-database.fullname" . }}-{{ .Values.replsets.rs0.name }}.{{ .Release.Namespace }}.svc.cluster.local/admin?replicaSet=rs0&ssl=false"
38+
39+
{{- end }}
40+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
{{/*
3+
Expand the name of the chart.
4+
*/}}
5+
{{- define "psmdb-database.name" -}}
6+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
7+
{{- end -}}
8+
9+
{{/*
10+
Create a default fully qualified app name.
11+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
12+
If release name contains chart name it will be used as a full name.
13+
*/}}
14+
{{- define "psmdb-database.fullname" -}}
15+
{{- if .Values.fullnameOverride -}}
16+
{{- .Values.fullnameOverride | trunc 21 | trimSuffix "-" -}}
17+
{{- else -}}
18+
{{- $name := default .Chart.Name .Values.nameOverride -}}
19+
{{- if contains $name .Release.Name -}}
20+
{{- .Release.Name | trunc 21 | trimSuffix "-" -}}
21+
{{- else -}}
22+
{{- printf "%s-%s" .Release.Name $name | trunc 21 | trimSuffix "-" -}}
23+
{{- end -}}
24+
{{- end -}}
25+
{{- end -}}
26+
27+
{{/*
28+
Create chart name and version as used by the chart label.
29+
*/}}
30+
{{- define "psmdb-database.chart" -}}
31+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 21 | trimSuffix "-" -}}
32+
{{- end -}}
33+
34+
{{/*
35+
Common labels
36+
*/}}
37+
{{- define "psmdb-database.labels" -}}
38+
app.kubernetes.io/name: {{ include "psmdb-database.name" . }}
39+
helm.sh/chart: {{ include "psmdb-database.chart" . }}
40+
app.kubernetes.io/instance: {{ .Release.Name }}
41+
{{- if .Chart.AppVersion }}
42+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
43+
{{- end }}
44+
app.kubernetes.io/managed-by: {{ .Release.Service }}
45+
{{- end -}}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- if hasKey .Values "systemUsers" }}
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: {{ include "psmdb-database.fullname" . }}-secrets
6+
namespace: {{ .Release.Namespace }}
7+
labels:
8+
{{ include "psmdb-database.labels" . | indent 4 }}
9+
type: Opaque
10+
stringData:
11+
{{ .Values.systemUsers | toYaml | indent 2 }}
12+
{{- end -}}

0 commit comments

Comments
 (0)