e50d695316569150be42cb983038e03940b9c8b0
[osm/devops.git] /
1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #    http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 # implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
17
18 ---
19 apiVersion: dbformysql.azure.upbound.io/v1beta1
20 kind: Database
21 metadata:
22   # annotations:
23   #   meta.upbound.io/example-id: dbformysql/v1beta1/database
24   labels:
25     testing.upbound.io/name: ${database_name}
26   name: ${database_name}
27 spec:
28   forProvider:
29     charset: utf8
30     collation: utf8_unicode_ci
31     resourceGroupName: ${resource_group}
32     # resourceGroupNameSelector:
33     #   matchLabels:
34     #     testing.upbound.io/name: ${database_name}
35     serverNameSelector:
36       matchLabels:
37         testing.upbound.io/name: ${database_name}
38
39 ---
40
41 apiVersion: dbformysql.azure.upbound.io/v1beta1
42 kind: Server
43 metadata:
44   # annotations:
45   #   meta.upbound.io/example-id: dbformysql/v1beta1/database
46   labels:
47     testing.upbound.io/name: ${database_name}
48   name: server-${database_name}
49 spec:
50   forProvider:
51     administratorLogin: ${admin_user}
52     administratorLoginPasswordSecretRef:
53       key: key
54       name: ${database_secret_name}
55       namespace: ${database_secret_namespace}
56     autoGrowEnabled: true
57     backupRetentionDays: 7
58     geoRedundantBackupEnabled: true
59     infrastructureEncryptionEnabled: true
60     location: ${region}
61     publicNetworkAccessEnabled: false
62     resourceGroupName: ${resource_group}
63     # resourceGroupNameSelector:
64     #   matchLabels:
65     #     testing.upbound.io/name: ${database_name}
66     # skuName: GP_Gen5_2
67     skuName: ${sku_name:=GP_Gen5_2}
68     sslEnforcementEnabled: true
69     sslMinimalTlsVersionEnforced: TLS1_2
70     # storageMb: 5120
71     storageMb: ${storage_mb:=5120}
72     version: "5.7"
73
74 # ---
75
76 # apiVersion: v1
77 # kind: Secret
78 # metadata:
79 #   name: example-secret
80 #   namespace: upbound-system
81 # type: Opaque
82 # stringData:
83 #   example-key: dGVzdFBhc3N3b3JkITEyMw==
84
85 # ---
86
87 # apiVersion: azure.upbound.io/v1beta1
88 # kind: ResourceGroup
89 # metadata:
90 #   annotations:
91 #     meta.upbound.io/example-id: dbformysql/v1beta1/database
92 #   labels:
93 #     testing.upbound.io/name: ${database_name}
94 #   name: ${database_name}
95 # spec:
96 #   forProvider:
97 #     location: West Europe