Skip to content

Commit c24278d

Browse files
authored
Merge pull request #1497 from EnterpriseDB/release/2021-06-17
Release: 2021-06-17 Former-commit-id: ddf9139
2 parents c11457f + e8d55b4 commit c24278d

File tree

476 files changed

+2164
-897
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

476 files changed

+2164
-897
lines changed

.github/workflows/deploy-develop.yml

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ jobs:
77
build-deploy:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: Cleanup disk
11+
uses: curoky/[email protected]
12+
with:
13+
retain: 'python,node'
1014
- uses: actions/checkout@v2
1115
with:
1216
ref: develop

.github/workflows/deploy-main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ jobs:
77
build-deploy:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: Cleanup disk
11+
uses: curoky/[email protected]
12+
with:
13+
retain: 'python,node'
1014
- uses: actions/checkout@v2
1115
with:
1216
ref: main

.github/workflows/update-pdfs-on-develop.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111
build-pdfs:
1212
runs-on: ubuntu-20.04
1313
steps:
14+
- name: Cleanup disk
15+
uses: curoky/[email protected]
16+
with:
17+
retain: 'python,node'
1418
- uses: actions/checkout@v2
1519
with:
1620
ref: develop

README.md

+59-20
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
![Deploy Develop to Netlify](https://github.com/EnterpriseDB/docs/workflows/Deploy%20Develop%20to%20Netlify/badge.svg)
55
![Update PDFs on Develop](https://github.com/EnterpriseDB/docs/workflows/Update%20PDFs%20on%20Develop/badge.svg)
66

7-
This repo contains the React/Gatsby application that powers the EDB Docs website. The site pulls [Markdown](https://www.markdownguide.org/) content from several repos in a process called "sourcing", and then renders it all into high-performance markup. You can install the application on your local computer for easy editing, viewing, and eventually publishing to the GitHub repo.
7+
This repo contains the React/Gatsby application that powers [the EDB Docs website](https://www.enterprisedb.com/docs/). The site pulls [Markdown](https://www.markdownguide.org/) content from several repos in a process called "sourcing", and then renders it all into high-performance markup. You can install the application on your local computer for easy editing, viewing, and eventually publishing to the GitHub repo.
88

99
## MacOS Installation
1010

@@ -140,25 +140,24 @@ This frontmatter is an automatically generated list of redirects for Docs 1.0 to
140140

141141
If you need to setup a redirect from Docs 1.0 to Docs 2.0 manually, this is the place to do it. If the `legacyRedirectsGenerated` frontmatter does not include the redirect you need, you should add it here.
142142

143-
# Advocacy Docs (left over from previous README, needs attention)
144143

145-
Advocacy doc files are in [advocacy_docs/getting-started](https://github.com/EnterpriseDB/docs/tree/master/advocacy_docs/getting-started)
144+
# MDX Format
146145

147-
New docs need a `.mdx` suffix to be used by Gatsby.
146+
Documentation must be formatted as an [MDX file](https://www.gatsbyjs.com/docs/mdx/writing-pages/) with the `.mdx` extension. MDX is a superset of [Markdown](https://www.markdownguide.org/).
148147

149-
## frontmatter
148+
## Frontmatter
150149

151-
Each document requires a `frontmatter` section at the top with a title. This looks like this:
150+
Each document requires a [YAML](https://yaml.org) frontmatter section at the top with a title:
152151

153152
```
154153
---
155154
title: Title of page
156155
---
157156
```
158157

159-
The title can be in quotes, but they are not needed unless you want an apostrophe in there. There also needs to be a space after `title:`
158+
If the title contains [special characters](https://stackoverflow.com/questions/19109912/yaml-do-i-need-quotes-for-strings-in-yaml), it will need to be quoted. There also needs to be a space after `title:`
160159

161-
In addition to `title`, there is also the option of adding `navTitle` and `description` to look like this:
160+
In addition to `title`, frontmatter may optionally include `navTitle` and `description`:
162161

163162
```
164163
---
@@ -176,26 +175,66 @@ The `description` is used in cards as well.
176175

177176
All of these files use Markdown for styling. The options for what can be done can be seen [here](https://github.com/EnterpriseDB/docs/blob/master/advocacy_docs/playground/1/01_examples/index.mdx)
178177

179-
## Ordering of files
178+
## Admonitions (Notes, Warnings, etc.)
180179

181-
The items in the left nav are sorted alphabetically by file name. This can be done with a numerical prefix. The titles of each page are used for the names in the left nav.
180+
If you need to draw attention to information, consider using an admonition:
181+
182+
```
183+
!!! Note Optional title
184+
This is text you'd like the reader to notice.
185+
```
182186

183-
## Content submission
187+
Admonitions begin with the `!!!` signifier. Next comes a (case-insensitive) type which is one of:
184188

185-
To add content to this site, changes must be submitted as a PR. There are two options for this:
189+
* important
190+
* tip
191+
* note
192+
* caution
193+
* warning
186194

187-
Option 1: locally
195+
There are several [aliases](https://github.com/elviswolcott/remark-admonitions#usage):
196+
197+
* info => important
198+
* success => tip
199+
* secondary => note
200+
* danger => warning
201+
* seealso => note
202+
* hint => tip
203+
204+
Titles are optional. If you don't include one, the admonition will default to the type name ("Important", "Tip", etc.).
205+
206+
The body of the admonition is indented 4 spaces. It should line up with the first letter of the admonition type. Alternatively, fenced admonitions that begin and end with `!!!` lines are supported:
207+
208+
```
209+
!!! Tip
210+
Use fenced admonitions to avoid space counting.
211+
!!!
212+
```
188213

189-
1. Clone repo
190-
2. Make a new branch
191-
3. Add commits to branch and push to github
192-
4. Create a new PR on github
214+
For examples of what you can do with admonitions, see [this demo](https://github.com/EnterpriseDB/docs/blob/main/advocacy_docs/playground/1/01_examples/admonitions.mdx).
193215

194-
Option 2: on github
216+
## Ordering of files
195217

196-
1. Edit a file on github
197-
2. Submit changes as a PR on a new branch
218+
The items in the left nav are sorted alphabetically by file name. This can be done with a numerical prefix. The titles of each page are used for the names in the left nav.
198219

199220
## Search
200221

201222
Content is indexed for search when the production site builds.
223+
224+
## Contributions
225+
226+
[We love feedback!](https://www.enterprisedb.com/docs/community/contributing/)
227+
228+
To contribute content to this site submit as a pull request (PR). There are two options for this:
229+
230+
Option 1: locally
231+
232+
1. [Clone](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository) this repository.
233+
2. [Make a new branch.](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging)
234+
3. Add commits to branch and [push to GitHub](https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches).
235+
4. Create a new PR on GitHub.
236+
237+
Option 2: on GitHub
238+
239+
1. Edit a file on GitHub.
240+
2. Submit changes as a PR on a new branch.

advocacy_docs/kubernetes/cloud_native_postgresql/api_reference.mdx

+6-6
Original file line numberDiff line numberDiff line change
@@ -503,13 +503,13 @@ SecretsResourceVersion is the resource versions of the secrets managed by the op
503503

504504
Name | Description | Type
505505
------------------------ | -------------------------------------------------------------------- | ------
506-
`superuserSecretVersion ` | The resource version of the "postgres" user secret - *mandatory* | string
507-
`replicationSecretVersion` | The resource version of the "streaming_replication" user secret - *mandatory* | string
508-
`applicationSecretVersion` | The resource version of the "app" user secret - *mandatory* | string
506+
`superuserSecretVersion ` | The resource version of the "postgres" user secret | string
507+
`replicationSecretVersion` | The resource version of the "streaming_replication" user secret | string
508+
`applicationSecretVersion` | The resource version of the "app" user secret | string
509509
`caSecretVersion ` | Unused. Retained for compatibility with old versions. | string
510-
`clientCaSecretVersion ` | The resource version of the PostgreSQL client-side CA secret version - *mandatory* | string
511-
`serverCaSecretVersion ` | The resource version of the PostgreSQL server-side CA secret version - *mandatory* | string
512-
`serverSecretVersion ` | The resource version of the PostgreSQL server-side secret version - *mandatory* | string
510+
`clientCaSecretVersion ` | The resource version of the PostgreSQL client-side CA secret version | string
511+
`serverCaSecretVersion ` | The resource version of the PostgreSQL server-side CA secret version | string
512+
`serverSecretVersion ` | The resource version of the PostgreSQL server-side secret version | string
513513

514514
<a id='StorageConfiguration'></a>
515515

advocacy_docs/kubernetes/cloud_native_postgresql/installation_upgrade.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ product: 'Cloud Native Operator'
1111
The operator can be installed like any other resource in Kubernetes,
1212
through a YAML manifest applied via `kubectl`.
1313

14-
You can install the [latest operator manifest](https://get.enterprisedb.io/cnp/postgresql-operator-1.5.0.yaml)
14+
You can install the [latest operator manifest](https://get.enterprisedb.io/cnp/postgresql-operator-1.5.1.yaml)
1515
as follows:
1616

1717
```sh
1818
kubectl apply -f \
19-
https://get.enterprisedb.io/cnp/postgresql-operator-1.5.0.yaml
19+
https://get.enterprisedb.io/cnp/postgresql-operator-1.5.1.yaml
2020
```
2121

2222
Once you have run the `kubectl` command, Cloud Native PostgreSQL will be installed in your Kubernetes cluster.

advocacy_docs/kubernetes/cloud_native_postgresql/interactive_demo.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You will see one node called `minikube`. If the status isn't yet "Ready", wait f
6565
Now that the Minikube cluster is running, you can proceed with Cloud Native PostgreSQL installation as described in the ["Installation"](installation_upgrade.md) section:
6666

6767
```shell
68-
kubectl apply -f https://get.enterprisedb.io/cnp/postgresql-operator-1.5.0.yaml
68+
kubectl apply -f https://get.enterprisedb.io/cnp/postgresql-operator-1.5.1.yaml
6969
__OUTPUT__
7070
namespace/postgresql-operator-system created
7171
customresourcedefinition.apiextensions.k8s.io/backups.postgresql.k8s.enterprisedb.io created
@@ -245,7 +245,7 @@ curl -sSfL \
245245
sudo sh -s -- -b /usr/local/bin
246246
__OUTPUT__
247247
EnterpriseDB/kubectl-cnp info checking GitHub for latest tag
248-
EnterpriseDB/kubectl-cnp info found version: 1.5.0 for v1.5.0/linux/x86_64
248+
EnterpriseDB/kubectl-cnp info found version: 1.5.1 for v1.5.1/linux/x86_64
249249
EnterpriseDB/kubectl-cnp info installed /usr/local/bin/kubectl-cnp
250250
```
251251

advocacy_docs/kubernetes/cloud_native_postgresql/operator_capability_levels.mdx

+7-5
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ workload requirements, based on what the underlying Kubernetes environment
9090
can offer. This implies choosing a particular storage class in
9191
a public cloud environment or fine-tuning the generated PVC through a
9292
PVC template in the CR's `storage` parameter.
93+
The [`cnp-bench`](https://github.com/EnterpriseDB/cnp-bench) open source
94+
project can be used to benchmark both the storage and the database prior to
95+
production.
9396

9497
### Replica configuration
9598

@@ -173,17 +176,16 @@ Kubernetes API Server and the operator itself.
173176
### Cluster's certification authority
174177

175178
The operator automatically creates a certification authority for every PostgreSQL
176-
cluster, which is used to issue and renew TLS certificates for the authentication
177-
of streaming replication standby servers and applications (instead of passwords).
178-
The operator will use the Certification Authority to sign every cluster
179-
certification authority. Certificates can be issued with the `cnp` plugin
180-
for `kubectl`.
179+
cluster, which is used to issue and renew TLS certificates for clients' authentication,
180+
including streaming replication standby servers (instead of passwords).
181+
Certificates can be issued with the `cnp` plugin for `kubectl`.
181182

182183
### TLS connections
183184

184185
The operator transparently and natively supports TLS/SSL connections
185186
to encrypt client/server communications for increased security using the
186187
cluster's certification authority.
188+
Support for custom server certificates is available through secrets.
187189

188190
### Certificate authentication for streaming replication
189191

advocacy_docs/kubernetes/cloud_native_postgresql/operator_conf.mdx

+24-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@ namespace as a Kubernetes `Deployment` called `postgresql-operator-controller-ma
2121
!!! Note
2222
In the examples below we assume the default name and namespace for the operator deployment.
2323

24-
The behavior of the operator can be customized through a `ConfigMap` that
24+
The behavior of the operator can be customized through a `ConfigMap`/`Secret` that
2525
is located in the same namespace of the operator deployment and with
2626
`postgresql-operator-controller-manager-config` as the name.
2727

2828
!!! Important
29-
Any change to the config map will not be automatically detected by the operator,
29+
Any change to the config's `ConfigMap`/`Secret` will not be automatically detected by the operator,
3030
- and as such, it needs to be reloaded (see below). Moreover, changes only
3131
apply to the resources created after the configuration is reloaded.
3232

33+
!!! Important
34+
The operator first processes the ConfigMap values and then the Secret’s, in this order.
35+
As a result, if a parameter is defined in both places, the one in the Secret will be used.
36+
3337
## Available options
3438

3539
The operator looks for the following environment variables to be defined in the config map:
@@ -65,6 +69,24 @@ data:
6569
EDB_LICENSE_KEY: <YOUR_EDB_LICENSE_KEY_HERE>
6670
```
6771
72+
## Defining an operator secret
73+
74+
The example below customizes the behavior of the operator, by defining a
75+
default license key.
76+
77+
```yaml
78+
apiVersion: v1
79+
kind: Secret
80+
metadata:
81+
name: postgresql-operator-controller-manager-config
82+
namespace: postgresql-operator-system
83+
type: Opaque
84+
data:
85+
EDB_LICENSE_KEY: <YOUR_BASE64_ENCODED_EDB_LICENSE_KEY_HERE>
86+
```
87+
88+
## Restarting the operator to reload configs
89+
6890
For the change to be effective, you need to recreate the operator pods to
6991
reload the config map. If you have installed the operator on Kubernetes
7092
using the manifest you can do that by issuing:

advocacy_docs/kubernetes/cloud_native_postgresql/release_notes.mdx

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ product: 'Cloud Native Operator'
66

77
History of user-visible changes for Cloud Native PostgreSQL.
88

9+
## Version 1.5.1
10+
11+
**Release date:** 17 June 2021
12+
13+
Change:
14+
15+
- Fix a bug with CRD validation preventing auto-update with Operator Deployments on Red Hat OpenShift
16+
- Allow passing operator's configuration using a Secret.
17+
918
## Version 1.5.0
1019

1120
**Release date:** 11 June 2021

merge_sources/kubernetes/cloud_native_postgresql/interactive_demo.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You will see one node called `minikube`. If the status isn't yet "Ready", wait f
6565
Now that the Minikube cluster is running, you can proceed with Cloud Native PostgreSQL installation as described in the ["Installation"](installation_upgrade.md) section:
6666

6767
```shell
68-
kubectl apply -f https://get.enterprisedb.io/cnp/postgresql-operator-1.5.0.yaml
68+
kubectl apply -f https://get.enterprisedb.io/cnp/postgresql-operator-1.5.1.yaml
6969
__OUTPUT__
7070
namespace/postgresql-operator-system created
7171
customresourcedefinition.apiextensions.k8s.io/backups.postgresql.k8s.enterprisedb.io created
@@ -245,7 +245,7 @@ curl -sSfL \
245245
sudo sh -s -- -b /usr/local/bin
246246
__OUTPUT__
247247
EnterpriseDB/kubectl-cnp info checking GitHub for latest tag
248-
EnterpriseDB/kubectl-cnp info found version: 1.5.0 for v1.5.0/linux/x86_64
248+
EnterpriseDB/kubectl-cnp info found version: 1.5.1 for v1.5.1/linux/x86_64
249249
EnterpriseDB/kubectl-cnp info installed /usr/local/bin/kubectl-cnp
250250
```
251251

product_docs/convert.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/sh
1+
#!/bin/zsh
22

3-
for i in content/**/*.rst ; do python3 scripts/pre_pandoc_script.py ${i%}; echo \"$i\" && pandoc --wrap=none $i -f rst -t gfm --atx-headers -o ${i%.*}.mdx ; done ; python3 scripts/post_pandoc_script.py
3+
for i in content/**/*.rst ; do python3 scripts/pre_pandoc_script.py ${i%}; echo \"$i\" && pandoc --wrap=none $i -f rst -t gfm --markdown-headings=atx -o ${i%.*}.mdx ; done ; python3 scripts/post_pandoc_script.py
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
cd "${0%/*}"
4+
5+
./convert.sh
6+
7+
rsync -a --delete content_build/pem/ docs/pem/8.1.0/pem_online_help/
8+
9+
rm docs/pem/8.1.0/pem_online_help/release_notes*.mdx
10+
11+
cd ..
12+
13+
node scripts/normalize/titleRefs.js "product_docs/docs/pem/8.1.0/pem_online_help/**/*.mdx"
14+
node scripts/normalize/slashEscapedLessThan.js "product_docs/docs/pem/8.1.0/pem_online_help/**/*.mdx"
15+
node scripts/normalize/markdown.js "product_docs/docs/**/*.mdx" "product_docs/docs/pem/8.1.0/**/*.mdx"
Loading

product_docs/docs/pem/8.0/pem_sqlprofiler/01_installing_the_sql_profiler_plugin.mdx

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ Use the following steps to enable the plugin:
111111
- Select `Open trace`… to open an existing trace.
112112
- Select `Delete trace(s)`… to delete one or more traces.
113113
- Select `View scheduled trace(s)`… to review a list of scheduled traces.
114-
![Screen Shot 2021-05-06 at 4 58 23 PM](https://user-images.githubusercontent.com/5795880/117365029-b1687700-ae8c-11eb-850e-aa51c69abc54.png)
114+
115+
![Server -> SQL Profiler menu](../images/sql_profiler.png)

product_docs/docs/pem/8.1.0/pem_ent_feat/index.mdx

+21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
---
22
navTitle: Enterprise Features Guide
33
title: "PEM Enterprise Features Guide"
4+
5+
navigation:
6+
7+
- 01_what's_new
8+
- 02_pem_query_tool
9+
- 03_pem_schema_diff_tool
10+
- 04_pem_erd_tool
11+
- 05_performance_monitoring_and_management
12+
- 15_performance_diagnostic
13+
- 06_capacity_manager
14+
- 07_audit_manager
15+
- 08_log_manager
16+
- 09_sql_profiler
17+
- 10_tuning_wizard
18+
- 11_postgres_expert
19+
- 17_monitoring_BDR_nodes
20+
- 13_monitoring_failover_manager
21+
- 14_monitoring_xdb_replication_cluster
22+
- 12_reports
23+
- 16_reference
24+
425
---
526

627
This guide will acquaint you with the tools and wizards that are built into the Postgres Enterprise Manager (PEM) web interface that make it easier for you to monitor and manage your system.

0 commit comments

Comments
 (0)