{
  "description": "GitHubAppInstallationSet generates one RenovateJob per installation of a\nGitHub App, each inheriting its configuration from spec.templateRef.",
  "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"
    },
    "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"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "GitHubAppInstallationSetSpec defines the desired state of a GitHubAppInstallationSet.",
      "properties": {
        "app": {
          "description": "Secret holding the GitHub App's id and private key. The Secret must carry\nthe renovate-operator.mogenius.com/allow-ref label once the policy engine\nis enabled.",
          "properties": {
            "appIdSecretKey": {
              "minLength": 1,
              "type": "string"
            },
            "pemSecretKey": {
              "minLength": 1,
              "type": "string"
            },
            "secretName": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "appIdSecretKey",
            "pemSecretKey",
            "secretName"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "installations": {
          "description": "Narrows which installations get a RenovateJob. Every installation of\nthe App matches when unset.",
          "properties": {
            "accountTypes": {
              "description": "Account types to include. Every type matches when empty.",
              "items": {
                "enum": [
                  "User",
                  "Organization"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "exclude": {
              "description": "Account logins to exclude. Takes precedence over include.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "include": {
              "description": "Account logins to include. Every account matches when empty.",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "provider": {
          "description": "GitHub API endpoints. Defaults to https://api.github.com; set it for\nGitHub Enterprise Server. Copied to the provider of every generated\nRenovateJob.",
          "properties": {
            "endpoint": {
              "description": "GitHub API base URL. Its host must be listed in the operator's\npolicy.allowedHosts.",
              "pattern": "^https?://[^?#]+$",
              "type": "string"
            },
            "publicEndpoint": {
              "description": "Externally reachable URL used for UI links. Its host must be listed in\nthe operator's policy.allowedHosts.",
              "pattern": "^https?://[^?#]+$",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "resyncInterval": {
          "default": "10m",
          "description": "How often the installations are listed from the GitHub API.",
          "type": "string",
          "x-kubernetes-validations": [
            {
              "message": "resyncInterval must be at least 1m",
              "rule": "duration(self) >= duration('1m')"
            }
          ]
        },
        "templateRef": {
          "description": "Template every generated RenovateJob inherits its configuration from.\nThe operator sets provider and githubAppReference on each generated\nRenovateJob, so the template's values for those are overridden.",
          "properties": {
            "kind": {
              "default": "RenovateJobTemplate",
              "description": "Kind of the referenced template. Defaults to RenovateJobTemplate.",
              "enum": [
                "RenovateJobTemplate",
                "ClusterRenovateJobTemplate"
              ],
              "type": "string"
            },
            "name": {
              "description": "Name of the referenced template.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "webhook": {
          "description": "Resyncs immediately when GitHub delivers an installation or\ninstallation_repositories event to the operator's /webhook/v1/github\nendpoint.",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "secretRef": {
              "description": "Secret key holding the GitHub App's webhook secret, used to verify the\nX-Hub-Signature-256 header. The Secret must carry the\nrenovate-operator.mogenius.com/allow-ref label once the policy engine is\nenabled.",
              "properties": {
                "key": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "required": [
            "enabled"
          ],
          "type": "object",
          "x-kubernetes-validations": [
            {
              "message": "secretRef is required when the webhook is enabled",
              "rule": "!self.enabled || has(self.secretRef)"
            }
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "app",
        "templateRef"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "GitHubAppInstallationSetStatus defines the observed state of a GitHubAppInstallationSet.",
      "properties": {
        "conditions": {
          "items": {
            "description": "Condition contains details for one aspect of the current state of this API Resource.",
            "properties": {
              "lastTransitionTime": {
                "description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
                "maxLength": 32768,
                "type": "string"
              },
              "observedGeneration": {
                "description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                "format": "int64",
                "minimum": 0,
                "type": "integer"
              },
              "reason": {
                "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
                "maxLength": 1024,
                "minLength": 1,
                "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
                "type": "string"
              },
              "status": {
                "description": "status of the condition, one of True, False, Unknown.",
                "enum": [
                  "True",
                  "False",
                  "Unknown"
                ],
                "type": "string"
              },
              "type": {
                "description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
                "maxLength": 316,
                "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
                "type": "string"
              }
            },
            "required": [
              "lastTransitionTime",
              "message",
              "reason",
              "status",
              "type"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array",
          "x-kubernetes-list-map-keys": [
            "type"
          ],
          "x-kubernetes-list-type": "map"
        },
        "credentialsResourceVersion": {
          "description": "resourceVersion of the source credentials Secret last written to every\ngenerated credentials Secret.",
          "type": "string"
        },
        "installations": {
          "description": "Installations matching the filter as of the last successful sync.",
          "items": {
            "description": "GitHubAppInstallationStatus records one installation and the RenovateJob\ngenerated for it.",
            "properties": {
              "account": {
                "type": "string"
              },
              "accountType": {
                "type": "string"
              },
              "id": {
                "format": "int64",
                "type": "integer"
              },
              "renovateJob": {
                "description": "Name of the generated RenovateJob. Empty until it has been created.",
                "type": "string"
              },
              "suspended": {
                "description": "True when the installation is suspended on GitHub. Its RenovateJob is\nsuspended too, since no token can be minted for it.",
                "type": "boolean"
              }
            },
            "required": [
              "account",
              "accountType",
              "id"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array",
          "x-kubernetes-list-map-keys": [
            "id"
          ],
          "x-kubernetes-list-type": "map"
        },
        "lastSyncTime": {
          "description": "Time of the last successful listing of installations.",
          "format": "date-time",
          "type": "string"
        },
        "observedGeneration": {
          "description": "Generation of the spec the last successful sync used.",
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
