{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/SecretMapping",
  "definitions": {
    "AwsSecretsManager": {
      "properties": {
        "region": {
          "type": "string"
        },
        "roleArn": {
          "type": "string"
        },
        "versionStage": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "AzureKeyVaultConfig": {
      "properties": {
        "keyVaultName": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "Defaults": {
      "properties": {
        "azureKeyVault": {
          "$ref": "#/definitions/AzureKeyVaultConfig"
        },
        "backendType": {
          "type": "string"
        },
        "gcpSecretsManager": {
          "$ref": "#/definitions/GcpSecretsManager"
        },
        "region": {
          "type": "string"
        },
        "roleArn": {
          "type": "string"
        },
        "versionStage": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "FieldsV1": {
      "additionalProperties": false,
      "type": "object"
    },
    "GcpSecretsManager": {
      "properties": {
        "projectId": {
          "type": "string"
        },
        "uniquePrefix": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ManagedFieldsEntry": {
      "properties": {
        "apiVersion": {
          "type": "string"
        },
        "fieldsType": {
          "type": "string"
        },
        "fieldsV1": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/FieldsV1"
        },
        "manager": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "time": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "Mapping": {
      "properties": {
        "isBinary": {
          "type": "boolean"
        },
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "property": {
          "type": "string"
        },
        "versionStage": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ObjectMeta": {
      "properties": {
        "annotations": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "clusterName": {
          "type": "string"
        },
        "creationTimestamp": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "deletionGracePeriodSeconds": {
          "type": "integer"
        },
        "deletionTimestamp": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "finalizers": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "generateName": {
          "type": "string"
        },
        "generation": {
          "type": "integer"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "managedFields": {
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "$ref": "#/definitions/ManagedFieldsEntry"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "namespace": {
          "type": "string"
        },
        "ownerReferences": {
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "$ref": "#/definitions/OwnerReference"
          },
          "type": "array"
        },
        "resourceVersion": {
          "type": "string"
        },
        "selfLink": {
          "type": "string"
        },
        "uid": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "OwnerReference": {
      "properties": {
        "apiVersion": {
          "type": "string"
        },
        "blockOwnerDeletion": {
          "type": "boolean"
        },
        "controller": {
          "type": "boolean"
        },
        "kind": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "uid": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "SecretMapping": {
      "properties": {
        "apiVersion": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "metadata": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/ObjectMeta"
        },
        "spec": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/SecretMappingSpec"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "SecretMappingSpec": {
      "properties": {
        "defaults": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/Defaults"
        },
        "secrets": {
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "$ref": "#/definitions/SecretRule"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "SecretRule": {
      "properties": {
        "azureKeyVault": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/AzureKeyVaultConfig"
        },
        "backendType": {
          "type": "string"
        },
        "gcpSecretsManager": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/GcpSecretsManager"
        },
        "mappings": {
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "$ref": "#/definitions/Mapping"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "namespace": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "roleArn": {
          "type": "string"
        },
        "secretsManager": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/AwsSecretsManager"
        },
        "unsecured": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "Time": {
      "additionalProperties": false,
      "type": "object"
    }
  }
}
