Skip to content

fix(webhooks): clarify rejection of multiple bootstrap methods - #8025

Merged
mnencia merged 1 commit into
mainfrom
dev/8024
Jul 14, 2025
Merged

mnencia merged 1 commit into
mainfrom
dev/8024

Conversation

@mnencia

@mnencia mnencia commented Jul 14, 2025

Copy link
Copy Markdown
Member

Closes #8024

@mnencia
mnencia requested a review from jsilvela as a code owner July 14, 2025 09:09
@mnencia
mnencia requested a review from a team July 14, 2025 09:09
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 14, 2025
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.22 labels Jul 14, 2025
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@dosubot dosubot Bot added bug 🐛 Something isn't working ok to merge 👌 This PR can be merged labels Jul 14, 2025
@mnencia

mnencia commented Jul 14, 2025

Copy link
Copy Markdown
Member Author

New error message:

kubectl apply -f test.yaml 
The Cluster "test" is invalid: spec.bootstrap: Forbidden: Only one bootstrap method can be specified at a time

test.yaml

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
  name: test
spec:
  instances: 1

  bootstrap:
    initdb:
      dataChecksums: true
    pg_basebackup:
      source: source

  externalClusters:
    - name: source
      connectionParameters:
        host: primary.source
        user: replication_user      

  storage:
    size: 1Gi

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 14, 2025
@mnencia
mnencia merged commit 0117580 into main Jul 14, 2025
@mnencia
mnencia deleted the dev/8024 branch July 14, 2025 14:54
@github-project-automation github-project-automation Bot moved this from Waiting for First Review to Done in CloudNativePG operator development Jul 14, 2025
cnpg-bot pushed a commit that referenced this pull request Jul 14, 2025
Closes #8024

Signed-off-by: Marco Nenciarini <[email protected]>
(cherry picked from commit 0117580)
cnpg-bot pushed a commit that referenced this pull request Jul 14, 2025
Closes #8024

Signed-off-by: Marco Nenciarini <[email protected]>
(cherry picked from commit 0117580)
cnpg-bot pushed a commit that referenced this pull request Jul 14, 2025
Closes #8024

Signed-off-by: Marco Nenciarini <[email protected]>
(cherry picked from commit 0117580)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases bug 🐛 Something isn't working lgtm This PR has been approved by a maintainer ok to merge 👌 This PR can be merged size:XS This PR changes 0-9 lines, ignoring generated files.

Development

Successfully merging this pull request may close these issues.

[Bug]: spec.bootstrap: Invalid value: "": Too many bootstrap types specified

5 participants