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

cloudnative-pg json schema is outdated #337

Closed
Dgotlieb opened this issue Jun 26, 2024 · 2 comments · Fixed by #361
Closed

cloudnative-pg json schema is outdated #337

Dgotlieb opened this issue Jun 26, 2024 · 2 comments · Fixed by #361

Comments

@Dgotlieb
Copy link

Schema validation breaks due to schema mismatch.
This is the official schema which doesn't use (or has a different type of) the below elements:

  "resources": [
    {
      "filename": "stdin",
      "kind": "Cluster",
      "name": "release-name-cluster",
      "version": "postgresql.cnpg.io/v1",
      "status": "statusInvalid",
      "msg": "problem validating schema. Check JSON formatting: jsonschema: '/spec/postgresql/shared_preload_libraries' does not validate with https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/postgresql.cnpg.io/cluster_v1.json#/properties/spec/properties/postgresql/properties/shared_preload_libraries/type: expected array, but got null",
      "validationErrors": [
        {
          "path": "/spec/postgresql",
          "msg": ""
        },
        {
          "path": "/spec/bootstrap/initdb/postInitApplicationSQL",
          "msg": "expected array, but got null"
        },
        {
          "path": "/spec/managed",
          "msg": "expected object, but got null"
        }
      ]
    }
  ],
@itaispiegel
Copy link

This issue is very important to us and we'd like to resolve this 🙏🏻

@eyarz
Copy link
Member

eyarz commented Jul 6, 2024

just open a PR with the updated schema and a link to this issue and we will have it merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants