-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(managedservice): add support for rapyuta.io
managedservices
This commit introduces support for rapyuta.io managed services. Usage: rio managedservice [OPTIONS] COMMAND [ARGS]... Managed Services on rapyuta.io With managed services on rapyuta.io, you can provision services like elasticsearch, etc. on-demand and use them with your deployments. Options: --help Show this message and exit. Commands: inspect Inspect a managedservice instance list List all the managedservice instances providers List available managedservice providers You can create and delete managed services with the rio apply command and it currently doesn't have a directly CLI option. Reviewed By: Ankit Gadiya
- Loading branch information
1 parent
a6b1d71
commit 7aff123
Showing
21 changed files
with
774 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
$schema: "http://json-schema.org/draft-07/schema#" | ||
title: ManagedService | ||
$ref: "#/definitions/managedservice" | ||
definitions: | ||
managedservice: | ||
type: object | ||
properties: | ||
apiVersion: | ||
const: apiextensions.rapyuta.io/v1 | ||
default: apiextensions.rapyuta.io/v1 | ||
kind: | ||
const: ManagedService | ||
default: ManagedService | ||
metadata: | ||
"$ref": "#/definitions/metadata" | ||
spec: | ||
"$ref": "#/definitions/managedserviceSpec" | ||
required: | ||
- apiVersion | ||
- kind | ||
- metadata | ||
- spec | ||
metadata: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
guid: | ||
"$ref": "#/definitions/uuid" | ||
creator: | ||
"$ref": "#/definitions/uuid" | ||
project: | ||
"$ref": "#/definitions/projectGUID" | ||
labels: | ||
"$ref": "#/definitions/stringMap" | ||
required: | ||
- name | ||
projectGUID: | ||
type: string | ||
pattern: "^project-[a-z]{24}$" | ||
stringMap: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
uuid: | ||
type: string | ||
pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" | ||
managedserviceSpec: | ||
type: object | ||
properties: | ||
provider: | ||
type: string | ||
enum: | ||
- elasticsearch | ||
config: | ||
type: object | ||
required: | ||
- provider | ||
- config |
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 @@ | ||
apiVersion: "apiextensions.rapyuta.io/v1" | ||
kind: ManagedService | ||
metadata: | ||
name: "elastic-test" | ||
labels: | ||
creator: riocli | ||
spec: | ||
provider: elasticsearch | ||
config: {} |
Oops, something went wrong.