Skip to content

Commit 92bb8be

Browse files
committed
chore: add test for issue 4207
1 parent d03945d commit 92bb8be

File tree

4 files changed

+575
-0
lines changed

4 files changed

+575
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
apiVersion: sql.cnrm.cloud.google.com/v1beta1
2+
kind: SQLInstance
3+
metadata:
4+
annotations:
5+
cnrm.cloud.google.com/deletion-policy: abandon
6+
cnrm.cloud.google.com/management-conflict-prevention-policy: none
7+
cnrm.cloud.google.com/mutable-but-unreadable-fields: '{}'
8+
cnrm.cloud.google.com/observed-secret-versions: (removed)
9+
cnrm.cloud.google.com/project-id: ${projectId}
10+
cnrm.cloud.google.com/state-into-spec: absent
11+
finalizers:
12+
- cnrm.cloud.google.com/finalizer
13+
- cnrm.cloud.google.com/deletion-defender
14+
generation: 1
15+
labels:
16+
cnrm-test: "true"
17+
name: test-4207
18+
namespace: ${uniqueId}
19+
spec:
20+
databaseVersion: POSTGRES_13
21+
region: europe-west3
22+
resourceID: test-4207
23+
settings:
24+
availabilityType: REGIONAL
25+
backupConfiguration:
26+
backupRetentionSettings:
27+
retainedBackups: 30
28+
enabled: true
29+
pointInTimeRecoveryEnabled: true
30+
databaseFlags:
31+
- name: temp_file_limit
32+
value: "3145728"
33+
deletionProtectionEnabled: true
34+
diskSize: 10
35+
insightsConfig:
36+
queryInsightsEnabled: true
37+
ipConfiguration:
38+
requireSsl: true
39+
tier: db-g1-small
40+
status:
41+
conditions:
42+
- lastTransitionTime: "1970-01-01T00:00:00Z"
43+
message: The resource is up to date
44+
reason: UpToDate
45+
status: "True"
46+
type: Ready
47+
connectionName: ${projectId}:europe-west3:test-4207
48+
firstIpAddress: 10.1.2.3
49+
instanceType: CLOUD_SQL_INSTANCE
50+
ipAddress: 10.1.2.3
51+
observedGeneration: 1
52+
publicIpAddress: 10.1.2.3
53+
selfLink: https://sqladmin.googleapis.com/sql/v1beta4/projects/${projectId}/instances/test-4207
54+
serverCaCert:
55+
cert: |
56+
-----BEGIN CERTIFICATE-----
57+
-----END CERTIFICATE-----
58+
commonName: common-name
59+
createTime: "1970-01-01T00:00:00Z"
60+
expirationTime: "1970-01-01T00:00:00Z"
61+
sha1Fingerprint: "12345678"
62+
serviceAccountEmailAddress: p${projectNumber}[email protected]

0 commit comments

Comments
 (0)