-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(REST, CVC): add a support for rest service in CVC Operator (#83)
Add support for handling Create, Get and Delete operations on CStorBackup and CStorRestore APIS Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
- Loading branch information
sai chaithanya
authored
Jun 9, 2020
1 parent
e910338
commit 0177387
Showing
90 changed files
with
59,326 additions
and
45 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
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
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,9 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
CVC_API_SERVER_NETWORK="eth0" | ||
|
||
CONTAINER_IP_ADDR=$(ip -4 addr show scope global dev "${CVC_API_SERVER_NETWORK}" | grep inet | awk '{print $2}' | cut -d / -f 1) | ||
|
||
exec /usr/local/bin/cvc-operator --bind="${CONTAINER_IP_ADDR}" 1>&2 |
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,92 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: cstorbackups.openebs.io | ||
spec: | ||
group: openebs.io | ||
version: v1alpha1 | ||
scope: Namespaced | ||
names: | ||
plural: cstorbackups | ||
singular: cstorbackup | ||
kind: CStorBackup | ||
shortNames: | ||
- cbkp | ||
- cbkps | ||
- cbackups | ||
- cbackup | ||
additionalPrinterColumns: | ||
- JSONPath: .spec.volumeName | ||
name: volume | ||
description: volume on which backup performed | ||
type: string | ||
- JSONPath: .spec.backupName | ||
name: backup/schedule | ||
description: Backup/schedule name | ||
type: string | ||
- JSONPath: .status | ||
name: Status | ||
description: Backup status | ||
type: string | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: cstorcompletedbackups.openebs.io | ||
spec: | ||
group: openebs.io | ||
version: v1alpha1 | ||
scope: Namespaced | ||
names: | ||
plural: cstorcompletedbackups | ||
singular: cstorcompletedbackup | ||
kind: CStorCompletedBackup | ||
shortNames: | ||
- cbkpc | ||
- cbackupcompleted | ||
additionalPrinterColumns: | ||
- JSONPath: .spec.volumeName | ||
name: volume | ||
description: volume on which backup performed | ||
type: string | ||
- JSONPath: .spec.backupName | ||
name: backup/schedule | ||
description: Backup/schedule name | ||
type: string | ||
- JSONPath: .spec.prevSnapName | ||
name: lastSnap | ||
description: Last successful backup snapshot | ||
type: string | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: cstorrestores.openebs.io | ||
spec: | ||
group: openebs.io | ||
version: v1alpha1 | ||
scope: Namespaced | ||
names: | ||
plural: cstorrestores | ||
singular: cstorrestore | ||
kind: CStorRestore | ||
shortNames: | ||
- crst | ||
- crsts | ||
- crestores | ||
- crestore | ||
additionalPrinterColumns: | ||
- JSONPath: .spec.restoreName | ||
name: backup | ||
description: backup name which is restored | ||
type: string | ||
- JSONPath: .spec.volumeName | ||
name: volume | ||
description: volume on which restore performed | ||
type: string | ||
- JSONPath: .status | ||
name: Status | ||
description: Restore status | ||
type: string | ||
--- |
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
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
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
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
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
Oops, something went wrong.