-
Notifications
You must be signed in to change notification settings - Fork 134
/
Copy pathapp-messagebroker-kafka.yaml
48 lines (48 loc) · 1.33 KB
/
app-messagebroker-kafka.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
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
name: kafka.mb.aws.salaboy.com
labels:
type: dev
provider: aws
kind: kafka
spec:
writeConnectionSecretsToNamespace: crossplane-system
compositeTypeRef:
apiVersion: salaboy.com/v1alpha1
kind: MessageBroker
resources:
- name: kafka
base:
apiVersion: kafka.aws.crossplane.io/v1alpha1
kind: Cluster
metadata:
annotations:
crossplane.io/external-name: # patched
spec:
providerConfigRef:
name: default
forProvider:
clusterName: kafka
kafkaVersion: 2.6.1
numberOfBrokerNodes: 2
region: us-west-2
brokerNodeGroupInfo:
instanceType: kafka.t3.small
storageInfo:
ebsStorageInfo:
volumeSize: 1
writeConnectionSecretToRef:
namespace: crossplane-system
name: kafka
patches:
- fromFieldPath: metadata.name
toFieldPath: metadata.annotations[crossplane.io/external-name]
policy:
fromFieldPath: Required
- fromFieldPath: metadata.name
toFieldPath: metadata.name
transforms:
- type: string
string:
fmt: "%s-kafka"