diff --git a/examples/dbformysql/server.yaml b/examples/dbformysql/server.yaml index 78f7c7fb9..164f69389 100644 --- a/examples/dbformysql/server.yaml +++ b/examples/dbformysql/server.yaml @@ -2,25 +2,58 @@ apiVersion: dbformysql.azure.upbound.io/v1beta1 kind: Server metadata: annotations: - upjet.upbound.io/manual-intervention: "The resource needs valid kubernetes secret." - name: example + meta.upbound.io/example-id: dbformysql/v1beta1/server + name: example-${Rand.RFC1123Subdomain} spec: + writeConnectionSecretToRef: + name: server-creds + namespace: upbound-system forProvider: administratorLogin: mysqladminun administratorLoginPasswordSecretRef: key: example-key name: example-secret - namespace: crossplane-system + namespace: upbound-system autoGrowEnabled: true backupRetentionDays: 7 geoRedundantBackupEnabled: false infrastructureEncryptionEnabled: false location: West Europe publicNetworkAccessEnabled: true - resourceGroupNameRef: - name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example-dbformysql-server skuName: GP_Gen5_2 sslEnforcementEnabled: true sslMinimalTlsVersionEnforced: TLS1_2 storageMb: 5120 version: "5.7" + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: dbformysql/v1beta1/server + labels: + testing.upbound.io/example-name: example-dbformysql-server + name: resource-group-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe + +--- + +apiVersion: v1 +kind: Secret +metadata: + annotations: + meta.upbound.io/example-id: dbformysql/v1beta1/server + labels: + testing.upbound.io/example-name: example-secret + name: example-secret + namespace: upbound-system +type: Opaque +stringData: + example-key: Upbound123!-${Rand.RFC1123Subdomain}