Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add percona/percona-postgresql-operator #151

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,10 @@ Files: crd-catalog/percona/everest-operator/*
Copyright: The percona/everest-operator Authors
License: Apache-2.0

Files: crd-catalog/percona/percona-postgresql-operator/*
Copyright: The percona/percona-postgresql-operator Authors
License: Apache-2.0

Files: crd-catalog/percona/percona-server-mongodb-operator/*
Copyright: The percona/percona-server-mongodb-operator Authors
License: Apache-2.0
Expand Down
7 changes: 7 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2090,6 +2090,13 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/percona/everest-operator/blob/main/config/crd/bases/everest.percona.com_monitoringconfigs.yaml",
],
},
UpstreamSource {
project_name: "percona/percona-postgresql-operator",
license: APACHE_V2,
urls: &[
"https://github.com/percona/percona-postgresql-operator/blob/main/config/crd/bases/pgv2.percona.com_perconapgclusters.yaml",
],
},
UpstreamSource {
project_name: "percona/percona-server-mongodb-operator",
license: APACHE_V2,
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
apiVersion: "apiextensions.k8s.io/v1"
kind: "CustomResourceDefinition"
metadata:
annotations:
controller-gen.kubebuilder.io/version: "v0.10.0"
name: "perconapgrestores.pgv2.percona.com"
spec:
group: "pgv2.percona.com"
names:
kind: "PerconaPGRestore"
listKind: "PerconaPGRestoreList"
plural: "perconapgrestores"
shortNames:
- "pg-restore"
singular: "perconapgrestore"
scope: "Namespaced"
versions:
- additionalPrinterColumns:
- description: "Cluster name"
jsonPath: ".spec.pgCluster"
name: "Cluster"
type: "string"
- description: "Job status"
jsonPath: ".status.state"
name: "Status"
type: "string"
- description: "Completed time"
jsonPath: ".status.completed"
name: "Completed"
type: "date"
- jsonPath: ".metadata.creationTimestamp"
name: "Age"
type: "date"
name: "v2"
schema:
openAPIV3Schema:
description: "PerconaPGRestore is the CRD that defines a Percona PostgreSQL Restore"
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 restore command. https://pgbackrest.org/command.html#command-restore"
items:
type: "string"
type: "array"
pgCluster:
description: "The name of the PerconaPGCluster to perform restore."
type: "string"
repoName:
description: "The name of the pgBackRest repo within the source PostgresCluster that contains the backups that should be utilized to perform a pgBackRest restore when initializing the data source for the new PostgresCluster."
pattern: "^repo[1-4]"
type: "string"
required:
- "pgCluster"
- "repoName"
type: "object"
status:
properties:
completed:
format: "date-time"
type: "string"
jobName:
type: "string"
state:
type: "string"
type: "object"
required:
- "metadata"
- "spec"
type: "object"
served: true
storage: true
subresources:
status: {}
1 change: 1 addition & 0 deletions kube-custom-resources-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ operator_shipwright_io = []
operator_tigera_io = []
operator_victoriametrics_com = []
org_eclipse_che = []
pgv2_percona_com = []
pkg_crossplane_io = []
platform_openshift_io = []
policy_clusterpedia_io = []
Expand Down
9 changes: 9 additions & 0 deletions kube-custom-resources-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1894,6 +1894,13 @@ apiVersion `org.eclipse.che/v1`:
apiVersion `org.eclipse.che/v2`:
- `CheCluster`

## pgv2_percona_com

apiVersion `pgv2.percona.com/v2`:
- `PerconaPGBackup`
- `PerconaPGCluster`
- `PerconaPGRestore`

## pkg_crossplane_io

apiVersion `pkg.crossplane.io/v1`:
Expand Down Expand Up @@ -2912,6 +2919,8 @@ pub mod operator_tigera_io;
pub mod operator_victoriametrics_com;
#[cfg(feature = "org_eclipse_che")]
pub mod org_eclipse_che;
#[cfg(feature = "pgv2_percona_com")]
pub mod pgv2_percona_com;
#[cfg(feature = "pkg_crossplane_io")]
pub mod pkg_crossplane_io;
#[cfg(feature = "platform_openshift_io")]
Expand Down
1 change: 1 addition & 0 deletions kube-custom-resources-rs/src/pgv2_percona_com/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod v2;
3 changes: 3 additions & 0 deletions kube-custom-resources-rs/src/pgv2_percona_com/v2/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod perconapgbackups;
pub mod perconapgclusters;
pub mod perconapgrestores;
Loading