-
Notifications
You must be signed in to change notification settings - Fork 2
/
definition.yaml
90 lines (90 loc) · 3.28 KB
/
definition.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: xsqlinstances.aws.platform.upbound.io
spec:
claimNames:
kind: SQLInstance
plural: sqlinstances
connectionSecretKeys:
- username
- password
- endpoint
- host
group: aws.platform.upbound.io
names:
kind: XSQLInstance
plural: xsqlinstances
versions:
- name: v1alpha1
served: true
referenceable: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
parameters:
type: object
properties:
region:
type: string
description: Region is the region you'd like your resource to be created in.
deletionPolicy:
description: Delete the external resources when the Claim/XR is deleted. Defaults to Delete
enum:
- Delete
- Orphan
type: string
default: Delete
providerConfigName:
description: Crossplane ProviderConfig to use for provisioning this resources
type: string
default: default
engine:
type: string
description: This RDS Instance engine, see https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html for possible values.
enum:
- postgres
- mariadb
engineVersion:
type: string
description: This RDS Instance engine version, see https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html for possible values.
storageGB:
type: integer
passwordSecretRef:
type: object
description: "A reference to the Secret object containing database password"
properties:
namespace:
type: string
name:
type: string
key:
type: string
required:
- namespace
- name
- key
autoGeneratePassword:
type: boolean
networkRef:
type: object
description: "A reference to the Network object that this database should be connected to."
properties:
id:
type: string
description: ID of the Network object this ref points to.
required:
- id
required:
- region
- engine
- engineVersion
- storageGB
- networkRef
- passwordSecretRef
required:
- parameters