{
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "properties": {
        "connectionStringSecretName": {
          "type": [
            "string",
            "null"
          ]
        },
        "db": {
          "type": "string"
        },
        "mongodbResourceRef": {
          "additionalProperties": false,
          "properties": {
            "name": {
              "type": "string"
            },
            "namespace": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "name"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "passwordSecretKeyRef": {
          "additionalProperties": false,
          "description": "SecretKeyRef is a reference to a value in a given secret in the same\nnamespace. Based on:\nhttps://kubernetes.io/docs/reference/generated/kubernetes-api/v1.15/#secretkeyselector-v1-core",
          "properties": {
            "key": {
              "type": [
                "string",
                "null"
              ]
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "roles": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "db": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "db",
              "name"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "db",
        "username"
      ],
      "type": "object"
    },
    "status": {
      "additionalProperties": false,
      "properties": {
        "db": {
          "type": "string"
        },
        "lastTransition": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "observedGeneration": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "phase": {
          "type": "string"
        },
        "project": {
          "type": "string"
        },
        "pvc": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "phase": {
                "type": "string"
              },
              "statefulsetName": {
                "type": "string"
              }
            },
            "required": [
              "phase",
              "statefulsetName"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "resourcesNotReady": {
          "items": {
            "additionalProperties": false,
            "description": "ResourceNotReady describes the dependent resource which is not ready yet",
            "properties": {
              "errors": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": "object"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "kind": {
                "description": "ResourceKind specifies a kind of a Kubernetes resource. Used in status of a Custom Resource",
                "type": "string"
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "name"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "roles": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "db": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "db",
              "name"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "username": {
          "type": "string"
        },
        "warnings": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "db",
        "phase",
        "project",
        "username"
      ],
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}