-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpromise.yaml
69 lines (69 loc) · 2.14 KB
/
promise.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
apiVersion: platform.kratix.io/v1alpha1
kind: Promise
metadata:
name: aws-rds
spec:
api:
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: awsrds.example.promise.syntasso.io
spec:
group: example.promise.syntasso.io
names:
kind: AWSRDS
plural: awsrds
singular: awsrds
shortNames:
- awsrds
scope: Namespaced
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
namespace:
default: default
description: Kubernetes namespace to create aws rds instance.
type: string
name:
type: string
description: AWS RDS instance name
engine:
default: postgres
type: string
description: Choose aws rds engine(examples aurora, postgres, mysql etc)
engineVersion:
type: string
description: Aws rds engine version
workflows:
promise:
configure:
- apiVersion: platform.kratix.io/v1alpha1
kind: Pipeline
metadata:
name: promise-configure
namespace: default
spec:
containers:
- image: 533267353680.dkr.ecr.eu-west-2.amazonaws.com/aws-rds-configure-pipeline:v0.1.0
name: aws-rds-promise-pipeline
imagePullPolicy: Always
resource:
configure:
- apiVersion: platform.kratix.io/v1alpha1
kind: Pipeline
metadata:
name: instance-configure
namespace: default
spec:
containers:
- image: 533267353680.dkr.ecr.eu-west-2.amazonaws.com/aws-rds-configure-pipeline:v0.1.0
name: aws-rds-instance-promise-pipeline
imagePullPolicy: Always