chore(Postgresql): Move postgresql to a seperate dependency train

This commit is contained in:
kjeld Schouten-Lebbing
2021-11-08 14:34:52 +01:00
parent 25c85b25ec
commit 58dd16f90b
14 changed files with 8 additions and 1 deletions
-24
View File
@@ -1,24 +0,0 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
-468
View File
@@ -1,468 +0,0 @@
# Changelog<br>
<a name="postgresql-5.1.11"></a>
### [postgresql-5.1.11](https://github.com/truecharts/apps/compare/postgresql-5.1.10...postgresql-5.1.11) (2021-11-07)
#### Chore
* update non-major deps helm releases ([#1295](https://github.com/truecharts/apps/issues/1295))
<a name="postgresql-5.1.10"></a>
### [postgresql-5.1.10](https://github.com/truecharts/apps/compare/postgresql-5.1.9...postgresql-5.1.10) (2021-11-07)
#### Chore
* update non-major ([#1270](https://github.com/truecharts/apps/issues/1270))
<a name="postgresql-5.1.9"></a>
### [postgresql-5.1.9](https://github.com/truecharts/apps/compare/postgresql-5.1.8...postgresql-5.1.9) (2021-11-07)
#### Chore
* update non-major deps helm releases ([#1291](https://github.com/truecharts/apps/issues/1291))
#### Chore
* Simplify GUI for deployment, persistence and securityContext ([#1289](https://github.com/truecharts/apps/issues/1289))
#### Feat
* Simplify the Services GUI ([#1290](https://github.com/truecharts/apps/issues/1290))
<a name="postgresql-5.1.8"></a>
### [postgresql-5.1.8](https://github.com/truecharts/apps/compare/postgresql-5.1.7...postgresql-5.1.8) (2021-11-02)
#### Chore
* update non-major deps helm releases ([#1267](https://github.com/truecharts/apps/issues/1267))
<a name="postgresql-5.1.7"></a>
### [postgresql-5.1.7](https://github.com/truecharts/apps/compare/postgresql-5.1.6...postgresql-5.1.7) (2021-11-02)
#### Chore
* update non-major ([#1265](https://github.com/truecharts/apps/issues/1265))
<a name="postgresql-5.1.6"></a>
### [postgresql-5.1.6](https://github.com/truecharts/apps/compare/postgresql-5.1.5...postgresql-5.1.6) (2021-11-01)
#### Chore
* update non-major deps helm releases ([#1264](https://github.com/truecharts/apps/issues/1264))
<a name="postgresql-5.1.5"></a>
### [postgresql-5.1.5](https://github.com/truecharts/apps/compare/postgresql-5.1.4...postgresql-5.1.5) (2021-11-01)
#### Chore
* update non-major ([#1263](https://github.com/truecharts/apps/issues/1263))
<a name="postgresql-5.1.4"></a>
### [postgresql-5.1.4](https://github.com/truecharts/apps/compare/postgresql-5.1.3...postgresql-5.1.4) (2021-10-26)
#### Fix
* correct group permissions on SCALE deployments of postgresql
<a name="postgresql-5.1.3"></a>
### [postgresql-5.1.3](https://github.com/truecharts/apps/compare/postgresql-5.1.2...postgresql-5.1.3) (2021-10-26)
#### Chore
* update non-major deps helm releases ([#1245](https://github.com/truecharts/apps/issues/1245))
<a name="postgresql-5.1.2"></a>
### [postgresql-5.1.2](https://github.com/truecharts/apps/compare/postgresql-5.1.1...postgresql-5.1.2) (2021-10-26)
#### Chore
* update bitnami/postgresql:14.0.0 docker digest to 6737f46 ([#1243](https://github.com/truecharts/apps/issues/1243))
<a name="postgresql-5.1.1"></a>
### [postgresql-5.1.1](https://github.com/truecharts/apps/compare/postgresql-5.1.0...postgresql-5.1.1) (2021-10-26)
#### Chore
* update helm chart common to v8.3.15 ([#1240](https://github.com/truecharts/apps/issues/1240))
* update major docker tags (major) ([#1235](https://github.com/truecharts/apps/issues/1235))
* update non-major ([#1232](https://github.com/truecharts/apps/issues/1232))
<a name="postgresql-5.1.0"></a>
### [postgresql-5.1.0](https://github.com/truecharts/apps/compare/postgresql-4.1.0...postgresql-5.1.0) (2021-10-26)
<a name="postgresql-4.1.0"></a>
### [postgresql-4.1.0](https://github.com/truecharts/apps/compare/postgresql-5.0.0...postgresql-4.1.0) (2021-10-26)
#### Fix
* fix migration scripting for new major
<a name="postgresql-5.0.0"></a>
### [postgresql-5.0.0](https://github.com/truecharts/apps/compare/postgresql-4.0.3...postgresql-5.0.0) (2021-10-25)
#### Chore
* Adapt for TrueNAS SCALE RC1
<a name="postgresql-4.0.3"></a>
### [postgresql-4.0.3](https://github.com/truecharts/apps/compare/postgresql-4.0.1...postgresql-4.0.3) (2021-10-20)
#### Chore
* bump apps, remove duplicates and move incubator to stable for RC1
#### Fix
* reenable postgresql migration scripting and bump all to force update
<a name="postgresql-4.0.1"></a>
### [postgresql-4.0.1](https://github.com/truecharts/apps/compare/postgresql-4.0.0...postgresql-4.0.1) (2021-10-20)
#### Chore
* bump common on postgresql
#### Fix
* use correct PVC storageClass when using postgresql as a dependency on SCALE ([#1212](https://github.com/truecharts/apps/issues/1212))
<a name="postgresql-4.0.0"></a>
### [postgresql-4.0.0](https://github.com/truecharts/apps/compare/postgresql-3.0.21...postgresql-4.0.0) (2021-10-20)
#### Chore
* bump versions to rerelease and fix icons
* update non-major ([#1185](https://github.com/truecharts/apps/issues/1185))
#### Security
* Improve Snyk hardening advisory ([#1208](https://github.com/truecharts/apps/issues/1208))
<a name="postgresql-3.0.21"></a>
### [postgresql-3.0.21](https://github.com/truecharts/apps/compare/postgresql-3.0.20...postgresql-3.0.21) (2021-10-19)
#### Change
* Project-Eclipse 3, Automatically generate item.yaml ([#1178](https://github.com/truecharts/apps/issues/1178))
#### Chore
* Project-Eclipse 5, move app-readme to automatic generation script ([#1181](https://github.com/truecharts/apps/issues/1181))
* Project-Eclipse part 2, adapting and cleaning changelog ([#1173](https://github.com/truecharts/apps/issues/1173))
* update helm chart common to v8.3.13 ([#1184](https://github.com/truecharts/apps/issues/1184))
* update non-major ([#1174](https://github.com/truecharts/apps/issues/1174))
#### Feat
* Project-Eclipse 4, Add App grading annotations to Chart.yaml ([#1180](https://github.com/truecharts/apps/issues/1180))
#### Refactor
* Project Eclipse Part 6, move questions.yaml to root App folder ([#1182](https://github.com/truecharts/apps/issues/1182))
<a name="postgresql-3.0.20"></a>
### [postgresql-3.0.20](https://github.com/truecharts/apps/compare/postgresql-3.0.19...postgresql-3.0.20) (2021-10-19)
#### Fix
* fix previous SCALE bugfix not correctly being applied
<a name="postgresql-3.0.19"></a>
### [postgresql-3.0.19](https://github.com/truecharts/apps/compare/postgresql-3.0.18...postgresql-3.0.19) (2021-10-19)
#### Chore
* Add description on persistence ([#1172](https://github.com/truecharts/apps/issues/1172))
#### Fix
* Solve issues regarding ix_values.yaml not containing the image and tag definitions. ([#1176](https://github.com/truecharts/apps/issues/1176))
#### Refactor
* Project Eclipse - part 1 - remove ix_values.yaml ([#1168](https://github.com/truecharts/apps/issues/1168))
<a name="postgresql-3.0.18"></a>
### [postgresql-3.0.18](https://github.com/truecharts/apps/compare/postgresql-3.0.17...postgresql-3.0.18) (2021-10-18)
#### Chore
* bump common on postgresql
<a name="postgresql-3.0.17"></a>
### [postgresql-3.0.17](https://github.com/truecharts/apps/compare/postgresql-3.0.16...postgresql-3.0.17) (2021-10-17)
#### Chore
* update helm chart common to v8.3.10 ([#1160](https://github.com/truecharts/apps/issues/1160))
#### Fix
* force users using correct / prefix for mounPath ([#1156](https://github.com/truecharts/apps/issues/1156))
<a name="postgresql-3.0.16"></a>
### [postgresql-3.0.16](https://github.com/truecharts/apps/compare/postgresql-3.0.15...postgresql-3.0.16) (2021-10-13)
#### Chore
* bump common
<a name="postgresql-3.0.15"></a>
### [postgresql-3.0.15](https://github.com/truecharts/apps/compare/postgresql-3.0.14...postgresql-3.0.15) (2021-10-12)
#### Chore
* update non-major deps helm releases ([#1126](https://github.com/truecharts/apps/issues/1126))
<a name="postgresql-3.0.14"></a>
### [postgresql-3.0.14](https://github.com/truecharts/apps/compare/postgresql-3.0.13...postgresql-3.0.14) (2021-10-12)
#### Chore
* update non-major ([#1122](https://github.com/truecharts/apps/issues/1122))
<a name="postgresql-3.0.13"></a>
### [postgresql-3.0.13](https://github.com/truecharts/apps/compare/postgresql-3.0.12...postgresql-3.0.13) (2021-10-09)
<a name="postgresql-3.0.12"></a>
### [postgresql-3.0.12](https://github.com/truecharts/apps/compare/postgresql-3.0.11...postgresql-3.0.12) (2021-10-09)
<a name="postgresql-3.0.11"></a>
### [postgresql-3.0.11](https://github.com/truecharts/apps/compare/postgresql-3.0.10...postgresql-3.0.11) (2021-10-09)
<a name="postgresql-3.0.10"></a>
### [postgresql-3.0.10](https://github.com/truecharts/apps/compare/postgresql-3.0.9...postgresql-3.0.10) (2021-10-09)
<a name="postgresql-3.0.9"></a>
### [postgresql-3.0.9](https://github.com/truecharts/apps/compare/postgresql-3.0.8...postgresql-3.0.9) (2021-10-09)
<a name="postgresql-3.0.8"></a>
### [postgresql-3.0.8](https://github.com/truecharts/apps/compare/postgresql-3.0.7...postgresql-3.0.8) (2021-10-05)
#### Chore
* update non-major ([#1098](https://github.com/truecharts/apps/issues/1098))
<a name="postgresql-3.0.7"></a>
### [postgresql-3.0.7](https://github.com/truecharts/apps/compare/postgresql-3.0.6...postgresql-3.0.7) (2021-10-05)
<a name="postgresql-3.0.6"></a>
### [postgresql-3.0.6](https://github.com/truecharts/apps/compare/postgresql-3.0.5...postgresql-3.0.6) (2021-09-29)
#### Chore
* update helm chart common to v8.0.13 ([#1060](https://github.com/truecharts/apps/issues/1060))
<a name="postgresql-3.0.4"></a>
### [postgresql-3.0.4](https://github.com/truecharts/apps/compare/postgresql-3.0.3...postgresql-3.0.4) (2021-09-29)
#### Chore
* update bitnami/postgresql:13.4.0 docker digest to 33c276d ([#1055](https://github.com/truecharts/apps/issues/1055))
<a name="postgresql-3.0.3"></a>
### [postgresql-3.0.3](https://github.com/truecharts/apps/compare/postgresql-3.0.2...postgresql-3.0.3) (2021-09-28)
#### Chore
* update non-major ([#1048](https://github.com/truecharts/apps/issues/1048))
<a name="postgresql-3.0.2"></a>
### [postgresql-3.0.2](https://github.com/truecharts/apps/compare/postgresql-3.0.1...postgresql-3.0.2) (2021-09-28)
#### Chore
* update non-major ([#1046](https://github.com/truecharts/apps/issues/1046))
<a name="postgresql-3.0.1"></a>
### [postgresql-3.0.1](https://github.com/truecharts/apps/compare/postgresql-3.0.0...postgresql-3.0.1) (2021-09-26)
<a name="postgresql-3.0.0"></a>
### [postgresql-3.0.0](https://github.com/truecharts/apps/compare/postgresql-2.2.5...postgresql-3.0.0) (2021-09-26)
<a name="postgresql-2.2.5"></a>
### [postgresql-2.2.5](https://github.com/truecharts/apps/compare/postgresql-2.2.4...postgresql-2.2.5) (2021-09-21)
#### Chore
* update non-major deps helm releases ([#1014](https://github.com/truecharts/apps/issues/1014))
<a name="postgresql-2.2.4"></a>
### [postgresql-2.2.4](https://github.com/truecharts/apps/compare/postgresql-2.2.3...postgresql-2.2.4) (2021-09-21)
#### Chore
* update non-major ([#1015](https://github.com/truecharts/apps/issues/1015))
<a name="postgresql-2.2.3"></a>
### [postgresql-2.2.3](https://github.com/truecharts/apps/compare/postgresql-2.2.2...postgresql-2.2.3) (2021-09-21)
#### Chore
* update non-major ([#1013](https://github.com/truecharts/apps/issues/1013))
<a name="postgresql-2.2.2"></a>
### [postgresql-2.2.2](https://github.com/truecharts/apps/compare/postgresql-2.2.1...postgresql-2.2.2) (2021-09-14)
#### Chore
* update non-major ([#987](https://github.com/truecharts/apps/issues/987))
<a name="postgresql-2.2.1"></a>
### [postgresql-2.2.1](https://github.com/truecharts/apps/compare/postgresql-2.2.0...postgresql-2.2.1) (2021-09-13)
#### Feat
* add new GUI and VPN support to all Apps ([#977](https://github.com/truecharts/apps/issues/977))
<a name="postgresql-2.2.0"></a>
### [postgresql-2.2.0](https://github.com/truecharts/apps/compare/postgresql-2.1.1...postgresql-2.2.0) (2021-09-13)
#### Chore
* update non-major
#### Feat
* Add VPN addon and move some config to includes ([#973](https://github.com/truecharts/apps/issues/973))
<a name="postgresql-2.1.1"></a>
### [postgresql-2.1.1](https://github.com/truecharts/apps/compare/postgresql-2.1.0...postgresql-2.1.1) (2021-09-11)
#### Fix
* use correct appversion string
<a name="postgresql-2.1.0"></a>
### [postgresql-2.1.0](https://github.com/truecharts/apps/compare/postgresql-2.0.0...postgresql-2.1.0) (2021-09-11)
#### Chore
* Use bitnami instead of stock postgresql container ([#960](https://github.com/truecharts/apps/issues/960))
* update non-major
#### Feat
* pin all container references to digests ([#963](https://github.com/truecharts/apps/issues/963))
#### Fix
* make sure podSecurityContext is included in both SCALE and Helm installs ([#956](https://github.com/truecharts/apps/issues/956))
* move runAsNonRoot to container securityContext to allow root sidecarts ([#954](https://github.com/truecharts/apps/issues/954))
<a name="postgresql-2.0.0"></a>
### [postgresql-2.0.0](https://github.com/truecharts/apps/compare/postgresql-1.6.6...postgresql-2.0.0) (2021-09-09)
#### Chore
* fix postgresql version
<a name="postgresql-1.6.6"></a>
### [postgresql-1.6.6](https://github.com/truecharts/apps/compare/postgresql-1.6.5...postgresql-1.6.6) (2021-09-09)
#### Chore
* update postrgresql to common 7.0.0 ([#951](https://github.com/truecharts/apps/issues/951))
#### Feat
* Add regex validation to resources CPU and RAM for all apps ([#935](https://github.com/truecharts/apps/issues/935))
#### Fix
* repair Hyperion and some misplaced GUI elements ([#922](https://github.com/truecharts/apps/issues/922))
-8
View File
@@ -1,8 +0,0 @@
# Configuration Options
##### Connecting to other apps
If you need to connect this App to other Apps on TrueNAS SCALE, please refer to our "Linking Apps Internally" quick-start guide:
https://truecharts.org/manual/Quick-Start%20Guides/14-linking-apps/
##### Available config options
In the future this page is going to contain an automated list of options available in the installation/edit UI.
-30
View File
@@ -1,30 +0,0 @@
apiVersion: v2
appVersion: "14.0.0"
dependencies:
- name: common
repository: https://truecharts.org
version: 8.5.3
deprecated: false
description: PostgresSQL
home: https://github.com/truecharts/apps/tree/master/stable/postgres
icon: https://d1q6f0aelx0por.cloudfront.net/product-logos/library-postgres-logo.png
keywords:
- postgres
- postgressql
- dtabase
- sql
kubeVersion: '>=1.16.0-0'
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: truecharts.org
name: postgresql
sources:
- https://www.postgresql.org/
type: application
version: 5.1.11
annotations:
truecharts.org/catagories: |
- database
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
-37
View File
@@ -1,37 +0,0 @@
# Introduction
PostgresSQL
TrueCharts are designed to be installed as TrueNAS SCALE app only. We can not guarantee this charts works as a stand-alone helm installation.
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/apps/issues/new/choose)**
## Source Code
* <https://www.postgresql.org/>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://truecharts.org | common | 8.5.3 |
## Installing the Chart
To install this App on TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/03-Installing-an-App/).
## Uninstalling the Chart
To remove this App from TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/07-Deleting-an-App/).
## Support
- Please check our [quick-start guides](https://truecharts.org/manual/Quick-Start%20Guides/01-Open-Apps/) first.
- See the [Wiki](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/apps/issues/new/choose)
---
All Rights Reserved - The TrueCharts Project
-37
View File
@@ -1,37 +0,0 @@
# Default Helm-Values
TrueCharts is primarily build to supply TrueNAS SCALE Apps.
However, we also supply all Apps as standard Helm-Charts. In this document we aim to document the default values in our values.yaml file.
Most of our Apps also consume our "common" Helm Chart.
If this is the case, this means that all values.yaml values are set to the common chart values.yaml by default. This values.yaml file will only contain values that deviate from the common chart.
You will, however, be able to use all values referenced in the common chart here, besides the values listed in this document.
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| enableUpgradeBackup | bool | `false` | |
| envTpl.POSTGRES_DB | string | `"{{ .Values.postgresqlDatabase }}"` | |
| envTpl.POSTGRES_USER | string | `"{{ .Values.postgresqlUsername }}"` | |
| envValueFrom.POSTGRES_PASSWORD.secretKeyRef.key | string | `"postgresql-password"` | |
| envValueFrom.POSTGRES_PASSWORD.secretKeyRef.name | string | `"{{ ( tpl .Values.existingSecret $ ) | default ( include \"common.names.fullname\" . ) }}"` | |
| existingSecret | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"bitnami/postgresql"` | |
| image.tag | string | `"14.0.0@sha256:a95e5588c9f716bfc716b090f3cea41cbefb0d2c6e1c3c6de5514a5c2d1ce416"` | |
| persistence.db.accessMode | string | `"ReadWriteOnce"` | |
| persistence.db.enabled | bool | `true` | |
| persistence.db.mountPath | string | `"/bitnami/postgresql"` | |
| persistence.db.size | string | `"999Gi"` | |
| persistence.db.type | string | `"pvc"` | |
| podSecurityContext.runAsGroup | int | `0` | |
| postgresqlDatabase | string | `"test"` | |
| postgresqlPassword | string | `"testpass"` | |
| postgresqlUsername | string | `"test"` | |
| securityContext.readOnlyRootFilesystem | bool | `false` | |
| service.main.enabled | bool | `true` | |
| service.main.ports.main.port | int | `5432` | |
| service.main.ports.main.targetPort | int | `5432` | |
All Rights Reserved - The TrueCharts Project
-448
View File
@@ -1,448 +0,0 @@
# Include{groups}
questions:
- variable: portal
group: "Container Image"
label: "Configure Portal Button"
schema:
type: dict
hidden: true
attrs:
- variable: enabled
label: "Enable"
description: "enable the portal button"
schema:
hidden: true
editable: false
type: boolean
default: false
# Include{global}
- variable: controller
group: "Controller"
label: ""
schema:
type: dict
attrs:
- variable: advanced
label: "Show Advanced Controller Settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: type
description: "Please specify type of workload to deploy"
label: "(Advanced) Controller Type"
schema:
type: string
default: "deployment"
required: true
enum:
- value: "deployment"
description: "Deployment"
- value: "statefulset"
description: "Statefulset"
- value: "daemonset"
description: "Daemonset"
- variable: replicas
description: "Number of desired pod replicas"
label: "Desired Replicas"
schema:
type: int
default: 1
required: true
- variable: strategy
description: "Please specify type of workload to deploy"
label: "(Advanced) Update Strategy"
schema:
type: string
default: "Recreate"
required: true
enum:
- value: "Recreate"
description: "Recreate: Kill existing pods before creating new ones"
- value: "RollingUpdate"
description: "RollingUpdate: Create new pods and then kill old ones"
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: env
group: "Container Configuration"
label: "Image Environment"
schema:
type: dict
attrs:
# Include{fixedEnv}
# Include{containerConfig}
- variable: postgresqlDatabase
group: "App Configuration"
label: "Database Name"
schema:
type: string
default: "mydatabase"
required: true
- variable: postgresqlUsername
group: "App Configuration"
label: "Database User"
schema:
type: string
default: "mydatabaseuser"
required: true
- variable: postgresqlPassword
group: "App Configuration"
label: "Database Password"
schema:
type: string
default: ""
required: true
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
schema:
type: dict
attrs:
- variable: main
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
type: dict
attrs:
# Include{serviceSelector}
- variable: main
label: "Main Service Port Configuration"
schema:
type: dict
attrs:
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: protocol
label: "Port Type"
schema:
type: string
default: "TCP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 5432
- variable: port
label: "Container Port"
schema:
type: int
default: 5432
editable: true
required: true
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostNetwork
group: "Networking and Services"
label: "Host-Networking (Complicated)"
schema:
type: boolean
default: false
# Include{serviceExpert}
# Include{serviceList}
- variable: persistence
label: "Integrated Persistent Storage"
description: "Integrated Persistent Storage"
group: "Storage and Persistence"
schema:
type: dict
attrs:
- variable: db
label: "Old db Storage"
description: "Stores the old Application Database."
schema:
type: dict
hidden: true
attrs:
- variable: enabled
label: "Enable the storage"
schema:
type: boolean
default: true
hidden: true
- variable: type
label: "Type of Storage"
description: "Sets the persistence type, Anything other than PVC could break rollback!"
schema:
type: string
default: "simplePVC"
enum:
- value: "simplePVC"
description: "PVC (simple)"
- value: "simpleHP"
description: "HostPath (simple)"
- value: "emptyDir"
description: "emptyDir"
- value: "pvc"
description: "pvc"
- value: "hostPath"
description: "hostPath"
# Include{persistenceBasic}
- variable: hostPath
label: "hostPath"
description: "Path inside the container the storage is mounted"
schema:
show_if: [["type", "=", "hostPath"]]
type: hostpath
- variable: mountPath
label: "mountPath"
description: "Path inside the container the storage is mounted"
schema:
type: string
default: "/var/lib/postgresql/data"
hidden: true
valid_chars: '^\/([a-zA-Z0-9._-]+\/?)+$'
- variable: medium
label: "EmptyDir Medium"
schema:
show_if: [["type", "=", "emptyDir"]]
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
# Include{persistenceAdvanced}
- variable: data
label: "App data Storage"
description: "Stores the Application Database."
schema:
type: dict
attrs:
- variable: enabled
label: "Enable the storage"
schema:
type: boolean
default: true
hidden: true
- variable: type
label: "Type of Storage"
description: "Sets the persistence type, Anything other than PVC could break rollback!"
schema:
type: string
default: "simplePVC"
enum:
- value: "simplePVC"
description: "PVC (simple)"
- value: "simpleHP"
description: "HostPath (simple)"
- value: "emptyDir"
description: "emptyDir"
- value: "pvc"
description: "pvc"
- value: "hostPath"
description: "hostPath"
# Include{persistenceBasic}
- variable: hostPath
label: "hostPath"
description: "Path inside the container the storage is mounted"
schema:
show_if: [["type", "=", "hostPath"]]
type: hostpath
- variable: mountPath
label: "mountPath"
description: "Path inside the container the storage is mounted"
schema:
type: string
default: "/bitnami/postgresql"
hidden: true
valid_chars: '^\/([a-zA-Z0-9._-]+\/?)+$'
- variable: medium
label: "EmptyDir Medium"
schema:
show_if: [["type", "=", "emptyDir"]]
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
# Include{persistenceAdvanced}
- variable: dbbackups
label: "App backup Storage"
description: "Stores the Application backups."
schema:
type: dict
attrs:
- variable: enabled
label: "Enable the storage"
schema:
type: boolean
default: true
hidden: true
- variable: type
label: "Type of Storage"
description: "Sets the persistence type, Anything other than PVC could break rollback!"
schema:
type: string
default: "simplePVC"
enum:
- value: "simplePVC"
description: "PVC (simple)"
- value: "simpleHP"
description: "HostPath (simple)"
- value: "emptyDir"
description: "emptyDir"
- value: "pvc"
description: "pvc"
- value: "hostPath"
description: "hostPath"
# Include{persistenceBasic}
- variable: hostPath
label: "hostPath"
description: "Path inside the container the storage is mounted"
schema:
show_if: [["type", "=", "hostPath"]]
type: hostpath
- variable: mountPath
label: "mountPath"
description: "Path inside the container the storage is mounted"
schema:
type: string
default: "/dbbackups"
hidden: true
valid_chars: '^\/([a-zA-Z0-9._-]+\/?)+$'
- variable: medium
label: "EmptyDir Medium"
schema:
show_if: [["type", "=", "emptyDir"]]
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
# Include{persistenceAdvanced}
# Include{persistenceList}
# Include{ingressList}
- variable: advancedSecurity
label: "Show Advanced Security Settings"
group: "Security and Permissions"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: securityContext
label: "Security Context"
schema:
type: dict
attrs:
- variable: privileged
label: "Privileged mode"
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: false
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
type: boolean
default: true
- variable: podSecurityContext
group: "Security and Permissions"
label: "Pod Security Context"
schema:
type: dict
attrs:
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 568
- variable: runAsGroup
label: "runAsGroup"
description: The groupID this App of the user running the application"
schema:
type: int
default: 0
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
- variable: supplementalGroups
label: "supplemental Groups"
schema:
type: list
default: []
items:
- variable: supplementalGroupsEntry
label: "supplemental Group"
schema:
type: int
- variable: fsGroupChangePolicy
label: "When should we take ownership?"
schema:
type: string
default: "OnRootMismatch"
enum:
- value: "OnRootMismatch"
description: "OnRootMismatch"
- value: "Always"
description: "Always"
# Include{resources}
# Include{advanced}
# Include{addons}
@@ -1,15 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: "postgres-backup-hook-config-map"
annotations:
rollme: {{ randAlphaNum 5 | quote }}
data:
entrypoint.sh: |-
#!/bin/sh
cmd="/docker-entrypoint.sh postgres"
eval "${cmd}" & disown;
until pg_isready; do
sleep 5;
done;
pg_dump -U {{ .Values.postgresqlUser }} -d {{ .Values.postgresqlDatabase }} > /dbbackups/$BACKUP_NAME;
@@ -1,2 +0,0 @@
{{ include "common.all" . }}
@@ -1,13 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
type: Opaque
data:
postgresql-password: {{ ( .Values.postgresqlPassword | default "empty" ) | b64enc | quote }}
@@ -1,56 +0,0 @@
{{- if and ( .Values.enableUpgradeBackup ) ( .Values.ixChartContext ) -}}
{{- if .Values.ixChartContext.isUpgrade -}}
{{- $upgradeDict := .Values.ixChartContext.upgradeMetadata -}}
{{ $values := (. | mustDeepCopy) }}
---
apiVersion: batch/v1
kind: Job
metadata:
name: "pre-upgrade-hook2"
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "1"
"helm.sh/hook-delete-policy": hook-succeeded
rollme: {{ randAlphaNum 5 | quote }}
spec:
template:
metadata:
name: "pre-upgrade-hook2"
spec:
restartPolicy: Never
containers:
- name: {{ .Chart.Name }}-postgres-backup
image: {{ printf "%v:%v" .Values.image.repository .Values.image.tag}}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: BACKUP_NAME
value: {{- printf "postgres-backup-from-%s-to-%s-revision-%d" $upgradeDict.oldChartVersion $upgradeDict.newChartVersion (int64 $upgradeDict.preUpgradeRevision) -}}
- name: POSTGRES_USER
value: {{ .Values.postgresqlUsername | quote }}
- name: POSTGRES_DB
value: {{ .Values.postgresqlDatabase | quote }}
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: {{ ( .Values.existingSecret | default ( include "common.names.fullname" . ) ) | quote }}
key: "postgresql-password"
command:
- "/bin/backup_entrypoint.sh"
volumeMounts:
- name: backup-script-configmap
mountPath: /bin/backup_entrypoint.sh
readOnly: true
subPath: entrypoint.sh
{{- with (include "common.controller.volumeMounts" . | trim) }}
{{ nindent 4 . }}
{{- end }}
volumes:
- name: backup-script-configmap
configMap:
defaultMode: 0700
name: "postgres-backup-hook-config-map"
{{- with (include "common.controller.volumes" . | trim) }}
{{- nindent 2 . }}
{{- end }}
{{- end -}}
{{- end -}}
-46
View File
@@ -1,46 +0,0 @@
image:
repository: bitnami/postgresql
pullPolicy: IfNotPresent
tag: 14.0.0@sha256:a95e5588c9f716bfc716b090f3cea41cbefb0d2c6e1c3c6de5514a5c2d1ce416
securityContext:
readOnlyRootFilesystem: false
service:
main:
enabled: true
ports:
main:
port: 5432
targetPort: 5432
## TODO: Fix the backup-on-upgrade system
enableUpgradeBackup: false
podSecurityContext:
runAsGroup: 0
persistence:
db:
enabled: true
mountPath: "/bitnami/postgresql"
type: pvc
accessMode: ReadWriteOnce
size: "999Gi"
postgresqlPassword: "testpass"
postgresqlUsername: "test"
postgresqlDatabase: "test"
existingSecret: ""
envValueFrom:
POSTGRES_PASSWORD:
secretKeyRef:
name: '{{ ( tpl .Values.existingSecret $ ) | default ( include "common.names.fullname" . ) }}'
key: "postgresql-password"
envTpl:
POSTGRES_USER: "{{ .Values.postgresqlUsername }}"
POSTGRES_DB: "{{ .Values.postgresqlDatabase }}"
# POSTGRESQL_POSTGRES_PASSWORD: "{{ .Values.postgrespassword }}"
# POSTGRESQL_PASSWORD: "{{ .Values.password }}"