diff --git a/.github/actions/deploy-operator/action.yml b/.github/actions/deploy-operator/action.yml
index 295c3194f..a1fea523d 100644
--- a/.github/actions/deploy-operator/action.yml
+++ b/.github/actions/deploy-operator/action.yml
@@ -5,10 +5,11 @@ runs:
steps:
- name: Deploy the operator
shell: bash
- run: helm dependency update charts/cloudnative-pg
+ run:
+ helm dependency update charts/cloudnative-pg
helm upgrade
- --install
+ --install
--namespace cnpg-system
--create-namespace
--wait
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index cf4f76866..07a5bd1ba 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -3,11 +3,11 @@ name: linter
on:
push:
branches:
- - "**"
- - "!gh-pages"
+ - '**'
+ - '!gh-pages'
pull_request:
branches-ignore:
- - "gh-pages"
+ - 'gh-pages'
jobs:
linter:
diff --git a/.github/workflows/tests-cluster-chainsaw.yaml b/.github/workflows/tests-cluster-chainsaw.yaml
index d43387589..5286413c2 100644
--- a/.github/workflows/tests-cluster-chainsaw.yaml
+++ b/.github/workflows/tests-cluster-chainsaw.yaml
@@ -3,7 +3,7 @@ name: tests-cluster-chainsaw
on:
pull_request:
branches-ignore:
- - "gh-pages"
+ - 'gh-pages'
jobs:
test-cluster-standalone:
diff --git a/.github/workflows/tests-operator.yml b/.github/workflows/tests-operator.yml
index cf361fdae..a8fe41d20 100644
--- a/.github/workflows/tests-operator.yml
+++ b/.github/workflows/tests-operator.yml
@@ -3,7 +3,7 @@ name: tests-operator
on:
pull_request:
branches-ignore:
- - "gh-pages"
+ - 'gh-pages'
jobs:
deploy_operator:
diff --git a/.gitignore b/.gitignore
index 3b1fd25c1..2fcbabe65 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,6 +21,3 @@ charts/**/charts/*.tgz
*.swp
*.swo
*~
-
-# macOS
-.DS_Store
diff --git a/.markdownlint.yaml b/.markdownlint.yaml
deleted file mode 100644
index e116f69ad..000000000
--- a/.markdownlint.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-MD013: false # Line length
-MD026: false # Trailing punctuation in header
-MD029: false # Ordered list item prefix
-MD033: false # Inline HTML
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
deleted file mode 100644
index 6acad47cc..000000000
--- a/.pre-commit-config.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-default_language_version:
- python: python3.11
-
-repos:
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.4.0
- hooks:
- - id: no-commit-to-branch
- args: ["--branch", "main", "--branch", "dev"]
- - id: mixed-line-ending
- - id: end-of-file-fixer
- - id: trailing-whitespace
- - id: check-added-large-files
- - id: check-merge-conflict
- - id: check-case-conflict
- - id: check-docstring-first
- - id: check-symlinks
- - id: check-yaml
- exclude: "charts/paradedb/" # Exclude all files in the charts/paradedb/ directory, which aren't standard YAML
- - id: check-json
- - id: check-xml
- - id: check-ast
- - id: check-toml
- - id: check-executables-have-shebangs
- - id: check-shebang-scripts-are-executable
- - id: check-vcs-permalinks
- - id: detect-private-key
- - id: detect-aws-credentials
- - id: debug-statements
- - id: destroyed-symlinks
- - id: fix-encoding-pragma
- - id: fix-byte-order-marker
- - id: requirements-txt-fixer
-
- - repo: https://github.com/igorshubovych/markdownlint-cli
- rev: v0.37.0
- hooks:
- - id: markdownlint
-
- - repo: https://github.com/pre-commit/mirrors-prettier
- rev: v3.0.3
- hooks:
- - id: prettier
- exclude: "charts/paradedb/" # Exclude all files in the charts/paradedb/ directory, which aren't standard YAML
diff --git a/.prettierignore b/.prettierignore
deleted file mode 100644
index 84d94a804..000000000
--- a/.prettierignore
+++ /dev/null
@@ -1 +0,0 @@
-/charts/paradedb/
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
deleted file mode 100644
index 91b8cb680..000000000
--- a/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,127 +0,0 @@
-# Contributor Covenant Code of Conduct
-
-## Our Pledge
-
-We as members, contributors, and leaders pledge to make participation in our
-community a harassment-free experience for everyone, regardless of age, body
-size, visible or invisible disability, ethnicity, sex characteristics, gender
-identity and expression, level of experience, education, socio-economic status,
-nationality, personal appearance, race, religion, or sexual identity
-and orientation.
-
-We pledge to act and interact in ways that contribute to an open, welcoming,
-diverse, inclusive, and healthy community.
-
-## Our Standards
-
-Examples of behavior that contributes to a positive environment for our
-community include:
-
-- Demonstrating empathy and kindness toward other people
-- Being respectful of differing opinions, viewpoints, and experiences
-- Giving and gracefully accepting constructive feedback
-- Accepting responsibility and apologizing to those affected by our mistakes,
- and learning from the experience
-- Focusing on what is best not just for us as individuals, but for the
- overall community
-
-Examples of unacceptable behavior include:
-
-- The use of sexualized language or imagery, and sexual attention or
- advances of any kind
-- Trolling, insulting or derogatory comments, and personal or political attacks
-- Public or private harassment
-- Publishing others' private information, such as a physical or email
- address, without their explicit permission
-- Other conduct which could reasonably be considered inappropriate in a
- professional setting
-
-## Enforcement Responsibilities
-
-Community leaders are responsible for clarifying and enforcing our standards of
-acceptable behavior and will take appropriate and fair corrective action in
-response to any behavior that they deem inappropriate, threatening, offensive,
-or harmful.
-
-Community leaders have the right and responsibility to remove, edit, or reject
-comments, commits, code, wiki edits, issues, and other contributions that are
-not aligned to this Code of Conduct, and will communicate reasons for moderation
-decisions when appropriate.
-
-## Scope
-
-This Code of Conduct applies within all community spaces, and also applies when
-an individual is officially representing the community in public spaces.
-Examples of representing our community include using an official e-mail address,
-posting via an official social media account, or acting as an appointed
-representative at an online or offline event.
-
-## Enforcement
-
-Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported to the community leaders responsible for enforcement at
-[community@paradedb.com](mailto:community@paradedb.com).
-All complaints will be reviewed and investigated promptly and fairly.
-
-All community leaders are obligated to respect the privacy and security of the
-reporter of any incident.
-
-## Enforcement Guidelines
-
-Community leaders will follow these Community Impact Guidelines in determining
-the consequences for any action they deem in violation of this Code of Conduct:
-
-### 1. Correction
-
-**Community Impact**: Use of inappropriate language or other behavior deemed
-unprofessional or unwelcome in the community.
-
-**Consequence**: A private, written warning from community leaders, providing
-clarity around the nature of the violation and an explanation of why the
-behavior was inappropriate. A public apology may be requested.
-
-### 2. Warning
-
-**Community Impact**: A violation through a single incident or series
-of actions.
-
-**Consequence**: A warning with consequences for continued behavior. No
-interaction with the people involved, including unsolicited interaction with
-those enforcing the Code of Conduct, for a specified period of time. This
-includes avoiding interactions in community spaces as well as external channels
-like social media. Violating these terms may lead to a temporary or
-permanent ban.
-
-### 3. Temporary Ban
-
-**Community Impact**: A serious violation of community standards, including
-sustained inappropriate behavior.
-
-**Consequence**: A temporary ban from any sort of interaction or public
-communication with the community for a specified period of time. No public or
-private interaction with the people involved, including unsolicited interaction
-with those enforcing the Code of Conduct, is allowed during this period.
-Violating these terms may lead to a permanent ban.
-
-### 4. Permanent Ban
-
-**Community Impact**: Demonstrating a pattern of violation of community
-standards, including sustained inappropriate behavior, harassment of an
-individual, or aggression toward or disparagement of classes of individuals.
-
-**Consequence**: A permanent ban from any sort of public interaction within
-the community.
-
-## Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage],
-version 2.0, available [here](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
-
-Community Impact Guidelines were inspired by [Mozilla's code of conduct
-enforcement ladder](https://github.com/mozilla/diversity).
-
-[homepage]: https://www.contributor-covenant.org
-
-For answers to common questions about this code of conduct, see the
-[FAQ](https://www.contributor-covenant.org/faq). Translations are available
-[here](https://www.contributor-covenant.org/translations).
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index ebc64d372..000000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# **Contributing to ParadeDB**
-
-Welcome! We're excited that you're interested in contributing to ParadeDB and want
-to make the process as smooth as possible.
-
-Before submitting a pull request, please review this document, which outlines what
-conventions to follow when submitting changes. If you have any questions not covered
-in this document, please reach out to us in the [ParadeDB Community Slack](https://join.slack.com/t/paradedbcommunity/shared_invite/zt-2lkzdsetw-OiIgbyFeiibd1DG~6wFgTQ)
-or via [email](support@paradedb.com).
-
-## Development Workflow
-
-The majority of the development for ParadeDB happens in the [paradedb/paradedb](https://github.com/paradedb/paradedb) monorepo. Pleaser refer to this repository for general development. To develop for this repository, please follow the instructions below.
-
-## Pull Request Worfklow
-
-All changes to ParadeDB happen through GitHub Pull Requests. Here is the recommended
-flow for making a change:
-
-1. Before working on a change, please check to see if there is already a GitHub
- issue open for that change.
-2. If there is not, please open an issue first. This gives the community visibility
- into what you're working on and allows others to make suggestions and leave comments.
-3. Fork this repo and branch out from the `main` branch.
-4. Install pre-commit hooks within your fork with `pre-commit install`, to ensure code quality and consistency with upstream.
-5. Make your changes. If you've added new functionality, please add tests.
-6. Open a pull request towards the `main` branch. Ensure that all tests and checks
- pass. Note that this repository has pull request title linting in place
- and follows the [Conventional Commits spec](https://github.com/amannn/action-semantic-pull-request).
-7. Congratulations! Our team will review your pull request.
-
-## Documentation
-
-ParadeDB's public-facing documentation can be found at [docs.paradedb.com(https://docs.paradedb.com).
-
-## Licensing
-
-By contributing to ParadeDB, you agree that your contributions will be licensed
-under the [GNU Affero General Public License v3.0](LICENSE).
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 0ad25db4b..000000000
--- a/LICENSE
+++ /dev/null
@@ -1,661 +0,0 @@
- GNU AFFERO GENERAL PUBLIC LICENSE
- Version 3, 19 November 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc.
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU Affero General Public License is a free, copyleft license for
-software and other kinds of works, specifically designed to ensure
-cooperation with the community in the case of network server software.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-our General Public Licenses are intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- Developers that use our General Public Licenses protect your rights
-with two steps: (1) assert copyright on the software, and (2) offer
-you this License which gives you legal permission to copy, distribute
-and/or modify the software.
-
- A secondary benefit of defending all users' freedom is that
-improvements made in alternate versions of the program, if they
-receive widespread use, become available for other developers to
-incorporate. Many developers of free software are heartened and
-encouraged by the resulting cooperation. However, in the case of
-software used on network servers, this result may fail to come about.
-The GNU General Public License permits making a modified version and
-letting the public access it on a server without ever releasing its
-source code to the public.
-
- The GNU Affero General Public License is designed specifically to
-ensure that, in such cases, the modified source code becomes available
-to the community. It requires the operator of a network server to
-provide the source code of the modified version running there to the
-users of that server. Therefore, public use of a modified version, on
-a publicly accessible server, gives the public access to the source
-code of the modified version.
-
- An older license, called the Affero General Public License and
-published by Affero, was designed to accomplish similar goals. This is
-a different license, not a version of the Affero GPL, but Affero has
-released a new version of the Affero GPL which permits relicensing under
-this license.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU Affero General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Remote Network Interaction; Use with the GNU General Public License.
-
- Notwithstanding any other provision of this License, if you modify the
-Program, your modified version must prominently offer all users
-interacting with it remotely through a computer network (if your version
-supports such interaction) an opportunity to receive the Corresponding
-Source of your version by providing access to the Corresponding Source
-from a network server at no charge, through some standard or customary
-means of facilitating copying of software. This Corresponding Source
-shall include the Corresponding Source for any work covered by version 3
-of the GNU General Public License that is incorporated pursuant to the
-following paragraph.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the work with which it is combined will remain governed by version
-3 of the GNU General Public License.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU Affero General Public License from time to time. Such new versions
-will be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU Affero General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU Affero General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU Affero General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-
- Copyright (C)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published
- by the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see .
-
-Also add information on how to contact you by electronic and paper mail.
-
- If your software can interact with users remotely through a computer
-network, you should also make sure that it provides a way for users to
-get its source. For example, if your program is a web application, its
-interface could display a "Source" link that leads users to an archive
-of the code. There are many ways you could offer source, and different
-solutions will be better for different programs; see section 13 for the
-specific requirements.
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU AGPL, see
-.
diff --git a/README.md b/README.md
index ea741f6cc..c0261bd9b 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,4 @@
-# ParadeDB Helm Charts
-
-TODO.
-
-Below is the original README from upstream `cloudnative-pg/charts` preserved for convenience.
-
----
-
-## CloudNativePG Helm Charts
+# CloudNativePG Helm Charts
[![Stack Overflow](https://img.shields.io/badge/stackoverflow-cloudnative--pg-blue?logo=stackoverflow&logoColor=%23F48024&link=https%3A%2F%2Fstackoverflow.com%2Fquestions%2Ftagged%2Fcloudnative-pg)][stackoverflow]
[![GitHub License](https://img.shields.io/github/license/cloudnative-pg/charts)][license]
@@ -15,6 +7,12 @@ Below is the original README from upstream `cloudnative-pg/charts` preserved for
[![GitHub Release](https://img.shields.io/github/v/release/cloudnative-pg/charts?filter=cloudnative-pg-*)](https://github.com/cloudnative-pg/charts/tree/main/charts/cloudnative-pg)
[![GitHub Release](https://img.shields.io/github/v/release/cloudnative-pg/charts?filter=cluster-*)](https://github.com/cloudnative-pg/charts/tree/main/charts/cluster)
+## TODO: Mention ParadeDB
+
+
+
+
+
## Operator chart
Helm chart to install the
@@ -23,7 +21,6 @@ Helm chart to install the
running in private, public, or hybrid cloud environments.
**NOTE**: supports only the latest point release of the CloudNativePG operator.
-
```console
helm repo add cnpg https://cloudnative-pg.github.io/charts
helm upgrade --install cnpg \
diff --git a/SECURITY.md b/SECURITY.md
deleted file mode 100644
index e454bef28..000000000
--- a/SECURITY.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Security Policy
-
-## Supported Versions
-
-We release patches for security vulnerabilities on a regular cadence. Which versions
-are eligible for receiving such patches can be found below:
-
-| Version | Supported |
-| ------- | ------------------ |
-| latest | :white_check_mark: |
-
-## Reporting a Vulnerability
-
-Please do NOT raise a GitHub Issue to report a security vulnerability. Please report
-(suspected) security vulnerabilities to **[security@paradedb.com](mailto:security@paradedb.com)**,
-preferably with a proof of concept. You will receive a response from us within 24
-hours. If the issue is confirmed, we will release a patch as quickly as
-possible depending on complexity but historically within a few days.
-
-Non-vulnerability-related security issues such as new ideas for security features
-are welcome on GitHub Issues.
diff --git a/charts/cloudnative-pg/README.md b/charts/cloudnative-pg/README.md
index 6d1863c60..3083109e8 100644
--- a/charts/cloudnative-pg/README.md
+++ b/charts/cloudnative-pg/README.md
@@ -8,69 +8,70 @@ CloudNativePG Operator Helm Chart
## Maintainers
-| Name | Email | Url |
-| ------ | ------------------------ | --- |
-| phisco | | |
+| Name | Email | Url |
+| ---- | ------ | --- |
+| phisco | | |
## Source Code
--
+*
## Requirements
-| Repository | Name | Version |
-| --------------------------------------------------- | ------------------- | ------- |
-| https://cloudnative-pg.github.io/grafana-dashboards | monitoring(cluster) | 0.0 |
+| Repository | Name | Version |
+|------------|------|---------|
+| https://cloudnative-pg.github.io/grafana-dashboards | monitoring(cluster) | 0.0 |
## Values
-| Key | Type | Default | Description |
-| --------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
-| additionalArgs | list | `[]` | Additinal arguments to be added to the operator's args list. |
-| additionalEnv | list | `[]` | Array containing extra environment variables which can be templated. For example: - name: RELEASE_NAME value: "{{ .Release.Name }}" - name: MY_VAR value: "mySpecialKey" |
-| affinity | object | `{}` | Affinity for the operator to be installed. |
-| commonAnnotations | object | `{}` | Annotations to be added to all other resources. |
-| config | object | `{"create":true,"data":{},"name":"cnpg-controller-manager-config","secret":false}` | Operator configuration. |
-| config.create | bool | `true` | Specifies whether the secret should be created. |
-| config.data | object | `{}` | The content of the configmap/secret, see https://cloudnative-pg.io/documentation/current/operator_conf/#available-options for all the available options. |
-| config.name | string | `"cnpg-controller-manager-config"` | The name of the configmap/secret to use. |
-| config.secret | bool | `false` | Specifies whether it should be stored in a secret, instead of a configmap. |
-| containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":10001,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}` | Container Security Context. |
-| crds.create | bool | `true` | Specifies whether the CRDs should be created when installing the chart. |
-| dnsPolicy | string | `""` | |
-| fullnameOverride | string | `""` | |
-| hostNetwork | bool | `false` | |
-| image.pullPolicy | string | `"IfNotPresent"` | |
-| image.repository | string | `"ghcr.io/cloudnative-pg/cloudnative-pg"` | |
-| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
-| imagePullSecrets | list | `[]` | |
-| monitoring.grafanaDashboard.annotations | object | `{}` | Annotations that ConfigMaps can have to get configured in Grafana. |
-| monitoring.grafanaDashboard.configMapName | string | `"cnpg-grafana-dashboard"` | The name of the ConfigMap containing the dashboard. |
-| monitoring.grafanaDashboard.create | bool | `false` | |
-| monitoring.grafanaDashboard.labels | object | `{}` | Labels that ConfigMaps should have to get configured in Grafana. |
-| monitoring.grafanaDashboard.namespace | string | `""` | Allows overriding the namespace where the ConfigMap will be created, defaulting to the same one as the Release. |
-| monitoring.grafanaDashboard.sidecarLabel | string | `"grafana_dashboard"` | Label that ConfigMaps should have to be loaded as dashboards. DEPRECATED: Use labels instead. |
-| monitoring.grafanaDashboard.sidecarLabelValue | string | `"1"` | Label value that ConfigMaps should have to be loaded as dashboards. DEPRECATED: Use labels instead. |
-| monitoring.podMonitorAdditionalLabels | object | `{}` | Additional labels for the podMonitor |
-| monitoring.podMonitorEnabled | bool | `false` | Specifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs. |
-| monitoring.podMonitorMetricRelabelings | list | `[]` | Metrics relabel configurations to apply to samples before ingestion. |
-| monitoring.podMonitorRelabelings | list | `[]` | Relabel configurations to apply to samples before scraping. |
-| monitoringQueriesConfigMap.name | string | `"cnpg-default-monitoring"` | The name of the default monitoring configmap. |
-| monitoringQueriesConfigMap.queries | string | `"backends:\n query: | \n SELECT sa.datname\n , sa.usename\n , sa.application_name\n , states.state\n , COALESCE(sa.count, 0) AS total\n , COALESCE(sa.max_tx_secs, 0) AS max_tx_duration_seconds\n FROM ( VALUES ('active')\n , ('idle')\n , ('idle in transaction')\n , ('idle in transaction (aborted)')\n , ('fastpath function call')\n , ('disabled')\n ) AS states(state)\n LEFT JOIN (\n SELECT datname\n , state\n , usename\n , COALESCE(application_name, '') AS application_name\n , COUNT(\*)\n , COALESCE(EXTRACT (EPOCH FROM (max(now() - xact_start))), 0) AS max_tx_secs\n FROM pg_catalog.pg_stat_activity\n GROUP BY datname, state, usename, application_name\n ) sa ON states.state = sa.state\n WHERE sa.usename IS NOT NULL\n metrics:\n - datname:\n usage: \"LABEL\"\n description: \"Name of the database\"\n - usename:\n usage: \"LABEL\"\n description: \"Name of the user\"\n - application_name:\n usage: \"LABEL\"\n description: \"Name of the application\"\n - state:\n usage: \"LABEL\"\n description: \"State of the backend\"\n - total:\n usage: \"GAUGE\"\n description: \"Number of backends\"\n - max_tx_duration_seconds:\n usage: \"GAUGE\"\n description: \"Maximum duration of a transaction in seconds\"\n\nbackends_waiting:\n query: | \n SELECT count(\*) AS total\n FROM pg_catalog.pg_locks blocked_locks\n JOIN pg_catalog.pg_locks blocking_locks\n ON blocking_locks.locktype = blocked_locks.locktype\n AND blocking_locks.database IS NOT DISTINCT FROM blocked_locks.database\n AND blocking_locks.relation IS NOT DISTINCT FROM blocked_locks.relation\n AND blocking_locks.page IS NOT DISTINCT FROM blocked_locks.page\n AND blocking_locks.tuple IS NOT DISTINCT FROM blocked_locks.tuple\n AND blocking_locks.virtualxid IS NOT DISTINCT FROM blocked_locks.virtualxid\n AND blocking_locks.transactionid IS NOT DISTINCT FROM blocked_locks.transactionid\n AND blocking_locks.classid IS NOT DISTINCT FROM blocked_locks.classid\n AND blocking_locks.objid IS NOT DISTINCT FROM blocked_locks.objid\n AND blocking_locks.objsubid IS NOT DISTINCT FROM blocked_locks.objsubid\n AND blocking_locks.pid != blocked_locks.pid\n JOIN pg_catalog.pg_stat_activity blocking_activity ON blocking_activity.pid = blocking_locks.pid\n WHERE NOT blocked_locks.granted\n metrics:\n - total:\n usage: \"GAUGE\"\n description: \"Total number of backends that are currently waiting on other queries\"\n\npg_database:\n query: | \n SELECT datname\n , pg_catalog.pg_database_size(datname) AS size_bytes\n , pg_catalog.age(datfrozenxid) AS xid_age\n , pg_catalog.mxid_age(datminmxid) AS mxid_age\n FROM pg_catalog.pg_database\n WHERE datallowconn\n metrics:\n - datname:\n usage: \"LABEL\"\n description: \"Name of the database\"\n - size_bytes:\n usage: \"GAUGE\"\n description: \"Disk space used by the database\"\n - xid_age:\n usage: \"GAUGE\"\n description: \"Number of transactions from the frozen XID to the current one\"\n - mxid_age:\n usage: \"GAUGE\"\n description: \"Number of multiple transactions (Multixact) from the frozen XID to the current one\"\n\npg_postmaster:\n query: | \n SELECT EXTRACT(EPOCH FROM pg_postmaster_start_time) AS start_time\n FROM pg_catalog.pg_postmaster_start_time()\n metrics:\n - start_time:\n usage: \"GAUGE\"\n description: \"Time at which postgres started (based on epoch)\"\n\npg_replication:\n query: \"SELECT CASE WHEN (\n NOT pg_catalog.pg_is_in_recovery()\n OR pg_catalog.pg_last_wal_receive_lsn() = pg_catalog.pg_last_wal_replay_lsn())\n THEN 0\n ELSE GREATEST (0,\n EXTRACT(EPOCH FROM (now() - pg_catalog.pg_last_xact_replay_timestamp())))\n END AS lag,\n pg_catalog.pg_is_in_recovery() AS in_recovery,\n EXISTS (TABLE pg_stat_wal_receiver) AS is_wal_receiver_up,\n (SELECT count(\*) FROM pg_catalog.pg_stat_replication) AS streaming_replicas\"\n metrics:\n - lag:\n usage: \"GAUGE\"\n description: \"Replication lag behind primary in seconds\"\n - in_recovery:\n usage: \"GAUGE\"\n description: \"Whether the instance is in recovery\"\n - is_wal_receiver_up:\n usage: \"GAUGE\"\n description: \"Whether the instance wal_receiver is up\"\n - streaming_replicas:\n usage: \"GAUGE\"\n description: \"Number of streaming replicas connected to the instance\"\n\npg_replication_slots:\n query: | \n SELECT slot_name,\n slot_type,\n database,\n active,\n (CASE pg_catalog.pg_is_in_recovery()\n WHEN TRUE THEN pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_last_wal_receive_lsn(), restart_lsn)\n ELSE pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), restart_lsn)\n END) as pg_wal_lsn_diff\n FROM pg_catalog.pg_replication_slots\n WHERE NOT temporary\n metrics:\n - slot_name:\n usage: \"LABEL\"\n description: \"Name of the replication slot\"\n - slot_type:\n usage: \"LABEL\"\n description: \"Type of the replication slot\"\n - database:\n usage: \"LABEL\"\n description: \"Name of the database\"\n - active:\n usage: \"GAUGE\"\n description: \"Flag indicating whether the slot is active\"\n - pg_wal_lsn_diff:\n usage: \"GAUGE\"\n description: \"Replication lag in bytes\"\n\npg_stat_archiver:\n query: | \n SELECT archived_count\n , failed_count\n , COALESCE(EXTRACT(EPOCH FROM (now() - last_archived_time)), -1) AS seconds_since_last_archival\n , COALESCE(EXTRACT(EPOCH FROM (now() - last_failed_time)), -1) AS seconds_since_last_failure\n , COALESCE(EXTRACT(EPOCH FROM last_archived_time), -1) AS last_archived_time\n , COALESCE(EXTRACT(EPOCH FROM last_failed_time), -1) AS last_failed_time\n , COALESCE(CAST(CAST('x' | | pg_catalog.right(pg_catalog.split_part(last_archived_wal, '.', 1), 16) AS pg_catalog.bit(64)) AS pg_catalog.int8), -1) AS last_archived_wal_start_lsn\n , COALESCE(CAST(CAST('x' | | pg_catalog.right(pg_catalog.split_part(last_failed_wal, '.', 1), 16) AS pg_catalog.bit(64)) AS pg_catalog.int8), -1) AS last_failed_wal_start_lsn\n , EXTRACT(EPOCH FROM stats_reset) AS stats_reset_time\n FROM pg_catalog.pg_stat_archiver\n metrics:\n - archived_count:\n usage: \"COUNTER\"\n description: \"Number of WAL files that have been successfully archived\"\n - failed_count:\n usage: \"COUNTER\"\n description: \"Number of failed attempts for archiving WAL files\"\n - seconds_since_last_archival:\n usage: \"GAUGE\"\n description: \"Seconds since the last successful archival operation\"\n - seconds_since_last_failure:\n usage: \"GAUGE\"\n description: \"Seconds since the last failed archival operation\"\n - last_archived_time:\n usage: \"GAUGE\"\n description: \"Epoch of the last time WAL archiving succeeded\"\n - last_failed_time:\n usage: \"GAUGE\"\n description: \"Epoch of the last time WAL archiving failed\"\n - last_archived_wal_start_lsn:\n usage: \"GAUGE\"\n description: \"Archived WAL start LSN\"\n - last_failed_wal_start_lsn:\n usage: \"GAUGE\"\n description: \"Last failed WAL LSN\"\n - stats_reset_time:\n usage: \"GAUGE\"\n description: \"Time at which these statistics were last reset\"\n\npg_stat_bgwriter:\n runonserver: \"<17.0.0\"\n query: | \n SELECT checkpoints_timed\n , checkpoints_req\n , checkpoint_write_time\n , checkpoint_sync_time\n , buffers_checkpoint\n , buffers_clean\n , maxwritten_clean\n , buffers_backend\n , buffers_backend_fsync\n , buffers_alloc\n FROM pg_catalog.pg_stat_bgwriter\n metrics:\n - checkpoints_timed:\n usage: \"COUNTER\"\n description: \"Number of scheduled checkpoints that have been performed\"\n - checkpoints_req:\n usage: \"COUNTER\"\n description: \"Number of requested checkpoints that have been performed\"\n - checkpoint_write_time:\n usage: \"COUNTER\"\n description: \"Total amount of time that has been spent in the portion of checkpoint processing where files are written to disk, in milliseconds\"\n - checkpoint_sync_time:\n usage: \"COUNTER\"\n description: \"Total amount of time that has been spent in the portion of checkpoint processing where files are synchronized to disk, in milliseconds\"\n - buffers_checkpoint:\n usage: \"COUNTER\"\n description: \"Number of buffers written during checkpoints\"\n - buffers_clean:\n usage: \"COUNTER\"\n description: \"Number of buffers written by the background writer\"\n - maxwritten_clean:\n usage: \"COUNTER\"\n description: \"Number of times the background writer stopped a cleaning scan because it had written too many buffers\"\n - buffers_backend:\n usage: \"COUNTER\"\n description: \"Number of buffers written directly by a backend\"\n - buffers_backend_fsync:\n usage: \"COUNTER\"\n description: \"Number of times a backend had to execute its own fsync call (normally the background writer handles those even when the backend does its own write)\"\n - buffers_alloc:\n usage: \"COUNTER\"\n description: \"Number of buffers allocated\"\n\npg_stat_bgwriter_17:\n runonserver: \">=17.0.0\"\n name: pg_stat_bgwriter\n query: | \n SELECT buffers_clean\n , maxwritten_clean\n , buffers_alloc\n , EXTRACT(EPOCH FROM stats_reset) AS stats_reset_time\n FROM pg_catalog.pg_stat_bgwriter\n metrics:\n - buffers_clean:\n usage: \"COUNTER\"\n description: \"Number of buffers written by the background writer\"\n - maxwritten_clean:\n usage: \"COUNTER\"\n description: \"Number of times the background writer stopped a cleaning scan because it had written too many buffers\"\n - buffers_alloc:\n usage: \"COUNTER\"\n description: \"Number of buffers allocated\"\n - stats_reset_time:\n usage: \"GAUGE\"\n description: \"Time at which these statistics were last reset\"\n\npg_stat_checkpointer:\n runonserver: \">=17.0.0\"\n query: | \n SELECT num_timed AS checkpoints_timed\n , num_requested AS checkpoints_req\n , restartpoints_timed\n , restartpoints_req\n , restartpoints_done\n , write_time\n , sync_time\n , buffers_written\n , EXTRACT(EPOCH FROM stats_reset) AS stats_reset_time\n FROM pg_catalog.pg_stat_checkpointer\n metrics:\n - checkpoints_timed:\n usage: \"COUNTER\"\n description: \"Number of scheduled checkpoints that have been performed\"\n - checkpoints_req:\n usage: \"COUNTER\"\n description: \"Number of requested checkpoints that have been performed\"\n - restartpoints_timed:\n usage: \"COUNTER\"\n description: \"Number of scheduled restartpoints due to timeout or after a failed attempt to perform it\"\n - restartpoints_req:\n usage: \"COUNTER\"\n description: \"Number of requested restartpoints that have been performed\"\n - restartpoints_done:\n usage: \"COUNTER\"\n description: \"Number of restartpoints that have been performed\"\n - write_time:\n usage: \"COUNTER\"\n description: \"Total amount of time that has been spent in the portion of processing checkpoints and restartpoints where files are written to disk, in milliseconds\"\n - sync_time:\n usage: \"COUNTER\"\n description: \"Total amount of time that has been spent in the portion of processing checkpoints and restartpoints where files are synchronized to disk, in milliseconds\"\n - buffers_written:\n usage: \"COUNTER\"\n description: \"Number of buffers written during checkpoints and restartpoints\"\n - stats_reset_time:\n usage: \"GAUGE\"\n description: \"Time at which these statistics were last reset\"\n\npg_stat_database:\n query: | \n SELECT datname\n , xact_commit\n , xact_rollback\n , blks_read\n , blks_hit\n , tup_returned\n , tup_fetched\n , tup_inserted\n , tup_updated\n , tup_deleted\n , conflicts\n , temp_files\n , temp_bytes\n , deadlocks\n , blk_read_time\n , blk_write_time\n FROM pg_catalog.pg_stat_database\n metrics:\n - datname:\n usage: \"LABEL\"\n description: \"Name of this database\"\n - xact_commit:\n usage: \"COUNTER\"\n description: \"Number of transactions in this database that have been committed\"\n - xact_rollback:\n usage: \"COUNTER\"\n description: \"Number of transactions in this database that have been rolled back\"\n - blks_read:\n usage: \"COUNTER\"\n description: \"Number of disk blocks read in this database\"\n - blks_hit:\n usage: \"COUNTER\"\n description: \"Number of times disk blocks were found already in the buffer cache, so that a read was not necessary (this only includes hits in the PostgreSQL buffer cache, not the operating system's file system cache)\"\n - tup_returned:\n usage: \"COUNTER\"\n description: \"Number of rows returned by queries in this database\"\n - tup_fetched:\n usage: \"COUNTER\"\n description: \"Number of rows fetched by queries in this database\"\n - tup_inserted:\n usage: \"COUNTER\"\n description: \"Number of rows inserted by queries in this database\"\n - tup_updated:\n usage: \"COUNTER\"\n description: \"Number of rows updated by queries in this database\"\n - tup_deleted:\n usage: \"COUNTER\"\n description: \"Number of rows deleted by queries in this database\"\n - conflicts:\n usage: \"COUNTER\"\n description: \"Number of queries canceled due to conflicts with recovery in this database\"\n - temp_files:\n usage: \"COUNTER\"\n description: \"Number of temporary files created by queries in this database\"\n - temp_bytes:\n usage: \"COUNTER\"\n description: \"Total amount of data written to temporary files by queries in this database\"\n - deadlocks:\n usage: \"COUNTER\"\n description: \"Number of deadlocks detected in this database\"\n - blk_read_time:\n usage: \"COUNTER\"\n description: \"Time spent reading data file blocks by backends in this database, in milliseconds\"\n - blk_write_time:\n usage: \"COUNTER\"\n description: \"Time spent writing data file blocks by backends in this database, in milliseconds\"\n\npg_stat_replication:\n primary: true\n query: | \n SELECT usename\n , COALESCE(application_name, '') AS application_name\n , COALESCE(client_addr::text, '') AS client_addr\n , COALESCE(client_port::text, '') AS client_port\n , EXTRACT(EPOCH FROM backend_start) AS backend_start\n , COALESCE(pg_catalog.age(backend_xmin), 0) AS backend_xmin_age\n , pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), sent_lsn) AS sent_diff_bytes\n , pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), write_lsn) AS write_diff_bytes\n , pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), flush_lsn) AS flush_diff_bytes\n , COALESCE(pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), replay_lsn),0) AS replay_diff_bytes\n , COALESCE((EXTRACT(EPOCH FROM write_lag)),0)::float AS write_lag_seconds\n , COALESCE((EXTRACT(EPOCH FROM flush_lag)),0)::float AS flush_lag_seconds\n , COALESCE((EXTRACT(EPOCH FROM replay_lag)),0)::float AS replay_lag_seconds\n FROM pg_catalog.pg_stat_replication\n metrics:\n - usename:\n usage: \"LABEL\"\n description: \"Name of the replication user\"\n - application_name:\n usage: \"LABEL\"\n description: \"Name of the application\"\n - client_addr:\n usage: \"LABEL\"\n description: \"Client IP address\"\n - client_port:\n usage: \"LABEL\"\n description: \"Client TCP port\"\n - backend_start:\n usage: \"COUNTER\"\n description: \"Time when this process was started\"\n - backend_xmin_age:\n usage: \"COUNTER\"\n description: \"The age of this standby's xmin horizon\"\n - sent_diff_bytes:\n usage: \"GAUGE\"\n description: \"Difference in bytes from the last write-ahead log location sent on this connection\"\n - write_diff_bytes:\n usage: \"GAUGE\"\n description: \"Difference in bytes from the last write-ahead log location written to disk by this standby server\"\n - flush_diff_bytes:\n usage: \"GAUGE\"\n description: \"Difference in bytes from the last write-ahead log location flushed to disk by this standby server\"\n - replay_diff_bytes:\n usage: \"GAUGE\"\n description: \"Difference in bytes from the last write-ahead log location replayed into the database on this standby server\"\n - write_lag_seconds:\n usage: \"GAUGE\"\n description: \"Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written it\"\n - flush_lag_seconds:\n usage: \"GAUGE\"\n description: \"Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written and flushed it\"\n - replay_lag_seconds:\n usage: \"GAUGE\"\n description: \"Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written, flushed and applied it\"\n\npg_settings:\n query: | \n SELECT name,\n CASE setting WHEN 'on' THEN '1' WHEN 'off' THEN '0' ELSE setting END AS setting\n FROM pg_catalog.pg_settings\n WHERE vartype IN ('integer', 'real', 'bool')\n ORDER BY 1\n metrics:\n - name:\n usage: \"LABEL\"\n description: \"Name of the setting\"\n - setting:\n usage: \"GAUGE\"\n description: \"Setting value\"\n"` | A string representation of a YAML defining monitoring queries. |
-| nameOverride | string | `""` | |
-| nodeSelector | object | `{}` | Nodeselector for the operator to be installed. |
-| podAnnotations | object | `{}` | Annotations to be added to the pod. |
-| podLabels | object | `{}` | Labels to be added to the pod. |
-| podSecurityContext | object | `{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}` | Security Context for the whole pod. |
-| priorityClassName | string | `""` | Priority indicates the importance of a Pod relative to other Pods. |
-| rbac.aggregateClusterRoles | bool | `false` | Aggregate ClusterRoles to Kubernetes default user-facing roles. Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles |
-| rbac.create | bool | `true` | Specifies whether ClusterRole and ClusterRoleBinding should be created. |
-| replicaCount | int | `1` | |
-| resources | object | `{}` | |
-| service.name | string | `"cnpg-webhook-service"` | DO NOT CHANGE THE SERVICE NAME as it is currently used to generate the certificate and can not be configured |
-| service.port | int | `443` | |
-| service.type | string | `"ClusterIP"` | |
-| serviceAccount.create | bool | `true` | Specifies whether the service account should be created. |
-| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
-| tolerations | list | `[]` | Tolerations for the operator to be installed. |
-| webhook | object | `{"livenessProbe":{"initialDelaySeconds":3},"mutating":{"create":true,"failurePolicy":"Fail"},"port":9443,"readinessProbe":{"initialDelaySeconds":3},"validating":{"create":true,"failurePolicy":"Fail"}}` | The webhook configuration. |
+| Key | Type | Default | Description |
+|-----|------|---------|-------------|
+| additionalArgs | list | `[]` | Additinal arguments to be added to the operator's args list. |
+| additionalEnv | list | `[]` | Array containing extra environment variables which can be templated. For example: - name: RELEASE_NAME value: "{{ .Release.Name }}" - name: MY_VAR value: "mySpecialKey" |
+| affinity | object | `{}` | Affinity for the operator to be installed. |
+| commonAnnotations | object | `{}` | Annotations to be added to all other resources. |
+| config | object | `{"create":true,"data":{},"name":"cnpg-controller-manager-config","secret":false}` | Operator configuration. |
+| config.create | bool | `true` | Specifies whether the secret should be created. |
+| config.data | object | `{}` | The content of the configmap/secret, see https://cloudnative-pg.io/documentation/current/operator_conf/#available-options for all the available options. |
+| config.name | string | `"cnpg-controller-manager-config"` | The name of the configmap/secret to use. |
+| config.secret | bool | `false` | Specifies whether it should be stored in a secret, instead of a configmap. |
+| containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":10001,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}` | Container Security Context. |
+| crds.create | bool | `true` | Specifies whether the CRDs should be created when installing the chart. |
+| dnsPolicy | string | `""` | |
+| fullnameOverride | string | `""` | |
+| hostNetwork | bool | `false` | |
+| image.pullPolicy | string | `"IfNotPresent"` | |
+| image.repository | string | `"ghcr.io/cloudnative-pg/cloudnative-pg"` | |
+| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
+| imagePullSecrets | list | `[]` | |
+| monitoring.grafanaDashboard.annotations | object | `{}` | Annotations that ConfigMaps can have to get configured in Grafana. |
+| monitoring.grafanaDashboard.configMapName | string | `"cnpg-grafana-dashboard"` | The name of the ConfigMap containing the dashboard. |
+| monitoring.grafanaDashboard.create | bool | `false` | |
+| monitoring.grafanaDashboard.labels | object | `{}` | Labels that ConfigMaps should have to get configured in Grafana. |
+| monitoring.grafanaDashboard.namespace | string | `""` | Allows overriding the namespace where the ConfigMap will be created, defaulting to the same one as the Release. |
+| monitoring.grafanaDashboard.sidecarLabel | string | `"grafana_dashboard"` | Label that ConfigMaps should have to be loaded as dashboards. DEPRECATED: Use labels instead. |
+| monitoring.grafanaDashboard.sidecarLabelValue | string | `"1"` | Label value that ConfigMaps should have to be loaded as dashboards. DEPRECATED: Use labels instead. |
+| monitoring.podMonitorAdditionalLabels | object | `{}` | Additional labels for the podMonitor |
+| monitoring.podMonitorEnabled | bool | `false` | Specifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs. |
+| monitoring.podMonitorMetricRelabelings | list | `[]` | Metrics relabel configurations to apply to samples before ingestion. |
+| monitoring.podMonitorRelabelings | list | `[]` | Relabel configurations to apply to samples before scraping. |
+| monitoringQueriesConfigMap.name | string | `"cnpg-default-monitoring"` | The name of the default monitoring configmap. |
+| monitoringQueriesConfigMap.queries | string | `"backends:\n query: |\n SELECT sa.datname\n , sa.usename\n , sa.application_name\n , states.state\n , COALESCE(sa.count, 0) AS total\n , COALESCE(sa.max_tx_secs, 0) AS max_tx_duration_seconds\n FROM ( VALUES ('active')\n , ('idle')\n , ('idle in transaction')\n , ('idle in transaction (aborted)')\n , ('fastpath function call')\n , ('disabled')\n ) AS states(state)\n LEFT JOIN (\n SELECT datname\n , state\n , usename\n , COALESCE(application_name, '') AS application_name\n , COUNT(*)\n , COALESCE(EXTRACT (EPOCH FROM (max(now() - xact_start))), 0) AS max_tx_secs\n FROM pg_catalog.pg_stat_activity\n GROUP BY datname, state, usename, application_name\n ) sa ON states.state = sa.state\n WHERE sa.usename IS NOT NULL\n metrics:\n - datname:\n usage: \"LABEL\"\n description: \"Name of the database\"\n - usename:\n usage: \"LABEL\"\n description: \"Name of the user\"\n - application_name:\n usage: \"LABEL\"\n description: \"Name of the application\"\n - state:\n usage: \"LABEL\"\n description: \"State of the backend\"\n - total:\n usage: \"GAUGE\"\n description: \"Number of backends\"\n - max_tx_duration_seconds:\n usage: \"GAUGE\"\n description: \"Maximum duration of a transaction in seconds\"\n\nbackends_waiting:\n query: |\n SELECT count(*) AS total\n FROM pg_catalog.pg_locks blocked_locks\n JOIN pg_catalog.pg_locks blocking_locks\n ON blocking_locks.locktype = blocked_locks.locktype\n AND blocking_locks.database IS NOT DISTINCT FROM blocked_locks.database\n AND blocking_locks.relation IS NOT DISTINCT FROM blocked_locks.relation\n AND blocking_locks.page IS NOT DISTINCT FROM blocked_locks.page\n AND blocking_locks.tuple IS NOT DISTINCT FROM blocked_locks.tuple\n AND blocking_locks.virtualxid IS NOT DISTINCT FROM blocked_locks.virtualxid\n AND blocking_locks.transactionid IS NOT DISTINCT FROM blocked_locks.transactionid\n AND blocking_locks.classid IS NOT DISTINCT FROM blocked_locks.classid\n AND blocking_locks.objid IS NOT DISTINCT FROM blocked_locks.objid\n AND blocking_locks.objsubid IS NOT DISTINCT FROM blocked_locks.objsubid\n AND blocking_locks.pid != blocked_locks.pid\n JOIN pg_catalog.pg_stat_activity blocking_activity ON blocking_activity.pid = blocking_locks.pid\n WHERE NOT blocked_locks.granted\n metrics:\n - total:\n usage: \"GAUGE\"\n description: \"Total number of backends that are currently waiting on other queries\"\n\npg_database:\n query: |\n SELECT datname\n , pg_catalog.pg_database_size(datname) AS size_bytes\n , pg_catalog.age(datfrozenxid) AS xid_age\n , pg_catalog.mxid_age(datminmxid) AS mxid_age\n FROM pg_catalog.pg_database\n WHERE datallowconn\n metrics:\n - datname:\n usage: \"LABEL\"\n description: \"Name of the database\"\n - size_bytes:\n usage: \"GAUGE\"\n description: \"Disk space used by the database\"\n - xid_age:\n usage: \"GAUGE\"\n description: \"Number of transactions from the frozen XID to the current one\"\n - mxid_age:\n usage: \"GAUGE\"\n description: \"Number of multiple transactions (Multixact) from the frozen XID to the current one\"\n\npg_postmaster:\n query: |\n SELECT EXTRACT(EPOCH FROM pg_postmaster_start_time) AS start_time\n FROM pg_catalog.pg_postmaster_start_time()\n metrics:\n - start_time:\n usage: \"GAUGE\"\n description: \"Time at which postgres started (based on epoch)\"\n\npg_replication:\n query: \"SELECT CASE WHEN (\n NOT pg_catalog.pg_is_in_recovery()\n OR pg_catalog.pg_last_wal_receive_lsn() = pg_catalog.pg_last_wal_replay_lsn())\n THEN 0\n ELSE GREATEST (0,\n EXTRACT(EPOCH FROM (now() - pg_catalog.pg_last_xact_replay_timestamp())))\n END AS lag,\n pg_catalog.pg_is_in_recovery() AS in_recovery,\n EXISTS (TABLE pg_stat_wal_receiver) AS is_wal_receiver_up,\n (SELECT count(*) FROM pg_catalog.pg_stat_replication) AS streaming_replicas\"\n metrics:\n - lag:\n usage: \"GAUGE\"\n description: \"Replication lag behind primary in seconds\"\n - in_recovery:\n usage: \"GAUGE\"\n description: \"Whether the instance is in recovery\"\n - is_wal_receiver_up:\n usage: \"GAUGE\"\n description: \"Whether the instance wal_receiver is up\"\n - streaming_replicas:\n usage: \"GAUGE\"\n description: \"Number of streaming replicas connected to the instance\"\n\npg_replication_slots:\n query: |\n SELECT slot_name,\n slot_type,\n database,\n active,\n (CASE pg_catalog.pg_is_in_recovery()\n WHEN TRUE THEN pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_last_wal_receive_lsn(), restart_lsn)\n ELSE pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), restart_lsn)\n END) as pg_wal_lsn_diff\n FROM pg_catalog.pg_replication_slots\n WHERE NOT temporary\n metrics:\n - slot_name:\n usage: \"LABEL\"\n description: \"Name of the replication slot\"\n - slot_type:\n usage: \"LABEL\"\n description: \"Type of the replication slot\"\n - database:\n usage: \"LABEL\"\n description: \"Name of the database\"\n - active:\n usage: \"GAUGE\"\n description: \"Flag indicating whether the slot is active\"\n - pg_wal_lsn_diff:\n usage: \"GAUGE\"\n description: \"Replication lag in bytes\"\n\npg_stat_archiver:\n query: |\n SELECT archived_count\n , failed_count\n , COALESCE(EXTRACT(EPOCH FROM (now() - last_archived_time)), -1) AS seconds_since_last_archival\n , COALESCE(EXTRACT(EPOCH FROM (now() - last_failed_time)), -1) AS seconds_since_last_failure\n , COALESCE(EXTRACT(EPOCH FROM last_archived_time), -1) AS last_archived_time\n , COALESCE(EXTRACT(EPOCH FROM last_failed_time), -1) AS last_failed_time\n , COALESCE(CAST(CAST('x'||pg_catalog.right(pg_catalog.split_part(last_archived_wal, '.', 1), 16) AS pg_catalog.bit(64)) AS pg_catalog.int8), -1) AS last_archived_wal_start_lsn\n , COALESCE(CAST(CAST('x'||pg_catalog.right(pg_catalog.split_part(last_failed_wal, '.', 1), 16) AS pg_catalog.bit(64)) AS pg_catalog.int8), -1) AS last_failed_wal_start_lsn\n , EXTRACT(EPOCH FROM stats_reset) AS stats_reset_time\n FROM pg_catalog.pg_stat_archiver\n metrics:\n - archived_count:\n usage: \"COUNTER\"\n description: \"Number of WAL files that have been successfully archived\"\n - failed_count:\n usage: \"COUNTER\"\n description: \"Number of failed attempts for archiving WAL files\"\n - seconds_since_last_archival:\n usage: \"GAUGE\"\n description: \"Seconds since the last successful archival operation\"\n - seconds_since_last_failure:\n usage: \"GAUGE\"\n description: \"Seconds since the last failed archival operation\"\n - last_archived_time:\n usage: \"GAUGE\"\n description: \"Epoch of the last time WAL archiving succeeded\"\n - last_failed_time:\n usage: \"GAUGE\"\n description: \"Epoch of the last time WAL archiving failed\"\n - last_archived_wal_start_lsn:\n usage: \"GAUGE\"\n description: \"Archived WAL start LSN\"\n - last_failed_wal_start_lsn:\n usage: \"GAUGE\"\n description: \"Last failed WAL LSN\"\n - stats_reset_time:\n usage: \"GAUGE\"\n description: \"Time at which these statistics were last reset\"\n\npg_stat_bgwriter:\n runonserver: \"<17.0.0\"\n query: |\n SELECT checkpoints_timed\n , checkpoints_req\n , checkpoint_write_time\n , checkpoint_sync_time\n , buffers_checkpoint\n , buffers_clean\n , maxwritten_clean\n , buffers_backend\n , buffers_backend_fsync\n , buffers_alloc\n FROM pg_catalog.pg_stat_bgwriter\n metrics:\n - checkpoints_timed:\n usage: \"COUNTER\"\n description: \"Number of scheduled checkpoints that have been performed\"\n - checkpoints_req:\n usage: \"COUNTER\"\n description: \"Number of requested checkpoints that have been performed\"\n - checkpoint_write_time:\n usage: \"COUNTER\"\n description: \"Total amount of time that has been spent in the portion of checkpoint processing where files are written to disk, in milliseconds\"\n - checkpoint_sync_time:\n usage: \"COUNTER\"\n description: \"Total amount of time that has been spent in the portion of checkpoint processing where files are synchronized to disk, in milliseconds\"\n - buffers_checkpoint:\n usage: \"COUNTER\"\n description: \"Number of buffers written during checkpoints\"\n - buffers_clean:\n usage: \"COUNTER\"\n description: \"Number of buffers written by the background writer\"\n - maxwritten_clean:\n usage: \"COUNTER\"\n description: \"Number of times the background writer stopped a cleaning scan because it had written too many buffers\"\n - buffers_backend:\n usage: \"COUNTER\"\n description: \"Number of buffers written directly by a backend\"\n - buffers_backend_fsync:\n usage: \"COUNTER\"\n description: \"Number of times a backend had to execute its own fsync call (normally the background writer handles those even when the backend does its own write)\"\n - buffers_alloc:\n usage: \"COUNTER\"\n description: \"Number of buffers allocated\"\n\npg_stat_bgwriter_17:\n runonserver: \">=17.0.0\"\n name: pg_stat_bgwriter\n query: |\n SELECT buffers_clean\n , maxwritten_clean\n , buffers_alloc\n , EXTRACT(EPOCH FROM stats_reset) AS stats_reset_time\n FROM pg_catalog.pg_stat_bgwriter\n metrics:\n - buffers_clean:\n usage: \"COUNTER\"\n description: \"Number of buffers written by the background writer\"\n - maxwritten_clean:\n usage: \"COUNTER\"\n description: \"Number of times the background writer stopped a cleaning scan because it had written too many buffers\"\n - buffers_alloc:\n usage: \"COUNTER\"\n description: \"Number of buffers allocated\"\n - stats_reset_time:\n usage: \"GAUGE\"\n description: \"Time at which these statistics were last reset\"\n\npg_stat_checkpointer:\n runonserver: \">=17.0.0\"\n query: |\n SELECT num_timed AS checkpoints_timed\n , num_requested AS checkpoints_req\n , restartpoints_timed\n , restartpoints_req\n , restartpoints_done\n , write_time\n , sync_time\n , buffers_written\n , EXTRACT(EPOCH FROM stats_reset) AS stats_reset_time\n FROM pg_catalog.pg_stat_checkpointer\n metrics:\n - checkpoints_timed:\n usage: \"COUNTER\"\n description: \"Number of scheduled checkpoints that have been performed\"\n - checkpoints_req:\n usage: \"COUNTER\"\n description: \"Number of requested checkpoints that have been performed\"\n - restartpoints_timed:\n usage: \"COUNTER\"\n description: \"Number of scheduled restartpoints due to timeout or after a failed attempt to perform it\"\n - restartpoints_req:\n usage: \"COUNTER\"\n description: \"Number of requested restartpoints that have been performed\"\n - restartpoints_done:\n usage: \"COUNTER\"\n description: \"Number of restartpoints that have been performed\"\n - write_time:\n usage: \"COUNTER\"\n description: \"Total amount of time that has been spent in the portion of processing checkpoints and restartpoints where files are written to disk, in milliseconds\"\n - sync_time:\n usage: \"COUNTER\"\n description: \"Total amount of time that has been spent in the portion of processing checkpoints and restartpoints where files are synchronized to disk, in milliseconds\"\n - buffers_written:\n usage: \"COUNTER\"\n description: \"Number of buffers written during checkpoints and restartpoints\"\n - stats_reset_time:\n usage: \"GAUGE\"\n description: \"Time at which these statistics were last reset\"\n\npg_stat_database:\n query: |\n SELECT datname\n , xact_commit\n , xact_rollback\n , blks_read\n , blks_hit\n , tup_returned\n , tup_fetched\n , tup_inserted\n , tup_updated\n , tup_deleted\n , conflicts\n , temp_files\n , temp_bytes\n , deadlocks\n , blk_read_time\n , blk_write_time\n FROM pg_catalog.pg_stat_database\n metrics:\n - datname:\n usage: \"LABEL\"\n description: \"Name of this database\"\n - xact_commit:\n usage: \"COUNTER\"\n description: \"Number of transactions in this database that have been committed\"\n - xact_rollback:\n usage: \"COUNTER\"\n description: \"Number of transactions in this database that have been rolled back\"\n - blks_read:\n usage: \"COUNTER\"\n description: \"Number of disk blocks read in this database\"\n - blks_hit:\n usage: \"COUNTER\"\n description: \"Number of times disk blocks were found already in the buffer cache, so that a read was not necessary (this only includes hits in the PostgreSQL buffer cache, not the operating system's file system cache)\"\n - tup_returned:\n usage: \"COUNTER\"\n description: \"Number of rows returned by queries in this database\"\n - tup_fetched:\n usage: \"COUNTER\"\n description: \"Number of rows fetched by queries in this database\"\n - tup_inserted:\n usage: \"COUNTER\"\n description: \"Number of rows inserted by queries in this database\"\n - tup_updated:\n usage: \"COUNTER\"\n description: \"Number of rows updated by queries in this database\"\n - tup_deleted:\n usage: \"COUNTER\"\n description: \"Number of rows deleted by queries in this database\"\n - conflicts:\n usage: \"COUNTER\"\n description: \"Number of queries canceled due to conflicts with recovery in this database\"\n - temp_files:\n usage: \"COUNTER\"\n description: \"Number of temporary files created by queries in this database\"\n - temp_bytes:\n usage: \"COUNTER\"\n description: \"Total amount of data written to temporary files by queries in this database\"\n - deadlocks:\n usage: \"COUNTER\"\n description: \"Number of deadlocks detected in this database\"\n - blk_read_time:\n usage: \"COUNTER\"\n description: \"Time spent reading data file blocks by backends in this database, in milliseconds\"\n - blk_write_time:\n usage: \"COUNTER\"\n description: \"Time spent writing data file blocks by backends in this database, in milliseconds\"\n\npg_stat_replication:\n primary: true\n query: |\n SELECT usename\n , COALESCE(application_name, '') AS application_name\n , COALESCE(client_addr::text, '') AS client_addr\n , COALESCE(client_port::text, '') AS client_port\n , EXTRACT(EPOCH FROM backend_start) AS backend_start\n , COALESCE(pg_catalog.age(backend_xmin), 0) AS backend_xmin_age\n , pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), sent_lsn) AS sent_diff_bytes\n , pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), write_lsn) AS write_diff_bytes\n , pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), flush_lsn) AS flush_diff_bytes\n , COALESCE(pg_catalog.pg_wal_lsn_diff(pg_catalog.pg_current_wal_lsn(), replay_lsn),0) AS replay_diff_bytes\n , COALESCE((EXTRACT(EPOCH FROM write_lag)),0)::float AS write_lag_seconds\n , COALESCE((EXTRACT(EPOCH FROM flush_lag)),0)::float AS flush_lag_seconds\n , COALESCE((EXTRACT(EPOCH FROM replay_lag)),0)::float AS replay_lag_seconds\n FROM pg_catalog.pg_stat_replication\n metrics:\n - usename:\n usage: \"LABEL\"\n description: \"Name of the replication user\"\n - application_name:\n usage: \"LABEL\"\n description: \"Name of the application\"\n - client_addr:\n usage: \"LABEL\"\n description: \"Client IP address\"\n - client_port:\n usage: \"LABEL\"\n description: \"Client TCP port\"\n - backend_start:\n usage: \"COUNTER\"\n description: \"Time when this process was started\"\n - backend_xmin_age:\n usage: \"COUNTER\"\n description: \"The age of this standby's xmin horizon\"\n - sent_diff_bytes:\n usage: \"GAUGE\"\n description: \"Difference in bytes from the last write-ahead log location sent on this connection\"\n - write_diff_bytes:\n usage: \"GAUGE\"\n description: \"Difference in bytes from the last write-ahead log location written to disk by this standby server\"\n - flush_diff_bytes:\n usage: \"GAUGE\"\n description: \"Difference in bytes from the last write-ahead log location flushed to disk by this standby server\"\n - replay_diff_bytes:\n usage: \"GAUGE\"\n description: \"Difference in bytes from the last write-ahead log location replayed into the database on this standby server\"\n - write_lag_seconds:\n usage: \"GAUGE\"\n description: \"Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written it\"\n - flush_lag_seconds:\n usage: \"GAUGE\"\n description: \"Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written and flushed it\"\n - replay_lag_seconds:\n usage: \"GAUGE\"\n description: \"Time elapsed between flushing recent WAL locally and receiving notification that this standby server has written, flushed and applied it\"\n\npg_settings:\n query: |\n SELECT name,\n CASE setting WHEN 'on' THEN '1' WHEN 'off' THEN '0' ELSE setting END AS setting\n FROM pg_catalog.pg_settings\n WHERE vartype IN ('integer', 'real', 'bool')\n ORDER BY 1\n metrics:\n - name:\n usage: \"LABEL\"\n description: \"Name of the setting\"\n - setting:\n usage: \"GAUGE\"\n description: \"Setting value\"\n"` | A string representation of a YAML defining monitoring queries. |
+| nameOverride | string | `""` | |
+| nodeSelector | object | `{}` | Nodeselector for the operator to be installed. |
+| podAnnotations | object | `{}` | Annotations to be added to the pod. |
+| podLabels | object | `{}` | Labels to be added to the pod. |
+| podSecurityContext | object | `{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}` | Security Context for the whole pod. |
+| priorityClassName | string | `""` | Priority indicates the importance of a Pod relative to other Pods. |
+| rbac.aggregateClusterRoles | bool | `false` | Aggregate ClusterRoles to Kubernetes default user-facing roles. Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles |
+| rbac.create | bool | `true` | Specifies whether ClusterRole and ClusterRoleBinding should be created. |
+| replicaCount | int | `1` | |
+| resources | object | `{}` | |
+| service.name | string | `"cnpg-webhook-service"` | DO NOT CHANGE THE SERVICE NAME as it is currently used to generate the certificate and can not be configured |
+| service.port | int | `443` | |
+| service.type | string | `"ClusterIP"` | |
+| serviceAccount.create | bool | `true` | Specifies whether the service account should be created. |
+| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
+| tolerations | list | `[]` | Tolerations for the operator to be installed. |
+| webhook | object | `{"livenessProbe":{"initialDelaySeconds":3},"mutating":{"create":true,"failurePolicy":"Fail"},"port":9443,"readinessProbe":{"initialDelaySeconds":3},"validating":{"create":true,"failurePolicy":"Fail"}}` | The webhook configuration. |
+
diff --git a/charts/cloudnative-pg/values.schema.json b/charts/cloudnative-pg/values.schema.json
index 2d156f253..63fba0454 100644
--- a/charts/cloudnative-pg/values.schema.json
+++ b/charts/cloudnative-pg/values.schema.json
@@ -1,281 +1,281 @@
{
- "$schema": "http://json-schema.org/schema#",
- "type": "object",
- "properties": {
- "additionalArgs": {
- "type": "array"
- },
- "additionalEnv": {
- "type": "array"
- },
- "affinity": {
- "type": "object"
- },
- "commonAnnotations": {
- "type": "object"
- },
- "config": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
+ "$schema": "http://json-schema.org/schema#",
+ "type": "object",
+ "properties": {
+ "additionalArgs": {
+ "type": "array"
},
- "data": {
- "type": "object"
+ "additionalEnv": {
+ "type": "array"
},
- "name": {
- "type": "string"
+ "affinity": {
+ "type": "object"
},
- "secret": {
- "type": "boolean"
- }
- }
- },
- "containerSecurityContext": {
- "type": "object",
- "properties": {
- "allowPrivilegeEscalation": {
- "type": "boolean"
+ "commonAnnotations": {
+ "type": "object"
+ },
+ "config": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ },
+ "data": {
+ "type": "object"
+ },
+ "name": {
+ "type": "string"
+ },
+ "secret": {
+ "type": "boolean"
+ }
+ }
+ },
+ "containerSecurityContext": {
+ "type": "object",
+ "properties": {
+ "allowPrivilegeEscalation": {
+ "type": "boolean"
+ },
+ "capabilities": {
+ "type": "object",
+ "properties": {
+ "drop": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "readOnlyRootFilesystem": {
+ "type": "boolean"
+ },
+ "runAsGroup": {
+ "type": "integer"
+ },
+ "runAsUser": {
+ "type": "integer"
+ },
+ "seccompProfile": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ }
+ }
+ }
+ }
},
- "capabilities": {
- "type": "object",
- "properties": {
- "drop": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "crds": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ }
}
- }
},
- "readOnlyRootFilesystem": {
- "type": "boolean"
+ "dnsPolicy": {
+ "type": "string"
},
- "runAsGroup": {
- "type": "integer"
+ "fullnameOverride": {
+ "type": "string"
},
- "runAsUser": {
- "type": "integer"
+ "hostNetwork": {
+ "type": "boolean"
},
- "seccompProfile": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
+ "image": {
+ "type": "object",
+ "properties": {
+ "pullPolicy": {
+ "type": "string"
+ },
+ "repository": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ }
}
- }
- }
- }
- },
- "crds": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
- }
- }
- },
- "dnsPolicy": {
- "type": "string"
- },
- "fullnameOverride": {
- "type": "string"
- },
- "hostNetwork": {
- "type": "boolean"
- },
- "image": {
- "type": "object",
- "properties": {
- "pullPolicy": {
- "type": "string"
},
- "repository": {
- "type": "string"
+ "imagePullSecrets": {
+ "type": "array"
},
- "tag": {
- "type": "string"
- }
- }
- },
- "imagePullSecrets": {
- "type": "array"
- },
- "monitoring": {
- "type": "object",
- "properties": {
- "grafanaDashboard": {
- "type": "object",
- "properties": {
- "annotations": {
- "type": "object"
- },
- "configMapName": {
- "type": "string"
- },
- "create": {
- "type": "boolean"
- },
- "labels": {
- "type": "object"
- },
- "namespace": {
- "type": "string"
- },
- "sidecarLabel": {
- "type": "string"
- },
- "sidecarLabelValue": {
- "type": "string"
+ "monitoring": {
+ "type": "object",
+ "properties": {
+ "grafanaDashboard": {
+ "type": "object",
+ "properties": {
+ "annotations": {
+ "type": "object"
+ },
+ "configMapName": {
+ "type": "string"
+ },
+ "create": {
+ "type": "boolean"
+ },
+ "labels": {
+ "type": "object"
+ },
+ "namespace": {
+ "type": "string"
+ },
+ "sidecarLabel": {
+ "type": "string"
+ },
+ "sidecarLabelValue": {
+ "type": "string"
+ }
+ }
+ },
+ "podMonitorAdditionalLabels": {
+ "type": "object"
+ },
+ "podMonitorEnabled": {
+ "type": "boolean"
+ },
+ "podMonitorMetricRelabelings": {
+ "type": "array"
+ },
+ "podMonitorRelabelings": {
+ "type": "array"
+ }
}
- }
},
- "podMonitorAdditionalLabels": {
- "type": "object"
+ "monitoringQueriesConfigMap": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "queries": {
+ "type": "string"
+ }
+ }
},
- "podMonitorEnabled": {
- "type": "boolean"
+ "nameOverride": {
+ "type": "string"
},
- "podMonitorMetricRelabelings": {
- "type": "array"
+ "nodeSelector": {
+ "type": "object"
},
- "podMonitorRelabelings": {
- "type": "array"
- }
- }
- },
- "monitoringQueriesConfigMap": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
+ "podAnnotations": {
+ "type": "object"
},
- "queries": {
- "type": "string"
- }
- }
- },
- "nameOverride": {
- "type": "string"
- },
- "nodeSelector": {
- "type": "object"
- },
- "podAnnotations": {
- "type": "object"
- },
- "podLabels": {
- "type": "object"
- },
- "podSecurityContext": {
- "type": "object",
- "properties": {
- "runAsNonRoot": {
- "type": "boolean"
+ "podLabels": {
+ "type": "object"
},
- "seccompProfile": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
+ "podSecurityContext": {
+ "type": "object",
+ "properties": {
+ "runAsNonRoot": {
+ "type": "boolean"
+ },
+ "seccompProfile": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ }
+ }
+ }
}
- }
- }
- }
- },
- "priorityClassName": {
- "type": "string"
- },
- "rbac": {
- "type": "object",
- "properties": {
- "aggregateClusterRoles": {
- "type": "boolean"
},
- "create": {
- "type": "boolean"
- }
- }
- },
- "replicaCount": {
- "type": "integer"
- },
- "resources": {
- "type": "object"
- },
- "service": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
+ "priorityClassName": {
+ "type": "string"
},
- "port": {
- "type": "integer"
+ "rbac": {
+ "type": "object",
+ "properties": {
+ "aggregateClusterRoles": {
+ "type": "boolean"
+ },
+ "create": {
+ "type": "boolean"
+ }
+ }
},
- "type": {
- "type": "string"
- }
- }
- },
- "serviceAccount": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
+ "replicaCount": {
+ "type": "integer"
},
- "name": {
- "type": "string"
- }
- }
- },
- "tolerations": {
- "type": "array"
- },
- "webhook": {
- "type": "object",
- "properties": {
- "livenessProbe": {
- "type": "object",
- "properties": {
- "initialDelaySeconds": {
- "type": "integer"
- }
- }
+ "resources": {
+ "type": "object"
},
- "mutating": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
- },
- "failurePolicy": {
- "type": "string"
+ "service": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "port": {
+ "type": "integer"
+ },
+ "type": {
+ "type": "string"
+ }
}
- }
},
- "port": {
- "type": "integer"
- },
- "readinessProbe": {
- "type": "object",
- "properties": {
- "initialDelaySeconds": {
- "type": "integer"
+ "serviceAccount": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
}
- }
},
- "validating": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
- },
- "failurePolicy": {
- "type": "string"
+ "tolerations": {
+ "type": "array"
+ },
+ "webhook": {
+ "type": "object",
+ "properties": {
+ "livenessProbe": {
+ "type": "object",
+ "properties": {
+ "initialDelaySeconds": {
+ "type": "integer"
+ }
+ }
+ },
+ "mutating": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ },
+ "failurePolicy": {
+ "type": "string"
+ }
+ }
+ },
+ "port": {
+ "type": "integer"
+ },
+ "readinessProbe": {
+ "type": "object",
+ "properties": {
+ "initialDelaySeconds": {
+ "type": "integer"
+ }
+ }
+ },
+ "validating": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ },
+ "failurePolicy": {
+ "type": "string"
+ }
+ }
+ }
}
- }
}
- }
}
- }
}
diff --git a/charts/cloudnative-pg/values.yaml b/charts/cloudnative-pg/values.yaml
index d717b0358..a95165ffd 100644
--- a/charts/cloudnative-pg/values.yaml
+++ b/charts/cloudnative-pg/values.yaml
@@ -127,8 +127,7 @@ service:
name: cnpg-webhook-service
port: 443
-resources:
- {}
+resources: {}
# If you want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
#
@@ -149,6 +148,7 @@ tolerations: []
affinity: {}
monitoring:
+
# -- Specifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs.
podMonitorEnabled: false
# -- Metrics relabel configurations to apply to samples before ingestion.
diff --git a/charts/cluster/README.md b/charts/cluster/README.md
index a3f3acb42..bf30859ce 100644
--- a/charts/cluster/README.md
+++ b/charts/cluster/README.md
@@ -3,12 +3,11 @@
![Version: 0.0.11](https://img.shields.io/badge/Version-0.0.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
> **Warning**
->
> ### This chart is under active development.
->
> ### Advised caution when using in production!
-## A note on the chart's purpose
+A note on the chart's purpose
+-----------------------------
This is an opinionated chart that is designed to provide a subset of simple, stable and safe configurations using the
CloudNativePG operator. It is designed to provide a simple way to perform recovery operations to decrease your RTO.
@@ -16,9 +15,9 @@ CloudNativePG operator. It is designed to provide a simple way to perform recove
It is not designed to be a one size fits all solution. If you need a more complicated setup we strongly recommend that
you either:
-- use the operator directly
-- create your own chart
-- use Kustomize to modify the chart's resources
+* use the operator directly
+* create your own chart
+* use Kustomize to modify the chart's resources
**_Note_** that the latter option carries it's own risks as the chart configuration may change, especially before it
reaches a stable release.
@@ -27,10 +26,10 @@ That being said, we welcome PRs that improve the chart, but please keep in mind
single configuration that the operator provides and we may reject PRs that add too much complexity and maintenance
difficulty to the chart.
-## Getting Started
+Getting Started
+---------------
### Installing the Operator
-
Skip this step if the CNPG operator is already installed in your cluster.
```console
@@ -54,24 +53,23 @@ cnpg/cluster
A more detailed guide can be found in the [Getting Started docs](<./docs/Getting Started.md>).
-## Cluster Configuration
+Cluster Configuration
+---------------------
### Database types
Currently the chart supports two database types. These are configured via the `type` parameter. These are:
-
-- `postgresql` - A standard PostgreSQL database.
-- `postgis` - A PostgreSQL database with the PostGIS extension installed.
+* `postgresql` - A standard PostgreSQL database.
+* `postgis` - A PostgreSQL database with the PostGIS extension installed.
Depending on the type the chart will use a different Docker image and fill in some initial setup, like extension installation.
### Modes of operation
The chart has three modes of operation. These are configured via the `mode` parameter:
-
-- `standalone` - Creates new or updates an existing CNPG cluster. This is the default mode.
-- `replica` - Creates a replica cluster from an existing CNPG cluster. **_Note_ that this mode is not yet supported.**
-- `recovery` - Recovers a CNPG cluster from a backup, object store or via pg_basebackup.
+* `standalone` - Creates new or updates an existing CNPG cluster. This is the default mode.
+* `replica` - Creates a replica cluster from an existing CNPG cluster. **_Note_ that this mode is not yet supported.**
+* `recovery` - Recovers a CNPG cluster from a backup, object store or via pg_basebackup.
### Backup configuration
@@ -80,15 +78,13 @@ store where backups will be stored. Barman performs backups of the cluster files
stored in the specified location. The backup provider is configured via the `backups.provider` parameter. The following
providers are supported:
-- S3 or S3-compatible stores, like MinIO
-- Microsoft Azure Blob Storage
-- Google Cloud Storage
+* S3 or S3-compatible stores, like MinIO
+* Microsoft Azure Blob Storage
+* Google Cloud Storage
Additionally you can specify the following parameters:
-
-- `backups.retentionPolicy` - The retention policy for backups. Defaults to `30d`.
-- `backups.scheduledBackups` - An array of scheduled backups containing a name and a crontab schedule. Example:
-
+* `backups.retentionPolicy` - The retention policy for backups. Defaults to `30d`.
+* `backups.scheduledBackups` - An array of scheduled backups containing a name and a crontab schedule. Example:
```yaml
backups:
scheduledBackups:
@@ -101,152 +97,155 @@ Each backup adapter takes it's own set of parameters, listed in the [Configurati
below. Refer to the table for the full list of parameters and place the configuration under the appropriate key: `backup.s3`,
`backup.azure`, or `backup.google`.
-## Recovery
+Recovery
+--------
There is a separate document outlining the recovery procedure here: **[Recovery](docs/recovery.md)**
-## Examples
+Examples
+--------
There are several configuration examples in the [examples](examples) directory. Refer to them for a basic setup and
-refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentation/current/) for more advanced configurations.
+refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentation/current/) for more advanced configurations.
## Values
-| Key | Type | Default | Description |
-| --------------------------------------------------- | ------ | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| backups.azure.connectionString | string | `""` | |
-| backups.azure.containerName | string | `""` | |
-| backups.azure.inheritFromAzureAD | bool | `false` | |
-| backups.azure.path | string | `"/"` | |
-| backups.azure.serviceName | string | `"blob"` | |
-| backups.azure.storageAccount | string | `""` | |
-| backups.azure.storageKey | string | `""` | |
-| backups.azure.storageSasToken | string | `""` | |
-| backups.data.compression | string | `"gzip"` | Data compression method. One of ``(for no compression),`gzip`, `bzip2`or`snappy`. |
-| backups.data.encryption | string | `"AES256"` | Whether to instruct the storage provider to encrypt data files. One of ``(use the storage container default),`AES256`or`aws:kms`. |
-| backups.data.jobs | int | `2` | Number of data files to be archived or restored in parallel. |
-| backups.destinationPath | string | `""` | Overrides the provider specific default path. Defaults to: S3: s3:// Azure: https://..core.windows.net/ Google: gs:// |
-| backups.enabled | bool | `false` | You need to configure backups manually, so backups are disabled by default. |
-| backups.endpointCA | object | `{"create":false,"key":"","name":"","value":""}` | Specifies a CA bundle to validate a privately signed certificate. |
-| backups.endpointCA.create | bool | `false` | Creates a secret with the given value if true, otherwise uses an existing secret. |
-| backups.endpointURL | string | `""` | Overrides the provider specific default endpoint. Defaults to: S3: https://s3..amazonaws.com" |
-| backups.google.applicationCredentials | string | `""` | |
-| backups.google.bucket | string | `""` | |
-| backups.google.gkeEnvironment | bool | `false` | |
-| backups.google.path | string | `"/"` | |
-| backups.provider | string | `"s3"` | One of `s3`, `azure` or `google` |
-| backups.retentionPolicy | string | `"30d"` | Retention policy for backups |
-| backups.s3.accessKey | string | `""` | |
-| backups.s3.bucket | string | `""` | |
-| backups.s3.path | string | `"/"` | |
-| backups.s3.region | string | `""` | |
-| backups.s3.secretKey | string | `""` | |
-| backups.scheduledBackups[0].backupOwnerReference | string | `"self"` | Backup owner reference |
-| backups.scheduledBackups[0].method | string | `"barmanObjectStore"` | Backup method, can be `barmanObjectStore` (default) or `volumeSnapshot` |
-| backups.scheduledBackups[0].name | string | `"daily-backup"` | Scheduled backup name |
-| backups.scheduledBackups[0].schedule | string | `"0 0 0 * * *"` | Schedule in cron format |
-| backups.secret.create | bool | `true` | Whether to create a secret for the backup credentials |
-| backups.secret.name | string | `""` | Name of the backup credentials secret |
-| backups.wal.compression | string | `"gzip"` | WAL compression method. One of ``(for no compression),`gzip`, `bzip2`or`snappy`. |
-| backups.wal.encryption | string | `"AES256"` | Whether to instruct the storage provider to encrypt WAL files. One of ``(use the storage container default),`AES256`or`aws:kms`. |
-| backups.wal.maxParallel | int | `1` | Number of WAL files to be archived or restored in parallel. |
-| cluster.additionalLabels | object | `{}` | |
-| cluster.affinity | object | `{"topologyKey":"topology.kubernetes.io/zone"}` | Affinity/Anti-affinity rules for Pods. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-AffinityConfiguration |
-| cluster.annotations | object | `{}` | |
-| cluster.certificates | object | `{}` | The configuration for the CA and related certificates. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-CertificatesConfiguration |
-| cluster.enableSuperuserAccess | bool | `true` | When this option is enabled, the operator will use the SuperuserSecret to update the postgres user password. If the secret is not present, the operator will automatically create one. When this option is disabled, the operator will ignore the SuperuserSecret content, delete it when automatically created, and then blank the password of the postgres user by setting it to NULL. |
-| cluster.imageName | string | `""` | Name of the container image, supporting both tags (:) and digests for deterministic and repeatable deployments: :@sha256: |
-| cluster.imagePullPolicy | string | `"IfNotPresent"` | Image pull policy. One of Always, Never or IfNotPresent. If not defined, it defaults to IfNotPresent. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images |
-| cluster.imagePullSecrets | list | `[]` | The list of pull secrets to be used to pull the images. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-LocalObjectReference |
-| cluster.initdb | object | `{}` | BootstrapInitDB is the configuration of the bootstrap process when initdb is used. See: https://cloudnative-pg.io/documentation/current/bootstrap/ See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb |
-| cluster.instances | int | `3` | Number of instances |
-| cluster.logLevel | string | `"info"` | The instances' log level, one of the following values: error, warning, info (default), debug, trace |
-| cluster.monitoring.customQueries | list | `[]` | Custom Prometheus metrics |
-| cluster.monitoring.enabled | bool | `false` | Whether to enable monitoring |
-| cluster.monitoring.podMonitor.enabled | bool | `true` | Whether to enable the PodMonitor |
-| cluster.monitoring.prometheusRule.enabled | bool | `true` | Whether to enable the PrometheusRule automated alerts |
-| cluster.monitoring.prometheusRule.excludeRules | list | `[]` | Exclude specified rules |
-| cluster.postgresGID | int | `26` | The GID of the postgres user inside the image, defaults to 26 |
-| cluster.postgresUID | int | `26` | The UID of the postgres user inside the image, defaults to 26 |
-| cluster.postgresql.parameters | object | `{}` | PostgreSQL configuration options (postgresql.conf) |
-| cluster.postgresql.pg_hba | list | `[]` | PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
-| cluster.primaryUpdateMethod | string | `"switchover"` | Method to follow to upgrade the primary server during a rolling update procedure, after all replicas have been successfully updated. It can be switchover (default) or restart. |
-| cluster.primaryUpdateStrategy | string | `"unsupervised"` | Strategy to follow to upgrade the primary server during a rolling update procedure, after all replicas have been successfully updated: it can be automated (unsupervised - default) or manual (supervised) |
-| cluster.priorityClassName | string | `""` | |
-| cluster.resources | object | `{}` | Resources requirements of every generated Pod. Please refer to https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ for more information. We strongly advise you use the same setting for limits and requests so that your cluster pods are given a Guaranteed QoS. See: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/ |
-| cluster.roles | list | `[]` | This feature enables declarative management of existing roles, as well as the creation of new roles if they are not already present in the database. See: https://cloudnative-pg.io/documentation/current/declarative_role_management/ |
-| cluster.storage.size | string | `"8Gi"` | |
-| cluster.storage.storageClass | string | `""` | |
-| cluster.superuserSecret | string | `""` | |
-| cluster.walStorage.enabled | bool | `false` | |
-| cluster.walStorage.size | string | `"1Gi"` | |
-| cluster.walStorage.storageClass | string | `""` | |
-| fullnameOverride | string | `""` | Override the full name of the chart |
-| mode | string | `"standalone"` | Cluster mode of operation. Available modes: _ `standalone` - default mode. Creates new or updates an existing CNPG cluster. _ `replica` - Creates a replica cluster from an existing CNPG cluster. # TODO \* `recovery` - Same as standalone but creates a cluster from a backup, object store or via pg_basebackup. |
-| nameOverride | string | `""` | Override the name of the chart |
-| pooler.enabled | bool | `false` | Whether to enable PgBouncer |
-| pooler.instances | int | `3` | Number of PgBouncer instances |
-| pooler.monitoring.enabled | bool | `false` | Whether to enable monitoring |
-| pooler.monitoring.podMonitor.enabled | bool | `true` | Whether to enable the PodMonitor |
-| pooler.parameters | object | `{"default_pool_size":"25","max_client_conn":"1000"}` | PgBouncer configuration parameters |
-| pooler.poolMode | string | `"transaction"` | PgBouncer pooling mode |
-| pooler.template | object | `{}` | Custom PgBouncer deployment template. Use to override image, specify resources, etc. |
-| pooler.type | string | `"rw"` | PgBouncer type of service to forward traffic to. |
-| recovery.azure.connectionString | string | `""` | |
-| recovery.azure.containerName | string | `""` | |
-| recovery.azure.inheritFromAzureAD | bool | `false` | |
-| recovery.azure.path | string | `"/"` | |
-| recovery.azure.serviceName | string | `"blob"` | |
-| recovery.azure.storageAccount | string | `""` | |
-| recovery.azure.storageKey | string | `""` | |
-| recovery.azure.storageSasToken | string | `""` | |
-| recovery.backupName | string | `""` | Backup Recovery Method |
-| recovery.clusterName | string | `""` | The original cluster name when used in backups. Also known as serverName. |
-| recovery.destinationPath | string | `""` | Overrides the provider specific default path. Defaults to: S3: s3:// Azure: https://..core.windows.net/ Google: gs:// |
-| recovery.endpointCA | object | `{"create":false,"key":"","name":"","value":""}` | Specifies a CA bundle to validate a privately signed certificate. |
-| recovery.endpointCA.create | bool | `false` | Creates a secret with the given value if true, otherwise uses an existing secret. |
-| recovery.endpointURL | string | `""` | Overrides the provider specific default endpoint. Defaults to: S3: https://s3..amazonaws.com" Leave empty if using the default S3 endpoint |
-| recovery.google.applicationCredentials | string | `""` | |
-| recovery.google.bucket | string | `""` | |
-| recovery.google.gkeEnvironment | bool | `false` | |
-| recovery.google.path | string | `"/"` | |
-| recovery.method | string | `"backup"` | Available recovery methods: _ `backup` - Recovers a CNPG cluster from a CNPG backup (PITR supported) Needs to be on the same cluster in the same namespace. _ `object_store` - Recovers a CNPG cluster from a barman object store (PITR supported). \* `pg_basebackup` - Recovers a CNPG cluster viaa streaming replication protocol. Useful if you want to migrate databases to CloudNativePG, even from outside Kubernetes. # TODO |
-| recovery.pgBaseBackup.database | string | `"app"` | Name of the database used by the application. Default: `app`. |
-| recovery.pgBaseBackup.owner | string | `""` | Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch |
-| recovery.pgBaseBackup.secret | string | `""` | Name of the owner of the database in the instance to be used by applications. Defaults to the value of the `database` key. |
-| recovery.pgBaseBackup.source.database | string | `"app"` | |
-| recovery.pgBaseBackup.source.host | string | `""` | |
-| recovery.pgBaseBackup.source.passwordSecret.create | bool | `false` | Whether to create a secret for the password |
-| recovery.pgBaseBackup.source.passwordSecret.key | string | `"password"` | The key in the secret containing the password |
-| recovery.pgBaseBackup.source.passwordSecret.name | string | `""` | Name of the secret containing the password |
-| recovery.pgBaseBackup.source.passwordSecret.value | string | `""` | The password value to use when creating the secret |
-| recovery.pgBaseBackup.source.port | int | `5432` | |
-| recovery.pgBaseBackup.source.sslCertSecret.key | string | `""` | |
-| recovery.pgBaseBackup.source.sslCertSecret.name | string | `""` | |
-| recovery.pgBaseBackup.source.sslKeySecret.key | string | `""` | |
-| recovery.pgBaseBackup.source.sslKeySecret.name | string | `""` | |
-| recovery.pgBaseBackup.source.sslMode | string | `"verify-full"` | |
-| recovery.pgBaseBackup.source.sslRootCertSecret.key | string | `""` | |
-| recovery.pgBaseBackup.source.sslRootCertSecret.name | string | `""` | |
-| recovery.pgBaseBackup.source.username | string | `""` | |
-| recovery.pitrTarget.time | string | `""` | Time in RFC3339 format |
-| recovery.provider | string | `"s3"` | One of `s3`, `azure` or `google` |
-| recovery.s3.accessKey | string | `""` | |
-| recovery.s3.bucket | string | `""` | |
-| recovery.s3.path | string | `"/"` | |
-| recovery.s3.region | string | `""` | |
-| recovery.s3.secretKey | string | `""` | |
-| recovery.secret.create | bool | `true` | Whether to create a secret for the backup credentials |
-| recovery.secret.name | string | `""` | Name of the backup credentials secret |
-| type | string | `"postgresql"` | Type of the CNPG database. Available types: _ `postgresql` _ `postgis` |
+| Key | Type | Default | Description |
+|-----|------|---------|-------------|
+| backups.azure.connectionString | string | `""` | |
+| backups.azure.containerName | string | `""` | |
+| backups.azure.inheritFromAzureAD | bool | `false` | |
+| backups.azure.path | string | `"/"` | |
+| backups.azure.serviceName | string | `"blob"` | |
+| backups.azure.storageAccount | string | `""` | |
+| backups.azure.storageKey | string | `""` | |
+| backups.azure.storageSasToken | string | `""` | |
+| backups.data.compression | string | `"gzip"` | Data compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`. |
+| backups.data.encryption | string | `"AES256"` | Whether to instruct the storage provider to encrypt data files. One of `` (use the storage container default), `AES256` or `aws:kms`. |
+| backups.data.jobs | int | `2` | Number of data files to be archived or restored in parallel. |
+| backups.destinationPath | string | `""` | Overrides the provider specific default path. Defaults to: S3: s3:// Azure: https://..core.windows.net/ Google: gs:// |
+| backups.enabled | bool | `false` | You need to configure backups manually, so backups are disabled by default. |
+| backups.endpointCA | object | `{"create":false,"key":"","name":"","value":""}` | Specifies a CA bundle to validate a privately signed certificate. |
+| backups.endpointCA.create | bool | `false` | Creates a secret with the given value if true, otherwise uses an existing secret. |
+| backups.endpointURL | string | `""` | Overrides the provider specific default endpoint. Defaults to: S3: https://s3..amazonaws.com" |
+| backups.google.applicationCredentials | string | `""` | |
+| backups.google.bucket | string | `""` | |
+| backups.google.gkeEnvironment | bool | `false` | |
+| backups.google.path | string | `"/"` | |
+| backups.provider | string | `"s3"` | One of `s3`, `azure` or `google` |
+| backups.retentionPolicy | string | `"30d"` | Retention policy for backups |
+| backups.s3.accessKey | string | `""` | |
+| backups.s3.bucket | string | `""` | |
+| backups.s3.path | string | `"/"` | |
+| backups.s3.region | string | `""` | |
+| backups.s3.secretKey | string | `""` | |
+| backups.scheduledBackups[0].backupOwnerReference | string | `"self"` | Backup owner reference |
+| backups.scheduledBackups[0].method | string | `"barmanObjectStore"` | Backup method, can be `barmanObjectStore` (default) or `volumeSnapshot` |
+| backups.scheduledBackups[0].name | string | `"daily-backup"` | Scheduled backup name |
+| backups.scheduledBackups[0].schedule | string | `"0 0 0 * * *"` | Schedule in cron format |
+| backups.secret.create | bool | `true` | Whether to create a secret for the backup credentials |
+| backups.secret.name | string | `""` | Name of the backup credentials secret |
+| backups.wal.compression | string | `"gzip"` | WAL compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`. |
+| backups.wal.encryption | string | `"AES256"` | Whether to instruct the storage provider to encrypt WAL files. One of `` (use the storage container default), `AES256` or `aws:kms`. |
+| backups.wal.maxParallel | int | `1` | Number of WAL files to be archived or restored in parallel. |
+| cluster.additionalLabels | object | `{}` | |
+| cluster.affinity | object | `{"topologyKey":"topology.kubernetes.io/zone"}` | Affinity/Anti-affinity rules for Pods. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-AffinityConfiguration |
+| cluster.annotations | object | `{}` | |
+| cluster.certificates | object | `{}` | The configuration for the CA and related certificates. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-CertificatesConfiguration |
+| cluster.enableSuperuserAccess | bool | `true` | When this option is enabled, the operator will use the SuperuserSecret to update the postgres user password. If the secret is not present, the operator will automatically create one. When this option is disabled, the operator will ignore the SuperuserSecret content, delete it when automatically created, and then blank the password of the postgres user by setting it to NULL. |
+| cluster.imageName | string | `""` | Name of the container image, supporting both tags (:) and digests for deterministic and repeatable deployments: :@sha256: |
+| cluster.imagePullPolicy | string | `"IfNotPresent"` | Image pull policy. One of Always, Never or IfNotPresent. If not defined, it defaults to IfNotPresent. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images |
+| cluster.imagePullSecrets | list | `[]` | The list of pull secrets to be used to pull the images. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-LocalObjectReference |
+| cluster.initdb | object | `{}` | BootstrapInitDB is the configuration of the bootstrap process when initdb is used. See: https://cloudnative-pg.io/documentation/current/bootstrap/ See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb |
+| cluster.instances | int | `3` | Number of instances |
+| cluster.logLevel | string | `"info"` | The instances' log level, one of the following values: error, warning, info (default), debug, trace |
+| cluster.monitoring.customQueries | list | `[]` | Custom Prometheus metrics |
+| cluster.monitoring.enabled | bool | `false` | Whether to enable monitoring |
+| cluster.monitoring.podMonitor.enabled | bool | `true` | Whether to enable the PodMonitor |
+| cluster.monitoring.prometheusRule.enabled | bool | `true` | Whether to enable the PrometheusRule automated alerts |
+| cluster.monitoring.prometheusRule.excludeRules | list | `[]` | Exclude specified rules |
+| cluster.postgresGID | int | `26` | The GID of the postgres user inside the image, defaults to 26 |
+| cluster.postgresUID | int | `26` | The UID of the postgres user inside the image, defaults to 26 |
+| cluster.postgresql.parameters | object | `{}` | PostgreSQL configuration options (postgresql.conf) |
+| cluster.postgresql.pg_hba | list | `[]` | PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
+| cluster.primaryUpdateMethod | string | `"switchover"` | Method to follow to upgrade the primary server during a rolling update procedure, after all replicas have been successfully updated. It can be switchover (default) or restart. |
+| cluster.primaryUpdateStrategy | string | `"unsupervised"` | Strategy to follow to upgrade the primary server during a rolling update procedure, after all replicas have been successfully updated: it can be automated (unsupervised - default) or manual (supervised) |
+| cluster.priorityClassName | string | `""` | |
+| cluster.resources | object | `{}` | Resources requirements of every generated Pod. Please refer to https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ for more information. We strongly advise you use the same setting for limits and requests so that your cluster pods are given a Guaranteed QoS. See: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/ |
+| cluster.roles | list | `[]` | This feature enables declarative management of existing roles, as well as the creation of new roles if they are not already present in the database. See: https://cloudnative-pg.io/documentation/current/declarative_role_management/ |
+| cluster.storage.size | string | `"8Gi"` | |
+| cluster.storage.storageClass | string | `""` | |
+| cluster.superuserSecret | string | `""` | |
+| cluster.walStorage.enabled | bool | `false` | |
+| cluster.walStorage.size | string | `"1Gi"` | |
+| cluster.walStorage.storageClass | string | `""` | |
+| fullnameOverride | string | `""` | Override the full name of the chart |
+| mode | string | `"standalone"` | Cluster mode of operation. Available modes: * `standalone` - default mode. Creates new or updates an existing CNPG cluster. * `replica` - Creates a replica cluster from an existing CNPG cluster. # TODO * `recovery` - Same as standalone but creates a cluster from a backup, object store or via pg_basebackup. |
+| nameOverride | string | `""` | Override the name of the chart |
+| pooler.enabled | bool | `false` | Whether to enable PgBouncer |
+| pooler.instances | int | `3` | Number of PgBouncer instances |
+| pooler.monitoring.enabled | bool | `false` | Whether to enable monitoring |
+| pooler.monitoring.podMonitor.enabled | bool | `true` | Whether to enable the PodMonitor |
+| pooler.parameters | object | `{"default_pool_size":"25","max_client_conn":"1000"}` | PgBouncer configuration parameters |
+| pooler.poolMode | string | `"transaction"` | PgBouncer pooling mode |
+| pooler.template | object | `{}` | Custom PgBouncer deployment template. Use to override image, specify resources, etc. |
+| pooler.type | string | `"rw"` | PgBouncer type of service to forward traffic to. |
+| recovery.azure.connectionString | string | `""` | |
+| recovery.azure.containerName | string | `""` | |
+| recovery.azure.inheritFromAzureAD | bool | `false` | |
+| recovery.azure.path | string | `"/"` | |
+| recovery.azure.serviceName | string | `"blob"` | |
+| recovery.azure.storageAccount | string | `""` | |
+| recovery.azure.storageKey | string | `""` | |
+| recovery.azure.storageSasToken | string | `""` | |
+| recovery.backupName | string | `""` | Backup Recovery Method |
+| recovery.clusterName | string | `""` | The original cluster name when used in backups. Also known as serverName. |
+| recovery.destinationPath | string | `""` | Overrides the provider specific default path. Defaults to: S3: s3:// Azure: https://..core.windows.net/ Google: gs:// |
+| recovery.endpointCA | object | `{"create":false,"key":"","name":"","value":""}` | Specifies a CA bundle to validate a privately signed certificate. |
+| recovery.endpointCA.create | bool | `false` | Creates a secret with the given value if true, otherwise uses an existing secret. |
+| recovery.endpointURL | string | `""` | Overrides the provider specific default endpoint. Defaults to: S3: https://s3..amazonaws.com" Leave empty if using the default S3 endpoint |
+| recovery.google.applicationCredentials | string | `""` | |
+| recovery.google.bucket | string | `""` | |
+| recovery.google.gkeEnvironment | bool | `false` | |
+| recovery.google.path | string | `"/"` | |
+| recovery.method | string | `"backup"` | Available recovery methods: * `backup` - Recovers a CNPG cluster from a CNPG backup (PITR supported) Needs to be on the same cluster in the same namespace. * `object_store` - Recovers a CNPG cluster from a barman object store (PITR supported). * `pg_basebackup` - Recovers a CNPG cluster viaa streaming replication protocol. Useful if you want to migrate databases to CloudNativePG, even from outside Kubernetes. # TODO |
+| recovery.pgBaseBackup.database | string | `"app"` | Name of the database used by the application. Default: `app`. |
+| recovery.pgBaseBackup.owner | string | `""` | Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch |
+| recovery.pgBaseBackup.secret | string | `""` | Name of the owner of the database in the instance to be used by applications. Defaults to the value of the `database` key. |
+| recovery.pgBaseBackup.source.database | string | `"app"` | |
+| recovery.pgBaseBackup.source.host | string | `""` | |
+| recovery.pgBaseBackup.source.passwordSecret.create | bool | `false` | Whether to create a secret for the password |
+| recovery.pgBaseBackup.source.passwordSecret.key | string | `"password"` | The key in the secret containing the password |
+| recovery.pgBaseBackup.source.passwordSecret.name | string | `""` | Name of the secret containing the password |
+| recovery.pgBaseBackup.source.passwordSecret.value | string | `""` | The password value to use when creating the secret |
+| recovery.pgBaseBackup.source.port | int | `5432` | |
+| recovery.pgBaseBackup.source.sslCertSecret.key | string | `""` | |
+| recovery.pgBaseBackup.source.sslCertSecret.name | string | `""` | |
+| recovery.pgBaseBackup.source.sslKeySecret.key | string | `""` | |
+| recovery.pgBaseBackup.source.sslKeySecret.name | string | `""` | |
+| recovery.pgBaseBackup.source.sslMode | string | `"verify-full"` | |
+| recovery.pgBaseBackup.source.sslRootCertSecret.key | string | `""` | |
+| recovery.pgBaseBackup.source.sslRootCertSecret.name | string | `""` | |
+| recovery.pgBaseBackup.source.username | string | `""` | |
+| recovery.pitrTarget.time | string | `""` | Time in RFC3339 format |
+| recovery.provider | string | `"s3"` | One of `s3`, `azure` or `google` |
+| recovery.s3.accessKey | string | `""` | |
+| recovery.s3.bucket | string | `""` | |
+| recovery.s3.path | string | `"/"` | |
+| recovery.s3.region | string | `""` | |
+| recovery.s3.secretKey | string | `""` | |
+| recovery.secret.create | bool | `true` | Whether to create a secret for the backup credentials |
+| recovery.secret.name | string | `""` | Name of the backup credentials secret |
+| type | string | `"postgresql"` | Type of the CNPG database. Available types: * `postgresql` * `postgis` |
## Maintainers
-| Name | Email | Url |
-| ----------- | ------------------------------------------------- | --- |
-| itay-grudev | | |
+| Name | Email | Url |
+| ---- | ------ | --- |
+| itay-grudev | | |
-## Features that require feedback
+Features that require feedback
+------------------------------
Please raise a ticket tested any of the following features and they have worked.
Alternatively a ticket and a PR if you have found that something needs a change to work properly.
@@ -254,7 +253,8 @@ Alternatively a ticket and a PR if you have found that something needs a change
- [ ] Google Cloud Storage Backups
- [ ] Google Cloud Storage Recovery
-## TODO
+TODO
+----
+* IAM Role for S3 Service Account
+* Automatic provisioning of a Alert Manager configuration
-- IAM Role for S3 Service Account
-- Automatic provisioning of a Alert Manager configuration
diff --git a/charts/cluster/docs/Getting Started.md b/charts/cluster/docs/Getting Started.md
index 2c889fa87..54dad419d 100644
--- a/charts/cluster/docs/Getting Started.md
+++ b/charts/cluster/docs/Getting Started.md
@@ -1,6 +1,6 @@
# Getting Started
-The CNPG cluster chart follows a convention over configuration approach. This means that the chart will create a reasonable
+The CNPG cluster chart follows a convention over configuration approach. This means that the chart will create a reasonable
CNPG setup with sensible defaults. However, you can override these defaults to create a more customized setup. Note that
you still need to configure backups and monitoring separately. The chart will not install a Prometheus stack for you.
@@ -29,9 +29,8 @@ via a GitOps solution or directly via Helm is up to you. The following sections
### Choosing the database type
Currently the chart supports two database types. These are configured via the `type` parameter. These are:
-
-- `postgresql` - A standard PostgreSQL database.
-- `postgis` - A PostgreSQL database with the PostGIS extension installed.
+* `postgresql` - A standard PostgreSQL database.
+* `postgis` - A PostgreSQL database with the PostGIS extension installed.
Depending on the type the chart will use a different Docker image and fill in some initial setup, like extension installation.
@@ -39,28 +38,26 @@ Depending on the type the chart will use a different Docker image and fill in so
The chart has three modes of operation. These are configured via the `mode` parameter. If this is your first cluster, you
are likely looking for the `standalone` option.
-
-- `standalone` - Creates new or updates an existing CNPG cluster. This is the default mode.
-- `replica` - Creates a replica cluster from an existing CNPG cluster. **_Note_ that this mode is not yet supported.**
-- `recovery` - Recovers a CNPG cluster from a backup, object store or via pg_basebackup.
+* `standalone` - Creates new or updates an existing CNPG cluster. This is the default mode.
+* `replica` - Creates a replica cluster from an existing CNPG cluster. **_Note_ that this mode is not yet supported.**
+* `recovery` - Recovers a CNPG cluster from a backup, object store or via pg_basebackup.
### Backup configuration
-Most importantly you should configure your backup storage.
+Most importantly you should configure your backup storage.
CNPG implements disaster recovery via [Barman](https://pgbarman.org/). The following section configures the barman object
store where backups will be stored. Barman performs backups of the cluster filesystem base backup and WALs. Both are
stored in the specified location. The backup provider is configured via the `backups.provider` parameter. The following
providers are supported:
-- S3 or S3-compatible stores, like MinIO
-- Microsoft Azure Blob Storage
-- Google Cloud Storage
+* S3 or S3-compatible stores, like MinIO
+* Microsoft Azure Blob Storage
+* Google Cloud Storage
Additionally you can specify the following parameters:
-
-- `backups.retentionPolicy` - The retention policy for backups. Defaults to `30d`.
-- `backups.scheduledBackups` - An array of scheduled backups containing a name and a crontab schedule. Example:
+* `backups.retentionPolicy` - The retention policy for backups. Defaults to `30d`.
+* `backups.scheduledBackups` - An array of scheduled backups containing a name and a crontab schedule. Example:
```yaml
backups:
scheduledBackups:
@@ -79,27 +76,25 @@ There are several important cluster options. Here are the most important ones:
`cluster.instances` - The number of instances in the cluster. Defaults to `1`, but you should set this to `3` for production.
`cluster.imageName` - This allows you to override the Docker image used for the cluster. The chart will choose a default
-for you based on the setting you chose for `type`. If you need to run a configuration that is not supported, you can
-create your own Docker image. You can use the [postgres-containers](https://github.com/cloudnative-pg/postgres-containers)
-repository for a starting point.
-You will likely need to set your own repository access credentials via: `cluster.imagePullPolicy` and `cluster.imagePullSecrets`.
+ for you based on the setting you chose for `type`. If you need to run a configuration that is not supported, you can
+ create your own Docker image. You can use the [postgres-containers](https://github.com/cloudnative-pg/postgres-containers)
+ repository for a starting point.
+ You will likely need to set your own repository access credentials via: `cluster.imagePullPolicy` and `cluster.imagePullSecrets`.
`cluster.storage.size` - The size of the persistent volume claim for the cluster. Defaults to `8Gi`. Every instance will
-have it's own persistent volume claim.
+ have it's own persistent volume claim.
`cluster.storage.storageClass` - The storage class to use for the persistent volume claim.
`cluster.resources` - The resource limits and requests for the cluster. You are strongly advised to use the same values
-for both limits and requests to ensure a [Guaranteed QoS](https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#guaranteed).
+ for both limits and requests to ensure a [Guaranteed QoS](https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#guaranteed).
`cluster.affinity.topologyKey` - The chart sets it to `topology.kubernetes.io/zone` by default which is useful if you are
-running a production cluster in a multi AZ cluster (highly recommended). If you are running a single AZ cluster, you may
-want to change that to `kubernetes.io/hostname` to ensure that cluster instances are not provisioned on the same node.
+ running a production cluster in a multi AZ cluster (highly recommended). If you are running a single AZ cluster, you may
+ want to change that to `kubernetes.io/hostname` to ensure that cluster instances are not provisioned on the same node.
`cluster.postgresql` - Allows you to override PostgreSQL configuration parameters example:
-
-```yaml
-cluster:
- postgresql:
- max_connections: "200"
- shared_buffers: "2GB"
-```
-
+ ```yaml
+ cluster:
+ postgresql:
+ max_connections: "200"
+ shared_buffers: "2GB"
+ ```
`cluster.initSQL` - Allows you to run custom SQL queries during the cluster initialization. This is useful for creating
extensions, schemas and databases. Note that these are as a superuser.
@@ -108,4 +103,4 @@ For a full list - refer to the Helm chart [configuration options](../README.md#C
## Examples
There are several configuration examples in the [examples](../examples) directory. Refer to them for a basic setup and
-refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentation/current/) for more advanced configurations.
+refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentation/current/) for more advanced configurations.
diff --git a/charts/cluster/docs/Recovery.md b/charts/cluster/docs/Recovery.md
index 2daff930a..1a7a9153c 100644
--- a/charts/cluster/docs/Recovery.md
+++ b/charts/cluster/docs/Recovery.md
@@ -1,4 +1,5 @@
-# Recovery
+Recovery
+========
This chart can be used to initiate a recovery operation of a CNPG cluster no matter if it was created with the chart or not.
@@ -7,10 +8,9 @@ CNPG does not support recovery in-place. Instead you need to create a new cluste
You can find more information about the recovery process in the [CNPG documentation](https://cloudnative-pg.io/documentation/current/backup_recovery).
There are 3 types of recovery possible with CNPG:
-
-- Recovery from a backup object in the same Kubernetes namespace.
-- Recovery from a Barman Object Store, that could be located anywhere.
-- Streaming replication from an operating cluster using `pg_basebackup`.
+* Recovery from a backup object in the same Kubernetes namespace.
+* Recovery from a Barman Object Store, that could be located anywhere.
+* Streaming replication from an operating cluster using `pg_basebackup`.
When performing a recovery you are strongly advised to use the same configuration and PostgreSQL version as the original cluster.
@@ -18,10 +18,10 @@ To begin, create a `values.yaml` that contains the following:
1. Set `mode: recovery` to indicate that you want to perform bootstrap the new cluster from an existing one.
2. Set the `recovery.method` to the type of recovery you want to perform.
-3. Set either the `recovery.backupName` or the Barman Object Store configuration - i.e. `recovery.provider` and appropriate S3, Azure or GCS configuration. In case of `pg_basebackup` complete the `recovery.pgBaseBackup` section.
+3. Set either the `recovery.backupName` or the Barman Object Store configuration - i.e. `recovery.provider` and appropriate S3, Azure or GCS configuration. In case of `pg_basebackup` complete the `recovery.pgBaseBackup` section.
4. Optionally set the `recovery.pitrTarget.time` in RFC3339 format to perform a point-in-time recovery (not applicable for `pgBaseBackup`).
5. Retain the identical PostgreSQL version and configuration as the original cluster.
6. Make sure you don't use the same backup section name as the original cluster. We advise you change the `path` within the storage location if you want to reuse the same storage location/bucket.
- One pattern is adding a version number at the end of the path, e.g. `/v1` or `/v2` after each recovery procedure.
+ One pattern is adding a version number at the end of the path, e.g. `/v1` or `/v2` after each recovery procedure.
Example recovery configurations can be found in the [examples](../examples) directory.
diff --git a/charts/cluster/docs/runbooks/CNPGClusterHACritical.md b/charts/cluster/docs/runbooks/CNPGClusterHACritical.md
index 19829f078..8be576c32 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterHACritical.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterHACritical.md
@@ -1,6 +1,8 @@
-# CNPGClusterHACritical
+CNPGClusterHACritical
+=====================
-## Meaning
+Meaning
+-------
The `CNPGClusterHACritical` alert is triggered when the CloudNativePG cluster has no ready standby replicas.
@@ -10,12 +12,14 @@ instances. The replaced instance may need some time to catch-up with the cluster
This alarm will be always triggered if your cluster is configured to run with only 1 instance. In this case you
may want to silence it.
-## Impact
+Impact
+------
Having no available replicas puts your cluster at a severe risk if the primary instance fails. The primary instance is
still online and able to serve queries, although connections to the `-ro` endpoint will fail.
-## Diagnosis
+Diagnosis
+---------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
@@ -37,7 +41,8 @@ Check the CloudNativePG operator logs:
kubectl logs --namespace cnpg-system -l "app.kubernetes.io/name=cloudnative-pg"
```
-## Mitigation
+Mitigation
+----------
Refer to the [CloudNativePG Failure Modes](https://cloudnative-pg.io/documentation/current/failure_modes/)
and [CloudNativePG Troubleshooting](https://cloudnative-pg.io/documentation/current/troubleshooting/) documentation for
diff --git a/charts/cluster/docs/runbooks/CNPGClusterHAWarning.md b/charts/cluster/docs/runbooks/CNPGClusterHAWarning.md
index 9ee028b5a..80acfad96 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterHAWarning.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterHAWarning.md
@@ -1,13 +1,16 @@
-# CNPGClusterHAWarning
+CNPGClusterHAWarning
+====================
-## Meaning
+Meaning
+-------
The `CNPGClusterHAWarning` alert is triggered when the CloudNativePG cluster ready standby replicas are less than `2`.
This alarm will be always triggered if your cluster is configured to run with less than `3` instances. In this case you
may want to silence it.
-## Impact
+Impact
+------
Having less than two available replicas puts your cluster at risk if another instance fails. The cluster is still able
to operate normally, although the `-ro` and `-r` endpoints operate at reduced capacity.
@@ -17,7 +20,8 @@ to catch-up with the cluster primary instance which will trigger the alert if th
At `0` available ready replicas, a `CNPGClusterHACritical` alert will be triggered.
-## Diagnosis
+Diagnosis
+---------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
@@ -39,7 +43,8 @@ Check the CloudNativePG operator logs:
kubectl logs --namespace cnpg-system -l "app.kubernetes.io/name=cloudnative-pg"
```
-## Mitigation
+Mitigation
+----------
Refer to the [CloudNativePG Failure Modes](https://cloudnative-pg.io/documentation/current/failure_modes/)
and [CloudNativePG Troubleshooting](https://cloudnative-pg.io/documentation/current/troubleshooting/) documentation for
diff --git a/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsCritical.md b/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsCritical.md
index 81538b5e2..2003421b9 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsCritical.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsCritical.md
@@ -1,19 +1,24 @@
-# CNPGClusterHighConnectionsCritical
+CNPGClusterHighConnectionsCritical
+==================================
-## Meaning
+Meaning
+-------
This alert is triggered when the number of connections to the CloudNativePG cluster instance exceeds 95% of its capacity.
-## Impact
+Impact
+------
At 100% capacity, the CloudNativePG cluster instance will not be able to accept new connections. This will result in a service
disruption.
-## Diagnosis
+Diagnosis
+---------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
-## Mitigation
+Mitigation
+----------
-- Increase the maximum number of connections by increasing the `max_connections` PostgreSQL parameter.
-- Use connection pooling by enabling PgBouncer to reduce the number of connections to the database.
+* Increase the maximum number of connections by increasing the `max_connections` PostgreSQL parameter.
+* Use connection pooling by enabling PgBouncer to reduce the number of connections to the database.
diff --git a/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsWarning.md b/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsWarning.md
index d5c1a0bb3..636579f75 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsWarning.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsWarning.md
@@ -1,19 +1,24 @@
-# CNPGClusterHighConnectionsWarning
+CNPGClusterHighConnectionsWarning
+=================================
-## Meaning
+Meaning
+-------
This alert is triggered when the number of connections to the CloudNativePG cluster instance exceeds 85% of its capacity.
-## Impact
+Impact
+------
At 100% capacity, the CloudNativePG cluster instance will not be able to accept new connections. This will result in a service
disruption.
-## Diagnosis
+Diagnosis
+---------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
-## Mitigation
+Mitigation
+----------
-- Increase the maximum number of connections by increasing the `max_connections` PostgreSQL parameter.
-- Use connection pooling by enabling PgBouncer to reduce the number of connections to the database.
+* Increase the maximum number of connections by increasing the `max_connections` PostgreSQL parameter.
+* Use connection pooling by enabling PgBouncer to reduce the number of connections to the database.
diff --git a/charts/cluster/docs/runbooks/CNPGClusterHighReplicationLag.md b/charts/cluster/docs/runbooks/CNPGClusterHighReplicationLag.md
index 226daf672..78963ce09 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterHighReplicationLag.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterHighReplicationLag.md
@@ -1,27 +1,31 @@
-# CNPGClusterHighReplicationLag
+CNPGClusterHighReplicationLag
+=============================
-## Meaning
+Meaning
+-------
This alert is triggered when the replication lag of the CloudNativePG cluster exceed `1s`.
-## Impact
+Impact
+------
High replication lag can cause the cluster replicas become out of sync. Queries to the `-r` and `-ro` endpoints may return stale data.
In the event of a failover, there may be data loss for the time period of the lag.
-## Diagnosis
+Diagnosis
+---------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
High replication lag can be caused by a number of factors, including:
-
-- Network issues
-- High load on the primary or replicas
-- Long running queries
-- Suboptimal PostgreSQL configuration, in particular small numbers of `max_wal_senders`.
+* Network issues
+* High load on the primary or replicas
+* Long running queries
+* Suboptimal PostgreSQL configuration, in particular small numbers of `max_wal_senders`.
```yaml
kubectl exec --namespace --stdin --tty services/-rw -- psql -c "SELECT * from pg_stat_replication;"
```
-## Mitigation
+Mitigation
+----------
diff --git a/charts/cluster/docs/runbooks/CNPGClusterInstancesOnSameNode.md b/charts/cluster/docs/runbooks/CNPGClusterInstancesOnSameNode.md
index 9a2c5e391..df309ffa9 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterInstancesOnSameNode.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterInstancesOnSameNode.md
@@ -1,14 +1,18 @@
-# CNPGClusterInstancesOnSameNode
+CNPGClusterInstancesOnSameNode
+============================
-## Meaning
+Meaning
+-------
The `CNPGClusterInstancesOnSameNode` alert is raised when two or more database pods are scheduled on the same node.
-## Impact
+Impact
+------
A failure or scheduled downtime of a single node will lead to a potential service disruption and/or data loss.
-## Diagnosis
+Diagnosis
+---------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
@@ -16,7 +20,8 @@ Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards
kubectl get pods -A -l "cnpg.io/podRole=instance" -o wide
```
-## Mitigation
+Mitigation
+----------
1. Verify you have more than a single node with no taints, preventing pods to be scheduled there.
2. Verify your [affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/) configuration.
diff --git a/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceCritical.md b/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceCritical.md
index 35e453bbd..5b7355275 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceCritical.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceCritical.md
@@ -1,23 +1,28 @@
-# CNPGClusterLowDiskSpaceCritical
+CNPGClusterLowDiskSpaceCritical
+===============================
-## Meaning
+Meaning
+-------
This alert is triggered when the disk space on the CloudNativePG cluster exceeds 90%. It can be triggered by either:
-- the PVC hosting the `PGDATA` (`storage` section)
-- the PVC hosting WAL files (`walStorage` section), where applicable
-- any PVC hosting a tablespace (`tablespaces` section)
+* the PVC hosting the `PGDATA` (`storage` section)
+* the PVC hosting WAL files (`walStorage` section), where applicable
+* any PVC hosting a tablespace (`tablespaces` section)
-## Impact
+Impact
+------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
Excessive disk space usage can lead fragmentation negatively impacting performance. Reaching 100% disk usage will result
in downtime and data loss.
-## Diagnosis
+Diagnosis
+---------
-## Mitigation
+Mitigation
+----------
If you experience issues with the WAL (Write-Ahead Logging) volume and have
set up continuous archiving, ensure that WAL archiving is functioning
diff --git a/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceWarning.md b/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceWarning.md
index 710574a8c..36e56acf1 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceWarning.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceWarning.md
@@ -1,23 +1,28 @@
-# CNPGClusterLowDiskSpaceWarning
+CNPGClusterLowDiskSpaceWarning
+==============================
-## Meaning
+Meaning
+-------
This alert is triggered when the disk space on the CloudNativePG cluster exceeds 90%. It can be triggered by either:
-- the PVC hosting the `PGDATA` (`storage` section)
-- the PVC hosting WAL files (`walStorage` section), where applicable
-- any PVC hosting a tablespace (`tablespaces` section)
+* the PVC hosting the `PGDATA` (`storage` section)
+* the PVC hosting WAL files (`walStorage` section), where applicable
+* any PVC hosting a tablespace (`tablespaces` section)
-## Impact
+Impact
+------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
Excessive disk space usage can lead fragmentation negatively impacting performance. Reaching 100% disk usage will result
in downtime and data loss.
-## Diagnosis
+Diagnosis
+---------
-## Mitigation
+Mitigation
+----------
If you experience issues with the WAL (Write-Ahead Logging) volume and have
set up continuous archiving, ensure that WAL archiving is functioning
diff --git a/charts/cluster/docs/runbooks/CNPGClusterOffline.md b/charts/cluster/docs/runbooks/CNPGClusterOffline.md
index dd1df69c0..0e69db15b 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterOffline.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterOffline.md
@@ -1,15 +1,19 @@
-# CNPGClusterOffline
+CNPGClusterOffline
+==================
-## Meaning
+Meaning
+-------
The `CNPGClusterOffline` alert is triggered when there are no ready CloudNativePG instances.
-## Impact
+Impact
+------
Having an offline cluster means your applications will not be able to access the database, leading to potential service
disruption.
-## Diagnosis
+Diagnosis
+---------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
@@ -31,7 +35,8 @@ Check the CloudNativePG operator logs:
kubectl logs --namespace cnpg-system -l "app.kubernetes.io/name=cloudnative-pg"
```
-## Mitigation
+Mitigation
+----------
Refer to the [CloudNativePG Failure Modes](https://cloudnative-pg.io/documentation/current/failure_modes/)
and [CloudNativePG Troubleshooting](https://cloudnative-pg.io/documentation/current/troubleshooting/) documentation for
diff --git a/charts/cluster/docs/runbooks/CNPGClusterZoneSpreadWarning.md b/charts/cluster/docs/runbooks/CNPGClusterZoneSpreadWarning.md
index 50d203ab7..c5bdb05da 100644
--- a/charts/cluster/docs/runbooks/CNPGClusterZoneSpreadWarning.md
+++ b/charts/cluster/docs/runbooks/CNPGClusterZoneSpreadWarning.md
@@ -1,15 +1,19 @@
-# CNPGClusterZoneSpreadWarning
+CNPGClusterZoneSpreadWarning
+============================
-## Meaning
+Meaning
+-------
The `CNPGClusterZoneSpreadWarning` alert is raised when pods are not evenly distributed across availability zones. To be
more accurate, the alert is raised when the number of `pods > zones < 3`.
-## Impact
+Impact
+------
The uneven distribution of pods across availability zones can lead to a single point of failure if a zone goes down.
-## Diagnosis
+Diagnosis
+---------
Use the [CloudNativePG Grafana Dashboard](https://grafana.com/grafana/dashboards/20417-cloudnativepg/).
@@ -25,7 +29,8 @@ Get the nodes and their respective zones:
kubectl get nodes --label-columns topology.kubernetes.io/zone
```
-## Mitigation
+Mitigation
+----------
1. Verify you have more than a single node with no taints, preventing pods to be scheduled in each availability zone.
2. Verify your [affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/) configuration.
diff --git a/charts/cluster/examples/postgis.yaml b/charts/cluster/examples/postgis.yaml
index bf540f104..6c686dc62 100644
--- a/charts/cluster/examples/postgis.yaml
+++ b/charts/cluster/examples/postgis.yaml
@@ -3,4 +3,4 @@ mode: standalone
cluster:
instances: 1
backups:
- enabled: false
+ enabled: false
\ No newline at end of file
diff --git a/charts/cluster/examples/recovery-backup.yaml b/charts/cluster/examples/recovery-backup.yaml
index b6fdbef90..d11187f5c 100644
--- a/charts/cluster/examples/recovery-backup.yaml
+++ b/charts/cluster/examples/recovery-backup.yaml
@@ -19,4 +19,4 @@ backups:
- name: daily-backup # Daily at midnight
schedule: "0 0 0 * * *" # Daily at midnight
backupOwnerReference: self
- retentionPolicy: "30d"
+ retentionPolicy: "30d"
\ No newline at end of file
diff --git a/charts/cluster/examples/recovery-pg_basebackup.yaml b/charts/cluster/examples/recovery-pg_basebackup.yaml
index 72b8ca278..ef77857a3 100644
--- a/charts/cluster/examples/recovery-pg_basebackup.yaml
+++ b/charts/cluster/examples/recovery-pg_basebackup.yaml
@@ -11,4 +11,4 @@ cluster:
instances: 1
backups:
- enabled: false
+ enabled: false
\ No newline at end of file
diff --git a/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster-assert.yaml b/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster-assert.yaml
index e48403cb0..c26a44faf 100644
--- a/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster-assert.yaml
+++ b/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster-assert.yaml
@@ -5,7 +5,7 @@ metadata:
labels:
foo: bar
annotations:
- foo: bar
+ foo: bar
spec:
imageName: ghcr.io/cloudnative-pg/crazycustomimage:99.99
imagePullPolicy: Always
@@ -50,12 +50,12 @@ spec:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- - matchExpressions:
- - key: kubernetes.io/hostname
- operator: In
- values:
- - node1
- - node2
+ - matchExpressions:
+ - key: kubernetes.io/hostname
+ operator: In
+ values:
+ - node1
+ - node2
resources:
requests:
cpu: 100m
diff --git a/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster.yaml b/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster.yaml
index a89d5e2ce..96a3d429c 100644
--- a/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster.yaml
+++ b/charts/cluster/test/postgresql-cluster-configuration/01-non_default_configuration_cluster.yaml
@@ -4,7 +4,7 @@ cluster:
imageName: ghcr.io/cloudnative-pg/crazycustomimage:99.99
imagePullPolicy: Always
imagePullSecrets:
- - name: "image-pull-secret"
+ - name: "image-pull-secret"
storage:
size: 256Mi
storageClass: standard
@@ -30,12 +30,12 @@ cluster:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- - matchExpressions:
- - key: kubernetes.io/hostname
- operator: In
- values:
- - node1
- - node2
+ - matchExpressions:
+ - key: kubernetes.io/hostname
+ operator: In
+ values:
+ - node1
+ - node2
certificates:
serverCASecret: ca-secret
serverTLSSecret: tls-secret
@@ -44,13 +44,13 @@ cluster:
enableSuperuserAccess: true
superuserSecret: supersecret-secret
roles:
- - name: dante
- ensure: present
- comment: Dante Alighieri
- login: true
- inRoles:
- - pg_monitor
- - pg_signal_backend
+ - name: dante
+ ensure: present
+ comment: Dante Alighieri
+ login: true
+ inRoles:
+ - pg_monitor
+ - pg_signal_backend
postgresql:
parameters:
max_connections: "42"
diff --git a/charts/cluster/test/postgresql-minio-backup-restore/00-minio_cleanup.yaml b/charts/cluster/test/postgresql-minio-backup-restore/00-minio_cleanup.yaml
index 19adb9ded..3c06f4159 100644
--- a/charts/cluster/test/postgresql-minio-backup-restore/00-minio_cleanup.yaml
+++ b/charts/cluster/test/postgresql-minio-backup-restore/00-minio_cleanup.yaml
@@ -7,10 +7,10 @@ spec:
spec:
restartPolicy: OnFailure
containers:
- - name: minio-cleanup
- image: minio/mc
- command: ["sh", "-c"]
- args:
- - |
- mc alias set myminio https://minio.minio.svc.cluster.local minio minio123
- mc rm --recursive --force myminio/mybucket
+ - name: minio-cleanup
+ image: minio/mc
+ command: ['sh', '-c']
+ args:
+ - |
+ mc alias set myminio https://minio.minio.svc.cluster.local minio minio123
+ mc rm --recursive --force myminio/mybucket
diff --git a/charts/cluster/test/postgresql-minio-backup-restore/02-data_write.yaml b/charts/cluster/test/postgresql-minio-backup-restore/02-data_write.yaml
index 706bd98b8..8e231df66 100644
--- a/charts/cluster/test/postgresql-minio-backup-restore/02-data_write.yaml
+++ b/charts/cluster/test/postgresql-minio-backup-restore/02-data_write.yaml
@@ -7,17 +7,17 @@ spec:
spec:
restartPolicy: OnFailure
containers:
- - name: data-write
- env:
- - name: DB_URI
- valueFrom:
- secretKeyRef:
- name: standalone-cluster-superuser
- key: uri
- image: alpine:3.19
- command: ["sh", "-c"]
- args:
- - |
- apk --no-cache add postgresql-client kubectl
- DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
- psql "$DB_URI" -c "CREATE TABLE mygoodtable (id serial PRIMARY KEY);"
+ - name: data-write
+ env:
+ - name: DB_URI
+ valueFrom:
+ secretKeyRef:
+ name: standalone-cluster-superuser
+ key: uri
+ image: alpine:3.19
+ command: ['sh', '-c']
+ args:
+ - |
+ apk --no-cache add postgresql-client kubectl
+ DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
+ psql "$DB_URI" -c "CREATE TABLE mygoodtable (id serial PRIMARY KEY);"
diff --git a/charts/cluster/test/postgresql-minio-backup-restore/03-checkpoint.yaml b/charts/cluster/test/postgresql-minio-backup-restore/03-checkpoint.yaml
index 730012612..52862bf07 100644
--- a/charts/cluster/test/postgresql-minio-backup-restore/03-checkpoint.yaml
+++ b/charts/cluster/test/postgresql-minio-backup-restore/03-checkpoint.yaml
@@ -7,21 +7,21 @@ spec:
spec:
restartPolicy: OnFailure
containers:
- - name: create-checkpoint
- env:
- - name: DB_URI
- valueFrom:
- secretKeyRef:
- name: standalone-cluster-superuser
- key: uri
- image: alpine:3.19
- command: ["sh", "-c"]
- args:
- - |
- apk --no-cache add postgresql-client
- DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
- END_TIME=$(( $(date +%s) + 30 ))
- while [ $(date +%s) -lt $END_TIME ]; do
- psql "$DB_URI" -c "SELECT pg_switch_wal();CHECKPOINT;"
- sleep 5
- done
+ - name: create-checkpoint
+ env:
+ - name: DB_URI
+ valueFrom:
+ secretKeyRef:
+ name: standalone-cluster-superuser
+ key: uri
+ image: alpine:3.19
+ command: ['sh', '-c']
+ args:
+ - |
+ apk --no-cache add postgresql-client
+ DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
+ END_TIME=$(( $(date +%s) + 30 ))
+ while [ $(date +%s) -lt $END_TIME ]; do
+ psql "$DB_URI" -c "SELECT pg_switch_wal();CHECKPOINT;"
+ sleep 5
+ done
diff --git a/charts/cluster/test/postgresql-minio-backup-restore/04-post_backup_data_write.yaml b/charts/cluster/test/postgresql-minio-backup-restore/04-post_backup_data_write.yaml
index a10f903cf..0571dbdd6 100644
--- a/charts/cluster/test/postgresql-minio-backup-restore/04-post_backup_data_write.yaml
+++ b/charts/cluster/test/postgresql-minio-backup-restore/04-post_backup_data_write.yaml
@@ -8,17 +8,17 @@ kind: Role
metadata:
name: configmap-creator
rules:
- - apiGroups: [""]
- resources: ["configmaps"]
- verbs: ["create"]
+- apiGroups: [""]
+ resources: ["configmaps"]
+ verbs: ["create"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: configmap-creator-binding
subjects:
- - kind: ServiceAccount
- name: configmap-creator-sa
+- kind: ServiceAccount
+ name: configmap-creator-sa
roleRef:
kind: Role
name: configmap-creator
@@ -34,24 +34,24 @@ spec:
serviceAccountName: configmap-creator-sa
restartPolicy: OnFailure
containers:
- - name: data-write
- env:
- - name: DB_URI
- valueFrom:
- secretKeyRef:
- name: standalone-cluster-superuser
- key: uri
- - name: NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: alpine:3.19
- command: ["sh", "-c"]
- args:
- - |
- apk --no-cache add postgresql-client kubectl
- DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
- DATE_NO_BAD_TABLE=$(date --rfc-3339=ns)
- sleep 30
- psql "$DB_URI" -c "CREATE TABLE mybadtable (id serial PRIMARY KEY);"
- kubectl create configmap date-no-bad-table --from-literal=date="$DATE_NO_BAD_TABLE"
+ - name: data-write
+ env:
+ - name: DB_URI
+ valueFrom:
+ secretKeyRef:
+ name: standalone-cluster-superuser
+ key: uri
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ image: alpine:3.19
+ command: ['sh', '-c']
+ args:
+ - |
+ apk --no-cache add postgresql-client kubectl
+ DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
+ DATE_NO_BAD_TABLE=$(date --rfc-3339=ns)
+ sleep 30
+ psql "$DB_URI" -c "CREATE TABLE mybadtable (id serial PRIMARY KEY);"
+ kubectl create configmap date-no-bad-table --from-literal=date="$DATE_NO_BAD_TABLE"
diff --git a/charts/cluster/test/postgresql-minio-backup-restore/06-data_test.yaml b/charts/cluster/test/postgresql-minio-backup-restore/06-data_test.yaml
index c408223f4..86a15439b 100644
--- a/charts/cluster/test/postgresql-minio-backup-restore/06-data_test.yaml
+++ b/charts/cluster/test/postgresql-minio-backup-restore/06-data_test.yaml
@@ -7,17 +7,17 @@ spec:
spec:
restartPolicy: OnFailure
containers:
- - name: data-test
- env:
- - name: DB_URI
- valueFrom:
- secretKeyRef:
- name: recovery-backup-cluster-superuser
- key: uri
- image: alpine:3.19
- command: ["sh", "-c"]
- args:
- - |
- apk --no-cache add postgresql-client
- DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
- test "$(psql $DB_URI -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mygoodtable$$)' --csv -q 2>/dev/null)" = "t"
+ - name: data-test
+ env:
+ - name: DB_URI
+ valueFrom:
+ secretKeyRef:
+ name: recovery-backup-cluster-superuser
+ key: uri
+ image: alpine:3.19
+ command: ['sh', '-c']
+ args:
+ - |
+ apk --no-cache add postgresql-client
+ DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
+ test "$(psql $DB_URI -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mygoodtable$$)' --csv -q 2>/dev/null)" = "t"
diff --git a/charts/cluster/test/postgresql-minio-backup-restore/08-data_test.yaml b/charts/cluster/test/postgresql-minio-backup-restore/08-data_test.yaml
index 078a1853c..94ac2c34e 100644
--- a/charts/cluster/test/postgresql-minio-backup-restore/08-data_test.yaml
+++ b/charts/cluster/test/postgresql-minio-backup-restore/08-data_test.yaml
@@ -7,17 +7,17 @@ spec:
spec:
restartPolicy: OnFailure
containers:
- - name: data-test
- env:
- - name: DB_URI
- valueFrom:
- secretKeyRef:
- name: recovery-object-store-cluster-superuser
- key: uri
- image: alpine:3.19
- command: ["sh", "-c"]
- args:
- - |
- apk --no-cache add postgresql-client
- DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
- test "$(psql $DB_URI -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mygoodtable$$)' --csv -q 2>/dev/null)" = "t"
+ - name: data-test
+ env:
+ - name: DB_URI
+ valueFrom:
+ secretKeyRef:
+ name: recovery-object-store-cluster-superuser
+ key: uri
+ image: alpine:3.19
+ command: ['sh', '-c']
+ args:
+ - |
+ apk --no-cache add postgresql-client
+ DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
+ test "$(psql $DB_URI -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mygoodtable$$)' --csv -q 2>/dev/null)" = "t"
diff --git a/charts/cluster/test/postgresql-minio-backup-restore/10-data_test.yaml b/charts/cluster/test/postgresql-minio-backup-restore/10-data_test.yaml
index a3be63ba7..5fb4faf39 100644
--- a/charts/cluster/test/postgresql-minio-backup-restore/10-data_test.yaml
+++ b/charts/cluster/test/postgresql-minio-backup-restore/10-data_test.yaml
@@ -7,21 +7,21 @@ spec:
spec:
restartPolicy: OnFailure
containers:
- - name: data-test
- env:
- - name: DB_URI
- valueFrom:
- secretKeyRef:
- name: recovery-backup-pitr-cluster-superuser
- key: uri
- image: alpine:3.19
- command: ["sh", "-c"]
- args:
- - |
- apk --no-cache add postgresql-client
- DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
- set -e
- test "$(psql $DB_URI -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mygoodtable$$)' --csv -q 2>/dev/null)" = "t"
- echo "Good table exists"
- test "$(psql $DB_URI -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mybadtable$$)' --csv -q 2>/dev/null)" = "f"
- echo "Bad table does not exist"
+ - name: data-test
+ env:
+ - name: DB_URI
+ valueFrom:
+ secretKeyRef:
+ name: recovery-backup-pitr-cluster-superuser
+ key: uri
+ image: alpine:3.19
+ command: ['sh', '-c']
+ args:
+ - |
+ apk --no-cache add postgresql-client
+ DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
+ set -e
+ test "$(psql $DB_URI -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mygoodtable$$)' --csv -q 2>/dev/null)" = "t"
+ echo "Good table exists"
+ test "$(psql $DB_URI -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mybadtable$$)' --csv -q 2>/dev/null)" = "f"
+ echo "Bad table does not exist"
diff --git a/charts/cluster/test/postgresql-pg_basebackup/00-source-cluster.yaml b/charts/cluster/test/postgresql-pg_basebackup/00-source-cluster.yaml
index 62e79453b..3d041f0f3 100644
--- a/charts/cluster/test/postgresql-pg_basebackup/00-source-cluster.yaml
+++ b/charts/cluster/test/postgresql-pg_basebackup/00-source-cluster.yaml
@@ -2,4 +2,4 @@ mode: "standalone"
cluster:
instances: 1
backups:
- enabled: false
+ enabled: false
\ No newline at end of file
diff --git a/charts/cluster/test/postgresql-pg_basebackup/01-data_write.yaml b/charts/cluster/test/postgresql-pg_basebackup/01-data_write.yaml
index dd18baeb0..fc5f0c8c9 100644
--- a/charts/cluster/test/postgresql-pg_basebackup/01-data_write.yaml
+++ b/charts/cluster/test/postgresql-pg_basebackup/01-data_write.yaml
@@ -7,24 +7,24 @@ spec:
spec:
restartPolicy: OnFailure
containers:
- - name: data-write
- env:
- - name: DB_USER
- valueFrom:
- secretKeyRef:
- name: source-cluster-superuser
- key: username
- - name: DB_PASS
- valueFrom:
- secretKeyRef:
- name: source-cluster-superuser
- key: password
- - name: DB_URI
- value: postgres://$(DB_USER):$(DB_PASS)@source-cluster-rw:5432
- image: alpine:3.19
- command: ["sh", "-c"]
- args:
- - |
- apk --no-cache add postgresql-client kubectl
- psql "$DB_URI" -c "CREATE DATABASE mygooddb;"
- psql "$DB_URI/mygooddb" -c "CREATE TABLE mygoodtable (id serial PRIMARY KEY);"
+ - name: data-write
+ env:
+ - name: DB_USER
+ valueFrom:
+ secretKeyRef:
+ name: source-cluster-superuser
+ key: username
+ - name: DB_PASS
+ valueFrom:
+ secretKeyRef:
+ name: source-cluster-superuser
+ key: password
+ - name: DB_URI
+ value: postgres://$(DB_USER):$(DB_PASS)@source-cluster-rw:5432
+ image: alpine:3.19
+ command: ['sh', '-c']
+ args:
+ - |
+ apk --no-cache add postgresql-client kubectl
+ psql "$DB_URI" -c "CREATE DATABASE mygooddb;"
+ psql "$DB_URI/mygooddb" -c "CREATE TABLE mygoodtable (id serial PRIMARY KEY);"
diff --git a/charts/cluster/test/postgresql-pg_basebackup/02-pg_basebackup-cluster.yaml b/charts/cluster/test/postgresql-pg_basebackup/02-pg_basebackup-cluster.yaml
index 15f452214..615ad3c80 100644
--- a/charts/cluster/test/postgresql-pg_basebackup/02-pg_basebackup-cluster.yaml
+++ b/charts/cluster/test/postgresql-pg_basebackup/02-pg_basebackup-cluster.yaml
@@ -18,4 +18,4 @@ cluster:
instances: 2
backups:
- enabled: false
+ enabled: false
\ No newline at end of file
diff --git a/charts/cluster/test/postgresql-pg_basebackup/03-data_test.yaml b/charts/cluster/test/postgresql-pg_basebackup/03-data_test.yaml
index 1a3810da5..40eb9029a 100644
--- a/charts/cluster/test/postgresql-pg_basebackup/03-data_test.yaml
+++ b/charts/cluster/test/postgresql-pg_basebackup/03-data_test.yaml
@@ -7,17 +7,17 @@ spec:
spec:
restartPolicy: OnFailure
containers:
- - name: data-test
- env:
- - name: DB_URI
- valueFrom:
- secretKeyRef:
- name: pg-basebackup-cluster-superuser
- key: uri
- image: alpine:3.19
- command: ["sh", "-c"]
- args:
- - |
- apk --no-cache add postgresql-client
- DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
- test "$(psql "${DB_URI}mygooddb" -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mygoodtable$$)' --csv -q 2>/dev/null)" = "t"
+ - name: data-test
+ env:
+ - name: DB_URI
+ valueFrom:
+ secretKeyRef:
+ name: pg-basebackup-cluster-superuser
+ key: uri
+ image: alpine:3.19
+ command: ['sh', '-c']
+ args:
+ - |
+ apk --no-cache add postgresql-client
+ DB_URI=$(echo $DB_URI | sed "s|/\*|/|" )
+ test "$(psql "${DB_URI}mygooddb" -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mygoodtable$$)' --csv -q 2>/dev/null)" = "t"
diff --git a/charts/cluster/values.schema.json b/charts/cluster/values.schema.json
index ead5f3a0c..38ca30a04 100644
--- a/charts/cluster/values.schema.json
+++ b/charts/cluster/values.schema.json
@@ -1,569 +1,569 @@
{
- "$schema": "http://json-schema.org/schema#",
- "type": "object",
- "properties": {
- "backups": {
- "type": "object",
- "properties": {
- "azure": {
- "type": "object",
- "properties": {
- "connectionString": {
- "type": "string"
- },
- "containerName": {
- "type": "string"
- },
- "inheritFromAzureAD": {
- "type": "boolean"
- },
- "path": {
- "type": "string"
- },
- "serviceName": {
- "type": "string"
- },
- "storageAccount": {
- "type": "string"
- },
- "storageKey": {
- "type": "string"
- },
- "storageSasToken": {
- "type": "string"
- }
- }
- },
- "data": {
- "type": "object",
- "properties": {
- "compression": {
- "type": "string"
- },
- "encryption": {
- "type": "string"
- },
- "jobs": {
- "type": "integer"
- }
- }
- },
- "destinationPath": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- },
- "endpointCA": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
- },
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
- }
- }
- },
- "endpointURL": {
- "type": "string"
- },
- "google": {
- "type": "object",
- "properties": {
- "applicationCredentials": {
- "type": "string"
- },
- "bucket": {
- "type": "string"
- },
- "gkeEnvironment": {
- "type": "boolean"
- },
- "path": {
- "type": "string"
- }
- }
- },
- "provider": {
- "type": "string"
- },
- "retentionPolicy": {
- "type": "string"
- },
- "s3": {
- "type": "object",
- "properties": {
- "accessKey": {
- "type": "string"
- },
- "bucket": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "region": {
- "type": "string"
- },
- "secretKey": {
- "type": "string"
- }
- }
- },
- "scheduledBackups": {
- "type": "array",
- "items": {
+ "$schema": "http://json-schema.org/schema#",
+ "type": "object",
+ "properties": {
+ "backups": {
"type": "object",
"properties": {
- "backupOwnerReference": {
- "type": "string"
- },
- "method": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "schedule": {
- "type": "string"
- }
- }
- }
- },
- "secret": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- }
- }
- },
- "wal": {
- "type": "object",
- "properties": {
- "compression": {
- "type": "string"
- },
- "encryption": {
- "type": "string"
- },
- "maxParallel": {
- "type": "integer"
- }
- }
- }
- }
- },
- "cluster": {
- "type": "object",
- "properties": {
- "additionalLabels": {
- "type": "object"
- },
- "affinity": {
- "type": "object",
- "properties": {
- "topologyKey": {
- "type": "string"
- }
- }
- },
- "annotations": {
- "type": "object"
- },
- "certificates": {
- "type": "object"
- },
- "enableSuperuserAccess": {
- "type": "boolean"
- },
- "imageName": {
- "type": "string"
- },
- "imagePullPolicy": {
- "type": "string"
- },
- "imagePullSecrets": {
- "type": "array"
- },
- "initdb": {
- "type": "object"
- },
- "instances": {
- "type": "integer"
- },
- "logLevel": {
- "type": "string"
- },
- "monitoring": {
- "type": "object",
- "properties": {
- "customQueries": {
- "type": "array"
- },
- "enabled": {
- "type": "boolean"
- },
- "podMonitor": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "prometheusRule": {
- "type": "object",
- "properties": {
+ "azure": {
+ "type": "object",
+ "properties": {
+ "connectionString": {
+ "type": "string"
+ },
+ "containerName": {
+ "type": "string"
+ },
+ "inheritFromAzureAD": {
+ "type": "boolean"
+ },
+ "path": {
+ "type": "string"
+ },
+ "serviceName": {
+ "type": "string"
+ },
+ "storageAccount": {
+ "type": "string"
+ },
+ "storageKey": {
+ "type": "string"
+ },
+ "storageSasToken": {
+ "type": "string"
+ }
+ }
+ },
+ "data": {
+ "type": "object",
+ "properties": {
+ "compression": {
+ "type": "string"
+ },
+ "encryption": {
+ "type": "string"
+ },
+ "jobs": {
+ "type": "integer"
+ }
+ }
+ },
+ "destinationPath": {
+ "type": "string"
+ },
"enabled": {
- "type": "boolean"
+ "type": "boolean"
+ },
+ "endpointCA": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ },
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ }
+ },
+ "endpointURL": {
+ "type": "string"
+ },
+ "google": {
+ "type": "object",
+ "properties": {
+ "applicationCredentials": {
+ "type": "string"
+ },
+ "bucket": {
+ "type": "string"
+ },
+ "gkeEnvironment": {
+ "type": "boolean"
+ },
+ "path": {
+ "type": "string"
+ }
+ }
+ },
+ "provider": {
+ "type": "string"
},
- "excludeRules": {
- "type": "array"
+ "retentionPolicy": {
+ "type": "string"
+ },
+ "s3": {
+ "type": "object",
+ "properties": {
+ "accessKey": {
+ "type": "string"
+ },
+ "bucket": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "secretKey": {
+ "type": "string"
+ }
+ }
+ },
+ "scheduledBackups": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "backupOwnerReference": {
+ "type": "string"
+ },
+ "method": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "schedule": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "secret": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ },
+ "wal": {
+ "type": "object",
+ "properties": {
+ "compression": {
+ "type": "string"
+ },
+ "encryption": {
+ "type": "string"
+ },
+ "maxParallel": {
+ "type": "integer"
+ }
+ }
}
- }
- }
- }
- },
- "postgresGID": {
- "type": "integer"
- },
- "postgresUID": {
- "type": "integer"
- },
- "postgresql": {
- "type": "object",
- "properties": {
- "parameters": {
- "type": "object"
- },
- "pg_hba": {
- "type": "array"
}
- }
- },
- "primaryUpdateMethod": {
- "type": "string"
- },
- "primaryUpdateStrategy": {
- "type": "string"
},
- "priorityClassName": {
- "type": "string"
- },
- "resources": {
- "type": "object"
- },
- "roles": {
- "type": "array"
- },
- "storage": {
- "type": "object",
- "properties": {
- "size": {
- "type": "string"
- },
- "storageClass": {
- "type": "string"
+ "cluster": {
+ "type": "object",
+ "properties": {
+ "additionalLabels": {
+ "type": "object"
+ },
+ "affinity": {
+ "type": "object",
+ "properties": {
+ "topologyKey": {
+ "type": "string"
+ }
+ }
+ },
+ "annotations": {
+ "type": "object"
+ },
+ "certificates": {
+ "type": "object"
+ },
+ "enableSuperuserAccess": {
+ "type": "boolean"
+ },
+ "imageName": {
+ "type": "string"
+ },
+ "imagePullPolicy": {
+ "type": "string"
+ },
+ "imagePullSecrets": {
+ "type": "array"
+ },
+ "initdb": {
+ "type": "object"
+ },
+ "instances": {
+ "type": "integer"
+ },
+ "logLevel": {
+ "type": "string"
+ },
+ "monitoring": {
+ "type": "object",
+ "properties": {
+ "customQueries": {
+ "type": "array"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "podMonitor": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ }
+ },
+ "prometheusRule": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "excludeRules": {
+ "type": "array"
+ }
+ }
+ }
+ }
+ },
+ "postgresGID": {
+ "type": "integer"
+ },
+ "postgresUID": {
+ "type": "integer"
+ },
+ "postgresql": {
+ "type": "object",
+ "properties": {
+ "parameters": {
+ "type": "object"
+ },
+ "pg_hba": {
+ "type": "array"
+ }
+ }
+ },
+ "primaryUpdateMethod": {
+ "type": "string"
+ },
+ "primaryUpdateStrategy": {
+ "type": "string"
+ },
+ "priorityClassName": {
+ "type": "string"
+ },
+ "resources": {
+ "type": "object"
+ },
+ "roles": {
+ "type": "array"
+ },
+ "storage": {
+ "type": "object",
+ "properties": {
+ "size": {
+ "type": "string"
+ },
+ "storageClass": {
+ "type": "string"
+ }
+ }
+ },
+ "superuserSecret": {
+ "type": "string"
+ },
+ "walStorage": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "size": {
+ "type": "string"
+ },
+ "storageClass": {
+ "type": "string"
+ }
+ }
+ }
}
- }
},
- "superuserSecret": {
- "type": "string"
+ "fullnameOverride": {
+ "type": "string"
},
- "walStorage": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "size": {
- "type": "string"
- },
- "storageClass": {
- "type": "string"
- }
- }
- }
- }
- },
- "fullnameOverride": {
- "type": "string"
- },
- "mode": {
- "type": "string"
- },
- "nameOverride": {
- "type": "string"
- },
- "pooler": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
+ "mode": {
+ "type": "string"
},
- "instances": {
- "type": "integer"
+ "nameOverride": {
+ "type": "string"
},
- "monitoring": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- },
- "podMonitor": {
- "type": "object",
- "properties": {
+ "pooler": {
+ "type": "object",
+ "properties": {
"enabled": {
- "type": "boolean"
+ "type": "boolean"
+ },
+ "instances": {
+ "type": "integer"
+ },
+ "monitoring": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "podMonitor": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "parameters": {
+ "type": "object",
+ "properties": {
+ "default_pool_size": {
+ "type": "string"
+ },
+ "max_client_conn": {
+ "type": "string"
+ }
+ }
+ },
+ "poolMode": {
+ "type": "string"
+ },
+ "template": {
+ "type": "object"
+ },
+ "type": {
+ "type": "string"
}
- }
- }
- }
- },
- "parameters": {
- "type": "object",
- "properties": {
- "default_pool_size": {
- "type": "string"
- },
- "max_client_conn": {
- "type": "string"
- }
- }
- },
- "poolMode": {
- "type": "string"
- },
- "template": {
- "type": "object"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "recovery": {
- "type": "object",
- "properties": {
- "azure": {
- "type": "object",
- "properties": {
- "connectionString": {
- "type": "string"
- },
- "containerName": {
- "type": "string"
- },
- "inheritFromAzureAD": {
- "type": "boolean"
- },
- "path": {
- "type": "string"
- },
- "serviceName": {
- "type": "string"
- },
- "storageAccount": {
- "type": "string"
- },
- "storageKey": {
- "type": "string"
- },
- "storageSasToken": {
- "type": "string"
- }
- }
- },
- "backupName": {
- "type": "string"
- },
- "clusterName": {
- "type": "string"
- },
- "destinationPath": {
- "type": "string"
- },
- "endpointCA": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
- },
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
}
- }
},
- "endpointURL": {
- "type": "string"
- },
- "google": {
- "type": "object",
- "properties": {
- "applicationCredentials": {
- "type": "string"
- },
- "bucket": {
- "type": "string"
- },
- "gkeEnvironment": {
- "type": "boolean"
- },
- "path": {
- "type": "string"
- }
- }
- },
- "method": {
- "type": "string"
- },
- "pgBaseBackup": {
- "type": "object",
- "properties": {
- "database": {
- "type": "string"
- },
- "owner": {
- "type": "string"
- },
- "secret": {
- "type": "string"
- },
- "source": {
- "type": "object",
- "properties": {
- "database": {
- "type": "string"
- },
- "host": {
- "type": "string"
- },
- "passwordSecret": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
- },
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
+ "recovery": {
+ "type": "object",
+ "properties": {
+ "azure": {
+ "type": "object",
+ "properties": {
+ "connectionString": {
+ "type": "string"
+ },
+ "containerName": {
+ "type": "string"
+ },
+ "inheritFromAzureAD": {
+ "type": "boolean"
+ },
+ "path": {
+ "type": "string"
+ },
+ "serviceName": {
+ "type": "string"
+ },
+ "storageAccount": {
+ "type": "string"
+ },
+ "storageKey": {
+ "type": "string"
+ },
+ "storageSasToken": {
+ "type": "string"
+ }
+ }
+ },
+ "backupName": {
+ "type": "string"
+ },
+ "clusterName": {
+ "type": "string"
+ },
+ "destinationPath": {
+ "type": "string"
+ },
+ "endpointCA": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ },
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
}
- }
- },
- "port": {
- "type": "integer"
- },
- "sslCertSecret": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ },
+ "endpointURL": {
+ "type": "string"
+ },
+ "google": {
+ "type": "object",
+ "properties": {
+ "applicationCredentials": {
+ "type": "string"
+ },
+ "bucket": {
+ "type": "string"
+ },
+ "gkeEnvironment": {
+ "type": "boolean"
+ },
+ "path": {
+ "type": "string"
+ }
}
- }
- },
- "sslKeySecret": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ },
+ "method": {
+ "type": "string"
+ },
+ "pgBaseBackup": {
+ "type": "object",
+ "properties": {
+ "database": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "secret": {
+ "type": "string"
+ },
+ "source": {
+ "type": "object",
+ "properties": {
+ "database": {
+ "type": "string"
+ },
+ "host": {
+ "type": "string"
+ },
+ "passwordSecret": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ },
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ }
+ },
+ "port": {
+ "type": "integer"
+ },
+ "sslCertSecret": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ },
+ "sslKeySecret": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ },
+ "sslMode": {
+ "type": "string"
+ },
+ "sslRootCertSecret": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ },
+ "username": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "pitrTarget": {
+ "type": "object",
+ "properties": {
+ "time": {
+ "type": "string"
+ }
}
- }
- },
- "sslMode": {
- "type": "string"
- },
- "sslRootCertSecret": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ },
+ "provider": {
+ "type": "string"
+ },
+ "s3": {
+ "type": "object",
+ "properties": {
+ "accessKey": {
+ "type": "string"
+ },
+ "bucket": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "secretKey": {
+ "type": "string"
+ }
}
- }
},
- "username": {
- "type": "string"
+ "secret": {
+ "type": "object",
+ "properties": {
+ "create": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
}
- }
}
- }
- },
- "pitrTarget": {
- "type": "object",
- "properties": {
- "time": {
- "type": "string"
- }
- }
- },
- "provider": {
- "type": "string"
},
- "s3": {
- "type": "object",
- "properties": {
- "accessKey": {
- "type": "string"
- },
- "bucket": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "region": {
- "type": "string"
- },
- "secretKey": {
- "type": "string"
- }
- }
- },
- "secret": {
- "type": "object",
- "properties": {
- "create": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- }
- }
+ "type": {
+ "type": "string"
}
- }
- },
- "type": {
- "type": "string"
}
- }
}
diff --git a/charts/cluster/values.yaml b/charts/cluster/values.yaml
index 20b584dae..d8bb3b22d 100644
--- a/charts/cluster/values.yaml
+++ b/charts/cluster/values.yaml
@@ -32,7 +32,7 @@ recovery:
##
# -- Backup Recovery Method
- backupName: "" # Name of the backup to recover from. Required if method is `backup`.
+ backupName: "" # Name of the backup to recover from. Required if method is `backup`.
##
# -- The original cluster name when used in backups. Also known as serverName.
@@ -114,13 +114,14 @@ recovery:
name: ""
key: ""
+
cluster:
# -- Number of instances
instances: 3
# -- Name of the container image, supporting both tags (:) and digests for deterministic and repeatable deployments:
# :@sha256:
- imageName: "" # Default value depends on type (postgresql/postgis/timescaledb)
+ imageName: "" # Default value depends on type (postgresql/postgis/timescaledb)
# -- Image pull policy. One of Always, Never or IfNotPresent. If not defined, it defaults to IfNotPresent. Cannot be updated.
# More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
@@ -149,8 +150,7 @@ cluster:
# Please refer to https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ for more information.
# We strongly advise you use the same setting for limits and requests so that your cluster pods are given a Guaranteed QoS.
# See: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/
- resources:
- {}
+ resources: {}
# limits:
# cpu: 2000m
# memory: 8Gi
@@ -190,8 +190,7 @@ cluster:
# -- This feature enables declarative management of existing roles, as well as the creation of new roles if they are not
# already present in the database.
# See: https://cloudnative-pg.io/documentation/current/declarative_role_management/
- roles:
- []
+ roles: []
# - name: dante
# ensure: present
# comment: Dante Alighieri
@@ -211,8 +210,7 @@ cluster:
# -- Whether to enable the PrometheusRule automated alerts
enabled: true
# -- Exclude specified rules
- excludeRules:
- []
+ excludeRules: []
# - CNPGClusterZoneSpreadWarning
# -- Custom Prometheus metrics
customQueries: []
@@ -228,19 +226,16 @@ cluster:
postgresql:
# -- PostgreSQL configuration options (postgresql.conf)
- parameters:
- {}
+ parameters: {}
# max_connections: 300
# -- PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file)
- pg_hba:
- []
+ pg_hba: []
# - host all all 10.244.0.0/16 md5
# -- BootstrapInitDB is the configuration of the bootstrap process when initdb is used.
# See: https://cloudnative-pg.io/documentation/current/bootstrap/
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb
- initdb:
- {}
+ initdb: {}
# database: app
# owner: "" # Defaults to the database name
# secret:
@@ -255,13 +250,14 @@ cluster:
additionalLabels: {}
annotations: {}
+
backups:
# -- You need to configure backups manually, so backups are disabled by default.
enabled: false
# -- Overrides the provider specific default endpoint. Defaults to:
# S3: https://s3..amazonaws.com"
- endpointURL: "" # Leave empty if using the default S3 endpoint
+ endpointURL: "" # Leave empty if using the default S3 endpoint
# -- Specifies a CA bundle to validate a privately signed certificate.
endpointCA:
# -- Creates a secret with the given value if true, otherwise uses an existing secret.
@@ -319,7 +315,8 @@ backups:
jobs: 2
scheduledBackups:
- - # -- Scheduled backup name
+ -
+ # -- Scheduled backup name
name: daily-backup
# -- Schedule in cron format
schedule: "0 0 0 * * *"
@@ -331,6 +328,7 @@ backups:
# -- Retention policy for backups
retentionPolicy: "30d"
+
pooler:
# -- Whether to enable PgBouncer
enabled: false
@@ -349,7 +347,7 @@ pooler:
# -- Whether to enable monitoring
enabled: false
podMonitor:
- # -- Whether to enable the PodMonitor
+ # -- Whether to enable the PodMonitor
enabled: true
# -- Custom PgBouncer deployment template.