Skip to content

Commit

Permalink
Merge pull request #24 from camilamacedo86/olm-final
Browse files Browse the repository at this point in the history
OLM - final ajustments
  • Loading branch information
camilamacedo86 committed Sep 2, 2019
2 parents 1e43ec2 + 6ad1f91 commit 6c27cca
Show file tree
Hide file tree
Showing 9 changed files with 423 additions and 20 deletions.
7 changes: 2 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## [0.0.2] - 2019-08-17
- Initial development release which allows work with as standalone with code refactored and fixed (without OLM)

## [0.0.1] - 2019-08-13
- Initial development release which allows work with as standalone (without OLM)
## [0.0.1] - 2019-09-02
- Initial development release which allows work with as standalone and has OLM files.

Large diffs are not rendered by default.

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
Loading

0 comments on commit 6c27cca

Please sign in to comment.