{
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "GitOps defines the configurations of GitOps Toolkit and Git repository it links to.",
      "properties": {
        "flux": {
          "description": "Flux defines the Git repository options for Flux v2.",
          "properties": {
            "github": {
              "description": "github is the name of the Git Provider to host the Git repo.",
              "properties": {
                "branch": {
                  "default": "main",
                  "description": "Git branch. Defaults to main.",
                  "type": "string"
                },
                "clusterConfigPath": {
                  "description": "ClusterConfigPath relative to the repository root, when specified the cluster sync will be scoped to this path.",
                  "type": "string"
                },
                "fluxSystemNamespace": {
                  "description": "FluxSystemNamespace scope for this operation. Defaults to flux-system.",
                  "type": "string"
                },
                "owner": {
                  "description": "Owner is the user or organization name of the Git provider.",
                  "type": "string"
                },
                "personal": {
                  "description": "if true, the owner is assumed to be a Git user; otherwise an org.",
                  "type": "boolean"
                },
                "repository": {
                  "description": "Repository name.",
                  "type": "string"
                }
              },
              "required": [
                "owner",
                "repository"
              ],
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "GitOpsConfigStatus defines the observed state of GitOpsConfig.",
      "type": "object"
    }
  },
  "type": "object"
}
