Skip to content

Commit 852741a

Browse files
committed
chore: removed cliConnectPort from postgres
1 parent 268cc4f commit 852741a

File tree

8 files changed

+6
-65
lines changed

8 files changed

+6
-65
lines changed

charts/plane-ce/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
| postgres.local_setup | true | | Plane uses `postgres` as the primary database to store all the transactional data. This database can be hosted within kubernetes as part of helm chart deployment or can be used as hosted service remotely (e.g. aws rds or similar services). Set this to `true` when you choose to setup stateful deployment of `postgres`. Mark it as `false` when using a remotely hosted database |
8080
| postgres.image | postgres:15.7-alpine | | Using this key, user must provide the docker image name to setup the stateful deployment of `postgres`. (must be set when `postgres.local_setup=true`)|
8181
| postgres.servicePort | 5432 | | This key sets the default port number to be used while setting up stateful deployment of `postgres`. |
82-
| postgres.cliConnectPort | | | If you intend to access the hosted stateful deployment of postgres using any of the client tools (e.g Postico), this key helps you expose the port. The mentioned port must not be occupied by any other applicaiton |
8382
| postgres.volumeSize | 5Gi | | While setting up the stateful deployment, while creating the persistant volume, volume allocation size need to be provided. This key helps you set the volume allocation size. Unit of this value must be in Mi (megabyte) or Gi (gigabyte) |
8483
| env.pgdb_username | plane | | Database credentials are requried to access the hosted stateful deployment of `postgres`. Use this key to set the username for the stateful deployment. |
8584
| env.pgdb_password | plane | | Database credentials are requried to access the hosted stateful deployment of `postgres`. Use this key to set the password for the stateful deployment. |

charts/plane-ce/questions.yml

-4
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,6 @@ questions:
317317
type: int
318318
default: 5432
319319
show_if: "postgres.local_setup=true"
320-
- variable: postgres.cliConnectPort
321-
label: CLI Connect Port
322-
type: int
323-
show_if: "postgres.local_setup=true"
324320
- variable: postgres.storageClass
325321
label: "Storage Class"
326322
type: string

charts/plane-ce/templates/workloads/postgres.stateful.yaml

-24
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,6 @@ spec:
1919
selector:
2020
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-pgdb
2121
---
22-
{{- if and .Values.postgres.cliConnectPort .Values.postgres.cliConnectPort | int }}
23-
apiVersion: v1
24-
kind: Service
25-
metadata:
26-
namespace: {{ .Release.Namespace }}
27-
name: {{ .Release.Name }}-pgdb-cli-connect
28-
spec:
29-
externalTrafficPolicy: Cluster
30-
internalTrafficPolicy: Cluster
31-
ipFamilies:
32-
- IPv4
33-
ipFamilyPolicy: SingleStack
34-
ports:
35-
- name: pg-{{ .Values.postgres.cliConnectPort | default 30000 }}
36-
nodePort: {{ .Values.postgres.cliConnectPort | default 30000 }}
37-
port: 5432
38-
protocol: TCP
39-
targetPort: 5432
40-
selector:
41-
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-pgdb
42-
sessionAffinity: None
43-
type: NodePort
44-
---
45-
{{- end }}
4622

4723
apiVersion: apps/v1
4824
kind: StatefulSet

charts/plane-ce/values.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ postgres:
3838
local_setup: true
3939
image: postgres:15.7-alpine
4040
servicePort: 5432
41-
cliConnectPort: ""
4241
storageClass: longhorn
4342
volumeSize: 1Gi
4443
pullPolicy: IfNotPresent

charts/plane-enterprise/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
| services.postgres.local_setup | true | | Plane uses `postgres` as the primary database to store all the transactional data. This database can be hosted within kubernetes as part of helm chart deployment or can be used as hosted service remotely (e.g. aws rds or similar services). Set this to `true` when you choose to setup stateful deployment of `postgres`. Mark it as `false` when using a remotely hosted database |
109109
| services.postgres.image | registry.plane.tools/plane/postgres:15.7-alpine | | Using this key, user must provide the docker image name to setup the stateful deployment of `postgres`. (must be set when `services.postgres.local_setup=true`)|
110110
| services.postgres.servicePort | 5432 | | This key sets the default port number to be used while setting up stateful deployment of `postgres`. |
111-
| services.postgres.cliConnectPort | | | If you intend to access the hosted stateful deployment of postgres using any of the client tools (e.g Postico), this key helps you expose the port. The mentioned port must not be occupied by any other applicaiton|
112111
| services.postgres.volumeSize | 2Gi | | While setting up the stateful deployment, while creating the persistant volume, volume allocation size need to be provided. This key helps you set the volume allocation size. Unit of this value must be in Mi (megabyte) or Gi (gigabyte) |
113112
| env.pgdb_username | plane | | Database credentials are requried to access the hosted stateful deployment of `postgres`. Use this key to set the username for the stateful deployment. |
114113
| env.pgdb_password | plane | | Database credentials are requried to access the hosted stateful deployment of `postgres`. Use this key to set the password for the stateful deployment. |

charts/plane-enterprise/questions.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,11 @@ questions:
339339
group: "Postgres Setup"
340340
# show_subquestion_if: true
341341
subquestions:
342+
- variable: services.postgres.image
343+
label: "Docker Image"
344+
type: string
345+
default: "registry.plane.tools/plane/postgres:15.7-alpine"
346+
show_if: "services.postgres.local_setup=true"
342347
- variable: services.postgres.pullPolicy
343348
label: "Postgres Pull Policy"
344349
type: enum
@@ -347,20 +352,13 @@ questions:
347352
- "IfNotPresent"
348353
- "Never"
349354
default: "IfNotPresent"
350-
- variable: services.postgres.image
351-
label: "Docker Image"
352-
type: string
353-
default: "registry.plane.tools/plane/postgres:15.7-alpine"
354355
show_if: "services.postgres.local_setup=true"
355356
- variable: services.postgres.servicePort
356357
label: Service Port
357358
type: int
358359
default: 5432
359360
show_if: "services.postgres.local_setup=true"
360-
- variable: services.postgres.cliConnectPort
361-
label: CLI Connect Port
362-
type: int
363-
show_if: "services.postgres.local_setup=true"
361+
364362
- variable: services.postgres.volumeSize
365363
label: "Volume Size"
366364
type: string

charts/plane-enterprise/templates/workloads/postgres.stateful.yaml

-25
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,6 @@ spec:
1919
selector:
2020
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-pgdb
2121
---
22-
{{- if and .Values.services.postgres.cliConnectPort .Values.services.postgres.cliConnectPort | int }}
23-
apiVersion: v1
24-
kind: Service
25-
metadata:
26-
namespace: {{ .Release.Namespace }}
27-
name: {{ .Release.Name }}-pgdb-cli-connect
28-
spec:
29-
externalTrafficPolicy: Cluster
30-
internalTrafficPolicy: Cluster
31-
ipFamilies:
32-
- IPv4
33-
ipFamilyPolicy: SingleStack
34-
ports:
35-
- name: pg-{{ .Values.services.postgres.cliConnectPort | default 30000 }}
36-
nodePort: {{ .Values.services.postgres.cliConnectPort | default 30000 }}
37-
port: 5432
38-
protocol: TCP
39-
targetPort: 5432
40-
selector:
41-
app.name: {{ .Release.Namespace }}-{{ .Release.Name }}-pgdb
42-
sessionAffinity: None
43-
type: NodePort
44-
---
45-
{{- end }}
46-
4722
apiVersion: apps/v1
4823
kind: StatefulSet
4924
metadata:

charts/plane-enterprise/values.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ services:
4040
local_setup: true
4141
image: registry.plane.tools/plane/postgres:15.7-alpine
4242
servicePort: 5432
43-
cliConnectPort: ''
4443
volumeSize: 2Gi
4544
pullPolicy: IfNotPresent
4645
assign_cluster_ip: false

0 commit comments

Comments
 (0)