Skip to content

Commit

Permalink
Merge pull request #93 from ulucinar/automate-server
Browse files Browse the repository at this point in the history
Remove manual intervention annotation from dbformysql.Server example
  • Loading branch information
ulucinar authored Dec 20, 2022
2 parents 5a66d8e + f466645 commit b53e573
Showing 1 changed file with 38 additions and 5 deletions.
43 changes: 38 additions & 5 deletions examples/dbformysql/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit b53e573

Please sign in to comment.