-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from camilamacedo86/olm-final
OLM - final ajustments
- Loading branch information
Showing
9 changed files
with
423 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
...m-catalog/postgresql-operator/0.0.1/postgresql-operator.v0.0.1.clusterserviceversion.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
212 changes: 212 additions & 0 deletions
212
deploy/olm-catalog/postgresql-operator/0.0.1/postgresql-operator_v1alpha1_backup_crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: backups.postgresql-operator.dev4devs.com | ||
spec: | ||
group: postgresql-operator.dev4devs.com | ||
names: | ||
kind: Backup | ||
listKind: BackupList | ||
plural: backups | ||
singular: backup | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
validation: | ||
openAPIV3Schema: | ||
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/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/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
properties: | ||
awsAccessKeyId: | ||
description: 'Key ID of AWS S3 storage. Default Value: nil Required | ||
to create the Secret with the data to allow send the backup files | ||
to AWS S3 storage. +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="AWS | ||
S3 accessKey/token ID"' | ||
type: string | ||
awsS3BucketName: | ||
description: 'Name of AWS S3 storage. Default Value: nil Required to | ||
create the Secret with the AWS data to allow send the backup files | ||
to AWS S3 storage. +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="AWS | ||
S3 Bucket name"' | ||
type: string | ||
awsSecretAccessKey: | ||
description: 'Secret/Token of AWS S3 storage. Default Value: nil Required | ||
to create the Secret with the data to allow send the backup files | ||
to AWS S3 storage. +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="AWS | ||
S3 accessKey/token"' | ||
type: string | ||
awsSecretName: | ||
description: 'Name of the secret with the AWS data credentials pre-existing | ||
in the cluster Default Value: nil See here the template: https://github.com/integr8ly/backup-container-image/blob/master/templates/openshift/sample-config/s3-secret.yaml | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="AWS | ||
Secret name:"' | ||
type: string | ||
awsSecretNamespace: | ||
description: 'Namespace of the secret with the AWS data credentials | ||
pre-existing in the cluster Default Value: nil NOTE: If the namespace | ||
be not informed then the operator will try to find it in the same | ||
namespace where it is applied +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="AWS | ||
Secret namespace:"' | ||
type: string | ||
databaseVersion: | ||
description: 'Database version. (E.g 9.6). Default Value: <9.6> IMPORTANT: | ||
Just the first 2 digits should be used. +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="PostgreSQLversion"' | ||
type: string | ||
encryptKeySecretName: | ||
description: 'Name of the secret with the Encrypt data pre-existing | ||
in the cluster Default Value: nil See here the template: https://github.com/integr8ly/backup-container-image/blob/master/templates/openshift/sample-config/gpg-secret.yaml | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="EncryptKey | ||
Secret name:"' | ||
type: string | ||
encryptKeySecretNamespace: | ||
description: 'Namespace of the secret with the Encrypt data pre-existing | ||
in the cluster Default Value: nil NOTE: If the namespace be not informed | ||
then the operator will try to find it in the same namespace where | ||
it is applied +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="EncryptKey | ||
Secret namespace:"' | ||
type: string | ||
gpgEmail: | ||
description: 'GPG email to create the EncryptionKeySecret with this | ||
data Default Value: nil See here how to create this key : https://help.github.com/en/articles/generating-a-new-gpg-key | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Gpg | ||
public email:"' | ||
type: string | ||
gpgPublicKey: | ||
description: 'GPG public key to create the EncryptionKeySecret with | ||
this data Default Value: nil See here how to create this key : https://help.github.com/en/articles/generating-a-new-gpg-key | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Gpg | ||
public key:"' | ||
type: string | ||
gpgTrustModel: | ||
description: 'GPG trust model to create the EncryptionKeySecret with | ||
this data. the default value is true when it is empty. Default Value: | ||
nil See here how to create this key : https://help.github.com/en/articles/generating-a-new-gpg-key | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Gpg | ||
trust model:"' | ||
type: string | ||
image: | ||
description: 'Image:tag used to do the backup. Default Value: <quay.io/integreatly/backup-container:1.0.8> | ||
More Info: https://github.com/integr8ly/backup-container-image +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Image:tag"' | ||
type: string | ||
postgresqlCRName: | ||
description: Name of the PostgreSQL CR applied which this backup will | ||
work with | ||
type: string | ||
productName: | ||
description: 'Used to create the directory where the files will be stored | ||
Default Value: <postgresql> +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true | ||
+operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="AWS | ||
tag name"' | ||
type: string | ||
schedule: | ||
description: 'Schedule period for the CronJob. Default Value: <0 0 * | ||
* *> daily at 00:00 +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true' | ||
type: string | ||
type: object | ||
status: | ||
properties: | ||
awsCredentialsSecretNamespace: | ||
description: Namespace of the secret object with the Aws data to allow | ||
send the backup files to the AWS storage | ||
type: string | ||
awsSecretData: | ||
additionalProperties: | ||
type: string | ||
description: Data of the secret object with the Aws data to allow send | ||
the backup files to the AWS storage | ||
type: object | ||
awsSecretName: | ||
description: Name of the secret object with the Aws data to allow send | ||
the backup files to the AWS storage | ||
type: string | ||
backupStatus: | ||
description: Will be as "OK when all objects are created successfully | ||
type: string | ||
cronJobName: | ||
description: Name of the CronJob object created and managed by it to | ||
schedule the backup job | ||
type: string | ||
cronJobStatus: | ||
description: Status of the CronJob object | ||
type: object | ||
dbSecretData: | ||
additionalProperties: | ||
type: string | ||
description: Data of the secret object created with the database data | ||
to allow the backup image connect to the database | ||
type: object | ||
dbSecretName: | ||
description: Name of the secret object created with the database data | ||
to allow the backup image connect to the database | ||
type: string | ||
encryptKeySecretData: | ||
additionalProperties: | ||
type: string | ||
description: Data of the secret object with the Encryption GPG Key | ||
type: object | ||
encryptKeySecretName: | ||
description: Name of the secret object with the Encryption GPG Key | ||
type: string | ||
encryptKeySecretNamespace: | ||
description: Namespace of the secret object with the Encryption GPG | ||
Key | ||
type: string | ||
hasEncryptKey: | ||
description: Boolean value which has true when it has an EncryptionKey | ||
to be used to send the backup files | ||
type: boolean | ||
isDatabasePodFound: | ||
description: Boolean value which has true when the Database Pod was | ||
found in order to create the secret with the database data to allow | ||
the backup image connect into it. | ||
type: boolean | ||
isDatabaseServiceFound: | ||
description: Boolean value which has true when the Service Database | ||
Pod was found in order to create the secret with the database data | ||
to allow the backup image connect into it. | ||
type: boolean | ||
required: | ||
- backupStatus | ||
- cronJobName | ||
- dbSecretName | ||
- dbSecretData | ||
- awsSecretName | ||
- awsSecretData | ||
- awsCredentialsSecretNamespace | ||
- encryptKeySecretName | ||
- encryptKeySecretNamespace | ||
- encryptKeySecretData | ||
- hasEncryptKey | ||
- isDatabasePodFound | ||
- isDatabaseServiceFound | ||
- cronJobStatus | ||
type: object | ||
version: v1alpha1 | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true |
Oops, something went wrong.