Skip to content

Commit

Permalink
Merge pull request #1987 from anhdle-sso/regen_cluster_golden
Browse files Browse the repository at this point in the history
Generate golden log/object fullalloydbcluster test
  • Loading branch information
google-oss-prow[bot] authored Jun 18, 2024
2 parents 32ed152 + c3d503d commit 6abd73c
Show file tree
Hide file tree
Showing 3 changed files with 1,448 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
apiVersion: alloydb.cnrm.cloud.google.com/v1beta1
kind: AlloyDBCluster
metadata:
annotations:
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/mutable-but-unreadable-fields: '{"spec":{"deletionPolicy":"DEFAULT","initialUser":{"password":{"value":"postgres"},"user":"postgres"}}}'
cnrm.cloud.google.com/observed-secret-versions: (removed)
cnrm.cloud.google.com/state-into-spec: merge
finalizers:
- cnrm.cloud.google.com/finalizer
- cnrm.cloud.google.com/deletion-defender
generation: 3
labels:
cnrm-test: "true"
name: alloydbcluster-${uniqueId}
namespace: ${uniqueId}
spec:
automatedBackupPolicy:
backupWindow: 3600s
enabled: true
encryptionConfig:
kmsKeyNameRef:
name: kmscryptokey-${uniqueId}
labels:
source: kcc-test
location: us-central1
timeBasedRetention:
retentionPeriod: 43200s
weeklySchedule:
daysOfWeek:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
startTimes:
- hours: 10
minutes: 0
nanos: 0
seconds: 0
clusterType: PRIMARY
continuousBackupConfig:
enabled: false
recoveryWindowDays: 14
deletionPolicy: DEFAULT
encryptionConfig:
kmsKeyNameRef:
name: kmscryptokey-${uniqueId}
initialUser:
password:
value: postgres
user: postgres
location: us-central1
maintenanceUpdatePolicy:
maintenanceWindows:
- day: THURSDAY
startTime:
hours: 10
minutes: 0
nanos: 0
seconds: 0
networkConfig:
networkRef:
name: computenetwork-${uniqueId}
networkRef:
external: projects/${projectNumber}/global/networks/computenetwork-${uniqueId}
projectRef:
external: ${projectId}
resourceID: alloydbcluster-${uniqueId}
status:
conditions:
- lastTransitionTime: "1970-01-01T00:00:00Z"
message: The resource is up to date
reason: UpToDate
status: "True"
type: Ready
continuousBackupInfo:
- encryptionInfo:
- encryptionType: GOOGLE_DEFAULT_ENCRYPTION
schedule:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
databaseVersion: POSTGRES_15
encryptionInfo:
- encryptionType: CUSTOMER_MANAGED_ENCRYPTION
name: projects/${projectId}/locations/us-central1/clusters/alloydbcluster-${uniqueId}
observedGeneration: 3
uid: "12345678"
Loading

0 comments on commit 6abd73c

Please sign in to comment.