Skip to content

Commit

Permalink
feat(sdrs): add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
azrod committed Jan 10, 2023
1 parent 51b13e1 commit f63bbbd
Show file tree
Hide file tree
Showing 9 changed files with 170 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apis/sdrs/v1beta1/zz_replicationpair_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions examples/sdrs/drill.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: sdrs.flexibleengine.upbound.io/v1beta1
kind: Drill
metadata:
annotations:
meta.upbound.io/example-id: sdrs/v1beta1/drill
labels:
testing.upbound.io/example-name: example_sdrs_drill
name: example-sdrs-drill
spec:
forProvider:
drillVpcIdSelector:
matchLabels:
testing.upbound.io/example-name: example_sdrs_drill_vpc
groupIdSelector:
matchLabels:
testing.upbound.io/example-name: example_sdrs_protectiongroup
name: example-sdrs-drill
31 changes: 31 additions & 0 deletions examples/sdrs/drill.yaml.extra
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: vpc.flexibleengine.upbound.io/v1beta1
kind: VPC
metadata:
annotations:
meta.upbound.io/example-id: vpc/v1beta1/vpc
labels:
testing.upbound.io/example-name: example_sdrs_drill_vpc
name: example-sdrs-drill-vpc
spec:
forProvider:
name: "example-sdrs-drill-vpc"
cidr: "192.168.96.0/20"
---
apiVersion: vpc.flexibleengine.upbound.io/v1beta1
kind: VPCSubnet
metadata:
annotations:
meta.upbound.io/example-id: vpc/v1beta1/vpcsubnet
labels:
testing.upbound.io/example-name: example_sdrs_drill_subnet
name: example-sdrs-drill-subnet
spec:
forProvider:
cidr: "192.168.100.0/24"
gatewayIp: "192.168.100.254"
name: "example-sdrs-drill-subnet"
vpcIdSelector:
matchLabels:
testing.upbound.io/example-name: example_sdrs_drill_vpc
primaryDns: "100.125.0.41"
secondaryDns: "100.126.0.41"
20 changes: 20 additions & 0 deletions examples/sdrs/protectedinstance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: sdrs.flexibleengine.upbound.io/v1beta1
kind: ProtectedInstance
metadata:
annotations:
meta.upbound.io/example-id: sdrs/v1beta1/protectedinstance
labels:
testing.upbound.io/example-name: example_sdrs_instance
name: example-sdrs-instance
spec:
forProvider:
description: test description
deleteTargetServer: true
deleteTargetEIP: true
groupIdSelector:
matchLabels:
testing.upbound.io/example-name: example_sdrs_protectiongroup
name: example-sdrs-instance
serverIdSelector:
matchLabels:
testing.upbound.io/example-name: example_sdrs_instance_extra
42 changes: 42 additions & 0 deletions examples/sdrs/protectedinstance.yaml.extra
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: ecs.flexibleengine.upbound.io/v1beta1
kind: Instance
metadata:
annotations:
meta.upbound.io/example-id: ecs/v1beta1/instance
labels:
testing.upbound.io/example-name: example_sdrs_instance_extra
name: example-sdrs-instance-extra
spec:
forProvider:
flavorId: t2.micro
imageId: "121d32ef-80d5-41f8-a940-f227a33d2b2a"
availabilityZone: "eu-west-0a"
keyPairSelector:
matchLabels:
testing.upbound.io/example-name: example_keypair
name: example-instance
network:
- uuidSelector:
matchLabels:
testing.upbound.io/example-name: example_subnet
securityGroups:
- default
tags:
foo: bar
this: that
schedulerHints:
- groupSelector:
matchLabels:
testing.upbound.io/example-name: example_servergroup
---
apiVersion: ecs.flexibleengine.upbound.io/v1beta1
kind: KeyPair
metadata:
annotations:
meta.upbound.io/example-id: ecs/v1beta1/keypair
labels:
testing.upbound.io/example-name: example_keypair
name: example-keypair
spec:
forProvider:
publicKey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7CnfqUmkT7aVeJnnCzSXRIMX547BnWRD4V+5SJHnY9zyvi3lC0fLlyZ6MAosdBo77KLMGI45VRHGPwiqmimF6L/O4VG/Ku8xfBXVV0EGilEicbyzvyG26H0O2JDSbIN8AwgDC89Zla2NhQoh7XogK311pkEjK9q2/cVaeeY27S5053FPeFCKedw6q3Dv/naJQbGDqgkShybpccG0jloGalCmDXWqlvSCqj2TGsdj49AKkX5RaygHkploTv8pUyLwmE/bEZV8NLPsp0lS+ziyIZoGqLMCndrFN5P4z2mPVpzTZ/o3Ppv8YKD/BQdg+bwGl6uQuSe5Mcx+eXBlU/Lw1 Generated-by-Nova"
19 changes: 19 additions & 0 deletions examples/sdrs/protectiongroup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: sdrs.flexibleengine.upbound.io/v1beta1
kind: ProtectionGroup
metadata:
annotations:
meta.upbound.io/example-id: sdrs/v1beta1/protectiongroup
labels:
testing.upbound.io/example-name: example_sdrs_protectiongroup
name: example-sdrs-protectiongroup
spec:
forProvider:
description: test description
domainId: 96443ca2-6a66-4231-848e-2ace986556a7
drType: migration
name: example-sdrs-protectiongroup
sourceAvailabilityZone: eu-west-0a
targetAvailabilityZone: eu-west-0b
sourceVpcIdSelector:
matchLabels:
testing.upbound.io/example-name: example_vpc
17 changes: 17 additions & 0 deletions examples/sdrs/replicationattach.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: sdrs.flexibleengine.upbound.io/v1beta1
kind: ReplicationAttach
metadata:
annotations:
meta.upbound.io/example-id: sdrs/v1beta1/replicationattach
labels:
testing.upbound.io/example-name: example_sdrs_replicationattach
name: example-sdrs-replicationattach
spec:
forProvider:
device: /dev/vdb
instanceIdSelector:
matchLabels:
testing.upbound.io/example-name: example_sdrs_instance
replicationIdSelector:
matchLabels:
testing.upbound.io/example-name: example_sdrs_replicationpair
18 changes: 18 additions & 0 deletions examples/sdrs/replicationpair.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: sdrs.flexibleengine.upbound.io/v1beta1
kind: ReplicationPair
metadata:
annotations:
meta.upbound.io/example-id: sdrs/v1beta1/replicationpair
labels:
testing.upbound.io/example-name: example_sdrs_replicationpair
name: example-sdrs-replicationpair
spec:
forProvider:
description: test description
groupIdSelector:
matchLabels:
testing.upbound.io/example-name: example_sdrs_protectiongroup
name: example-sdrs-replicationpair
volumeIdSelector:
matchLabels:
testing.upbound.io/example-name: example_evs_blockstoragevolume
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ spec:
creates a new pair.
type: string
volumeIdRef:
description: "Reference to a BlockStorageVolume\t in evs to populate
volumeId."
description: Reference to a BlockStorageVolume in evs to populate
volumeId.
properties:
name:
description: Name of the referenced object.
Expand Down Expand Up @@ -209,8 +209,8 @@ spec:
- name
type: object
volumeIdSelector:
description: "Selector for a BlockStorageVolume\t in evs to populate
volumeId."
description: Selector for a BlockStorageVolume in evs to populate
volumeId.
properties:
matchControllerRef:
description: MatchControllerRef ensures an object with the
Expand Down

0 comments on commit f63bbbd

Please # to comment.