Skip to content

Commit

Permalink
Merge pull request #579 from upbound/backport-578-to-release-0.38
Browse files Browse the repository at this point in the history
[Backport release-0.38] Set async mode true for ResourceGroup
  • Loading branch information
turkenf authored Oct 30, 2023
2 parents b1a5806 + d6ff16d commit df01f8b
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/base/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Configure(p *config.Provider) {
})

p.AddResourceConfigurator("azurerm_resource_group", func(r *config.Resource) {
r.UseAsync = false
r.UseAsync = true
r.Kind = "ResourceGroup"
r.ShortGroup = ""
})
Expand Down
112 changes: 112 additions & 0 deletions examples/dbformariadb/virtualnetworkrule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
apiVersion: dbformariadb.azure.upbound.io/v1beta1
kind: VirtualNetworkRule
metadata:
annotations:
meta.upbound.io/example-id: dbformariadb/v1beta1/virtualnetworkrule
uptest.upbound.io/timeout: "3600"
labels:
testing.upbound.io/example-name: example
name: example-vnr
spec:
forProvider:
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
serverNameSelector:
matchLabels:
testing.upbound.io/example-name: example
subnetIdSelector:
matchLabels:
testing.upbound.io/example-name: internal

---

apiVersion: dbformariadb.azure.upbound.io/v1beta1
kind: Server
metadata:
annotations:
meta.upbound.io/example-id: dbformariadb/v1beta1/virtualnetworkrule
labels:
testing.upbound.io/example-name: example
name: example-vnr
spec:
forProvider:
administratorLogin: mariadbadminun
administratorLoginPasswordSecretRef:
key: example-key
name: example-secret
namespace: upbound-system
location: West Europe
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
skuName: GP_Gen5_2
sslEnforcementEnabled: true
version: "10.2"

---

apiVersion: azure.upbound.io/v1beta1
kind: ResourceGroup
metadata:
annotations:
meta.upbound.io/example-id: dbformariadb/v1beta1/virtualnetworkrule
labels:
testing.upbound.io/example-name: example
name: example-vnr
spec:
forProvider:
location: West Europe

---

apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
meta.upbound.io/example-id: dbformariadb/v1beta1/virtualnetworkrule
labels:
testing.upbound.io/example-name: internal
name: internal-vnr
spec:
forProvider:
addressPrefixes:
- 10.7.29.0/29
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
serviceEndpoints:
- Microsoft.Sql
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example

---

apiVersion: network.azure.upbound.io/v1beta1
kind: VirtualNetwork
metadata:
annotations:
meta.upbound.io/example-id: dbformariadb/v1beta1/virtualnetworkrule
labels:
testing.upbound.io/example-name: example
name: example-vnr
spec:
forProvider:
addressSpace:
- 10.7.29.0/29
location: West Europe
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example

---

apiVersion: v1
data:
example-key: dXBiMHVuZHIwY2s1ITMxMzM3Cg==
kind: Secret
metadata:
name: example-secret
namespace: upbound-system
type: Opaque
115 changes: 115 additions & 0 deletions examples/dbforpostgresql/virtualnetworkrule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
apiVersion: dbforpostgresql.azure.upbound.io/v1beta1
kind: VirtualNetworkRule
metadata:
annotations:
meta.upbound.io/example-id: dbforpostgresql/v1beta1/virtualnetworkrule
uptest.upbound.io/timeout: "3600"
labels:
testing.upbound.io/example-name: example
name: example-dbforpostgresql-vnr
spec:
forProvider:
ignoreMissingVnetServiceEndpoint: true
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
serverNameSelector:
matchLabels:
testing.upbound.io/example-name: example
subnetIdSelector:
matchLabels:
testing.upbound.io/example-name: internal

---

apiVersion: dbforpostgresql.azure.upbound.io/v1beta1
kind: Server
metadata:
annotations:
meta.upbound.io/example-id: dbforpostgresql/v1beta1/virtualnetworkrule
labels:
testing.upbound.io/example-name: example
name: example-dbforpostgresql-vnr
spec:
forProvider:
administratorLogin: psqladmin
administratorLoginPasswordSecretRef:
key: example-key
name: example-secret
namespace: upbound-system
backupRetentionDays: 7
location: West Europe
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
skuName: GP_Gen5_2
sslEnforcementEnabled: true
storageMb: 5120
version: "9.5"

---

apiVersion: azure.upbound.io/v1beta1
kind: ResourceGroup
metadata:
annotations:
meta.upbound.io/example-id: dbforpostgresql/v1beta1/virtualnetworkrule
labels:
testing.upbound.io/example-name: example
name: example-dbforpostgresql-vnr
spec:
forProvider:
location: West Europe

---

apiVersion: network.azure.upbound.io/v1beta1
kind: Subnet
metadata:
annotations:
meta.upbound.io/example-id: dbforpostgresql/v1beta1/virtualnetworkrule
labels:
testing.upbound.io/example-name: internal
name: internal-dbforpostgresql-vnr
spec:
forProvider:
addressPrefixes:
- 10.7.29.0/29
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
serviceEndpoints:
- Microsoft.Sql
virtualNetworkNameSelector:
matchLabels:
testing.upbound.io/example-name: example

---

apiVersion: network.azure.upbound.io/v1beta1
kind: VirtualNetwork
metadata:
annotations:
meta.upbound.io/example-id: dbforpostgresql/v1beta1/virtualnetworkrule
labels:
testing.upbound.io/example-name: example
name: example-dbforpostgresql-vnr
spec:
forProvider:
addressSpace:
- 10.7.29.0/29
location: West Europe
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example

---

apiVersion: v1
data:
example-key: dXBiMHVuZHIwY2s1ITMxMzM3
kind: Secret
metadata:
name: example-secret
namespace: upbound-system
type: Opaque
5 changes: 4 additions & 1 deletion internal/controller/azure/resourcegroup/zz_controller.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit df01f8b

Please sign in to comment.