Skip to content

Commit

Permalink
feat: add persona pg crds (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhekazuev authored Jun 4, 2023
1 parent 651165f commit 38cb0a1
Show file tree
Hide file tree
Showing 5 changed files with 24,920 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pg.percona.com/perconapgbackup_v2beta1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"description": "PerconaPGBackup is the CRD that defines a Percona PostgreSQL Backup",
"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": {
"properties": {
"options": {
"description": "Command line options to include when running the pgBackRest backup command. https://pgbackrest.org/command.html#command-backup",
"items": {
"type": "string"
},
"type": "array"
},
"pgCluster": {
"type": "string"
},
"repoName": {
"description": "The name of the pgBackRest repo to run the backup command against.",
"pattern": "^repo[1-4]",
"type": "string"
}
},
"required": [
"pgCluster",
"repoName"
],
"type": "object",
"additionalProperties": false
},
"status": {
"properties": {
"completed": {
"format": "date-time",
"type": "string"
},
"jobName": {
"type": "string"
},
"state": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"metadata",
"spec"
],
"type": "object"
}
22 changes: 22 additions & 0 deletions pg.percona.com/perconapgcluster_v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"properties": {
"spec": {
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"status": {
"properties": {
"message": {
"type": "string"
},
"state": {
"type": "string"
}
},
"type": "object",
"x-kubernetes-preserve-unknown-fields": true,
"additionalProperties": false
}
},
"type": "object"
}
Loading

0 comments on commit 38cb0a1

Please sign in to comment.