Skip to content

Commit dcc9c6d

Browse files
BigGold1310plk
andcommitted
feat: Add missing resources to auto-generated tests/examples
Signed-off-by: Cyrill Näf <cyrill.naef@gmail.com> Signed-off-by: plk <Philip@kime.org.uk> Co-authored-by: plk <Philip@kime.org.uk>
1 parent 08e8295 commit dcc9c6d

10 files changed

+680
-179
lines changed

examples/oracle/oracle/cluster/autonomousdatabaseclonefrombackup.yaml renamed to examples/oracle/cluster/v1beta1/autonomousdatabase.yaml

Lines changed: 56 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,101 @@
11
# SPDX-FileCopyrightText: 2025 The Crossplane Authors <https://crossplane.io>
22
#
33
# SPDX-License-Identifier: CC0-1.0
4-
54
apiVersion: oracle.azure.upbound.io/v1beta1
6-
kind: AutonomousDatabaseCloneFromBackup
5+
kind: AutonomousDatabase
76
metadata:
87
annotations:
9-
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabaseclonefrombackup
8+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabase
109
labels:
1110
testing.upbound.io/example-name: example
1211
name: example
12+
namespace: upbound-system
1313
spec:
1414
forProvider:
1515
adminPasswordSecretRef:
1616
key: example-key
1717
name: example-secret
18-
namespace: upbound-system
19-
allowedIpAddresses: []
2018
autoScalingEnabled: false
21-
autoScalingForStorageEnabled: true
22-
backupRetentionPeriodInDays: 7
23-
backupTimestamp: "2025-09-23T02:22:13.000Z"
19+
autoScalingForStorageEnabled: false
20+
backupRetentionPeriodInDays: 1
2421
characterSet: AL32UTF8
25-
cloneType: Metadata
2622
computeCount: 2
2723
computeModel: ECPU
28-
dataStorageSizeInTb: 1
29-
databaseVersion: 19c
30-
databaseWorkload: OLTP
31-
displayName: ExampleClone
24+
dataStorageSizeInTbs: 1
25+
dbVersion: "19c"
26+
dbWorkload: OLTP
27+
displayName: example
3228
licenseModel: LicenseIncluded
3329
location: West Europe
34-
mtlsConnectionRequired: true
30+
mtlsConnectionRequired: false
3531
nationalCharacterSet: AL16UTF16
3632
resourceGroupNameSelector:
3733
matchLabels:
3834
testing.upbound.io/example-name: example
39-
sourceAutonomousDatabaseIdSelector:
35+
subnetIdSelector:
4036
matchLabels:
4137
testing.upbound.io/example-name: example
42-
4338
---
44-
45-
apiVersion: oracle.azure.upbound.io/v1beta1
46-
kind: AutonomousDatabase
39+
apiVersion: azure.upbound.io/v1beta1
40+
kind: ResourceGroup
4741
metadata:
4842
annotations:
49-
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabaseclonefrombackup
43+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabase
5044
labels:
5145
testing.upbound.io/example-name: example
5246
name: example
47+
namespace: upbound-system
5348
spec:
5449
forProvider:
55-
adminPasswordSecretRef:
56-
key: example-key
57-
name: example-secret
58-
namespace: upbound-system
59-
allowedIps: []
60-
autoScalingEnabled: false
61-
autoScalingForStorageEnabled: true
62-
backupRetentionPeriodInDays: 7
63-
characterSet: AL32UTF8
64-
computeCount: 2
65-
computeModel: ECPU
66-
dataStorageSizeInTbs: 1
67-
dbVersion: 19c
68-
dbWorkload: OLTP
69-
displayName: Example
70-
licenseModel: LicenseIncluded
71-
location: eastus
72-
mtlsConnectionRequired: true
73-
nationalCharacterSet: AL16UTF16
50+
location: West Europe
51+
---
52+
apiVersion: network.azure.upbound.io/v1beta1
53+
kind: Subnet
54+
metadata:
55+
annotations:
56+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabase
57+
labels:
58+
testing.upbound.io/example-name: example
59+
name: example
60+
namespace: upbound-system
61+
spec:
62+
forProvider:
63+
addressPrefixes:
64+
- 10.0.2.0/24
65+
delegation:
66+
- name: oracle
67+
serviceDelegation:
68+
name: Oracle.Database/networkAttachments
7469
resourceGroupNameSelector:
7570
matchLabels:
7671
testing.upbound.io/example-name: example
77-
72+
virtualNetworkNameSelector:
73+
matchLabels:
74+
testing.upbound.io/example-name: example
7875
---
79-
80-
apiVersion: azure.upbound.io/v1beta1
81-
kind: ResourceGroup
76+
apiVersion: network.azure.upbound.io/v1beta1
77+
kind: VirtualNetwork
8278
metadata:
8379
annotations:
84-
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabaseclonefrombackup
80+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabase
8581
labels:
8682
testing.upbound.io/example-name: example
8783
name: example
84+
namespace: upbound-system
8885
spec:
8986
forProvider:
90-
location: eastus
87+
addressSpace:
88+
- 10.0.0.0/16
89+
location: West Europe
90+
resourceGroupNameSelector:
91+
matchLabels:
92+
testing.upbound.io/example-name: example
93+
---
94+
apiVersion: v1
95+
data:
96+
example-key: dXBiMHVuZHIwY2s1ITMxMzM3
97+
kind: Secret
98+
metadata:
99+
name: example-secret
100+
namespace: upbound-system
101+
type: Opaque
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# SPDX-FileCopyrightText: 2025 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
apiVersion: oracle.azure.upbound.io/v1beta1
6+
kind: AutonomousDatabaseBackup
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabasebackup
10+
labels:
11+
testing.upbound.io/example-name: example
12+
name: example
13+
namespace: upbound-system
14+
spec:
15+
forProvider:
16+
autonomousDatabaseIdSelector:
17+
matchLabels:
18+
testing.upbound.io/example-name: example
19+
type: LongTerm
20+
retentionPeriodInDays: 120
21+
---
22+
apiVersion: oracle.azure.upbound.io/v1beta1
23+
kind: AutonomousDatabase
24+
metadata:
25+
annotations:
26+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabasebackup
27+
labels:
28+
testing.upbound.io/example-name: example
29+
name: example
30+
namespace: upbound-system
31+
spec:
32+
forProvider:
33+
adminPasswordSecretRef:
34+
key: password
35+
name: example-db-secret
36+
autoScalingEnabled: false
37+
autoScalingForStorageEnabled: false
38+
backupRetentionPeriodInDays: 60
39+
characterSet: AL32UTF8
40+
computeCount: 2
41+
computeModel: ECPU
42+
dataStorageSizeInTbs: 1
43+
dbVersion: "19c"
44+
dbWorkload: OLTP
45+
displayName: example
46+
licenseModel: LicenseIncluded
47+
location: East US
48+
mtlsConnectionRequired: false
49+
nationalCharacterSet: AL16UTF16
50+
resourceGroupNameSelector:
51+
matchLabels:
52+
testing.upbound.io/example-name: example
53+
subnetIdSelector:
54+
matchLabels:
55+
testing.upbound.io/example-name: example
56+
---
57+
apiVersion: network.azure.upbound.io/v1beta1
58+
kind: Subnet
59+
metadata:
60+
annotations:
61+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabasebackup
62+
labels:
63+
testing.upbound.io/example-name: example
64+
name: example
65+
namespace: upbound-system
66+
spec:
67+
forProvider:
68+
addressPrefixes:
69+
- 10.0.2.0/24
70+
delegation:
71+
- name: oracle
72+
serviceDelegation:
73+
name: Oracle.Database/networkAttachments
74+
resourceGroupNameSelector:
75+
matchLabels:
76+
testing.upbound.io/example-name: example
77+
virtualNetworkNameSelector:
78+
matchLabels:
79+
testing.upbound.io/example-name: example
80+
---
81+
apiVersion: network.azure.upbound.io/v1beta1
82+
kind: VirtualNetwork
83+
metadata:
84+
annotations:
85+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabasebackup
86+
labels:
87+
testing.upbound.io/example-name: example
88+
name: example
89+
namespace: upbound-system
90+
spec:
91+
forProvider:
92+
addressSpace:
93+
- 10.0.0.0/16
94+
location: eastus
95+
resourceGroupNameSelector:
96+
matchLabels:
97+
testing.upbound.io/example-name: example
98+
---
99+
apiVersion: v1
100+
kind: Secret
101+
metadata:
102+
annotations:
103+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabasebackup
104+
name: example-db-secret
105+
namespace: upbound-system
106+
type: Opaque
107+
stringData:
108+
password: "Placeholder1!"
109+
---
110+
apiVersion: azure.upbound.io/v1beta1
111+
kind: ResourceGroup
112+
metadata:
113+
annotations:
114+
meta.upbound.io/example-id: oracle/v1beta1/autonomousdatabasebackup
115+
labels:
116+
testing.upbound.io/example-name: example
117+
name: example
118+
namespace: upbound-system
119+
spec:
120+
forProvider:
121+
location: East US

0 commit comments

Comments
 (0)