Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cloudnative-pg): update helm-release ( 0.20.2 → 0.21.0 ) #2878

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

tyriis-automation[bot]
Copy link
Contributor

This PR contains the following updates:

Package Update Change OpenSSF
cloudnative-pg (source) minor 0.20.2 -> 0.21.0 OpenSSF Scorecard

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

cloudnative-pg/charts (cloudnative-pg)

v0.21.0

Compare Source

CloudNativePG Operator Helm Chart

What's Changed

New Contributors

Full Changelog: cloudnative-pg/charts@cluster-v0.0.8...cloudnative-pg-v0.21.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@tyriis-automation tyriis-automation bot added renovate/flux renovate flux manager renovate/helm renovate helm datasource type/minor a minor update labels Apr 25, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@tyriis-automation
Copy link
Contributor Author

--- kubernetes/talos-flux/apps/database/cloudnative-pg/app Kustomization: flux-system/apps-cloudnative-pg HelmRelease: database/cloudnative-pg

+++ kubernetes/talos-flux/apps/database/cloudnative-pg/app Kustomization: flux-system/apps-cloudnative-pg HelmRelease: database/cloudnative-pg

@@ -12,13 +12,13 @@

     spec:
       chart: cloudnative-pg
       sourceRef:
         kind: HelmRepository
         name: cloudnative-pg-charts
         namespace: flux-system
-      version: 0.20.2
+      version: 0.21.0
   install:
     createNamespace: true
     remediation:
       retries: 3
   interval: 15m
   maxHistory: 15

@tyriis-automation
Copy link
Contributor Author

--- HelmRelease: database/cloudnative-pg ConfigMap: database/cnpg-grafana-dashboard

+++ HelmRelease: database/cloudnative-pg ConfigMap: database/cnpg-grafana-dashboard

@@ -6,12 +6,97 @@

   namespace: database
   labels:
     grafana_dashboard: '1'
 data:
   cnp.json: |-
     {
+      "__inputs": [
+        {
+          "name": "DS_PROMETHEUS",
+          "label": "Prometheus",
+          "description": "",
+          "type": "datasource",
+          "pluginId": "prometheus",
+          "pluginName": "Prometheus"
+        },
+        {
+          "name": "DS_EXPRESSION",
+          "label": "Expression",
+          "description": "",
+          "type": "datasource",
+          "pluginId": "__expr__"
+        }
+      ],
+      "__elements": {},
+      "__requires": [
+        {
+          "type": "datasource",
+          "id": "__expr__",
+          "version": "1.0.0"
+        },
+        {
+          "type": "panel",
+          "id": "alertlist",
+          "name": "Alert list",
+          "version": ""
+        },
+        {
+          "type": "panel",
+          "id": "bargauge",
+          "name": "Bar gauge",
+          "version": ""
+        },
+        {
+          "type": "panel",
+          "id": "gauge",
+          "name": "Gauge",
+          "version": ""
+        },
+        {
+          "type": "grafana",
+          "id": "grafana",
+          "name": "Grafana",
+          "version": "10.3.3"
+        },
+        {
+          "type": "panel",
+          "id": "heatmap",
+          "name": "Heatmap",
+          "version": ""
+        },
+        {
+          "type": "datasource",
+          "id": "prometheus",
+          "name": "Prometheus",
+          "version": "1.0.0"
+        },
+        {
+          "type": "panel",
+          "id": "stat",
+          "name": "Stat",
+          "version": ""
+        },
+        {
+          "type": "panel",
+          "id": "table",
+          "name": "Table",
+          "version": ""
+        },
+        {
+          "type": "panel",
+          "id": "text",
+          "name": "Text",
+          "version": ""
+        },
+        {
+          "type": "panel",
+          "id": "timeseries",
+          "name": "Time series",
+          "version": ""
+        }
+      ],
       "annotations": {
         "list": [
           {
             "builtIn": 1,
             "datasource": {
               "type": "datasource",
@@ -31,12 +116,13 @@

           }
         ]
       },
       "editable": true,
       "fiscalYearStartMonth": 0,
       "graphTooltip": 1,
+      "id": null,
       "links": [
         {
           "asDropdown": false,
           "icon": "external link",
           "includeVars": false,
           "keepTime": false,
@@ -50,51 +136,25 @@

           "url": ""
         }
       ],
       "liveNow": false,
       "panels": [
         {
-          "collapsed": true,
-          "gridPos": {
-            "h": 1,
-            "w": 24,
-            "x": 0,
-            "y": 0
-          },
-          "id": 563,
-          "panels": [],
-          "title": "Row title",
-          "type": "row"
-        },
-        {
-          "collapsed": false,
-          "gridPos": {
-            "h": 1,
-            "w": 24,
-            "x": 0,
-            "y": 1
-          },
-          "id": 562,
-          "panels": [],
-          "title": "Summary",
-          "type": "row"
-        },
-        {
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "gridPos": {
             "h": 7,
             "w": 3,
             "x": 0,
-            "y": 2
-          },
-          "id": 334,
+            "y": 0
+          },
+          "id": 676,
           "options": {
-            "alertInstanceLabelFilter": "{namespace=~\"$namespace\",pod=~\"$cluster-[0-9]+$\"}",
+            "alertInstanceLabelFilter": "{namespace=~\"$namespace\",pod=~\"$instances\"}",
             "alertName": "",
             "dashboardAlerts": false,
             "folder": "",
             "groupBy": [],
             "groupMode": "default",
             "maxItems": 20,
@@ -115,85 +175,476 @@

           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "gridPos": {
             "h": 1,
-            "w": 15,
+            "w": 4,
             "x": 3,
-            "y": 2
+            "y": 0
+          },
+          "id": 586,
+          "options": {
+            "code": {
+              "language": "plaintext",
+              "showLineNumbers": false,
+              "showMiniMap": false
+            },
+            "content": "",
+            "mode": "markdown"
+          },
+          "pluginVersion": "10.3.3",
+          "title": "Health",
+          "type": "text"
+        },
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "${DS_PROMETHEUS}"
+          },
+          "gridPos": {
+            "h": 1,
+            "w": 12,
+            "x": 7,
+            "y": 0
           },
           "id": 336,
           "options": {
             "code": {
               "language": "plaintext",
               "showLineNumbers": false,
               "showMiniMap": false
             },
             "content": "",
             "mode": "markdown"
           },
-          "pluginVersion": "10.2.2",
+          "pluginVersion": "10.3.3",
           "title": "Overview",
           "type": "text"
         },
         {
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "gridPos": {
             "h": 1,
-            "w": 3,
-            "x": 18,
-            "y": 2
+            "w": 2,
+            "x": 19,
+            "y": 0
           },
           "id": 352,
           "options": {
             "code": {
               "language": "plaintext",
               "showLineNumbers": false,
               "showMiniMap": false
             },
             "content": "",
             "mode": "markdown"
           },
-          "pluginVersion": "10.2.2",
+          "pluginVersion": "10.3.3",
           "title": "Storage",
           "type": "text"
         },
         {
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
           "gridPos": {
             "h": 1,
             "w": 3,
             "x": 21,
-            "y": 2
+            "y": 0
           },
           "id": 354,
           "options": {
             "code": {
               "language": "plaintext",
               "showLineNumbers": false,
               "showMiniMap": false
             },
             "content": "",
             "mode": "markdown"
           },
-          "pluginVersion": "10.2.2",
+          "pluginVersion": "10.3.3",
           "title": "Backups",
           "type": "text"
         },
         {
           "datasource": {
             "type": "prometheus",
             "uid": "${DS_PROMETHEUS}"
           },
+          "description": "Cluster Replication Health represents the availability of replica servers available to replace the primary in case of a failure.",
+          "fieldConfig": {
+            "defaults": {
+              "color": {
+                "mode": "thresholds"
+              },
+              "mappings": [
+                {
+                  "options": {
+                    "0": {
+                      "color": "red",
+                      "index": 2,
+                      "text": "None"
+                    },
+                    "1": {
+                      "color": "orange",
+                      "index": 1,
+                      "text": "Degraded"
+                    }
+                  },
+                  "type": "value"
+                },
+                {
+                  "options": {
+                    "from": 2,
+                    "result": {
+                      "color": "green",
+                      "index": 0,
+                      "text": "Healthy"
+                    },
+                    "to": 999
+                  },
+                  "type": "range"
+                }
+              ],
+              "thresholds": {
+                "mode": "absolute",
+                "steps": [
+                  {
+                    "color": "green",
+                    "value": null
+                  }
+                ]
+              },
+              "unitScale": true
+            },
+            "overrides": []
+          },
+          "gridPos": {
+            "h": 2,
+            "w": 2,
+            "x": 3,
+            "y": 1
+          },
+          "id": 585,
+          "options": {
+            "colorMode": "background",
+            "graphMode": "none",
+            "justifyMode": "auto",
+            "orientation": "auto",
+            "reduceOptions": {
+              "calcs": [
+                "lastNotNull"
+              ],
+              "fields": "",
+              "values": false
+            },
+            "showPercentChange": false,
+            "textMode": "auto",
+            "wideLayout": true
+          },
+          "pluginVersion": "10.3.3",
+          "targets": [
+            {
+              "datasource": {
+                "type": "prometheus",
+                "uid": "${DS_PROMETHEUS}"
+              },
+              "editorMode": "code",
+              "expr": "max(cnpg_pg_replication_streaming_replicas{namespace=~\"$namespace\", pod=~\"$instances\"} - cnpg_pg_replication_is_wal_receiver_up{namespace=~\"$namespace\", pod=~\"$instances\"})",
+              "legendFormat": "Replication",
+              "range": true,
+              "refId": "A"
+            }
+          ],
+          "type": "stat"
+        },
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "${DS_PROMETHEUS}"
+          },
+          "description": "High lag indicates issue with replication. Network or storage interfaces may not have enough bandwidth to handle incoming traffic and replication at the same time.",
+          "fieldConfig": {
+            "defaults": {
+              "color": {
+                "mode": "thresholds"
+              },
+              "mappings": [
+                {
+                  "options": {
+                    "match": "null",
+                    "result": {
[Diff truncated by flux-local]
--- HelmRelease: database/cloudnative-pg ConfigMap: database/cnpg-default-monitoring

+++ HelmRelease: database/cloudnative-pg ConfigMap: database/cnpg-default-monitoring

@@ -202,12 +202,13 @@

             description: "Last failed WAL LSN"
         - stats_reset_time:
             usage: "GAUGE"
             description: "Time at which these statistics were last reset"
 
     pg_stat_bgwriter:
+      runonserver: "<17.0.0"
       query: |
         SELECT checkpoints_timed
           , checkpoints_req
           , checkpoint_write_time
           , checkpoint_sync_time
           , buffers_checkpoint
--- HelmRelease: database/cloudnative-pg ClusterRole: database/cloudnative-pg

+++ HelmRelease: database/cloudnative-pg ClusterRole: database/cloudnative-pg

@@ -233,12 +233,20 @@

   - get
   - patch
   - update
 - apiGroups:
   - postgresql.cnpg.io
   resources:
+  - clusterimagecatalogs
+  verbs:
+  - get
+  - list
+  - watch
+- apiGroups:
+  - postgresql.cnpg.io
+  resources:
   - clusters
   verbs:
   - create
   - delete
   - get
   - list
@@ -260,12 +268,20 @@

   - patch
   - update
   - watch
 - apiGroups:
   - postgresql.cnpg.io
   resources:
+  - imagecatalogs
+  verbs:
+  - get
+  - list
+  - watch
+- apiGroups:
+  - postgresql.cnpg.io
+  resources:
   - poolers
   verbs:
   - create
   - delete
   - get
   - list
--- HelmRelease: database/cloudnative-pg Deployment: database/cloudnative-pg

+++ HelmRelease: database/cloudnative-pg Deployment: database/cloudnative-pg

@@ -26,20 +26,20 @@

         - --config-map-name=cnpg-controller-manager-config
         - --webhook-port=9443
         command:
         - /manager
         env:
         - name: OPERATOR_IMAGE_NAME
-          value: ghcr.io/cloudnative-pg/cloudnative-pg:1.22.2
+          value: ghcr.io/cloudnative-pg/cloudnative-pg:1.23.0
         - name: OPERATOR_NAMESPACE
           valueFrom:
             fieldRef:
               fieldPath: metadata.namespace
         - name: MONITORING_QUERIES_CONFIGMAP
           value: cnpg-default-monitoring
-        image: ghcr.io/cloudnative-pg/cloudnative-pg:1.22.2
+        image: ghcr.io/cloudnative-pg/cloudnative-pg:1.23.0
         imagePullPolicy: IfNotPresent
         livenessProbe:
           httpGet:
             path: /readyz
             port: 9443
             scheme: HTTPS

@tyriis-automation
Copy link
Contributor Author

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 1 0 0.01s
✅ REPOSITORY gitleaks yes no 2.18s
✅ YAML prettier 1 0 0.51s
✅ YAML yamllint 1 0 0.31s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@tyriis-automation tyriis-automation bot merged commit 9363129 into main Apr 25, 2024
15 checks passed
@tyriis-automation tyriis-automation bot deleted the renovate/cloudnative-pg-0.x branch April 25, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes cluster/talos-flux renovate/flux renovate flux manager renovate/helm renovate helm datasource type/minor a minor update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants