Skip to content

Commit

Permalink
Merge pull request #27 from ytsarev/expose-db-version
Browse files Browse the repository at this point in the history
Expose database version in XRD
  • Loading branch information
ytsarev authored Feb 16, 2024
2 parents 3737568 + a67ac6f commit 8a0b7a6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions apis/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ spec:
default: default
storageGB:
type: integer
description: Database size
version:
type: string
description: Database version
passwordSecretRef:
type: object
description: "A reference to the Secret object containing database password"
Expand All @@ -71,5 +75,6 @@ spec:
required:
- storageGB
- passwordSecretRef
- version
required:
- parameters
5 changes: 3 additions & 2 deletions apis/mariadb/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ spec:
skuName: GP_Gen5_2
sslEnforcementEnabled: false
sslMinimalTlsVersionEnforced: TLSEnforcementDisabled
storageMb: 5120
version: "10.3"
connectionDetails:
- type: FromFieldPath
fromFieldPath: status.atProvider.fqdn
Expand Down Expand Up @@ -106,6 +104,9 @@ spec:
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.passwordSecretRef.key
toFieldPath: spec.forProvider.administratorLoginPasswordSecretRef.key
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.version
toFieldPath: spec.forProvider.version

- name: vnetrule
base:
Expand Down
5 changes: 3 additions & 2 deletions apis/postgresql/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ spec:
skuName: GP_Gen5_2
sslEnforcementEnabled: false
sslMinimalTlsVersionEnforced: TLSEnforcementDisabled
storageMb: 5120
version: "11"
connectionDetails:
- type: FromFieldPath
fromFieldPath: status.atProvider.fqdn
Expand Down Expand Up @@ -109,6 +107,9 @@ spec:
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.passwordSecretRef.key
toFieldPath: spec.forProvider.administratorLoginPasswordSecretRef.key
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.version
toFieldPath: spec.forProvider.version

- name: vnetrule
base:
Expand Down
1 change: 1 addition & 0 deletions examples/mariadb-claim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
parameters:
region: westus
storageGB: 5 #Minimum value is 5
version: "10.3"
passwordSecretRef:
namespace: default
name: psqlsecret
Expand Down
1 change: 1 addition & 0 deletions examples/postgres-claim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
parameters:
region: westus
storageGB: 5 #Minimum value is 5
version: "11"
passwordSecretRef:
namespace: default
name: psqlsecret
Expand Down

0 comments on commit 8a0b7a6

Please sign in to comment.