Skip to content

Commit

Permalink
Update CRDs
Browse files Browse the repository at this point in the history
AKamyshnikova committed Oct 14, 2024
1 parent 6da7eb1 commit 9b758e5
Showing 10 changed files with 5,030 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

101 changes: 101 additions & 0 deletions charts/casskop/crds/db.orange.com_cassandrabackups.yaml
Original file line number Diff line number Diff line change
@@ -106,3 +106,104 @@ spec:
type: object
served: true
storage: false
- name: v2
schema:
openAPIV3Schema:
description: CassandraBackup is the Schema for the cassandrabackups API
type: object
required:
- spec
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:
type: object
required:
- cassandraCluster
- snapshotTag
- storageLocation
properties:
bandwidth:
description: Specify the bandwidth to not exceed when uploading files to the cloud. Format supported is \d+[KMG] case insensitive. You can use values like 10M (meaning 10MB), 1024, 1024K, 2G, etc...
type: string
cassandraCluster:
description: Name of the CassandraCluster to backup
type: string
concurrentConnections:
description: Maximum number of threads used to download files from the cloud. Defaults to 10
type: integer
format: int32
datacenter:
description: Cassandra DC name to back up, used to find the cassandra nodes in the CassandraCluster
type: string
duration:
description: Specify a duration the backup should try to last. See https://golang.org/pkg/time/#ParseDuration for an exhaustive list of the supported units. You can use values like .25h, 15m, 900s all meaning 15 minutes
type: string
entities:
description: Database entities to backup, it might be either only keyspaces or only tables prefixed by their respective keyspace, e.g. 'k1,k2' if one wants to backup whole keyspaces or 'ks1.t1,ks2.t2' if one wants to restore specific tables. These formats are mutually exclusive so 'k1,k2.t2' is invalid. An empty field will backup all keyspaces
type: string
schedule:
description: Specify a schedule to assigned to the backup. The schedule doesn't enforce anything so if you schedule multiple backups around the same time they would conflict. See https://godoc.org/github.com/robfig/cron for more information regarding the supported formats
type: string
secret:
description: Name of Secret to use when accessing cloud storage providers
type: string
snapshotTag:
description: name of snapshot to make so this snapshot will be uploaded to storage location. If not specified, the name of snapshot will be automatically generated and it will have name 'autosnap-milliseconds-since-epoch'
type: string
storageLocation:
description: URI for the backup target location e.g. s3 bucket, filepath
type: string
status:
type: object
properties:
condition:
description: BackRestCondition describes the observed state of a Restore at a certain point
type: object
required:
- type
properties:
failureCause:
type: array
items:
type: object
properties:
message:
description: message explaining the error
type: string
source:
description: hostame of a node where this error has occurred
type: string
lastTransitionTime:
type: string
type:
type: string
coordinatorMember:
description: Name of the pod the restore operation is executed on
type: string
id:
description: unique identifier of an operation, a random id is assigned to each operation after a request is submitted, from caller's perspective, an id is sent back as a response to his request so he can further query state of that operation, referencing id, by operations/{id} endpoint
type: string
progress:
description: Progress is a percentage, 100% means the operation is completed, either successfully or with errors
type: string
timeCompleted:
type: string
timeCreated:
type: string
timeStarted:
type: string
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
1,469 changes: 1,469 additions & 0 deletions charts/casskop/crds/db.orange.com_cassandraclusters.yaml

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions charts/casskop/crds/db.orange.com_cassandrarestores.yaml
Original file line number Diff line number Diff line change
@@ -111,3 +111,109 @@ spec:
type: object
served: true
storage: false
- name: v2
schema:
openAPIV3Schema:
description: CassandraRestore is a Casskop Operator resource that represents the restoration of a backup of a Cassandra cluster
type: object
required:
- metadata
- spec
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:
description: CassandraRestoreSpec defines the specification for a restore of a Cassandra backup.
type: object
required:
- cassandraBackup
- cassandraCluster
properties:
cassandraBackup:
description: Name of the CassandraBackup to restore
type: string
cassandraCluster:
description: Name of the CassandraCluster the restore belongs to
type: string
cassandraDirectory:
description: Directory of Cassandra where data folder resides. Defaults to /var/lib/cassandra
type: string
concurrentConnection:
description: Maximum number of threads used to download files from the cloud. Defaults to 10
type: integer
format: int32
datacenter:
description: Cassandra DC name to restore, used to find the cassandra nodes in the CassandraCluster
type: string
entities:
description: Database entities to restore, it might be either only keyspaces or only tables prefixed by their respective keyspace, e.g. 'k1,k2' if one wants to backup whole keyspaces or 'ks1.t1,ks2.t2' if one wants to restore specific tables. These formats are mutually exclusive so 'k1,k2.t2' is invalid. An empty field will restore all keyspaces
type: string
exactSchemaVersion:
description: When set a running node's schema version must match the snapshot's schema version. There might be cases when we want to restore a table for which its CQL schema has not changed but it has changed for other table / keyspace but a schema for that node has changed by doing that. Defaults to False
type: boolean
noDeleteTruncates:
description: When set do not delete truncated SSTables after they've been restored during CLEANUP phase. Defaults to false
type: boolean
rename:
type: object
additionalProperties:
type: string
schemaVersion:
description: Version of the schema to restore from. Upon backup, a schema version is automatically appended to a snapshot name and its manifest is uploaded under that name. In case we have two snapshots having same name, we might distinguish between the two of them by using the schema version. If schema version is not specified, we expect a unique backup taken with respective snapshot name. This schema version has to match the version of a Cassandra node we are doing restore for (hence, by proxy, when global request mode is used, all nodes have to be on exact same schema version). Defaults to False
type: string
secret:
description: Name of Secret to use when accessing cloud storage providers
type: string
status:
type: object
properties:
condition:
description: BackRestCondition describes the observed state of a Restore at a certain point
type: object
required:
- type
properties:
failureCause:
type: array
items:
type: object
properties:
message:
description: message explaining the error
type: string
source:
description: hostame of a node where this error has occurred
type: string
lastTransitionTime:
type: string
type:
type: string
coordinatorMember:
description: Name of the pod the restore operation is executed on
type: string
id:
description: unique identifier of an operation, a random id is assigned to each operation after a request is submitted, from caller's perspective, an id is sent back as a response to his request so he can further query state of that operation, referencing id, by operations/{id} endpoint
type: string
progress:
description: Progress is a percentage, 100% means the operation is completed, either successfully or with errors
type: string
timeCompleted:
type: string
timeCreated:
type: string
timeStarted:
type: string
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
101 changes: 101 additions & 0 deletions charts/multi-casskop/crds/db.orange.com_cassandrabackups.yaml
Original file line number Diff line number Diff line change
@@ -106,3 +106,104 @@ spec:
type: object
served: true
storage: false
- name: v2
schema:
openAPIV3Schema:
description: CassandraBackup is the Schema for the cassandrabackups API
type: object
required:
- spec
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:
type: object
required:
- cassandraCluster
- snapshotTag
- storageLocation
properties:
bandwidth:
description: Specify the bandwidth to not exceed when uploading files to the cloud. Format supported is \d+[KMG] case insensitive. You can use values like 10M (meaning 10MB), 1024, 1024K, 2G, etc...
type: string
cassandraCluster:
description: Name of the CassandraCluster to backup
type: string
concurrentConnections:
description: Maximum number of threads used to download files from the cloud. Defaults to 10
type: integer
format: int32
datacenter:
description: Cassandra DC name to back up, used to find the cassandra nodes in the CassandraCluster
type: string
duration:
description: Specify a duration the backup should try to last. See https://golang.org/pkg/time/#ParseDuration for an exhaustive list of the supported units. You can use values like .25h, 15m, 900s all meaning 15 minutes
type: string
entities:
description: Database entities to backup, it might be either only keyspaces or only tables prefixed by their respective keyspace, e.g. 'k1,k2' if one wants to backup whole keyspaces or 'ks1.t1,ks2.t2' if one wants to restore specific tables. These formats are mutually exclusive so 'k1,k2.t2' is invalid. An empty field will backup all keyspaces
type: string
schedule:
description: Specify a schedule to assigned to the backup. The schedule doesn't enforce anything so if you schedule multiple backups around the same time they would conflict. See https://godoc.org/github.com/robfig/cron for more information regarding the supported formats
type: string
secret:
description: Name of Secret to use when accessing cloud storage providers
type: string
snapshotTag:
description: name of snapshot to make so this snapshot will be uploaded to storage location. If not specified, the name of snapshot will be automatically generated and it will have name 'autosnap-milliseconds-since-epoch'
type: string
storageLocation:
description: URI for the backup target location e.g. s3 bucket, filepath
type: string
status:
type: object
properties:
condition:
description: BackRestCondition describes the observed state of a Restore at a certain point
type: object
required:
- type
properties:
failureCause:
type: array
items:
type: object
properties:
message:
description: message explaining the error
type: string
source:
description: hostame of a node where this error has occurred
type: string
lastTransitionTime:
type: string
type:
type: string
coordinatorMember:
description: Name of the pod the restore operation is executed on
type: string
id:
description: unique identifier of an operation, a random id is assigned to each operation after a request is submitted, from caller's perspective, an id is sent back as a response to his request so he can further query state of that operation, referencing id, by operations/{id} endpoint
type: string
progress:
description: Progress is a percentage, 100% means the operation is completed, either successfully or with errors
type: string
timeCompleted:
type: string
timeCreated:
type: string
timeStarted:
type: string
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
1,469 changes: 1,469 additions & 0 deletions charts/multi-casskop/crds/db.orange.com_cassandraclusters.yaml

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions charts/multi-casskop/crds/db.orange.com_cassandrarestores.yaml
Original file line number Diff line number Diff line change
@@ -111,3 +111,109 @@ spec:
type: object
served: true
storage: false
- name: v2
schema:
openAPIV3Schema:
description: CassandraRestore is a Casskop Operator resource that represents the restoration of a backup of a Cassandra cluster
type: object
required:
- metadata
- spec
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:
description: CassandraRestoreSpec defines the specification for a restore of a Cassandra backup.
type: object
required:
- cassandraBackup
- cassandraCluster
properties:
cassandraBackup:
description: Name of the CassandraBackup to restore
type: string
cassandraCluster:
description: Name of the CassandraCluster the restore belongs to
type: string
cassandraDirectory:
description: Directory of Cassandra where data folder resides. Defaults to /var/lib/cassandra
type: string
concurrentConnection:
description: Maximum number of threads used to download files from the cloud. Defaults to 10
type: integer
format: int32
datacenter:
description: Cassandra DC name to restore, used to find the cassandra nodes in the CassandraCluster
type: string
entities:
description: Database entities to restore, it might be either only keyspaces or only tables prefixed by their respective keyspace, e.g. 'k1,k2' if one wants to backup whole keyspaces or 'ks1.t1,ks2.t2' if one wants to restore specific tables. These formats are mutually exclusive so 'k1,k2.t2' is invalid. An empty field will restore all keyspaces
type: string
exactSchemaVersion:
description: When set a running node's schema version must match the snapshot's schema version. There might be cases when we want to restore a table for which its CQL schema has not changed but it has changed for other table / keyspace but a schema for that node has changed by doing that. Defaults to False
type: boolean
noDeleteTruncates:
description: When set do not delete truncated SSTables after they've been restored during CLEANUP phase. Defaults to false
type: boolean
rename:
type: object
additionalProperties:
type: string
schemaVersion:
description: Version of the schema to restore from. Upon backup, a schema version is automatically appended to a snapshot name and its manifest is uploaded under that name. In case we have two snapshots having same name, we might distinguish between the two of them by using the schema version. If schema version is not specified, we expect a unique backup taken with respective snapshot name. This schema version has to match the version of a Cassandra node we are doing restore for (hence, by proxy, when global request mode is used, all nodes have to be on exact same schema version). Defaults to False
type: string
secret:
description: Name of Secret to use when accessing cloud storage providers
type: string
status:
type: object
properties:
condition:
description: BackRestCondition describes the observed state of a Restore at a certain point
type: object
required:
- type
properties:
failureCause:
type: array
items:
type: object
properties:
message:
description: message explaining the error
type: string
source:
description: hostame of a node where this error has occurred
type: string
lastTransitionTime:
type: string
type:
type: string
coordinatorMember:
description: Name of the pod the restore operation is executed on
type: string
id:
description: unique identifier of an operation, a random id is assigned to each operation after a request is submitted, from caller's perspective, an id is sent back as a response to his request so he can further query state of that operation, referencing id, by operations/{id} endpoint
type: string
progress:
description: Progress is a percentage, 100% means the operation is completed, either successfully or with errors
type: string
timeCompleted:
type: string
timeCreated:
type: string
timeStarted:
type: string
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
101 changes: 101 additions & 0 deletions config/crd/bases/db.orange.com_cassandrabackups.yaml
Original file line number Diff line number Diff line change
@@ -106,3 +106,104 @@ spec:
type: object
served: true
storage: false
- name: v2
schema:
openAPIV3Schema:
description: CassandraBackup is the Schema for the cassandrabackups API
type: object
required:
- spec
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:
type: object
required:
- cassandraCluster
- snapshotTag
- storageLocation
properties:
bandwidth:
description: Specify the bandwidth to not exceed when uploading files to the cloud. Format supported is \d+[KMG] case insensitive. You can use values like 10M (meaning 10MB), 1024, 1024K, 2G, etc...
type: string
cassandraCluster:
description: Name of the CassandraCluster to backup
type: string
concurrentConnections:
description: Maximum number of threads used to download files from the cloud. Defaults to 10
type: integer
format: int32
datacenter:
description: Cassandra DC name to back up, used to find the cassandra nodes in the CassandraCluster
type: string
duration:
description: Specify a duration the backup should try to last. See https://golang.org/pkg/time/#ParseDuration for an exhaustive list of the supported units. You can use values like .25h, 15m, 900s all meaning 15 minutes
type: string
entities:
description: Database entities to backup, it might be either only keyspaces or only tables prefixed by their respective keyspace, e.g. 'k1,k2' if one wants to backup whole keyspaces or 'ks1.t1,ks2.t2' if one wants to restore specific tables. These formats are mutually exclusive so 'k1,k2.t2' is invalid. An empty field will backup all keyspaces
type: string
schedule:
description: Specify a schedule to assigned to the backup. The schedule doesn't enforce anything so if you schedule multiple backups around the same time they would conflict. See https://godoc.org/github.com/robfig/cron for more information regarding the supported formats
type: string
secret:
description: Name of Secret to use when accessing cloud storage providers
type: string
snapshotTag:
description: name of snapshot to make so this snapshot will be uploaded to storage location. If not specified, the name of snapshot will be automatically generated and it will have name 'autosnap-milliseconds-since-epoch'
type: string
storageLocation:
description: URI for the backup target location e.g. s3 bucket, filepath
type: string
status:
type: object
properties:
condition:
description: BackRestCondition describes the observed state of a Restore at a certain point
type: object
required:
- type
properties:
failureCause:
type: array
items:
type: object
properties:
message:
description: message explaining the error
type: string
source:
description: hostame of a node where this error has occurred
type: string
lastTransitionTime:
type: string
type:
type: string
coordinatorMember:
description: Name of the pod the restore operation is executed on
type: string
id:
description: unique identifier of an operation, a random id is assigned to each operation after a request is submitted, from caller's perspective, an id is sent back as a response to his request so he can further query state of that operation, referencing id, by operations/{id} endpoint
type: string
progress:
description: Progress is a percentage, 100% means the operation is completed, either successfully or with errors
type: string
timeCompleted:
type: string
timeCreated:
type: string
timeStarted:
type: string
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
1,469 changes: 1,469 additions & 0 deletions config/crd/bases/db.orange.com_cassandraclusters.yaml

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions config/crd/bases/db.orange.com_cassandrarestores.yaml
Original file line number Diff line number Diff line change
@@ -111,3 +111,109 @@ spec:
type: object
served: true
storage: false
- name: v2
schema:
openAPIV3Schema:
description: CassandraRestore is a Casskop Operator resource that represents the restoration of a backup of a Cassandra cluster
type: object
required:
- metadata
- spec
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:
description: CassandraRestoreSpec defines the specification for a restore of a Cassandra backup.
type: object
required:
- cassandraBackup
- cassandraCluster
properties:
cassandraBackup:
description: Name of the CassandraBackup to restore
type: string
cassandraCluster:
description: Name of the CassandraCluster the restore belongs to
type: string
cassandraDirectory:
description: Directory of Cassandra where data folder resides. Defaults to /var/lib/cassandra
type: string
concurrentConnection:
description: Maximum number of threads used to download files from the cloud. Defaults to 10
type: integer
format: int32
datacenter:
description: Cassandra DC name to restore, used to find the cassandra nodes in the CassandraCluster
type: string
entities:
description: Database entities to restore, it might be either only keyspaces or only tables prefixed by their respective keyspace, e.g. 'k1,k2' if one wants to backup whole keyspaces or 'ks1.t1,ks2.t2' if one wants to restore specific tables. These formats are mutually exclusive so 'k1,k2.t2' is invalid. An empty field will restore all keyspaces
type: string
exactSchemaVersion:
description: When set a running node's schema version must match the snapshot's schema version. There might be cases when we want to restore a table for which its CQL schema has not changed but it has changed for other table / keyspace but a schema for that node has changed by doing that. Defaults to False
type: boolean
noDeleteTruncates:
description: When set do not delete truncated SSTables after they've been restored during CLEANUP phase. Defaults to false
type: boolean
rename:
type: object
additionalProperties:
type: string
schemaVersion:
description: Version of the schema to restore from. Upon backup, a schema version is automatically appended to a snapshot name and its manifest is uploaded under that name. In case we have two snapshots having same name, we might distinguish between the two of them by using the schema version. If schema version is not specified, we expect a unique backup taken with respective snapshot name. This schema version has to match the version of a Cassandra node we are doing restore for (hence, by proxy, when global request mode is used, all nodes have to be on exact same schema version). Defaults to False
type: string
secret:
description: Name of Secret to use when accessing cloud storage providers
type: string
status:
type: object
properties:
condition:
description: BackRestCondition describes the observed state of a Restore at a certain point
type: object
required:
- type
properties:
failureCause:
type: array
items:
type: object
properties:
message:
description: message explaining the error
type: string
source:
description: hostame of a node where this error has occurred
type: string
lastTransitionTime:
type: string
type:
type: string
coordinatorMember:
description: Name of the pod the restore operation is executed on
type: string
id:
description: unique identifier of an operation, a random id is assigned to each operation after a request is submitted, from caller's perspective, an id is sent back as a response to his request so he can further query state of that operation, referencing id, by operations/{id} endpoint
type: string
progress:
description: Progress is a percentage, 100% means the operation is completed, either successfully or with errors
type: string
timeCompleted:
type: string
timeCreated:
type: string
timeStarted:
type: string
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []

0 comments on commit 9b758e5

Please sign in to comment.