Skip to content

Commit a1f3d62

Browse files
committed
use new name in charts
Signed-off-by: Steve Taylor <[email protected]>
1 parent 0848e04 commit a1f3d62

File tree

10 files changed

+28
-34
lines changed

10 files changed

+28
-34
lines changed
File renamed without changes.

chart/pdvd-arangodb/Chart.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v2
2+
description: Arango Statefulset
3+
icon: https://ortelius.github.io/pdvd-charts/ortelius.svg
4+
name: pdvd-arangodb
5+
type: application
6+
version: 12.0.0
7+
appVersion: 12.0.0
File renamed without changes.

chart/scec-arangodb/templates/_helpers.tpl renamed to chart/pdvd-arangodb/templates/_helpers.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/*
22
Expand the name of the chart.
33
*/}}
4-
{{- define "scec-arangodb.name" -}}
4+
{{- define "pdvd-arangodb.name" -}}
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
66
{{- end }}
77

@@ -10,7 +10,7 @@ Create a default fully qualified app name.
1010
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1111
If release name contains chart name it will be used as a full name.
1212
*/}}
13-
{{- define "scec-arangodb.fullname" -}}
13+
{{- define "pdvd-arangodb.fullname" -}}
1414
{{- if .Values.fullnameOverride }}
1515
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1616
{{- else }}
@@ -26,6 +26,6 @@ If release name contains chart name it will be used as a full name.
2626
{{/*
2727
Create chart name and version as used by the chart label.
2828
*/}}
29-
{{- define "scec-arangodb.chart" -}}
29+
{{- define "pdvd-arangodb.chart" -}}
3030
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
3131
{{- end }}
Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
---
2-
{{ if (((.Values.global).arangodb).enabled) }}
32
apiVersion: apps/v1
43
kind: StatefulSet
54
metadata:
6-
name: {{ include "scec-arangodb.name" . }}
5+
name: {{ include "pdvd-arangodb.name" . }}
76
spec:
87
replicas: {{ .Values.replicaCount }}
98
updateStrategy:
109
type: RollingUpdate
11-
serviceName: {{ include "scec-arangodb.name" . }}
10+
serviceName: {{ include "pdvd-arangodb.name" . }}
1211
selector:
1312
matchLabels:
14-
app: {{ include "scec-arangodb.name" . }}
13+
app: {{ include "pdvd-arangodb.name" . }}
1514
template:
1615
metadata:
1716
labels:
18-
app: {{ include "scec-arangodb.name" . }}
17+
app: {{ include "pdvd-arangodb.name" . }}
1918
spec:
2019
containers:
21-
- name: {{ include "scec-arangodb.name" . }}
20+
- name: {{ include "pdvd-arangodb.name" . }}
2221
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
2322
imagePullPolicy: {{ .Values.image.pullPolicy }}
2423
ports:
@@ -30,38 +29,37 @@ spec:
3029
name: arangodb
3130
key: DBPassword
3231
volumeMounts:
33-
- name: dbdata
32+
- name: arangodata
3433
mountPath: /var/lib/arangodb3
35-
- name: dbappsdata
34+
- name: arangoappsdata
3635
mountPath: /var/lib/arangodb3-apps
3736
{{ if not (and (contains "gke" (.Capabilities.KubeVersion.Version | toString)) (contains "eks" (.Capabilities.KubeVersion.Version | toString))) }}
3837
volumes:
39-
- name: dbdata
38+
- name: arangodata
4039
hostPath:
4140
type: DirectoryOrCreate
42-
path: /dbdata # matches kind containerPath in Kind Cluster.yaml
43-
- name: dbappsdata
41+
path: /arangodata # matches kind containerPath in Kind Cluster.yaml
42+
- name: arangoappsdata
4443
hostPath:
4544
type: DirectoryOrCreate
46-
path: /dbappsdata # matches kind containerPath in Kind Cluster.yaml
45+
path: /arangoappsdata # matches kind containerPath in Kind Cluster.yaml
4746
{{ end }}
4847
{{ if or (contains "gke" (.Capabilities.KubeVersion.Version | toString)) (contains "eks" (.Capabilities.KubeVersion.Version | toString)) }}
4948
volumeClaimTemplates:
5049
- metadata:
51-
name: dbdata
50+
name: arangodata
5251
spec:
5352
accessModes: [ "ReadWriteOnce" ]
5453
storageClassName: "ortelius-sc"
5554
resources:
5655
requests:
5756
storage: 100Gi
5857
- metadata:
59-
name: dbappsdata
58+
name: arangoappsdata
6059
spec:
6160
accessModes: [ "ReadWriteOnce" ]
6261
storageClassName: "ortelius-sc"
6362
resources:
6463
requests:
6564
storage: 10Gi
6665
{{ end }}
67-
{{ end }}
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
{{ if (((.Values.global).arangodb).enabled) }}
32
apiVersion: v1
43
kind: Secret
54
type: Opaque
@@ -10,14 +9,13 @@ data:
109
{{ $dbuser := .Values.arangodb_user | default "root" }}
1110
{{ $dbhost := .Values.arangodb_host | default "localhost" }}
1211
{{ $dbport := .Values.arangodb_port | default "8529" }}
13-
{{ $dbname := .Values.arangodb_name | default "ortelius" }}
12+
{{ $dbname := .Values.arangodb_name | default "vulnmgt" }}
1413
DBPassword: {{ $dbpass | b64enc }}
1514
DBUserName: {{ $dbuser | b64enc }}
1615
{{ if (((.Values.global).arangodb).enabled) }}
17-
DBHost: {{ printf "scec-arangodb.%s.svc.cluster.local" .Release.Namespace | b64enc }}
16+
DBHost: {{ printf "pdvd-arangodb.%s.svc.cluster.local" .Release.Namespace | b64enc }}
1817
{{ else }}
1918
DBHost: {{ $dbhost | b64enc }}
2019
{{ end }}
2120
DBPort: {{ $dbport | b64enc }}
2221
DBName: {{ $dbname | b64enc }}
23-
{{ end }}

chart/scec-arangodb/templates/service.yaml renamed to chart/pdvd-arangodb/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
apiVersion: v1
1717
kind: Service
1818
metadata:
19-
name: {{ include "scec-arangodb.name" . }}
19+
name: {{ include "pdvd-arangodb.name" . }}
2020
spec:
2121
selector:
22-
app: {{ include "scec-arangodb.name" . }}
22+
app: {{ include "pdvd-arangodb.name" . }}
2323
ports:
2424
- protocol: TCP
2525
port: 8529

chart/scec-arangodb/templates/storage.yaml renamed to chart/pdvd-arangodb/templates/storage.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{ if (((.Values.global).arangodb).enabled) }}
21
{{- if or (contains "gke" (.Capabilities.KubeVersion.Version | toString)) (contains "eks" (.Capabilities.KubeVersion.Version | toString)) }}
32
apiVersion: storage.k8s.io/v1
43
kind: StorageClass
@@ -23,5 +22,4 @@ reclaimPolicy: Retain
2322
allowVolumeExpansion: true
2423
volumeBindingMode: WaitForFirstConsumer
2524
{{- end }}
26-
{{ end }}
27-
{{ end }}
25+
{{ end }}
File renamed without changes.

chart/scec-arangodb/Chart.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)