-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cloud-native-pg] Refactor templating for cluster kind. (#423)
Co-authored-by: Jozef Volak <[email protected]>
- Loading branch information
Showing
6 changed files
with
121 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,8 +59,10 @@ jobs: | |
kubectl -n ct create secret docker-registry regcred --docker-server=https://index.docker.io/v1/ --docker-username=${{ secrets.DOCKERHUB_NAME }} --docker-password=${{ secrets.DOCKERHUB_PASSWORD }} [email protected] | ||
- name: Install operators | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
helm install frinx-machine-operators frinx/frinx-machine-operators | ||
- name: Run chart-testing (install) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --config .github/lint_test_config.yaml --namespace ct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,16 @@ name: cloud-native-pg | |
description: A Helm chart for creating postgres cluster via CloudNativePG operator | ||
icon: https://avatars.githubusercontent.com/u/23452093?s=200&v=4 | ||
type: application | ||
version: 0.1.0 | ||
appVersion: 6.0.0 | ||
version: 1.0.0 | ||
appVersion: 7.0.0 | ||
maintainers: | ||
- name: FRINX | ||
email: [email protected] | ||
url: https://frinx.io | ||
annotations: | ||
artifacthub.io/changes: | | ||
- kind: added | ||
description: Enable cluster podmonitor for monitoring | ||
- kind: changed | ||
description: Refactor templating for cluster kind. Fix argo-cd sync issues | ||
links: | ||
- name: GitHub PR | ||
url: https://github.com/FRINXio/helm-charts/pull/397 | ||
url: https://github.com/FRINXio/helm-charts/pull/423 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# cloud-native-pg | ||
|
||
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.0.0](https://img.shields.io/badge/AppVersion-6.0.0-informational?style=flat-square) | ||
|
||
A Helm chart for creating postgres cluster via CloudNativePG operator | ||
|
||
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 7.0.0](https://img.shields.io/badge/AppVersion-7.0.0-informational?style=flat-square) | ||
|
||
## Get Repo Info | ||
|
||
```console | ||
|
@@ -29,28 +29,24 @@ helm upgrade [RELEASE_NAME] frinx/cloud-native-pg | |
helm uninstall [RELEASE_NAME] | ||
``` | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| FRINX | <[email protected]> | <https://frinx.io> | | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| affinity | object | `{}` | [Affinity] Defines info about creating affinity rules for pods https://cloudnative-pg.io/documentation/1.18/api_reference/#AffinityConfiguration | | ||
| backup | object | `{}` | [Backup] Cluster backup configuration https://cloudnative-pg.io/documentation/1.18/api_reference/#backupconfiguration | | ||
| bootstrap | object | `{"initdb":{"database":"frinx","owner":"frinx","postInitApplicationSQL":{},"postInitApplicationSQLRefs":{"extraConfigMapRefs":{},"extraSecretRefs":{}},"postInitSQL":{},"postInitTemplateSQL":{}}}` | Bootstrap configuration of cluster | | ||
| bootstrap | object | `{"initdb":{"database":"frinx","owner":"frinx","postInitApplicationSQL":[],"postInitApplicationSQLRefs":null,"postInitSQL":[],"postInitTemplateSQL":[]}}` | Bootstrap configuration of cluster | | ||
| env | object | `{}` | Environmental variables configuration | | ||
| envFrom | object | `{}` | Environmental variables passed from referenced objects | | ||
| imageName | string | `"ghcr.io/cloudnative-pg/postgresql:12.18"` | Image repository with tag | | ||
| imagePullPolicy | string | `"IfNotPresent"` | Image pull policy | | ||
| imagePullSecrets | list | `[]` | [Image Pull Secrets](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) | | ||
| instances | int | `2` | Number of instances | | ||
| logLevel | string | `"info"` | Logging level configuration | | ||
| monitoring | object | `{"podMonitorEnabled":false}` | Podmonitor configuration | | ||
| monitoring | object | `{"enablePodMonitor":false}` | Podmonitor configuration | | ||
| name | string | `nil` | | | ||
| podAnnotations | object | `{}` | Pod annotations | | ||
| podLabels | object | `{}` | Pod labels | | ||
| postgresql | object | `{"parameters":{"max_connections":"300"}}` | [PostgresConfiguration] Defines the PostgreSQL configuration https://cloudnative-pg.io/documentation/1.18/api_reference/#postgresconfiguration | | ||
| primaryUpdateMethod | string | `"switchover"` | Primary update method configuration | | ||
| primaryUpdateStrategy | string | `"unsupervised"` | Primary update strategy configuration | | ||
|
@@ -60,3 +56,4 @@ helm uninstall [RELEASE_NAME] | |
| startDelay | int | `30` | Start delay configuration | | ||
| stopDelay | int | `30` | Stop delay configuration | | ||
| storage | object | `{"resizeInUseVolumes":true,"size":"1Gi"}` | [StorageConfiguration] Defines PostgreSQL instances storage configuration https://cloudnative-pg.io/documentation/1.18/api_reference/#storageconfiguration | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} | ||
|
||
## Get Repo Info | ||
|
||
```console | ||
helm repo add frinx https://FRINXio.github.io/helm-charts | ||
helm repo update | ||
``` | ||
|
||
## Install Chart | ||
|
||
```console | ||
helm install [RELEASE_NAME] frinx/{{ template "chart.name" . }} | ||
``` | ||
|
||
## Upgrading Chart | ||
|
||
```console | ||
helm upgrade [RELEASE_NAME] frinx/{{ template "chart.name" . }} | ||
``` | ||
|
||
## Uninstall Chart | ||
|
||
```console | ||
helm uninstall [RELEASE_NAME] | ||
``` | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesSection" . }} | ||
|
||
{{ template "helm-docs.versionFooter" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters