diff --git a/examples/alertsmanagement/v1beta2/monitoractionruleactiongroup.yaml b/examples/alertsmanagement/v1beta2/monitoractionruleactiongroup.yaml new file mode 100644 index 000000000..f0aad0cf6 --- /dev/null +++ b/examples/alertsmanagement/v1beta2/monitoractionruleactiongroup.yaml @@ -0,0 +1,51 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: alertsmanagement.azure.upbound.io/v1beta2 +kind: MonitorActionRuleActionGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoractionruleactiongroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + actionGroupIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoractionruleactiongroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + shortName: examplegroup + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta1/monitoractionruleactiongroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/alertsmanagement/v1beta2/monitoractionrulesuppression.yaml b/examples/alertsmanagement/v1beta2/monitoractionrulesuppression.yaml new file mode 100644 index 000000000..a8228fb41 --- /dev/null +++ b/examples/alertsmanagement/v1beta2/monitoractionrulesuppression.yaml @@ -0,0 +1,41 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: alertsmanagement.azure.upbound.io/v1beta2 +kind: MonitorActionRuleSuppression +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoractionrulesuppression + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + suppression: + recurrenceType: Weekly + schedule: + endDateUtc: "2019-01-03T15:02:07Z" + recurrenceWeekly: + - Sunday + - Monday + - Friday + - Saturday + startDateUtc: "2019-01-01T01:02:03Z" + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta1/monitoractionrulesuppression + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/alertsmanagement/v1beta2/monitoralertprocessingruleactiongroup.yaml b/examples/alertsmanagement/v1beta2/monitoralertprocessingruleactiongroup.yaml new file mode 100644 index 000000000..fb150eb2b --- /dev/null +++ b/examples/alertsmanagement/v1beta2/monitoralertprocessingruleactiongroup.yaml @@ -0,0 +1,77 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: alertsmanagement.azure.upbound.io/v1beta2 +kind: MonitorAlertProcessingRuleActionGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoralertprocessingruleactiongroup + labels: + testing.upbound.io/example-name: example + name: mapragex +spec: + forProvider: + addActionGroupIdsRefs: + - name: mapragex + condition: + severity: + operator: Equals + values: + - Sev0 + - Sev1 + - Sev2 + targetResourceType: + operator: Equals + values: + - Microsoft.Compute/VirtualMachines + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + schedule: + effectiveFrom: 2022-01-01T01:02:03 + effectiveUntil: 2022-02-02T01:02:03 + recurrence: + daily: + - endTime: "09:00:00" + startTime: "17:00:00" + weekly: + - daysOfWeek: + - Saturday + - Sunday + timeZone: Pacific Standard Time + scopesRefs: + - name: mapragex + tags: + foo: bar + +--- + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoralertprocessingruleactiongroup + labels: + testing.upbound.io/example-name: example + name: mapragex +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + shortName: mapragex + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta1/monitoralertprocessingruleactiongroup + labels: + testing.upbound.io/example-name: example + name: mapragex +spec: + forProvider: + location: West Europe diff --git a/examples/alertsmanagement/v1beta2/monitoralertprocessingrulesuppression.yaml b/examples/alertsmanagement/v1beta2/monitoralertprocessingrulesuppression.yaml new file mode 100644 index 000000000..49f04167d --- /dev/null +++ b/examples/alertsmanagement/v1beta2/monitoralertprocessingrulesuppression.yaml @@ -0,0 +1,58 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: alertsmanagement.azure.upbound.io/v1beta2 +kind: MonitorAlertProcessingRuleSuppression +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoralertprocessingrulesuppression + labels: + testing.upbound.io/example-name: example + name: maprsexample +spec: + forProvider: + condition: + severity: + operator: Equals + values: + - Sev0 + - Sev1 + - Sev2 + targetResourceType: + operator: Equals + values: + - Microsoft.Compute/VirtualMachines + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + schedule: + effectiveFrom: 2022-01-01T01:02:03 + effectiveUntil: 2022-02-02T01:02:03 + recurrence: + daily: + - endTime: "09:00:00" + startTime: "17:00:00" + weekly: + - daysOfWeek: + - Saturday + - Sunday + timeZone: Pacific Standard Time + scopesRefs: + - name: maprsexample + tags: + foo: bar + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta1/monitoralertprocessingrulesuppression + labels: + testing.upbound.io/example-name: example + name: maprsexample +spec: + forProvider: + location: West Europe diff --git a/examples/alertsmanagement/v1beta2/monitorsmartdetectoralertrule.yaml b/examples/alertsmanagement/v1beta2/monitorsmartdetectoralertrule.yaml new file mode 100644 index 000000000..a787f684c --- /dev/null +++ b/examples/alertsmanagement/v1beta2/monitorsmartdetectoralertrule.yaml @@ -0,0 +1,75 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: alertsmanagement.azure.upbound.io/v1beta2 +kind: MonitorSmartDetectorAlertRule +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta2/monitorsmartdetectoralertrule + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + actionGroup: + idsRefs: + - name: example + detectorType: FailureAnomaliesDetector + frequency: PT1M + name: myrule + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + scopeResourceIdsRefs: + - name: example + severity: Sev0 + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta2/monitorsmartdetectoralertrule + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationType: web + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta2/monitorsmartdetectoralertrule + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + shortName: examplegroup + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: alertsmanagement/v1beta1/monitorsmartdetectoralertrule + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/apimanagement/v1beta2/api.yaml b/examples/apimanagement/v1beta2/api.yaml new file mode 100644 index 000000000..f62435a1e --- /dev/null +++ b/examples/apimanagement/v1beta2/api.yaml @@ -0,0 +1,63 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: API +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/api + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + displayName: Example API + import: + contentFormat: swagger-link-json + contentValue: http://conferenceapi.azurewebsites.net/?format=json + path: example + protocols: + - https + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + revision: "1" + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Management +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/api + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: uptest-management-example +spec: + forProvider: + location: West Europe + publisherEmail: company@terraform.io + publisherName: My Company + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Developer_1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta1/api + labels: + testing.upbound.io/example-name: example + name: uptest-resourcegroup-example +spec: + forProvider: + location: West Europe diff --git a/examples/apimanagement/v1beta2/apidiagnostic.yaml b/examples/apimanagement/v1beta2/apidiagnostic.yaml new file mode 100644 index 000000000..b4264003d --- /dev/null +++ b/examples/apimanagement/v1beta2/apidiagnostic.yaml @@ -0,0 +1,165 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: APIDiagnostic +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/apidiagnostic + labels: + testing.upbound.io/example-name: example + name: applicationinsights +spec: + forProvider: + alwaysLogErrors: true + apiManagementLoggerIdSelector: + matchLabels: + testing.upbound.io/example-name: example + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + apiNameSelector: + matchLabels: + testing.upbound.io/example-name: example + backendRequest: + bodyBytes: 32 + headersToLog: + - content-type + - accept + - origin + backendResponse: + bodyBytes: 32 + headersToLog: + - content-type + - content-length + - origin + frontendRequest: + bodyBytes: 32 + headersToLog: + - content-type + - accept + - origin + frontendResponse: + bodyBytes: 32 + headersToLog: + - content-type + - content-length + - origin + httpCorrelationProtocol: W3C + logClientIp: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + samplingPercentage: 5 + verbosity: verbose + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: API +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/apidiagnostic + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + displayName: Example API + import: + contentFormat: swagger-link-json + contentValue: http://conferenceapi.azurewebsites.net/?format=json + path: example + protocols: + - https + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + revision: "1" + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Logger +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/apidiagnostic + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + applicationInsights: + instrumentationKeySecretRef: + key: attribute.instrumentation_key + name: example-application-insights + namespace: upbound-system + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/apidiagnostic + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationType: other + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + writeConnectionSecretToRef: + name: example-application-insights + namespace: upbound-system + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Management +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/apidiagnostic + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: uptest-management-example +spec: + forProvider: + location: West Europe + publisherEmail: company@terraform.io + publisherName: My Company + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Developer_1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta1/apidiagnostic + labels: + testing.upbound.io/example-name: example + name: uptest-resourcegroup-example +spec: + forProvider: + location: West Europe diff --git a/examples/apimanagement/v1beta2/apioperation.yaml b/examples/apimanagement/v1beta2/apioperation.yaml new file mode 100644 index 000000000..da06ff6aa --- /dev/null +++ b/examples/apimanagement/v1beta2/apioperation.yaml @@ -0,0 +1,91 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: APIOperation +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/apioperation + labels: + testing.upbound.io/example-name: example + name: user-delete +spec: + forProvider: + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + apiNameSelector: + matchLabels: + testing.upbound.io/example-name: example + description: This can only be done by the logged in user. + displayName: Delete User Operation + method: DELETE + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + response: + - statusCode: 200 + urlTemplate: /users/delete + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: API +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/apioperation + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + displayName: Example API + import: + contentFormat: swagger-link-json + contentValue: http://conferenceapi.azurewebsites.net/?format=json + path: example + protocols: + - https + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + revision: "1" + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Management +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/apioperation + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: uptest-management-example +spec: + forProvider: + location: West Europe + publisherEmail: company@terraform.io + publisherName: My Company + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Developer_1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta1/apioperation + labels: + testing.upbound.io/example-name: example + name: uptest-resourcegroup-example +spec: + forProvider: + location: West Europe diff --git a/examples/apimanagement/v1beta2/backend.yaml b/examples/apimanagement/v1beta2/backend.yaml new file mode 100644 index 000000000..5c1689c5e --- /dev/null +++ b/examples/apimanagement/v1beta2/backend.yaml @@ -0,0 +1,57 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Backend +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/backend + labels: + testing.upbound.io/example-name: example + name: example-backend +spec: + forProvider: + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + protocol: http + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + url: https://backend + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Management +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/backend + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: uptest-management-example +spec: + forProvider: + location: West Europe + publisherEmail: company@terraform.io + publisherName: My Company + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Developer_1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta1/backend + labels: + testing.upbound.io/example-name: example + name: uptest-resourcegroup-example +spec: + forProvider: + location: West Europe diff --git a/examples/apimanagement/v1beta2/diagnostic.yaml b/examples/apimanagement/v1beta2/diagnostic.yaml new file mode 100644 index 000000000..480e20d92 --- /dev/null +++ b/examples/apimanagement/v1beta2/diagnostic.yaml @@ -0,0 +1,136 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Diagnostic +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/diagnostic + labels: + testing.upbound.io/example-name: example + name: applicationinsights +spec: + forProvider: + alwaysLogErrors: true + apiManagementLoggerIdSelector: + matchLabels: + testing.upbound.io/example-name: example + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + backendRequest: + bodyBytes: 32 + headersToLog: + - content-type + - accept + - origin + backendResponse: + bodyBytes: 32 + headersToLog: + - content-type + - content-length + - origin + frontendRequest: + bodyBytes: 32 + headersToLog: + - content-type + - accept + - origin + frontendResponse: + bodyBytes: 32 + headersToLog: + - content-type + - content-length + - origin + httpCorrelationProtocol: W3C + logClientIp: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + samplingPercentage: 5 + verbosity: verbose + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Logger +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/diagnostic + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + applicationInsights: + instrumentationKeySecretRef: + key: attribute.instrumentation_key + name: example-application-insights + namespace: upbound-system + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/diagnostic + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-logger.sh + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationType: other + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + writeConnectionSecretToRef: + name: example-application-insights + namespace: upbound-system + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Management +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/diagnostic + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: uptest-management-example +spec: + forProvider: + location: West Europe + publisherEmail: company@terraform.io + publisherName: My Company + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Developer_1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta1/diagnostic + labels: + testing.upbound.io/example-name: example + name: uptest-resourcegroup-example +spec: + forProvider: + location: West Europe diff --git a/examples/apimanagement/v1beta2/gateway.yaml b/examples/apimanagement/v1beta2/gateway.yaml new file mode 100644 index 000000000..21eedbc90 --- /dev/null +++ b/examples/apimanagement/v1beta2/gateway.yaml @@ -0,0 +1,58 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Gateway +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/gateway + labels: + testing.upbound.io/example-name: example + name: example-gateway +spec: + forProvider: + apiManagementIdSelector: + matchLabels: + testing.upbound.io/example-name: example + description: Example API Management gateway + locationData: + city: example city + district: example district + name: example name + region: example region + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Management +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/gateway + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: uptest-management-example +spec: + forProvider: + location: West Europe + publisherEmail: company@terraform.io + publisherName: My Company + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Developer_1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta1/gateway + labels: + testing.upbound.io/example-name: example + name: uptest-resourcegroup-example +spec: + forProvider: + location: West Europe diff --git a/examples/apimanagement/v1beta2/logger.yaml b/examples/apimanagement/v1beta2/logger.yaml new file mode 100644 index 000000000..83c807375 --- /dev/null +++ b/examples/apimanagement/v1beta2/logger.yaml @@ -0,0 +1,84 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Logger +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/logger + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + applicationInsights: + instrumentationKeySecretRef: + key: attribute.instrumentation_key + name: example-application-insights + namespace: upbound-system + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/logger + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationType: other + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + writeConnectionSecretToRef: + name: example-application-insights + namespace: upbound-system + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Management +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/logger + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: uptest-management-example +spec: + forProvider: + location: West Europe + publisherEmail: company@terraform.io + publisherName: My Company + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Developer_1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta1/logger + labels: + testing.upbound.io/example-name: example + name: uptest-resourcegroup-example +spec: + forProvider: + location: West Europe diff --git a/examples/apimanagement/v1beta2/management.yaml b/examples/apimanagement/v1beta2/management.yaml new file mode 100644 index 000000000..3d9238a47 --- /dev/null +++ b/examples/apimanagement/v1beta2/management.yaml @@ -0,0 +1,36 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Management +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/management + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: upbound-example +spec: + forProvider: + location: West Europe + publisherEmail: company@terraform.io + publisherName: My Company + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Developer_1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta1/management + labels: + testing.upbound.io/example-name: example + name: example-api-management-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe diff --git a/examples/apimanagement/v1beta2/namedvalue.yaml b/examples/apimanagement/v1beta2/namedvalue.yaml new file mode 100644 index 000000000..e218c6ed9 --- /dev/null +++ b/examples/apimanagement/v1beta2/namedvalue.yaml @@ -0,0 +1,71 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: NamedValue +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/namedvalue + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + apiManagementNameSelector: + matchLabels: + testing.upbound.io/example-name: example + displayName: ExampleProperty + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + valueSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + +--- + +apiVersion: v1 +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +stringData: + example-key: dXBib3VuZHJvY2tz +type: Opaque + +--- + +apiVersion: apimanagement.azure.upbound.io/v1beta2 +kind: Management +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta2/namedvalue + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: uptest-management-example +spec: + forProvider: + location: West Europe + publisherEmail: company@terraform.io + publisherName: My Company + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Developer_1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: apimanagement/v1beta1/namedvalue + labels: + testing.upbound.io/example-name: example + name: uptest-resourcegroup-example +spec: + forProvider: + location: West Europe diff --git a/examples/appconfiguration/v1beta2/configuration.yaml b/examples/appconfiguration/v1beta2/configuration.yaml new file mode 100644 index 000000000..4dd720219 --- /dev/null +++ b/examples/appconfiguration/v1beta2/configuration.yaml @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appconfiguration.azure.upbound.io/v1beta2 +kind: Configuration +metadata: + annotations: + meta.upbound.io/example-id: appconfiguration/v1beta2/configuration + labels: + testing.upbound.io/example-name: appconf + name: appconf-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgconfiguration + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appconfiguration/v1beta1/configuration + labels: + testing.upbound.io/example-name: rgconfiguration + name: rgconfiguration +spec: + forProvider: + location: West Europe diff --git a/examples/appplatform/v1beta2/springcloudapiportal.yaml b/examples/appplatform/v1beta2/springcloudapiportal.yaml new file mode 100644 index 000000000..b2204f2a5 --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudapiportal.yaml @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudAPIPortal +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudapiportal + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapiportal + labels: + testing.upbound.io/example-name: example + name: scapexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudapiportal + labels: + testing.upbound.io/example-name: example + name: scapexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: E0 diff --git a/examples/appplatform/v1beta2/springcloudapp.yaml b/examples/appplatform/v1beta2/springcloudapp.yaml new file mode 100644 index 000000000..dbc95aae6 --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudapp.yaml @@ -0,0 +1,51 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudApp +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudapp + labels: + testing.upbound.io/example-name: example + name: example-app +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serviceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudapp + labels: + testing.upbound.io/example-name: example + name: example-group +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudapp + labels: + testing.upbound.io/example-name: example + name: example-service +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/appplatform/v1beta2/springcloudbuilddeployment.yaml b/examples/appplatform/v1beta2/springcloudbuilddeployment.yaml new file mode 100644 index 000000000..4fe47c39b --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudbuilddeployment.yaml @@ -0,0 +1,77 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudBuildDeployment +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudbuilddeployment + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: scbdexample +spec: + forProvider: + buildResultId: + environmentVariables: + Env: Staging + Foo: Bar + instanceCount: 2 + quota: + cpu: "2" + memory: 4Gi + springCloudAppIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudbuilddeployment + labels: + testing.upbound.io/example-name: example + name: scbdexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudApp +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudbuilddeployment + labels: + testing.upbound.io/example-name: example + name: scbdexample +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serviceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudbuilddeployment + labels: + testing.upbound.io/example-name: example + name: scbdexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: E0 diff --git a/examples/appplatform/v1beta2/springcloudbuilder.yaml b/examples/appplatform/v1beta2/springcloudbuilder.yaml new file mode 100644 index 000000000..62881bda5 --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudbuilder.yaml @@ -0,0 +1,58 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudBuilder +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudbuilder + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: scbexample +spec: + forProvider: + buildPackGroup: + - buildPackIds: + - tanzu-buildpacks/java-azure + name: mix + name: scbexample + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + stack: + id: io.buildpacks.stacks.bionic + version: base + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudbuilder + labels: + testing.upbound.io/example-name: example + name: scbexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudbuilder + labels: + testing.upbound.io/example-name: example + name: scbexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: E0 diff --git a/examples/appplatform/v1beta2/springcloudbuildpackbinding.yaml b/examples/appplatform/v1beta2/springcloudbuildpackbinding.yaml new file mode 100644 index 000000000..2e4f818f3 --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudbuildpackbinding.yaml @@ -0,0 +1,75 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudBuildPackBinding +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudbuildpackbinding + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: scbpbexample +spec: + forProvider: + bindingType: ApplicationInsights + springCloudBuilderIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudbuildpackbinding + labels: + testing.upbound.io/example-name: example + name: scbpbexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudBuilder +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudbuildpackbinding + labels: + testing.upbound.io/example-name: example + name: scbpbexample +spec: + forProvider: + buildPackGroup: + - buildPackIds: + - tanzu-buildpacks/java-azure + name: mix + name: example + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + stack: + id: io.buildpacks.stacks.bionic + version: base + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudbuildpackbinding + labels: + testing.upbound.io/example-name: example + name: scbpbexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: E0 diff --git a/examples/appplatform/v1beta2/springcloudcontainerdeployment.yaml b/examples/appplatform/v1beta2/springcloudcontainerdeployment.yaml new file mode 100644 index 000000000..b933dcf7a --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudcontainerdeployment.yaml @@ -0,0 +1,82 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudContainerDeployment +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudcontainerdeployment + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: sccdexample +spec: + forProvider: + arguments: + - -cp + - /app/resources:/app/classes:/app/libs/* + - hello.Application + commands: + - java + environmentVariables: + Env: Staging + Foo: Bar + image: springio/gs-spring-boot-docker + instanceCount: 2 + languageFramework: springboot + server: docker.io + springCloudAppIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudcontainerdeployment + labels: + testing.upbound.io/example-name: example + name: sccdexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudApp +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudcontainerdeployment + labels: + testing.upbound.io/example-name: example + name: sccdexample +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serviceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudcontainerdeployment + labels: + testing.upbound.io/example-name: example + name: sccdexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: E0 diff --git a/examples/appplatform/v1beta2/springcloudcustomizedaccelerator.yaml b/examples/appplatform/v1beta2/springcloudcustomizedaccelerator.yaml new file mode 100644 index 000000000..0369f3170 --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudcustomizedaccelerator.yaml @@ -0,0 +1,77 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudCustomizedAccelerator +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudcustomizedaccelerator + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: sccaexample +spec: + forProvider: + acceleratorTags: + - tag-a + - tag-b + description: example description + displayName: example name + gitRepository: + gitTag: spring.version.2.0.3 + intervalInSeconds: 100 + url: https://github.com/Azure-Samples/piggymetrics + iconUrl: https://images.freecreatives.com/wp-content/uploads/2015/05/smiley-559124_640.jpg + springCloudAcceleratorIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudcustomizedaccelerator + labels: + testing.upbound.io/example-name: example + name: sccaexample +spec: + forProvider: + location: west europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta1 +kind: SpringCloudAccelerator +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudcustomizedaccelerator + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + name: default + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudcustomizedaccelerator + labels: + testing.upbound.io/example-name: example + name: sccaexample +spec: + forProvider: + location: west europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: E0 diff --git a/examples/appplatform/v1beta2/springclouddevtoolportal.yaml b/examples/appplatform/v1beta2/springclouddevtoolportal.yaml new file mode 100644 index 000000000..a570e5637 --- /dev/null +++ b/examples/appplatform/v1beta2/springclouddevtoolportal.yaml @@ -0,0 +1,62 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudDevToolPortal +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springclouddevtoolportal + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + applicationAcceleratorEnabled: true + applicationLiveViewEnabled: true + name: default + publicNetworkAccessEnabled: true + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + sso: + clientId: example id + clientSecret: example secret + metadataUrl: https://www.example.com/metadata + scope: + - openid + - profile + - email + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springclouddevtoolportal + labels: + testing.upbound.io/example-name: example + name: scdtpex +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springclouddevtoolportal + labels: + testing.upbound.io/example-name: example + name: scdtpex +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: E0 diff --git a/examples/appplatform/v1beta2/springcloudgateway.yaml b/examples/appplatform/v1beta2/springcloudgateway.yaml new file mode 100644 index 000000000..89302d938 --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudgateway.yaml @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudGateway +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudgateway + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + springCloudServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudgateway + labels: + testing.upbound.io/example-name: example + name: scgexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudgateway + labels: + testing.upbound.io/example-name: example + name: scgexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: E0 diff --git a/examples/appplatform/v1beta2/springcloudjavadeployment.yaml b/examples/appplatform/v1beta2/springcloudjavadeployment.yaml new file mode 100644 index 000000000..335e2fdb3 --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudjavadeployment.yaml @@ -0,0 +1,67 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudJavaDeployment +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudjavadeployment + labels: + testing.upbound.io/example-name: example + name: example-deploy +spec: + forProvider: + springCloudAppIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudjavadeployment + labels: + testing.upbound.io/example-name: example + name: example-group +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudApp +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudjavadeployment + labels: + testing.upbound.io/example-name: example + name: example-app +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serviceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudjavadeployment + labels: + testing.upbound.io/example-name: example + name: example-service +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/appplatform/v1beta2/springcloudservice.yaml b/examples/appplatform/v1beta2/springcloudservice.yaml new file mode 100644 index 000000000..d3647b359 --- /dev/null +++ b/examples/appplatform/v1beta2/springcloudservice.yaml @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta2/springcloudservice + labels: + testing.upbound.io/example-name: example + name: example-service +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: appplatform/v1beta1/springcloudservice + labels: + testing.upbound.io/example-name: example + name: example-group +spec: + forProvider: + location: West Europe diff --git a/examples/authorization/v1beta2/resourcegrouppolicyassignment.yaml b/examples/authorization/v1beta2/resourcegrouppolicyassignment.yaml new file mode 100644 index 000000000..512a08377 --- /dev/null +++ b/examples/authorization/v1beta2/resourcegrouppolicyassignment.yaml @@ -0,0 +1,51 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: authorization.azure.upbound.io/v1beta2 +kind: ResourceGroupPolicyAssignment +metadata: + annotations: + meta.upbound.io/example-id: authorization/v1beta2/resourcegrouppolicyassignment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + policyDefinitionIdSelector: + matchLabels: + testing.upbound.io/example-name: example-auth + resourceGroupIdSelector: + matchLabels: + testing.upbound.io/example-name: example-auth + +--- + +apiVersion: authorization.azure.upbound.io/v1beta1 +kind: PolicyDefinition +metadata: + annotations: + meta.upbound.io/example-id: authorization/v1beta2/resourcegrouppolicyassignment + labels: + testing.upbound.io/example-name: example-auth + name: example +spec: + forProvider: + displayName: my-policy-definition + mode: All + policyRule: "\t{\n \"if\": {\n \"not\": {\n \"field\": \"location\",\n + \ \"equals\": \"westeurope\"\n }\n },\n \"then\": {\n \"effect\": + \"Deny\"\n }\n }\n" + policyType: Custom + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + labels: + testing.upbound.io/example-name: example-auth + name: example-auth-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe diff --git a/examples/authorization/v1beta2/resourcepolicyassignment.yaml b/examples/authorization/v1beta2/resourcepolicyassignment.yaml new file mode 100644 index 000000000..3dc633746 --- /dev/null +++ b/examples/authorization/v1beta2/resourcepolicyassignment.yaml @@ -0,0 +1,79 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: authorization.azure.upbound.io/v1beta2 +kind: ResourcePolicyAssignment +metadata: + annotations: + meta.upbound.io/example-id: authorization/v1beta2/resourcepolicyassignment + upjet.upbound.io/manual-intervention: ResourcePolicyAssignment depends on existing + resource id (Virutal Network in this example) + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + name: example-policy-assignment + policyDefinitionIdSelector: + matchLabels: + testing.upbound.io/example-name: examplepolicy + resourceId: ${azurerm_virtual_network.example.id} + +--- + +apiVersion: authorization.azure.upbound.io/v1beta1 +kind: PolicyDefinition +metadata: + annotations: + meta.upbound.io/example-id: authorization/v1beta2/resourcepolicyassignment + upjet.upbound.io/manual-intervention: ResourcePolicyAssignment depends on existing + resource id (Virutal Network in this example) + labels: + testing.upbound.io/example-name: examplepolicy + name: examplepolicy +spec: + forProvider: + displayName: somename + mode: All + policyRule: "\t{\n \"if\": {\n \"not\": {\n \"field\": \"location\",\n + \ \"equals\": \"westeurope\"\n }\n },\n \"then\": {\n \"effect\": + \"Deny\"\n }\n }\n" + policyType: Custom + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: authorization/v1beta1/resourcepolicyassignment + upjet.upbound.io/manual-intervention: ResourcePolicyAssignment depends on existing + resource id (Virutal Network in this example) + labels: + testing.upbound.io/example-name: examplepolicgyrg + name: examplepolicgyrg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: authorization/v1beta2/resourcepolicyassignment + upjet.upbound.io/manual-intervention: ResourcePolicyAssignment depends on existing + resource id (Virutal Network in this example) + labels: + testing.upbound.io/example-name: examplevn + name: examplevn +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: examplepolicgyrg diff --git a/examples/authorization/v1beta2/subscriptionpolicyassignment.yaml b/examples/authorization/v1beta2/subscriptionpolicyassignment.yaml new file mode 100644 index 000000000..4f444e7f6 --- /dev/null +++ b/examples/authorization/v1beta2/subscriptionpolicyassignment.yaml @@ -0,0 +1,37 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: authorization.azure.upbound.io/v1beta2 +kind: SubscriptionPolicyAssignment +metadata: + annotations: + meta.upbound.io/example-id: authorization/v1beta2/subscriptionpolicyassignment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + policyDefinitionIdSelector: + matchLabels: + testing.upbound.io/example-name: example + subscriptionId: ${data.azurerm_client_config.current.subscription_resource_id} + +--- + +apiVersion: authorization.azure.upbound.io/v1beta1 +kind: PolicyDefinition +metadata: + annotations: + meta.upbound.io/example-id: authorization/v1beta2/subscriptionpolicyassignment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + displayName: somename + mode: All + policyRule: "\t{\n \"if\": {\n \"not\": {\n \"field\": \"location\",\n + \ \"equals\": \"westeurope\"\n }\n },\n \"then\": {\n \"effect\": + \"Deny\"\n }\n }\n" + policyType: Custom diff --git a/examples/automation/v1beta2/account.yaml b/examples/automation/v1beta2/account.yaml new file mode 100644 index 000000000..f5bc383ce --- /dev/null +++ b/examples/automation/v1beta2/account.yaml @@ -0,0 +1,35 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: automation.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta2/account + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Basic + tags: + environment: development + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta1/account + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/automation/v1beta2/module.yaml b/examples/automation/v1beta2/module.yaml new file mode 100644 index 000000000..b1574236c --- /dev/null +++ b/examples/automation/v1beta2/module.yaml @@ -0,0 +1,56 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: automation.azure.upbound.io/v1beta2 +kind: Module +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta2/module + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + automationAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + moduleLink: + uri: https://devopsgallerystorage.blob.core.windows.net/packages/xactivedirectory.2.19.0.nupkg + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: automation.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta2/module + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Basic + tags: + environment: development + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta1/module + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/automation/v1beta2/runbook.yaml b/examples/automation/v1beta2/runbook.yaml new file mode 100644 index 000000000..cf5622ecf --- /dev/null +++ b/examples/automation/v1beta2/runbook.yaml @@ -0,0 +1,63 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: automation.azure.upbound.io/v1beta2 +kind: RunBook +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta2/runbook + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + automationAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: examplerb0001 + content: 'workflow MyFirstRunbook-Workflow { $resourceGroup = "resourceGroupName" + # Ensures you do not inherit an AzContext in your runbook Disable-AzContextAutosave + -Scope Process # Connect to Azure with system-assigned managed identity Connect-AzAccount + -Identity # set and store context $AzureContext = Set-AzContext –SubscriptionId + "" }' + description: This is an example runbook + location: West Europe + logProgress: true + logVerbose: true + name: Get-AzureVMTutorial + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgrunbook + runbookType: PowerShell + +--- + +apiVersion: automation.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta2/runbook + labels: + testing.upbound.io/example-name: examplerb0001 + name: examplerb0001 +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgrunbook + skuName: Basic + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta1/runbook + labels: + testing.upbound.io/example-name: rgrunbook + name: rgrunbook +spec: + forProvider: + location: West Europe diff --git a/examples/automation/v1beta2/schedule.yaml b/examples/automation/v1beta2/schedule.yaml new file mode 100644 index 000000000..8deddff40 --- /dev/null +++ b/examples/automation/v1beta2/schedule.yaml @@ -0,0 +1,58 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: automation.azure.upbound.io/v1beta2 +kind: Schedule +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta2/schedule + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + automationAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + description: This is an example schedule + frequency: Week + interval: 1 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + timezone: Australia/Perth + +--- + +apiVersion: automation.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta2/schedule + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Basic + tags: + environment: development + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: automation/v1beta1/schedule + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/cdn/v1beta2/frontdoorcustomdomain.yaml b/examples/cdn/v1beta2/frontdoorcustomdomain.yaml new file mode 100644 index 000000000..8ba91f4e5 --- /dev/null +++ b/examples/cdn/v1beta2/frontdoorcustomdomain.yaml @@ -0,0 +1,72 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorCustomDomain +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cdnFrontdoorProfileIdSelector: + matchLabels: + testing.upbound.io/example-name: example + dnsZoneIdSelector: + matchLabels: + testing.upbound.io/example-name: example + hostName: contoso.fabrikam.com + tls: + certificateType: ManagedCertificate + minimumTlsVersion: TLS12 + +--- + +apiVersion: cdn.azure.upbound.io/v1beta1 +kind: FrontdoorProfile +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgfrontdoorustomdomain + skuName: Standard_AzureFrontDoor + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: DNSZone +metadata: + annotations: + crossplane.io/external-name: upbound-example.com + meta.upbound.io/example-id: cdn/v1beta2/frontdoorcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgfrontdoorustomdomain + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta1/frontdoorcustomdomain + labels: + testing.upbound.io/example-name: rgfrontdoorustomdomain + name: rgfrontdoorustomdomain +spec: + forProvider: + location: West Europe diff --git a/examples/cdn/v1beta2/frontdoororigin.yaml b/examples/cdn/v1beta2/frontdoororigin.yaml new file mode 100644 index 000000000..bd2fdbb80 --- /dev/null +++ b/examples/cdn/v1beta2/frontdoororigin.yaml @@ -0,0 +1,73 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorOrigin +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoororigin + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cdnFrontdoorOriginGroupIdSelector: + matchLabels: + testing.upbound.io/example-name: example + certificateNameCheckEnabled: false + enabled: true + hostName: contoso.com + httpPort: 80 + httpsPort: 443 + originHostHeader: www.contoso.com + priority: 1 + weight: 1 + +--- + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorOriginGroup +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoororigin + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cdnFrontdoorProfileIdSelector: + matchLabels: + testing.upbound.io/example-name: example + loadBalancing: {} + +--- + +apiVersion: cdn.azure.upbound.io/v1beta1 +kind: FrontdoorProfile +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoororigin + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Premium_AzureFrontDoor + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta1/frontdoororigin + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/cdn/v1beta2/frontdoororigingroup.yaml b/examples/cdn/v1beta2/frontdoororigingroup.yaml new file mode 100644 index 000000000..b447b4fdc --- /dev/null +++ b/examples/cdn/v1beta2/frontdoororigingroup.yaml @@ -0,0 +1,61 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorOriginGroup +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoororigingroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cdnFrontdoorProfileIdSelector: + matchLabels: + testing.upbound.io/example-name: example + healthProbe: + intervalInSeconds: 240 + path: /healthProbe + protocol: Https + requestType: HEAD + loadBalancing: + additionalLatencyInMilliseconds: 0 + sampleSize: 16 + successfulSamplesRequired: 3 + restoreTrafficTimeToHealedOrNewEndpointInMinutes: 10 + sessionAffinityEnabled: true + +--- + +apiVersion: cdn.azure.upbound.io/v1beta1 +kind: FrontdoorProfile +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoororigingroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgfrontdoororigingroup + skuName: Standard_AzureFrontDoor + tags: + environment: Production + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta1/frontdoororigingroup + labels: + testing.upbound.io/example-name: rgfrontdoororigingroup + name: rgfrontdoororigingroup +spec: + forProvider: + location: West Europe diff --git a/examples/cdn/v1beta2/frontdoorroute.yaml b/examples/cdn/v1beta2/frontdoorroute.yaml new file mode 100644 index 000000000..008cb1f93 --- /dev/null +++ b/examples/cdn/v1beta2/frontdoorroute.yaml @@ -0,0 +1,209 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorRoute +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorroute + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cache: + compressionEnabled: true + contentTypesToCompress: + - text/html + - text/javascript + - text/xml + queryStringCachingBehavior: IgnoreSpecifiedQueryStrings + queryStrings: + - account + - settings + cdnFrontdoorCustomDomainIdsRefs: + - name: contoso + - name: fabrikam + cdnFrontdoorEndpointIdSelector: + matchLabels: + testing.upbound.io/example-name: example + cdnFrontdoorOriginGroupIdSelector: + matchLabels: + testing.upbound.io/example-name: example + cdnFrontdoorOriginIdsRefs: + - name: example + enabled: true + forwardingProtocol: HttpsOnly + httpsRedirectEnabled: true + linkToDefaultDomain: false + patternsToMatch: + - /* + supportedProtocols: + - Http + - Https + +--- + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorCustomDomain +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorroute + labels: + testing.upbound.io/example-name: contoso + name: contoso +spec: + forProvider: + cdnFrontdoorProfileIdSelector: + matchLabels: + testing.upbound.io/example-name: example + dnsZoneIdSelector: + matchLabels: + testing.upbound.io/example-name: example + hostName: contoso.contoso.com + tls: + certificateType: ManagedCertificate + minimumTlsVersion: TLS12 + +--- + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorCustomDomain +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorroute + labels: + testing.upbound.io/example-name: fabrikam + name: fabrikam +spec: + forProvider: + cdnFrontdoorProfileIdSelector: + matchLabels: + testing.upbound.io/example-name: example + dnsZoneIdSelector: + matchLabels: + testing.upbound.io/example-name: example + hostName: contoso.fabrikam.com + tls: + certificateType: ManagedCertificate + minimumTlsVersion: TLS12 + +--- + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorOrigin +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorroute + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cdnFrontdoorOriginGroupIdSelector: + matchLabels: + testing.upbound.io/example-name: example + certificateNameCheckEnabled: false + enabled: true + hostName: contoso.com + httpPort: 80 + httpsPort: 443 + originHostHeader: www.contoso.com + priority: 1 + weight: 1 + +--- + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorOriginGroup +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorroute + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cdnFrontdoorProfileIdSelector: + matchLabels: + testing.upbound.io/example-name: example + healthProbe: + intervalInSeconds: 240 + path: /healthProbe + protocol: Https + requestType: HEAD + loadBalancing: + additionalLatencyInMilliseconds: 0 + sampleSize: 16 + successfulSamplesRequired: 3 + restoreTrafficTimeToHealedOrNewEndpointInMinutes: 10 + sessionAffinityEnabled: true + +--- + +apiVersion: cdn.azure.upbound.io/v1beta1 +kind: FrontdoorProfile +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorroute + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgexample + skuName: Standard_AzureFrontDoor + tags: + environment: Production + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: DNSZone +metadata: + annotations: + crossplane.io/external-name: upbound-example.com + meta.upbound.io/example-id: cdn/v1beta2/frontdoorroute + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgexample + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta1/frontdoorroute + labels: + testing.upbound.io/example-name: rgexample + name: rgexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: cdn.azure.upbound.io/v1beta1 +kind: FrontdoorEndpoint +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorroute + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cdnFrontdoorProfileIdSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + ENV: example diff --git a/examples/cdn/v1beta2/frontdoorsecuritypolicy.yaml b/examples/cdn/v1beta2/frontdoorsecuritypolicy.yaml new file mode 100644 index 000000000..5635cb771 --- /dev/null +++ b/examples/cdn/v1beta2/frontdoorsecuritypolicy.yaml @@ -0,0 +1,139 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorSecurityPolicy +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorsecuritypolicy + labels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + name: frontdoorsecuritypolicy +spec: + forProvider: + cdnFrontdoorProfileIdSelector: + matchLabels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + securityPolicies: + firewall: + association: + domain: + - cdnFrontdoorDomainIdSelector: + matchLabels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + patternsToMatch: + - /* + cdnFrontdoorFirewallPolicyIdSelector: + matchLabels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + +--- + +apiVersion: cdn.azure.upbound.io/v1beta2 +kind: FrontdoorCustomDomain +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorsecuritypolicy + labels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + name: frontdoorsecuritypolicy +spec: + forProvider: + cdnFrontdoorProfileIdSelector: + matchLabels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + dnsZoneIdSelector: + matchLabels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + hostName: contoso.fabrikam.com + tls: + certificateType: ManagedCertificate + minimumTlsVersion: TLS12 + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: DNSZone +metadata: + annotations: + crossplane.io/external-name: upbound-example.com + meta.upbound.io/example-id: cdn/v1beta2/frontdoorsecuritypolicy + labels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + name: frontdoorsecuritypolicy +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + +--- + +apiVersion: cdn.azure.upbound.io/v1beta1 +kind: FrontdoorFirewallPolicy +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorsecuritypolicy + labels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + name: frontdoorsecuritypolicy +spec: + forProvider: + customBlockResponseBody: PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg== + customBlockResponseStatusCode: 403 + customRule: + - action: Block + enabled: true + matchCondition: + - matchValues: + - 192.168.1.0/24 + - 10.0.1.0/24 + matchVariable: RemoteAddr + negationCondition: false + operator: IPMatch + name: Rule1 + priority: 1 + rateLimitDurationInMinutes: 1 + rateLimitThreshold: 10 + type: MatchRule + enabled: true + mode: Prevention + redirectUrl: https://www.contoso.com + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + skuNameSelector: + matchLabels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + +--- + +apiVersion: cdn.azure.upbound.io/v1beta1 +kind: FrontdoorProfile +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta2/frontdoorsecuritypolicy + labels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + name: frontdoorsecuritypolicy +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + skuName: Premium_AzureFrontDoor + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: cdn/v1beta1/frontdoorsecuritypolicy + labels: + testing.upbound.io/example-name: frontdoorsecuritypolicy + name: frontdoorsecuritypolicy +spec: + forProvider: + location: West Europe diff --git a/examples/cognitiveservices/v1beta2/account.yaml b/examples/cognitiveservices/v1beta2/account.yaml new file mode 100644 index 000000000..264bc2a87 --- /dev/null +++ b/examples/cognitiveservices/v1beta2/account.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cognitiveservices.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: cognitiveservices/v1beta2/account + labels: + testing.upbound.io/example-name: cognitive-services-label + name: cognitiveservices-name +spec: + forProvider: + kind: SpeechServices + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: azure-bot-r-group-label + skuName: S0 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: botservice/v1beta1/botchanneldirectlinespeech + labels: + testing.upbound.io/example-name: azure-bot-r-group-label + name: bot-resource-group-thu-t +spec: + forProvider: + location: East US diff --git a/examples/cognitiveservices/v1beta2/deployment.yaml b/examples/cognitiveservices/v1beta2/deployment.yaml new file mode 100644 index 000000000..fe57118ee --- /dev/null +++ b/examples/cognitiveservices/v1beta2/deployment.yaml @@ -0,0 +1,56 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cognitiveservices.azure.upbound.io/v1beta2 +kind: Deployment +metadata: + annotations: + meta.upbound.io/example-id: cognitiveservices/v1beta2/deployment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cognitiveAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: example + model: + format: OpenAI + name: text-embedding-ada-002 + version: "2" + scale: + type: Standard + +--- + +apiVersion: cognitiveservices.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: cognitiveservices/v1beta2/deployment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + kind: OpenAI + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: S0 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: cognitiveservices/v1beta1/deployment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/compute/v1beta2/diskencryptionset.yaml b/examples/compute/v1beta2/diskencryptionset.yaml new file mode 100644 index 000000000..3430f30bf --- /dev/null +++ b/examples/compute/v1beta2/diskencryptionset.yaml @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: DiskEncryptionSet +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/diskencryptionset + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example +spec: + forProvider: + identity: + type: SystemAssigned + keyVaultKeyId: https://yyy-example-keyvault.vault.azure.net/keys/yyppdd-example-key/0cdfea4ef85045b0a3a8ca539f6a311c + location: West Europe + resourceGroupNameRef: + name: example-compute diff --git a/examples/compute/v1beta2/galleryapplicationversion.yaml b/examples/compute/v1beta2/galleryapplicationversion.yaml new file mode 100644 index 000000000..5161ed2bf --- /dev/null +++ b/examples/compute/v1beta2/galleryapplicationversion.yaml @@ -0,0 +1,137 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: GalleryApplicationVersion +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversion + name: galleryappversion +spec: + forProvider: + galleryApplicationIdSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversiongalleryapp + location: West Europe + manageAction: + install: '[install command]' + remove: '[remove command]' + name: 1.0.0 + source: + mediaLinkSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionstorblob + targetRegion: + - nameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversiongalleryapp + regionalReplicaCount: 1 + +--- + +apiVersion: compute.azure.upbound.io/v1beta1 +kind: GalleryApplication +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversiongalleryapp + name: galleryappversiongalleryapp +spec: + forProvider: + galleryIdSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversiongallery + location: West Europe + supportedOsType: Linux + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversionrg + name: galleryappversionrg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: SharedImageGallery +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversiongallery + name: galleryappversiongallery +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionrg + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversionstoracc + name: galleryappversionstoracc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionrg + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Blob +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversionstorblob + name: galleryappversionstorblob +spec: + forProvider: + sourceContent: '[scripts file content]' + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionstoracc + storageContainerNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionstorcont + type: Block + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/galleryapplicationversion + labels: + testing.upbound.io/example-name: galleryappversionstorcont + name: galleryappversionstorcont +spec: + forProvider: + containerAccessType: blob + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: galleryappversionstoracc diff --git a/examples/compute/v1beta2/image.yaml b/examples/compute/v1beta2/image.yaml new file mode 100644 index 000000000..05a8b5f63 --- /dev/null +++ b/examples/compute/v1beta2/image.yaml @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: Image +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/image + upjet.upbound.io/manual-intervention: This resource needs a valid blob uri. + name: example +spec: + forProvider: + location: West Europe + osDisk: + blobUri: uri_here + osState: Generalized + osType: Linux + sizeGb: 30 + resourceGroupNameRef: + name: example-compute diff --git a/examples/compute/v1beta2/linuxvirtualmachine.yaml b/examples/compute/v1beta2/linuxvirtualmachine.yaml new file mode 100644 index 000000000..9c4e816f0 --- /dev/null +++ b/examples/compute/v1beta2/linuxvirtualmachine.yaml @@ -0,0 +1,111 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: LinuxVirtualMachine +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/linuxvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + adminSshKey: + - publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+wWK73dCr+jgQOAxNsHAnNNNMEMWOHYEccp6wJm2gotpr9katuF/ZAdou5AaW1C61slRkHRkpRRX9FA9CYBiitZgvCCz+3nWNN7l/Up54Zps/pHWGZLHNJZRYyAB6j5yVLMVHIHriY49d/GZTZVNB8GoJv9Gakwc/fuEZYYl4YDFiGMBP///TzlI4jhiJzjKnEvqPFki5p2ZRJqcbCiF4pJrxUQR/RXqVFQdbRLZgYfJ8xGB878RENq3yQ39d8dVOkq4edbkzwcUmwwwkYVPIoDGsYLaRHnG+To7FvMeyO7xDVQkMKzopTQV8AuKpyvpqu0a9pWOMaiCyDytO7GGN + you@me.com + username: adminuser + adminUsername: adminuser + location: West Europe + networkInterfaceIdsRefs: + - name: example + osDisk: + caching: ReadWrite + storageAccountType: Standard_LRS + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + size: Standard_F2 + sourceImageReference: + offer: UbuntuServer + publisher: Canonical + sku: 16.04-LTS + version: latest + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: NetworkInterface +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/linuxvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + ipConfiguration: + - name: internal + privateIpAddressAllocation: Dynamic + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/linuxvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/linuxvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/linuxvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/compute/v1beta2/linuxvirtualmachinescaleset.yaml b/examples/compute/v1beta2/linuxvirtualmachinescaleset.yaml new file mode 100644 index 000000000..73a2a5143 --- /dev/null +++ b/examples/compute/v1beta2/linuxvirtualmachinescaleset.yaml @@ -0,0 +1,96 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: LinuxVirtualMachineScaleSet +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/linuxvirtualmachinescaleset + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + adminSshKey: + - publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+wWK73dCr+jgQOAxNsHAnNNNMEMWOHYEccp6wJm2gotpr9katuF/ZAdou5AaW1C61slRkHRkpRRX9FA9CYBiitZgvCCz+3nWNN7l/Up54Zps/pHWGZLHNJZRYyAB6j5yVLMVHIHriY49d/GZTZVNB8GoJv9Gakwc/fuEZYYl4YDFiGMBP///TzlI4jhiJzjKnEvqPFki5p2ZRJqcbCiF4pJrxUQR/RXqVFQdbRLZgYfJ8xGB878RENq3yQ39d8dVOkq4edbkzwcUmwwwkYVPIoDGsYLaRHnG+To7FvMeyO7xDVQkMKzopTQV8AuKpyvpqu0a9pWOMaiCyDytO7GGN + you@me.com + username: adminuser + adminUsername: adminuser + instances: 1 + location: West Europe + networkInterface: + - ipConfiguration: + - name: internal + primary: true + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: internal + name: example + primary: true + osDisk: + caching: ReadWrite + storageAccountType: Standard_LRS + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard_F2 + sourceImageReference: + offer: UbuntuServer + publisher: Canonical + sku: 16.04-LTS + version: latest + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/linuxvirtualmachinescaleset + labels: + testing.upbound.io/example-name: internal + name: internal +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/linuxvirtualmachinescaleset + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/linuxvirtualmachinescaleset + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/compute/v1beta2/manageddisk.yaml b/examples/compute/v1beta2/manageddisk.yaml new file mode 100644 index 000000000..eff092183 --- /dev/null +++ b/examples/compute/v1beta2/manageddisk.yaml @@ -0,0 +1,37 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: ManagedDisk +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/manageddisk + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + createOption: Empty + diskSizeGb: 1 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageAccountType: Standard_LRS + tags: + environment: staging + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/manageddisk + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/compute/v1beta2/orchestratedvirtualmachinescaleset.yaml b/examples/compute/v1beta2/orchestratedvirtualmachinescaleset.yaml new file mode 100644 index 000000000..f3d91ce02 --- /dev/null +++ b/examples/compute/v1beta2/orchestratedvirtualmachinescaleset.yaml @@ -0,0 +1,18 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: OrchestratedVirtualMachineScaleSet +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/orchestratedvirtualmachinescaleset + name: example +spec: + forProvider: + location: West Europe + platformFaultDomainCount: 1 + resourceGroupNameRef: + name: example-compute + zones: + - "1" diff --git a/examples/compute/v1beta2/sharedimagegallery.yaml b/examples/compute/v1beta2/sharedimagegallery.yaml new file mode 100644 index 000000000..504c32cb8 --- /dev/null +++ b/examples/compute/v1beta2/sharedimagegallery.yaml @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: SharedImageGallery +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/sharedimagegallery + name: example +spec: + forProvider: + description: Shared images and things. + location: West Europe + resourceGroupNameRef: + name: example-compute + tags: + Hello: There + World: Example diff --git a/examples/compute/v1beta2/snapshot.yaml b/examples/compute/v1beta2/snapshot.yaml new file mode 100644 index 000000000..f3b5515fa --- /dev/null +++ b/examples/compute/v1beta2/snapshot.yaml @@ -0,0 +1,56 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: Snapshot +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/snapshot + labels: + testing.upbound.io/example-name: example + name: snapshot +spec: + forProvider: + createOption: Copy + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sourceUriSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: ManagedDisk +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/snapshot + labels: + testing.upbound.io/example-name: example + name: example-managed-disk +spec: + forProvider: + createOption: Empty + diskSizeGb: 10 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageAccountType: Standard_LRS + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/snapshot + labels: + testing.upbound.io/example-name: example + name: example-snapshot-rg +spec: + forProvider: + location: West Europe diff --git a/examples/compute/v1beta2/virtualmachineextension.yaml b/examples/compute/v1beta2/virtualmachineextension.yaml new file mode 100644 index 000000000..cb7681877 --- /dev/null +++ b/examples/compute/v1beta2/virtualmachineextension.yaml @@ -0,0 +1,136 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: VirtualMachineExtension +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/virtualmachineextension + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + publisher: Microsoft.Azure.Extensions + settings: |2 + { + "commandToExecute": "hostname && uptime" + } + tags: + environment: Production + type: CustomScript + typeHandlerVersion: "2.0" + virtualMachineIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: LinuxVirtualMachine +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/virtualmachineextension + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + adminSshKey: + - publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+wWK73dCr+jgQOAxNsHAnNNNMEMWOHYEccp6wJm2gotpr9katuF/ZAdou5AaW1C61slRkHRkpRRX9FA9CYBiitZgvCCz+3nWNN7l/Up54Zps/pHWGZLHNJZRYyAB6j5yVLMVHIHriY49d/GZTZVNB8GoJv9Gakwc/fuEZYYl4YDFiGMBP///TzlI4jhiJzjKnEvqPFki5p2ZRJqcbCiF4pJrxUQR/RXqVFQdbRLZgYfJ8xGB878RENq3yQ39d8dVOkq4edbkzwcUmwwwkYVPIoDGsYLaRHnG+To7FvMeyO7xDVQkMKzopTQV8AuKpyvpqu0a9pWOMaiCyDytO7GGN + you@me.com + username: adminuser + adminUsername: adminuser + location: West Europe + networkInterfaceIdsRefs: + - name: example + osDisk: + caching: ReadWrite + storageAccountType: Standard_LRS + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + size: Standard_F2 + sourceImageReference: + offer: UbuntuServer + publisher: Canonical + sku: 16.04-LTS + version: latest + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: NetworkInterface +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/virtualmachineextension + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + ipConfiguration: + - name: testconfiguration1 + privateIpAddressAllocation: Dynamic + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/virtualmachineextension + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/virtualmachineextension + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/virtualmachineextension + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/compute/v1beta2/windowsvirtualmachine.yaml b/examples/compute/v1beta2/windowsvirtualmachine.yaml new file mode 100644 index 000000000..f139f603b --- /dev/null +++ b/examples/compute/v1beta2/windowsvirtualmachine.yaml @@ -0,0 +1,124 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: WindowsVirtualMachine +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/windowsvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + adminPasswordSecretRef: + key: password + name: example-secret + namespace: upbound-system + adminUsername: adminuser + location: West Europe + networkInterfaceIdsRefs: + - name: example + osDisk: + caching: ReadWrite + storageAccountType: Standard_LRS + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + size: Standard_F2 + sourceImageReference: + offer: WindowsServer + publisher: MicrosoftWindowsServer + sku: 2016-Datacenter + version: latest + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: NetworkInterface +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/windowsvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + ipConfiguration: + - name: internal + privateIpAddressAllocation: Dynamic + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/windowsvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/windowsvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/windowsvirtualmachine + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: v1 +data: + password: dGVzdFBhc3N3b3JkITEyMw== +kind: Secret +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/windowsvirtualmachine + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/compute/v1beta2/windowsvirtualmachinescaleset.yaml b/examples/compute/v1beta2/windowsvirtualmachinescaleset.yaml new file mode 100644 index 000000000..f554d4ac3 --- /dev/null +++ b/examples/compute/v1beta2/windowsvirtualmachinescaleset.yaml @@ -0,0 +1,110 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: WindowsVirtualMachineScaleSet +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/windowsvirtualmachinescaleset + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + adminPasswordSecretRef: + key: password + name: example-secret + namespace: upbound-system + adminUsername: adminuser + instances: 1 + location: West Europe + networkInterface: + - ipConfiguration: + - name: internal + primary: true + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: internal + name: example + primary: true + osDisk: + caching: ReadWrite + storageAccountType: Standard_LRS + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard_F2 + sourceImageReference: + offer: WindowsServer + publisher: MicrosoftWindowsServer + sku: 2016-Datacenter-Server-Core + version: latest + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/windowsvirtualmachinescaleset + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/windowsvirtualmachinescaleset + labels: + testing.upbound.io/example-name: internal + name: internal +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta2/windowsvirtualmachinescaleset + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: v1 +data: + password: dGVzdFBhc3N3b3JkITEyMw== +kind: Secret +metadata: + annotations: + meta.upbound.io/example-id: compute/v1beta1/windowsvirtualmachinescaleset + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/consumption/v1beta2/budgetmanagementgroup.yaml b/examples/consumption/v1beta2/budgetmanagementgroup.yaml new file mode 100644 index 000000000..0090bddf4 --- /dev/null +++ b/examples/consumption/v1beta2/budgetmanagementgroup.yaml @@ -0,0 +1,51 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: consumption.azure.upbound.io/v1beta2 +kind: BudgetManagementGroup +metadata: + annotations: + meta.upbound.io/example-id: consumption/v1beta2/budgetmanagementgroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + amount: 1000 + managementGroupIdSelector: + matchLabels: + testing.upbound.io/example-name: example + name: example + notification: + - contactEmails: + - foo@example.com + - bar@example.com + enabled: true + operator: EqualTo + threshold: 90 + - contactEmails: + - foo@example.com + - bar@example.com + enabled: false + operator: GreaterThan + threshold: 100 + thresholdType: Forecasted + timeGrain: Monthly + timePeriod: + endDate: "2023-07-01T00:00:00Z" + startDate: "2023-06-01T00:00:00Z" + +--- + +apiVersion: management.azure.upbound.io/v1beta1 +kind: ManagementGroup +metadata: + annotations: + meta.upbound.io/example-id: consumption/v1beta2/budgetmanagementgroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + displayName: example diff --git a/examples/consumption/v1beta2/budgetresourcegroup.yaml b/examples/consumption/v1beta2/budgetresourcegroup.yaml new file mode 100644 index 000000000..26e9d8233 --- /dev/null +++ b/examples/consumption/v1beta2/budgetresourcegroup.yaml @@ -0,0 +1,47 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: consumption.azure.upbound.io/v1beta2 +kind: BudgetResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: consumption/v1beta2/budgetresourcegroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + amount: 1000 + name: examplebudgetrg + notification: + - contactEmails: + - foo@example.com + - bar@example.com + contactRoles: + - Owner + enabled: true + operator: EqualTo + threshold: 80 + thresholdType: Forecasted + resourceGroupIdSelector: + matchLabels: + testing.upbound.io/example-name: consumeexamplerg + timeGrain: Monthly + timePeriod: + endDate: "2023-07-01T00:00:00Z" + startDate: "2023-06-01T00:00:00Z" + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: consumption/v1beta1/budgetresourcegroup + labels: + testing.upbound.io/example-name: consumeexamplerg + name: consumeexamplerg +spec: + forProvider: + location: eastus diff --git a/examples/consumption/v1beta2/budgetsubscription.yaml b/examples/consumption/v1beta2/budgetsubscription.yaml new file mode 100644 index 000000000..ce5ca6a21 --- /dev/null +++ b/examples/consumption/v1beta2/budgetsubscription.yaml @@ -0,0 +1,69 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: consumption.azure.upbound.io/v1beta2 +kind: BudgetSubscription +metadata: + annotations: + meta.upbound.io/example-id: consumption/v1beta2/budgetsubscription + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + amount: 1000 + notification: + - contactEmails: + - foo@example.com + - bar@example.com + contactGroupsRefs: + - name: exampleag + contactRoles: + - Owner + enabled: true + operator: EqualTo + threshold: 90 + - contactEmails: + - foo@example.com + - bar@example.com + enabled: false + operator: GreaterThan + threshold: 100 + thresholdType: Forecasted + subscriptionId: ${data.azurerm_client_config.current.subscription_resource_id} + timeGrain: Monthly + timePeriod: + endDate: "2023-07-01T00:00:00Z" + startDate: "2023-06-01T00:00:00Z" + +--- + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: consumption/v1beta2/budgetsubscription + labels: + testing.upbound.io/example-name: exampleag + name: exampleag +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: budgetrg + shortName: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: consumption/v1beta1/budgetsubscription + labels: + testing.upbound.io/example-name: budgetrg + name: budgetrg +spec: + forProvider: + location: eastus diff --git a/examples/containerapp/v1beta2/containerapp.yaml b/examples/containerapp/v1beta2/containerapp.yaml new file mode 100644 index 000000000..7e87b3ce7 --- /dev/null +++ b/examples/containerapp/v1beta2/containerapp.yaml @@ -0,0 +1,80 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: containerapp.azure.upbound.io/v1beta2 +kind: ContainerApp +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta2/containerapp + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + revisionMode: Single + template: + container: + - cpu: 0.25 + image: mcr.microsoft.com/azuredocs/containerapps-helloworld:latest + memory: 0.5Gi + name: examplecontainerapp + +--- + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta2/containerapp + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta2/containerapp + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/containerapp + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/containerregistry/v1beta2/registry.yaml b/examples/containerregistry/v1beta2/registry.yaml new file mode 100644 index 000000000..9bf6cb743 --- /dev/null +++ b/examples/containerregistry/v1beta2/registry.yaml @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: containerregistry.azure.upbound.io/v1beta2 +kind: Registry +metadata: + annotations: + meta.upbound.io/example-id: containerregistry/v1beta2/registry + name: upbound +spec: + forProvider: + adminEnabled: false + dataEndpointEnabled: true + georeplications: + - location: East US + tags: {} + zoneRedundancyEnabled: true + location: West Europe + resourceGroupNameRef: + name: example-containerreg + sku: Premium diff --git a/examples/containerregistry/v1beta2/tokenpassword.yaml b/examples/containerregistry/v1beta2/tokenpassword.yaml new file mode 100644 index 000000000..1425d89e8 --- /dev/null +++ b/examples/containerregistry/v1beta2/tokenpassword.yaml @@ -0,0 +1,99 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: containerregistry.azure.upbound.io/v1beta2 +kind: TokenPassword +metadata: + annotations: + meta.upbound.io/example-id: containerregistry/v1beta2/tokenpassword + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-token.sh + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerRegistryTokenIdSelector: + matchLabels: + testing.upbound.io/example-name: tokenpasswordtoken + password1: + expiry: "2024-03-22T17:57:36+08:00" + +--- + +apiVersion: containerregistry.azure.upbound.io/v1beta2 +kind: Registry +metadata: + annotations: + meta.upbound.io/example-id: containerregistry/v1beta2/tokenpassword + labels: + testing.upbound.io/example-name: tokenpasswordregistry + name: tokenpasswordregistry +spec: + forProvider: + adminEnabled: false + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: tokenpassword-rg + sku: Premium + +--- + +apiVersion: containerregistry.azure.upbound.io/v1beta1 +kind: ScopeMap +metadata: + annotations: + meta.upbound.io/example-id: containerregistry/v1beta2/tokenpassword + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-token.sh + labels: + testing.upbound.io/example-name: tokenpasswordsm + name: tokenpasswordsm +spec: + forProvider: + actions: + - repositories/repo1/content/read + - repositories/repo1/content/write + containerRegistryNameSelector: + matchLabels: + testing.upbound.io/example-name: tokenpasswordregistry + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: tokenpassword-rg + +--- + +apiVersion: containerregistry.azure.upbound.io/v1beta1 +kind: Token +metadata: + annotations: + meta.upbound.io/example-id: containerregistry/v1beta2/tokenpassword + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-token.sh + labels: + testing.upbound.io/example-name: tokenpasswordtoken + name: tokenpasswordtoken +spec: + forProvider: + containerRegistryNameSelector: + matchLabels: + testing.upbound.io/example-name: tokenpasswordregistry + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: tokenpassword-rg + scopeMapIdSelector: + matchLabels: + testing.upbound.io/example-name: tokenpasswordsm + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerregistry/v1beta1/tokenpassword + labels: + testing.upbound.io/example-name: tokenpassword-rg + name: tokenpassword-rg +spec: + forProvider: + location: West Europe diff --git a/examples/containerservice/v1beta2/kubernetesfleetmanager.yaml b/examples/containerservice/v1beta2/kubernetesfleetmanager.yaml new file mode 100644 index 000000000..5a25a2a60 --- /dev/null +++ b/examples/containerservice/v1beta2/kubernetesfleetmanager.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: containerservice.azure.upbound.io/v1beta2 +kind: KubernetesFleetManager +metadata: + annotations: + meta.upbound.io/example-id: containerservice/v1beta2/kubernetesfleetmanager + labels: + testing.upbound.io/example-name: example + name: kfmexample +spec: + forProvider: + hubProfile: + dnsPrefix: example + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerservice/v1beta1/kubernetesfleetmanager + labels: + testing.upbound.io/example-name: example + name: kfmexample +spec: + forProvider: + location: West Europe diff --git a/examples/cosmosdb/v1beta2/cassandratable.yaml b/examples/cosmosdb/v1beta2/cassandratable.yaml new file mode 100644 index 000000000..bdf7f12ab --- /dev/null +++ b/examples/cosmosdb/v1beta2/cassandratable.yaml @@ -0,0 +1,84 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: CassandraTable +metadata: + annotations: + meta.upbound.io/example-id: cosmosdb/v1beta2/cassandratable + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + cassandraKeyspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + schema: + column: + - name: test1 + type: ascii + - name: test2 + type: int + partitionKey: + - name: test1 + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: cosmosdb/v1beta2/cassandratable + labels: + testing.upbound.io/example-name: cassandra + name: example-cosmosdb-cassandra-${Rand.RFC1123Subdomain} +spec: + forProvider: + capabilities: + - name: EnableCassandra + consistencyPolicy: + consistencyLevel: Strong + geoLocation: + - failoverPriority: 0 + location: West Europe + location: West Europe + offerType: Standard + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg1 + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: CassandraKeySpace +metadata: + annotations: + meta.upbound.io/example-id: cosmosdb/v1beta2/cassandratable + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: cassandra + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg1 + throughput: 400 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: cosmosdb/v1beta1/cassandratable + labels: + testing.upbound.io/example-name: rg1 + name: example-cosmosdb-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe diff --git a/examples/cosmosdb/v1beta2/gremlingraph.yaml b/examples/cosmosdb/v1beta2/gremlingraph.yaml new file mode 100644 index 000000000..e31866866 --- /dev/null +++ b/examples/cosmosdb/v1beta2/gremlingraph.yaml @@ -0,0 +1,83 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: GremlinGraph +metadata: + annotations: + meta.upbound.io/example-id: cosmosdb/v1beta2/gremlingraph + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: gremlin + conflictResolutionPolicy: + conflictResolutionPath: /_ts + mode: LastWriterWins + databaseNameSelector: + matchLabels: + testing.upbound.io/example-name: example + indexPolicy: + automatic: true + excludedPaths: + - /"_etag"/? + includedPaths: + - /* + indexingMode: consistent + partitionKeyPath: /Example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg1 + throughput: 400 + uniqueKey: + - paths: + - /definition/id1 + - /definition/id2 + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: cosmosdb/v1beta2/gremlingraph + labels: + testing.upbound.io/example-name: gremlin + name: example-cosmosdb-gremlin-${Rand.RFC1123Subdomain} +spec: + forProvider: + capabilities: + - name: EnableGremlin + consistencyPolicy: + consistencyLevel: Strong + geoLocation: + - failoverPriority: 0 + location: West Europe + location: West Europe + offerType: Standard + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg1 + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: GremlinDatabase +metadata: + annotations: + meta.upbound.io/example-id: cosmosdb/v1beta2/gremlingraph + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: gremlin + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg1 diff --git a/examples/cosmosdb/v1beta2/table.yaml b/examples/cosmosdb/v1beta2/table.yaml new file mode 100644 index 000000000..0cd6510e6 --- /dev/null +++ b/examples/cosmosdb/v1beta2/table.yaml @@ -0,0 +1,46 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: Table +metadata: + annotations: + meta.upbound.io/example-id: cosmosdb/v1beta2/table + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: table + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg1 + throughput: 400 + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: cosmosdb/v1beta2/table + labels: + testing.upbound.io/example-name: table + name: example-cosmosdb-table-${Rand.RFC1123Subdomain} +spec: + forProvider: + capabilities: + - name: EnableTable + consistencyPolicy: + consistencyLevel: Strong + geoLocation: + - failoverPriority: 0 + location: West Europe + location: West Europe + offerType: Standard + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg1 diff --git a/examples/costmanagement/v1beta2/resourcegroupcostmanagementexport.yaml b/examples/costmanagement/v1beta2/resourcegroupcostmanagementexport.yaml new file mode 100644 index 000000000..74910eda1 --- /dev/null +++ b/examples/costmanagement/v1beta2/resourcegroupcostmanagementexport.yaml @@ -0,0 +1,77 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: costmanagement.azure.upbound.io/v1beta2 +kind: ResourceGroupCostManagementExport +metadata: + annotations: + meta.upbound.io/example-id: costmanagement/v1beta2/resourcegroupcostmanagementexport + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + exportDataOptions: + timeFrame: WeekToDate + type: Usage + exportDataStorageLocation: + containerIdSelector: + matchLabels: + testing.upbound.io/example-name: example + rootFolderPath: /root/updated + recurrencePeriodEndDate: "2023-09-18T00:00:00Z" + recurrencePeriodStartDate: "2023-08-18T00:00:00Z" + recurrenceType: Monthly + resourceGroupIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: costmanagement/v1beta1/resourcegroupcostmanagementexport + labels: + testing.upbound.io/example-name: example + name: cost-example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: costmanagement/v1beta2/resourcegroupcostmanagementexport + labels: + testing.upbound.io/example-name: example + name: costacc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: costmanagement/v1beta2/resourcegroupcostmanagementexport + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/costmanagement/v1beta2/subscriptioncostmanagementexport.yaml b/examples/costmanagement/v1beta2/subscriptioncostmanagementexport.yaml new file mode 100644 index 000000000..a33bc34fc --- /dev/null +++ b/examples/costmanagement/v1beta2/subscriptioncostmanagementexport.yaml @@ -0,0 +1,78 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: costmanagement.azure.upbound.io/v1beta2 +kind: SubscriptionCostManagementExport +metadata: + annotations: + meta.upbound.io/example-id: costmanagement/v1beta2/subscriptioncostmanagementexport + upjet.upbound.io/manual-intervention: This resource requires manual intervention, + as subscriptionId is need to be specified and subscription Export created. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + exportDataOptions: + timeFrame: WeekToDate + type: Usage + exportDataStorageLocation: + containerIdSelector: + matchLabels: + testing.upbound.io/example-name: example + rootFolderPath: /root/updated + name: example + recurrencePeriodEndDate: "2023-09-18T00:00:00Z" + recurrencePeriodStartDate: "2023-08-18T00:00:00Z" + recurrenceType: Monthly + subscriptionId: subscriptions/038f2b7c-3265-43b8-8624-c9ad5da610a8 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: costmanagement/v1beta1/subscriptioncostmanagementexport + labels: + testing.upbound.io/example-name: example + name: subsc-example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: costmanagement/v1beta2/subscriptioncostmanagementexport + labels: + testing.upbound.io/example-name: example + name: subscacc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: costmanagement/v1beta2/subscriptioncostmanagementexport + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/databricks/v1beta2/accessconnector.yaml b/examples/databricks/v1beta2/accessconnector.yaml new file mode 100644 index 000000000..b4e957d6a --- /dev/null +++ b/examples/databricks/v1beta2/accessconnector.yaml @@ -0,0 +1,36 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: databricks.azure.upbound.io/v1beta2 +kind: AccessConnector +metadata: + annotations: + meta.upbound.io/example-id: databricks/v1beta2/accessconnector + labels: + testing.upbound.io/example-name: accessconnectorexample + name: accessconnectorexample +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: accessconnector-rg + tags: + Environment: Production + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: databricks/v1beta1/accessconnector + labels: + testing.upbound.io/example-name: accessconnector-rg + name: accessconnector-rg +spec: + forProvider: + location: West Europe diff --git a/examples/databricks/v1beta2/workspace.yaml b/examples/databricks/v1beta2/workspace.yaml new file mode 100644 index 000000000..bb3d975c5 --- /dev/null +++ b/examples/databricks/v1beta2/workspace.yaml @@ -0,0 +1,35 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: databricks.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: databricks/v1beta2/workspace + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: exampledatabricks + sku: standard + tags: + Environment: Production + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: databricks/v1beta1/workspace + labels: + testing.upbound.io/example-name: exampledatabricks + name: exampledatabricks +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/customdataset.yaml b/examples/datafactory/v1beta2/customdataset.yaml new file mode 100644 index 000000000..1f0e87424 --- /dev/null +++ b/examples/datafactory/v1beta2/customdataset.yaml @@ -0,0 +1,114 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: CustomDataSet +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/customdataset + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + additionalProperties: + bar: test2 + foo: test1 + annotations: + - test1 + - test2 + - test3 + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: customdataset-factory + description: test description + folder: testFolder + linkedService: + name: anonymous + parameters: + key1: value1 + parameters: + Bar: Test2 + foo: test1 + schemaJson: | + { + "type": "object", + "properties": { + "name": { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + } + } + }, + "age": { + "type": "integer" + } + } + } + type: Json + typePropertiesJson: | + { + "location": { + "container":"customdatasetcontainer", + "fileName":"foo.txt", + "folderPath": "foo/bar/", + "type":"AzureBlobStorageLocation" + }, + "encodingName":"UTF-8" + } + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/customdataset + labels: + testing.upbound.io/example-name: customdataset-factory + name: customdataset-factory +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: customdataset-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/customdataset + labels: + testing.upbound.io/example-name: customdataset-rg + name: customdataset-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceOdbc +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/customdataset + labels: + testing.upbound.io/example-name: anonymous + name: anonymous +spec: + forProvider: + connectionString: Driver={SQL Server};Server=test;Database=test;Uid=test;Pwd=test; + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: customdataset-factory diff --git a/examples/datafactory/v1beta2/dataflow.yaml b/examples/datafactory/v1beta2/dataflow.yaml new file mode 100644 index 000000000..e661a7594 --- /dev/null +++ b/examples/datafactory/v1beta2/dataflow.yaml @@ -0,0 +1,125 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: DataFlow +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/dataflow + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: factoryexample + script: "source(\n allowSchemaDrift: true, \n validateSchema: false, \n limit: + 100, \n ignoreNoFilesFound: false, \n documentForm: 'documentPerLine') ~> + source1 \nsource1 sink(\n allowSchemaDrift: true, \n validateSchema: false, + \n skipDuplicateMapInputs: true, \n skipDuplicateMapOutputs: true) ~> sink1\n" + sink: + - dataset: + nameSelector: + matchLabels: + testing.upbound.io/example-name: example2 + name: sink1 + source: + - dataset: + nameSelector: + matchLabels: + testing.upbound.io/example-name: example1 + name: source1 + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/dataflow + labels: + testing.upbound.io/example-name: factoryexample + name: factoryexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: dataflow-rg + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: DataSetJSON +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/dataflow + labels: + testing.upbound.io/example-name: example1 + name: example1 +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: factoryexample + encoding: UTF-8 + httpServerLocation: + filename: foo.txt + path: foo/bar/ + relativeUrl: /fizz/buzz/ + linkedServiceName: linkedservice + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: DataSetJSON +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/dataflow + labels: + testing.upbound.io/example-name: example2 + name: example2 +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: factoryexample + encoding: UTF-8 + httpServerLocation: + filename: foo.txt + path: foo/bar/ + relativeUrl: /fizz/buzz/ + linkedServiceName: linkedservice + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/dataflow + labels: + testing.upbound.io/example-name: dataflow-rg + name: dataflow-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceOdbc +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/dataflow + labels: + testing.upbound.io/example-name: linkedservice + name: linkedservice +spec: + forProvider: + connectionString: Driver={SQL Server};Server=test;Database=test;Uid=test;Pwd=test; + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: factoryexample diff --git a/examples/datafactory/v1beta2/datasetbinary.yaml b/examples/datafactory/v1beta2/datasetbinary.yaml new file mode 100644 index 000000000..6a34ce1ac --- /dev/null +++ b/examples/datafactory/v1beta2/datasetbinary.yaml @@ -0,0 +1,69 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: DataSetBinary +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetbinary + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: datasetbinary-factory + linkedServiceName: anonymous + sftpServerLocation: + filename: '**' + path: /test/ + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetbinary + labels: + testing.upbound.io/example-name: datasetbinary-factory + name: datasetbinary-factory +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: datasetbinary-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/datasetbinary + labels: + testing.upbound.io/example-name: datasetbinary-rg + name: datasetbinary-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceOdbc +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetbinary + labels: + testing.upbound.io/example-name: anonymous + name: anonymous +spec: + forProvider: + connectionString: Driver={SQL Server};Server=test;Database=test;Uid=test;Pwd=test; + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: datasetbinary-factory diff --git a/examples/datafactory/v1beta2/datasetdelimitedtext.yaml b/examples/datafactory/v1beta2/datasetdelimitedtext.yaml new file mode 100644 index 000000000..6a60f67de --- /dev/null +++ b/examples/datafactory/v1beta2/datasetdelimitedtext.yaml @@ -0,0 +1,77 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: DataSetDelimitedText +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetdelimitedtext + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + columnDelimiter: ',' + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: delimitedtext-factory + encoding: UTF-8 + escapeCharacter: f + firstRowAsHeader: true + httpServerLocation: + filename: foo.txt + path: foo/bar/ + relativeUrl: /fizz/buzz/ + linkedServiceName: anonymous + nullValue: "NULL" + quoteCharacter: x + rowDelimiter: NEW + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetdelimitedtext + labels: + testing.upbound.io/example-name: delimitedtext-factory + name: delimitedtext-factory +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: delimitedtext-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/datasetdelimitedtext + labels: + testing.upbound.io/example-name: delimitedtext-rg + name: delimitedtext-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceOdbc +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetdelimitedtext + labels: + testing.upbound.io/example-name: anonymous + name: anonymous +spec: + forProvider: + connectionString: Driver={SQL Server};Server=test;Database=test;Uid=test;Pwd=test; + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: delimitedtext-factory diff --git a/examples/datafactory/v1beta2/datasetjson.yaml b/examples/datafactory/v1beta2/datasetjson.yaml new file mode 100644 index 000000000..6f97151ec --- /dev/null +++ b/examples/datafactory/v1beta2/datasetjson.yaml @@ -0,0 +1,71 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: DataSetJSON +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetjson + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: datasetjson-factory + encoding: UTF-8 + httpServerLocation: + filename: foo.txt + path: foo/bar/ + relativeUrl: /fizz/buzz/ + linkedServiceName: anonymous + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetjson + labels: + testing.upbound.io/example-name: datasetjson-factory + name: datasetjson-factory +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: datasetjson-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/datasetjson + labels: + testing.upbound.io/example-name: datasetjson-rg + name: datasetjson-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceOdbc +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetjson + labels: + testing.upbound.io/example-name: anonymous + name: anonymous +spec: + forProvider: + connectionString: Driver={SQL Server};Server=test;Database=test;Uid=test;Pwd=test; + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: datasetjson-factory diff --git a/examples/datafactory/v1beta2/datasetparquet.yaml b/examples/datafactory/v1beta2/datasetparquet.yaml new file mode 100644 index 000000000..ea20e91c5 --- /dev/null +++ b/examples/datafactory/v1beta2/datasetparquet.yaml @@ -0,0 +1,70 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: DataSetParquet +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetparquet + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: datasetparquet-datafactory + httpServerLocation: + filename: foo.txt + path: foo/bar/ + relativeUrl: /fizz/buzz/ + linkedServiceName: anonymous + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetparquet + labels: + testing.upbound.io/example-name: datasetparquet-datafactory + name: datasetparquet-datafactory +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: datasetparquet-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/datasetparquet + labels: + testing.upbound.io/example-name: datasetparquet-rg + name: datasetparquet-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceOdbc +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/datasetparquet + labels: + testing.upbound.io/example-name: anonymous + name: anonymous +spec: + forProvider: + connectionString: Driver={SQL Server};Server=test;Database=test;Uid=test;Pwd=test; + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: datasetparquet-datafactory diff --git a/examples/datafactory/v1beta2/factory.yaml b/examples/datafactory/v1beta2/factory.yaml new file mode 100644 index 000000000..fe13ee99a --- /dev/null +++ b/examples/datafactory/v1beta2/factory.yaml @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/factory + labels: + testing.upbound.io/example-name: examplefactory + name: examplefactory +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: examplefactoryrg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/factory + labels: + testing.upbound.io/example-name: examplefactoryrg + name: examplefactoryrg +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/integrationruntimeazuressis.yaml b/examples/datafactory/v1beta2/integrationruntimeazuressis.yaml new file mode 100644 index 000000000..e3c2d49da --- /dev/null +++ b/examples/datafactory/v1beta2/integrationruntimeazuressis.yaml @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: IntegrationRuntimeAzureSSIS +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/integrationruntimeazuressis + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: integrationruntimeazuressis-datafactory + location: West Europe + nodeSize: Standard_D8_v3 + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/integrationruntimeazuressis + labels: + testing.upbound.io/example-name: integrationruntimeazuressis-datafactory + name: integrationruntimeazuressis-datafactory +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: integrationruntimeazuressis-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/integrationruntimeazuressis + labels: + testing.upbound.io/example-name: integrationruntimeazuressis-rg + name: integrationruntimeazuressis-rg +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/integrationruntimemanaged.yaml b/examples/datafactory/v1beta2/integrationruntimemanaged.yaml new file mode 100644 index 000000000..6fd921cc5 --- /dev/null +++ b/examples/datafactory/v1beta2/integrationruntimemanaged.yaml @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: IntegrationRuntimeManaged +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/integrationruntimemanaged + labels: + testing.upbound.io/example-name: intruntimemngdexample + name: intruntimemngdexample +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: intruntimemngd-fct + location: West Europe + nodeSize: Standard_D8_v3 + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/integrationruntimemanaged + labels: + testing.upbound.io/example-name: intruntimemngd-fct + name: intruntimemngd-fct +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: intruntimemngd-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/integrationruntimemanaged + labels: + testing.upbound.io/example-name: intruntimemngd-rg + name: intruntimemngd-rg +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/linkedcustomservice.yaml b/examples/datafactory/v1beta2/linkedcustomservice.yaml new file mode 100644 index 000000000..d0d9f400f --- /dev/null +++ b/examples/datafactory/v1beta2/linkedcustomservice.yaml @@ -0,0 +1,85 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedCustomService +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedcustomservice + upjet.upbound.io/manual-intervention: The resource require account connecton string + to be specified. + labels: + testing.upbound.io/example-name: example + name: lcsexample +spec: + forProvider: + annotations: + - test1 + - test2 + - test3 + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: example + description: test description + parameters: + Env: Test + foo: bar + type: AzureBlobStorage + typePropertiesJson: | + { + "connectionString":"DefaultEndpointsProtocol=https;AccountName=lcsexample;AccountKey=ilKVGNigu62P5tNQpxgsbXGtsXbZzjLVR1LZZ0mkVZY0Mr+nDmXgIqG8BvCS3Ki9Xx82K3Z9dx0a+ASt8+qLSg==;EndpointSuffix=core.windows.net" + } + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedcustomservice + labels: + testing.upbound.io/example-name: example + name: lcsexample +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedcustomservice + labels: + testing.upbound.io/example-name: example + name: lcsexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedcustomservice + labels: + testing.upbound.io/example-name: example + name: lcsexample +spec: + forProvider: + accountKind: BlobStorage + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/datafactory/v1beta2/linkedserviceazureblobstorage.yaml b/examples/datafactory/v1beta2/linkedserviceazureblobstorage.yaml new file mode 100644 index 000000000..83fc5d100 --- /dev/null +++ b/examples/datafactory/v1beta2/linkedserviceazureblobstorage.yaml @@ -0,0 +1,87 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceAzureBlobStorage +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazureblobstorage + upjet.upbound.io/manual-intervention: The resource require account connecton string + to be specified. + labels: + testing.upbound.io/example-name: example + name: lsabsexample +spec: + forProvider: + connectionStringSecretRef: + key: primary_connection_string + name: example-secret + namespace: upbound-system + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: v1 +kind: Secret +metadata: + annotations: + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-blob-storage.sh + name: example-secret + namespace: upbound-system +stringData: + primary_connection_string: DefaultEndpointsProtocol=https;AccountName=lsabsexample;AccountKey=a5zs3v5FCnopLrBjP8eLpdQ1HyY3EO42GjdLixC6q289pxcoQCnn22lOicAJYGb+StUvndFe4JmQ+AStY6pi0w==;EndpointSuffix=core.windows.net +type: Opaque + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazureblobstorage + labels: + testing.upbound.io/example-name: example + name: lsabsexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedserviceazureblobstorage + labels: + testing.upbound.io/example-name: example + name: lsabsexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazureblobstorage + labels: + testing.upbound.io/example-name: example + name: lsabsexample +spec: + forProvider: + accountKind: BlobStorage + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/datafactory/v1beta2/linkedserviceazuredatabricks.yaml b/examples/datafactory/v1beta2/linkedserviceazuredatabricks.yaml new file mode 100644 index 000000000..2a346e7b8 --- /dev/null +++ b/examples/datafactory/v1beta2/linkedserviceazuredatabricks.yaml @@ -0,0 +1,104 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceAzureDatabricks +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazuredatabricks + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accessTokenSecretRef: + key: example-key + name: example-name + namespace: upbound-system + adbDomain: https://example.com + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: azuredatabricks-factory + description: ADB Linked Service via MSI + newClusterConfig: + clusterVersion: 5.5.x-gpu-scala2.11 + customTags: + custom_tag1: sct_value_1 + custom_tag2: sct_value_2 + driverNodeType: Standard_NC12 + initScripts: + - init.sh + - init2.sh + logDestination: dbfs:/logs + maxNumberOfWorkers: 5 + minNumberOfWorkers: 1 + nodeType: Standard_NC12 + sparkConfig: + config1: value1 + config2: value2 + sparkEnvironmentVariables: + envVar1: value1 + envVar2: value2 + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazuredatabricks + labels: + testing.upbound.io/example-name: azuredatabricks-factory + name: azuredatabricks-factory +spec: + forProvider: + identity: + type: SystemAssigned + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: azuredatabricks-rg + +--- + +apiVersion: databricks.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazuredatabricks + labels: + testing.upbound.io/example-name: azuredatabricks-ws + name: azuredatabricks-ws +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: azuredatabricks-rg + sku: standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedserviceazuredatabricks + labels: + testing.upbound.io/example-name: azuredatabricks-rg + name: azuredatabricks-rg +spec: + forProvider: + location: East US + +--- + +apiVersion: v1 +data: + example-key: RGVmYXVsdEVuZHBvaW50c1Byb3RvY29sPWh0dHBzO0FjY291bnROYW1lPXN0b3JhZ2U7QWNjb3VudEtleT1rZXk7RW5kcG9pbnRTdWZmaXg9Y29yZS53aW5kb3dzLm5ldA== +kind: Secret +metadata: + name: example-name + namespace: upbound-system +type: Opaque diff --git a/examples/datafactory/v1beta2/linkedserviceazurefilestorage.yaml b/examples/datafactory/v1beta2/linkedserviceazurefilestorage.yaml new file mode 100644 index 000000000..7bb63c00c --- /dev/null +++ b/examples/datafactory/v1beta2/linkedserviceazurefilestorage.yaml @@ -0,0 +1,63 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceAzureFileStorage +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazurefilestorage + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + connectionStringSecretRef: + key: example-key + name: example-name + namespace: upbound-system + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: linkedserviceazurefilestorage-fct + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazurefilestorage + labels: + testing.upbound.io/example-name: linkedserviceazurefilestorage-fct + name: linkedserviceazurefilestorage-fct +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linkedserviceazurefilestorage-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedserviceazurefilestorage + labels: + testing.upbound.io/example-name: linkedserviceazurefilestorage-rg + name: linkedserviceazurefilestorage-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: v1 +data: + example-key: RGVmYXVsdEVuZHBvaW50c1Byb3RvY29sPWh0dHBzO0FjY291bnROYW1lPXN0b3JhZ2U7QWNjb3VudEtleT1rZXk7RW5kcG9pbnRTdWZmaXg9Y29yZS53aW5kb3dzLm5ldA== +kind: Secret +metadata: + name: example-name + namespace: upbound-system +type: Opaque diff --git a/examples/datafactory/v1beta2/linkedserviceazurefunction.yaml b/examples/datafactory/v1beta2/linkedserviceazurefunction.yaml new file mode 100644 index 000000000..e433d141a --- /dev/null +++ b/examples/datafactory/v1beta2/linkedserviceazurefunction.yaml @@ -0,0 +1,64 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceAzureFunction +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazurefunction + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: azurefunction-factory + keySecretRef: + key: example-key + name: example-name + namespace: upbound-system + url: https://example.com + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazurefunction + labels: + testing.upbound.io/example-name: azurefunction-factory + name: azurefunction-factory +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: azurefunction-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedserviceazurefunction + labels: + testing.upbound.io/example-name: azurefunction-rg + name: azurefunction-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: v1 +data: + example-key: dGVzdFBhc3N3b3JkMTIzIQ== +kind: Secret +metadata: + name: example-name + namespace: upbound-system +type: Opaque diff --git a/examples/datafactory/v1beta2/linkedserviceazuresqldatabase.yaml b/examples/datafactory/v1beta2/linkedserviceazuresqldatabase.yaml new file mode 100644 index 000000000..8e4c2a62f --- /dev/null +++ b/examples/datafactory/v1beta2/linkedserviceazuresqldatabase.yaml @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceAzureSQLDatabase +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazuresqldatabase + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + connectionString: data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated + security=False;encrypt=True;connection timeout=30 + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: azuresqldatabase-factory + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceazuresqldatabase + labels: + testing.upbound.io/example-name: azuresqldatabase-factory + name: azuresqldatabase-factory +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: azuresqldatabase-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedserviceazuresqldatabase + labels: + testing.upbound.io/example-name: azuresqldatabase-rg + name: azuresqldatabase-rg +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/linkedserviceodata.yaml b/examples/datafactory/v1beta2/linkedserviceodata.yaml new file mode 100644 index 000000000..e979bb841 --- /dev/null +++ b/examples/datafactory/v1beta2/linkedserviceodata.yaml @@ -0,0 +1,49 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceOData +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceodata + labels: + testing.upbound.io/example-name: linkedserviceodata-xmpl + name: linkedserviceodata-xmpl +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: linkedserviceodata-fct + url: https://services.odata.org/v4/TripPinServiceRW/People + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceodata + labels: + testing.upbound.io/example-name: linkedserviceodata-fct + name: linkedserviceodata-fct +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linkedserviceodata-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedserviceodata + labels: + testing.upbound.io/example-name: linkedserviceodata-rg + name: linkedserviceodata-rg +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/linkedserviceodbc.yaml b/examples/datafactory/v1beta2/linkedserviceodbc.yaml new file mode 100644 index 000000000..28dbd3fb4 --- /dev/null +++ b/examples/datafactory/v1beta2/linkedserviceodbc.yaml @@ -0,0 +1,49 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceOdbc +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceodbc + labels: + testing.upbound.io/example-name: anonymous + name: anonymous +spec: + forProvider: + connectionString: Driver={SQL Server};Server=test;Database=test;Uid=test;Pwd=test; + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: serviceodbc-factory + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedserviceodbc + labels: + testing.upbound.io/example-name: serviceodbc-factory + name: serviceodbc-factory +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: serviceodbc-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedserviceodbc + labels: + testing.upbound.io/example-name: serviceodbc-rg + name: serviceodbc-rg +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/linkedservicesnowflake.yaml b/examples/datafactory/v1beta2/linkedservicesnowflake.yaml new file mode 100644 index 000000000..35ddb5d43 --- /dev/null +++ b/examples/datafactory/v1beta2/linkedservicesnowflake.yaml @@ -0,0 +1,49 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceSnowflake +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedservicesnowflake + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + connectionString: jdbc:snowflake://account.region.snowflakecomputing.com/?user=user&db=db&warehouse=wh + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: linkedservicesnowflake-fct + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedservicesnowflake + labels: + testing.upbound.io/example-name: linkedservicesnowflake-fct + name: linkedservicesnowflake-fct +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linkedservicesnowflake-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedservicesnowflake + labels: + testing.upbound.io/example-name: linkedservicesnowflake-rg + name: linkedservicesnowflake-rg +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/linkedservicesqlserver.yaml b/examples/datafactory/v1beta2/linkedservicesqlserver.yaml new file mode 100644 index 000000000..08d204c73 --- /dev/null +++ b/examples/datafactory/v1beta2/linkedservicesqlserver.yaml @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceSQLServer +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedservicesqlserver + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + connectionString: Integrated Security=False;Data Source=test;Initial Catalog=test;User + ID=test;Password=test + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: linkedservicesqlserver-fct + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedservicesqlserver + labels: + testing.upbound.io/example-name: linkedservicesqlserver-fct + name: linkedservicesqlserver-fct +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linkedservicesqlserver-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedservicesqlserver + labels: + testing.upbound.io/example-name: linkedservicesqlserver-rg + name: linkedservicesqlserver-rg +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/linkedservicesynapse.yaml b/examples/datafactory/v1beta2/linkedservicesynapse.yaml new file mode 100644 index 000000000..b2f3b9991 --- /dev/null +++ b/examples/datafactory/v1beta2/linkedservicesynapse.yaml @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: LinkedServiceSynapse +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedservicesynapse + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + connectionString: Integrated Security=False;Data Source=test;Initial Catalog=test;User + ID=test;Password=test + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: linkedservicesynapse-fct + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/linkedservicesynapse + labels: + testing.upbound.io/example-name: linkedservicesynapse-fct + name: linkedservicesynapse-fct +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linkedservicesynapse-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/linkedservicesynapse + labels: + testing.upbound.io/example-name: linkedservicesynapse-rg + name: linkedservicesynapse-rg +spec: + forProvider: + location: West Europe diff --git a/examples/datafactory/v1beta2/triggerschedule.yaml b/examples/datafactory/v1beta2/triggerschedule.yaml new file mode 100644 index 000000000..929f4d441 --- /dev/null +++ b/examples/datafactory/v1beta2/triggerschedule.yaml @@ -0,0 +1,67 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: TriggerSchedule +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/triggerschedule + labels: + testing.upbound.io/example-name: example + name: tsexample +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: example + pipelineNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta2 +kind: Factory +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/triggerschedule + labels: + testing.upbound.io/example-name: example + name: tsexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: datafactory.azure.upbound.io/v1beta1 +kind: Pipeline +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta2/triggerschedule + labels: + testing.upbound.io/example-name: example + name: tsexample +spec: + forProvider: + dataFactoryIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: datafactory/v1beta1/triggerschedule + labels: + testing.upbound.io/example-name: example + name: tsexample +spec: + forProvider: + location: West Europe diff --git a/examples/dataprotection/v1beta2/backuppolicydisk.yaml b/examples/dataprotection/v1beta2/backuppolicydisk.yaml new file mode 100644 index 000000000..f46638f68 --- /dev/null +++ b/examples/dataprotection/v1beta2/backuppolicydisk.yaml @@ -0,0 +1,64 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: dataprotection.azure.upbound.io/v1beta2 +kind: BackupPolicyDisk +metadata: + annotations: + meta.upbound.io/example-id: dataprotection/v1beta2/backuppolicydisk + labels: + testing.upbound.io/example-name: example + name: bpdexample +spec: + forProvider: + backupRepeatingTimeIntervals: + - R/2021-05-19T06:33:16+00:00/PT4H + defaultRetentionDuration: P7D + retentionRule: + - criteria: + absoluteCriteria: FirstOfDay + duration: P7D + name: Daily + priority: 25 + - criteria: + absoluteCriteria: FirstOfWeek + duration: P7D + name: Weekly + priority: 20 + vaultIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: dataprotection.azure.upbound.io/v1beta2 +kind: BackupVault +metadata: + annotations: + meta.upbound.io/example-id: dataprotection/v1beta2/backuppolicydisk + labels: + testing.upbound.io/example-name: example + name: bpdexample +spec: + forProvider: + datastoreType: VaultStore + location: West Europe + redundancy: LocallyRedundant + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: dataprotection/v1beta1/backuppolicydisk + labels: + testing.upbound.io/example-name: example + name: bpdexample +spec: + forProvider: + location: West Europe diff --git a/examples/dataprotection/v1beta2/backuppolicypostgresql.yaml b/examples/dataprotection/v1beta2/backuppolicypostgresql.yaml new file mode 100644 index 000000000..c07de3ac4 --- /dev/null +++ b/examples/dataprotection/v1beta2/backuppolicypostgresql.yaml @@ -0,0 +1,81 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: dataprotection.azure.upbound.io/v1beta2 +kind: BackupPolicyPostgreSQL +metadata: + annotations: + meta.upbound.io/example-id: dataprotection/v1beta2/backuppolicypostgresql + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + backupRepeatingTimeIntervals: + - R/2021-05-23T02:30:00+00:00/P1W + defaultRetentionDuration: P4M + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionRule: + - criteria: + absoluteCriteria: FirstOfWeek + duration: P6M + name: weekly + priority: 20 + - criteria: + daysOfWeek: + - Thursday + scheduledBackupTimes: + - "2021-05-23T02:30:00Z" + duration: P1W + name: thursday + priority: 25 + - criteria: + daysOfWeek: + - Tuesday + scheduledBackupTimes: + - "2021-05-23T02:30:00Z" + weeksOfMonth: + - First + - Last + duration: P1D + name: monthly + priority: 15 + vaultNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: dataprotection.azure.upbound.io/v1beta2 +kind: BackupVault +metadata: + annotations: + meta.upbound.io/example-id: dataprotection/v1beta2/backuppolicypostgresql + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + datastoreType: VaultStore + location: West Europe + redundancy: LocallyRedundant + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: dataprotection/v1beta1/backuppolicypostgresql + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/dataprotection/v1beta2/backupvault.yaml b/examples/dataprotection/v1beta2/backupvault.yaml new file mode 100644 index 000000000..5befd69d1 --- /dev/null +++ b/examples/dataprotection/v1beta2/backupvault.yaml @@ -0,0 +1,29 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: dataprotection.azure.upbound.io/v1beta2 +kind: BackupVault +metadata: + annotations: + meta.upbound.io/example-id: dataprotection/v1beta2/backupvault + name: example +spec: + forProvider: + datastoreType: VaultStore + location: West Europe + redundancy: LocallyRedundant + resourceGroupNameRef: + name: example-rg-dataprotection + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + name: example-rg-dataprotection +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane diff --git a/examples/datashare/v1beta2/account.yaml b/examples/datashare/v1beta2/account.yaml new file mode 100644 index 000000000..066695060 --- /dev/null +++ b/examples/datashare/v1beta2/account.yaml @@ -0,0 +1,31 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datashare.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: datashare/v1beta2/account + name: example +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + resourceGroupNameRef: + name: example-rg-datashare + tags: + foo: bar + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + name: example-rg-datashare +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane diff --git a/examples/datashare/v1beta2/datasetblobstorage.yaml b/examples/datashare/v1beta2/datasetblobstorage.yaml new file mode 100644 index 000000000..1784f6299 --- /dev/null +++ b/examples/datashare/v1beta2/datasetblobstorage.yaml @@ -0,0 +1,77 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: datashare.azure.upbound.io/v1beta2 +kind: DataSetBlobStorage +metadata: + annotations: + meta.upbound.io/example-id: datashare/v1beta2/datasetblobstorage + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example +spec: + forProvider: + containerNameRef: + name: example + dataShareIdRef: + name: example + filePath: myfile.txt + storageAccount: + nameRef: + name: example-storage-account + resourceGroupNameRef: + name: example-rg-datashare + subscriptionId: 038f2b7c-3265-43b8-8624-c9ad5da610a8 + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + crossplane.io/external-name: opdatasharetest190722 + meta.upbound.io/example-id: datashare/v1beta2/datasetblobstorage + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-storage-account +spec: + forProvider: + accountReplicationType: RAGRS + accountTier: Standard + location: West Europe + resourceGroupNameRef: + name: example-rg-datashare + tags: + provisioner: crossplane + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: datashare/v1beta2/datasetblobstorage + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example +spec: + forProvider: + containerAccessType: container + storageAccountNameRef: + name: example-storage-account + +--- + +apiVersion: authorization.azure.upbound.io/v1beta1 +kind: RoleAssignment +metadata: + annotations: + meta.upbound.io/example-id: datashare/v1beta2/datasetblobstorage + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example +spec: + forProvider: + principalId: ${azurerm_storage_account.example.id} + roleDefinitionName: Storage Blob Data Reader + scope: ${data.azuread_service_principal.example.object_id} diff --git a/examples/dbformysql/v1beta2/flexibleserver.yaml b/examples/dbformysql/v1beta2/flexibleserver.yaml new file mode 100644 index 000000000..737cd2e78 --- /dev/null +++ b/examples/dbformysql/v1beta2/flexibleserver.yaml @@ -0,0 +1,132 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: dbformysql.azure.upbound.io/v1beta2 +kind: FlexibleServer +metadata: + annotations: + meta.upbound.io/example-id: dbformysql/v1beta2/flexibleserver + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-upbound +spec: + forProvider: + administratorLogin: psqladmin + administratorPasswordSecretRef: + key: password + name: example-secret + namespace: upbound-system + backupRetentionDays: 7 + delegatedSubnetIdRef: + name: example-subnet-dbformysql + location: West Europe + resourceGroupNameRef: + name: example-rg-dbformysql + skuName: GP_Standard_D2ds_v4 + writeConnectionSecretToRef: + name: example-connection-flexiblemysqlserver + namespace: upbound-system + +--- + +apiVersion: v1 +data: + password: dGVzdFBhc3N3b3JkITEyMw== +kind: Secret +metadata: + annotations: + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-secret + namespace: upbound-system +type: Opaque + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-rg-dbformysql +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: dbformysql/v1beta2/flexibleserver + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-vn-dbformysql +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + dnsServers: + - 10.0.0.4 + - 10.0.0.5 + location: West Europe + resourceGroupNameRef: + name: example-rg-dbformysql + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: dbformysql/v1beta2/flexibleserver + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-subnet-dbformysql +spec: + forProvider: + addressPrefixes: + - 10.0.0.0/24 + delegation: + - name: dbformysqldelegation + serviceDelegation: + actions: + - Microsoft.Network/virtualNetworks/subnets/join/action + name: Microsoft.DBforMySQL/flexibleServers + resourceGroupNameRef: + name: example-rg-dbformysql + virtualNetworkNameRef: + name: example-vn-dbformysql + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: PrivateDNSZone +metadata: + annotations: + crossplane.io/external-name: example-upbound.mysql.database.azure.com + meta.upbound.io/example-id: dbformysql/v1beta2/flexibleserver + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-upbound +spec: + forProvider: + resourceGroupNameRef: + name: example-rg-dbformysql + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateDNSZoneVirtualNetworkLink +metadata: + annotations: + meta.upbound.io/example-id: dbformysql/v1beta2/flexibleserver + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-upbound +spec: + forProvider: + privateDnsZoneNameRef: + name: example-upbound + resourceGroupNameRef: + name: example-rg-dbformysql + virtualNetworkIdRef: + name: example-vn-dbformysql diff --git a/examples/dbformysql/v1beta2/server.yaml b/examples/dbformysql/v1beta2/server.yaml new file mode 100644 index 000000000..642cde3d6 --- /dev/null +++ b/examples/dbformysql/v1beta2/server.yaml @@ -0,0 +1,63 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: dbformysql.azure.upbound.io/v1beta2 +kind: Server +metadata: + annotations: + meta.upbound.io/example-id: dbformysql/v1beta2/server + name: example-${Rand.RFC1123Subdomain} +spec: + forProvider: + administratorLogin: mysqladminun + administratorLoginPasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + autoGrowEnabled: true + backupRetentionDays: 7 + geoRedundantBackupEnabled: false + infrastructureEncryptionEnabled: false + location: West Europe + publicNetworkAccessEnabled: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example-dbformysql-server + skuName: GP_Gen5_2 + sslEnforcementEnabled: true + sslMinimalTlsVersionEnforced: TLS1_2 + storageMb: 5120 + version: "5.7" + writeConnectionSecretToRef: + name: server-creds + namespace: upbound-system + +--- + +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 +stringData: + example-key: Upbound123!-${Rand.RFC1123Subdomain} +type: Opaque diff --git a/examples/deviceupdate/v1beta2/iothubdeviceupdateaccount.yaml b/examples/deviceupdate/v1beta2/iothubdeviceupdateaccount.yaml new file mode 100644 index 000000000..71748147c --- /dev/null +++ b/examples/deviceupdate/v1beta2/iothubdeviceupdateaccount.yaml @@ -0,0 +1,36 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: deviceupdate.azure.upbound.io/v1beta2 +kind: IOTHubDeviceUpdateAccount +metadata: + annotations: + meta.upbound.io/example-id: deviceupdate/v1beta2/iothubdeviceupdateaccount + labels: + testing.upbound.io/example-name: example + name: iothuaex +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + key: value + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: deviceupdate/v1beta1/iothubdeviceupdateaccount + labels: + testing.upbound.io/example-name: example + name: iothuaex +spec: + forProvider: + location: East US diff --git a/examples/deviceupdate/v1beta2/iothubdeviceupdateinstance.yaml b/examples/deviceupdate/v1beta2/iothubdeviceupdateinstance.yaml new file mode 100644 index 000000000..23e32d1a1 --- /dev/null +++ b/examples/deviceupdate/v1beta2/iothubdeviceupdateinstance.yaml @@ -0,0 +1,94 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: deviceupdate.azure.upbound.io/v1beta2 +kind: IOTHubDeviceUpdateInstance +metadata: + annotations: + meta.upbound.io/example-id: deviceupdate/v1beta2/iothubdeviceupdateinstance + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: example + name: iothduiex +spec: + forProvider: + deviceUpdateAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: example + diagnosticEnabled: true + iothubIdSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + key: value + +--- + +apiVersion: devices.azure.upbound.io/v1beta2 +kind: IOTHub +metadata: + annotations: + meta.upbound.io/example-id: deviceupdate/v1beta2/iothubdeviceupdateinstance + labels: + testing.upbound.io/example-name: example + name: iothduiex +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: + capacity: 1 + name: S1 + +--- + +apiVersion: deviceupdate.azure.upbound.io/v1beta2 +kind: IOTHubDeviceUpdateAccount +metadata: + annotations: + meta.upbound.io/example-id: deviceupdate/v1beta2/iothubdeviceupdateinstance + labels: + testing.upbound.io/example-name: example + name: iothduiex +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: deviceupdate/v1beta1/iothubdeviceupdateinstance + labels: + testing.upbound.io/example-name: example + name: iothduiex +spec: + forProvider: + location: East US + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: deviceupdate/v1beta2/iothubdeviceupdateinstance + labels: + testing.upbound.io/example-name: example + name: iothduiex +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/devtestlab/v1beta2/globalvmshutdownschedule.yaml b/examples/devtestlab/v1beta2/globalvmshutdownschedule.yaml new file mode 100644 index 000000000..2872b4be7 --- /dev/null +++ b/examples/devtestlab/v1beta2/globalvmshutdownschedule.yaml @@ -0,0 +1,138 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: devtestlab.azure.upbound.io/v1beta2 +kind: GlobalVMShutdownSchedule +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/globalvmshutdownschedule + labels: + testing.upbound.io/example-name: example + name: gvmssexample +spec: + forProvider: + dailyRecurrenceTime: "1100" + enabled: true + location: West Europe + notificationSettings: + enabled: true + timeInMinutes: 60 + webhookUrl: https://sample-webhook-url.example.com + timezone: Pacific Standard Time + virtualMachineIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: LinuxVirtualMachine +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/globalvmshutdownschedule + labels: + testing.upbound.io/example-name: example + name: gvmssexample +spec: + forProvider: + adminSshKey: + - publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+wWK73dCr+jgQOAxNsHAnNNNMEMWOHYEccp6wJm2gotpr9katuF/ZAdou5AaW1C61slRkHRkpRRX9FA9CYBiitZgvCCz+3nWNN7l/Up54Zps/pHWGZLHNJZRYyAB6j5yVLMVHIHriY49d/GZTZVNB8GoJv9Gakwc/fuEZYYl4YDFiGMBP///TzlI4jhiJzjKnEvqPFki5p2ZRJqcbCiF4pJrxUQR/RXqVFQdbRLZgYfJ8xGB878RENq3yQ39d8dVOkq4edbkzwcUmwwwkYVPIoDGsYLaRHnG+To7FvMeyO7xDVQkMKzopTQV8AuKpyvpqu0a9pWOMaiCyDytO7GGN + you@me.com + username: adminuser + adminUsername: adminuser + disablePasswordAuthentication: true + location: West Europe + networkInterfaceIdsRefs: + - name: gvmssexample + osDisk: + caching: ReadWrite + name: myosdisk-example + storageAccountType: Standard_LRS + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + size: Standard_B2s + sourceImageReference: + offer: UbuntuServer + publisher: Canonical + sku: 16.04-LTS + version: latest + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: NetworkInterface +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/globalvmshutdownschedule + labels: + testing.upbound.io/example-name: example + name: gvmssexample +spec: + forProvider: + ipConfiguration: + - name: testconfiguration1 + privateIpAddressAllocation: Dynamic + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta1/globalvmshutdownschedule + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-network.sh + labels: + testing.upbound.io/example-name: example + name: gvmssexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/globalvmshutdownschedule + labels: + testing.upbound.io/example-name: example + name: gvmssexample +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/globalvmshutdownschedule + labels: + testing.upbound.io/example-name: example + name: gvmssexample +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/devtestlab/v1beta2/linuxvirtualmachine.yaml b/examples/devtestlab/v1beta2/linuxvirtualmachine.yaml new file mode 100644 index 000000000..20319bffb --- /dev/null +++ b/examples/devtestlab/v1beta2/linuxvirtualmachine.yaml @@ -0,0 +1,118 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: devtestlab.azure.upbound.io/v1beta2 +kind: LinuxVirtualMachine +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/linuxvirtualmachine + upjet.upbound.io/manual-intervention: Long running resource. Time to time updating + status takes too long. + labels: + testing.upbound.io/example-name: example + name: stlvmex +spec: + forProvider: + galleryImageReference: + offer: UbuntuServer + publisher: Canonical + sku: 18.04-LTS + version: latest + labNameSelector: + matchLabels: + testing.upbound.io/example-name: example + labSubnetName: stlvmexSubnet + labVirtualNetworkIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + name: stlvmex + notes: Some notes about this Virtual Machine. + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + size: Standard_F2 + storageType: Standard + username: exampleuser99 + +--- + +apiVersion: v1 +data: + example-key: dXBiMHVuZHIwY2s1ITMxMzM3Cg== +kind: Secret +metadata: + annotations: + upjet.upbound.io/manual-intervention: The dependent resource needs a manual patching + and is thus skipped. + name: example-secret + namespace: upbound-system +type: Opaque + +--- + +apiVersion: devtestlab.azure.upbound.io/v1beta1 +kind: Lab +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/linuxvirtualmachine + upjet.upbound.io/manual-intervention: The dependent resource needs a manual patching + and is thus skipped. + labels: + testing.upbound.io/example-name: example + name: stlvmex +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + Sydney: Australia + +--- + +apiVersion: devtestlab.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/linuxvirtualmachine + upjet.upbound.io/manual-intervention: The dependent resource needs a manual patching + and is thus skipped. + labels: + testing.upbound.io/example-name: example + name: stlvmex +spec: + forProvider: + labNameSelector: + matchLabels: + testing.upbound.io/example-name: example + name: stlvmex + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + subnet: + useInVirtualMachineCreation: Allow + usePublicIpAddress: Allow + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta1/linuxvirtualmachine + upjet.upbound.io/manual-intervention: The dependent resource needs a manual patching + and is thus skipped. + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-network.sh + labels: + testing.upbound.io/example-name: example + name: stlvmex +spec: + forProvider: + location: West Europe diff --git a/examples/devtestlab/v1beta2/schedule.yaml b/examples/devtestlab/v1beta2/schedule.yaml new file mode 100644 index 000000000..e26041137 --- /dev/null +++ b/examples/devtestlab/v1beta2/schedule.yaml @@ -0,0 +1,62 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: devtestlab.azure.upbound.io/v1beta2 +kind: Schedule +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/schedule + labels: + testing.upbound.io/example-name: example + name: lsexample +spec: + forProvider: + labNameSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + notificationSettings: {} + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + environment: Production + taskType: Unknown + timeZoneId: Pacific Standard Time + weeklyRecurrence: + time: "1100" + weekDays: + - Monday + - Tuesday + +--- + +apiVersion: devtestlab.azure.upbound.io/v1beta1 +kind: Lab +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/schedule + labels: + testing.upbound.io/example-name: example + name: lsexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta1/schedule + labels: + testing.upbound.io/example-name: example + name: lsexample +spec: + forProvider: + location: West Europe diff --git a/examples/devtestlab/v1beta2/virtualnetwork.yaml b/examples/devtestlab/v1beta2/virtualnetwork.yaml new file mode 100644 index 000000000..2abafd20c --- /dev/null +++ b/examples/devtestlab/v1beta2/virtualnetwork.yaml @@ -0,0 +1,54 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: devtestlab.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/virtualnetwork + labels: + testing.upbound.io/example-name: example + name: lvnexample +spec: + forProvider: + labNameSelector: + matchLabels: + testing.upbound.io/example-name: example + name: lvnexample + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: devtestlab.azure.upbound.io/v1beta1 +kind: Lab +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/virtualnetwork + labels: + testing.upbound.io/example-name: example + name: lvnexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + Sydney: Australia + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta1/virtualnetwork + labels: + testing.upbound.io/example-name: example + name: lvnexample +spec: + forProvider: + location: West Europe diff --git a/examples/devtestlab/v1beta2/windowsvirtualmachine.yaml b/examples/devtestlab/v1beta2/windowsvirtualmachine.yaml new file mode 100644 index 000000000..6f2a04d12 --- /dev/null +++ b/examples/devtestlab/v1beta2/windowsvirtualmachine.yaml @@ -0,0 +1,118 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: devtestlab.azure.upbound.io/v1beta2 +kind: WindowsVirtualMachine +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/windowsvirtualmachine + upjet.upbound.io/manual-intervention: Long running resource. Time to time updating + status takes too long. + labels: + testing.upbound.io/example-name: example + name: stexample +spec: + forProvider: + galleryImageReference: + offer: WindowsServer + publisher: MicrosoftWindowsServer + sku: 2019-Datacenter + version: latest + labNameSelector: + matchLabels: + testing.upbound.io/example-name: example + labSubnetName: stexampleSubnet + labVirtualNetworkIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + name: stexample + notes: Some notes about this Virtual Machine. + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + size: Standard_F2 + storageType: Standard + username: exampleuser99 + +--- + +apiVersion: v1 +kind: Secret +metadata: + annotations: + upjet.upbound.io/manual-intervention: The dependent resource needs a manual patching + and is thus skipped. + name: example-secret + namespace: upbound-system +stringData: + example-key: Pa$w0rd1234! +type: Opaque + +--- + +apiVersion: devtestlab.azure.upbound.io/v1beta1 +kind: Lab +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/windowsvirtualmachine + upjet.upbound.io/manual-intervention: The dependent resource needs a manual patching + and is thus skipped. + labels: + testing.upbound.io/example-name: example + name: stexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + Sydney: Australia + +--- + +apiVersion: devtestlab.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta2/windowsvirtualmachine + upjet.upbound.io/manual-intervention: The dependent resource needs a manual patching + and is thus skipped. + labels: + testing.upbound.io/example-name: example + name: stexample +spec: + forProvider: + labNameSelector: + matchLabels: + testing.upbound.io/example-name: example + name: stexample + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + subnet: + useInVirtualMachineCreation: Allow + usePublicIpAddress: Allow + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: devtestlab/v1beta1/windowsvirtualmachine + upjet.upbound.io/manual-intervention: The dependent resource needs a manual patching + and is thus skipped. + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-network.sh + labels: + testing.upbound.io/example-name: example + name: stexample +spec: + forProvider: + location: West Europe diff --git a/examples/digitaltwins/v1beta2/instance.yaml b/examples/digitaltwins/v1beta2/instance.yaml new file mode 100644 index 000000000..45e2cf98f --- /dev/null +++ b/examples/digitaltwins/v1beta2/instance.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: digitaltwins.azure.upbound.io/v1beta2 +kind: Instance +metadata: + annotations: + meta.upbound.io/example-id: digitaltwins/v1beta2/instance + labels: + testing.upbound.io/example-name: example + name: eginstance +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + foo: bar + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: digitaltwins/v1beta1/instance + labels: + testing.upbound.io/example-name: example + name: eginstance +spec: + forProvider: + location: West Europe diff --git a/examples/elastic/v1beta2/cloudelasticsearch.yaml b/examples/elastic/v1beta2/cloudelasticsearch.yaml new file mode 100644 index 000000000..2a5611002 --- /dev/null +++ b/examples/elastic/v1beta2/cloudelasticsearch.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: elastic.azure.upbound.io/v1beta2 +kind: CloudElasticsearch +metadata: + annotations: + meta.upbound.io/example-id: elastic/v1beta2/cloudelasticsearch + labels: + testing.upbound.io/example-name: example + name: ceexample +spec: + forProvider: + elasticCloudEmailAddress: user@example.com + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: ess-monthly-consumption_Monthly + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: elastic/v1beta1/cloudelasticsearch + labels: + testing.upbound.io/example-name: example + name: ceexample +spec: + forProvider: + location: West Europe diff --git a/examples/eventgrid/v1beta2/domain.yaml b/examples/eventgrid/v1beta2/domain.yaml new file mode 100644 index 000000000..dea8383c4 --- /dev/null +++ b/examples/eventgrid/v1beta2/domain.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: eventgrid.azure.upbound.io/v1beta2 +kind: Domain +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta2/domain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: eventgrid-rg + tags: + environment: Production + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta1/domain + labels: + testing.upbound.io/example-name: eventgrid-rg + name: eventgrid-rg +spec: + forProvider: + location: West Europe diff --git a/examples/eventgrid/v1beta2/eventsubscription.yaml b/examples/eventgrid/v1beta2/eventsubscription.yaml new file mode 100644 index 000000000..a5e803492 --- /dev/null +++ b/examples/eventgrid/v1beta2/eventsubscription.yaml @@ -0,0 +1,76 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: eventgrid.azure.upbound.io/v1beta2 +kind: EventSubscription +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta2/eventsubscription + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + name: example-aees + scopeSelector: + matchLabels: + testing.upbound.io/example-name: eventsubscription-rg + storageQueueEndpoint: + queueNameSelector: + matchLabels: + testing.upbound.io/example-name: eventsubscriptionqueue + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: eventgridstoracc + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta1/eventsubscription + labels: + testing.upbound.io/example-name: eventsubscription-rg + name: eventsubscription-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta2/eventsubscription + labels: + testing.upbound.io/example-name: eventgridstoracc + name: eventgridstoracc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: eventsubscription-rg + tags: + environment: staging + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Queue +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta2/eventsubscription + labels: + testing.upbound.io/example-name: eventsubscriptionqueue + name: eventsubscriptionqueue +spec: + forProvider: + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: eventgridstoracc diff --git a/examples/eventgrid/v1beta2/systemtopic.yaml b/examples/eventgrid/v1beta2/systemtopic.yaml new file mode 100644 index 000000000..814df6f27 --- /dev/null +++ b/examples/eventgrid/v1beta2/systemtopic.yaml @@ -0,0 +1,57 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: eventgrid.azure.upbound.io/v1beta2 +kind: SystemTopic +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta2/systemtopic + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: systemtopic-rg + sourceArmResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: systemtopicacc + topicType: Microsoft.Storage.StorageAccounts + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta1/systemtopic + labels: + testing.upbound.io/example-name: systemtopic-rg + name: systemtopic-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta2/systemtopic + labels: + testing.upbound.io/example-name: systemtopicacc + name: systemtopicacc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: systemtopic-rg + tags: + environment: staging diff --git a/examples/eventgrid/v1beta2/topic.yaml b/examples/eventgrid/v1beta2/topic.yaml new file mode 100644 index 000000000..a8c087a62 --- /dev/null +++ b/examples/eventgrid/v1beta2/topic.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: eventgrid.azure.upbound.io/v1beta2 +kind: Topic +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta2/topic + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: topic-rg + tags: + environment: Production + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: eventgrid/v1beta1/topic + labels: + testing.upbound.io/example-name: topic-rg + name: topic-rg +spec: + forProvider: + location: West Europe diff --git a/examples/fluidrelay/v1beta2/server.yaml b/examples/fluidrelay/v1beta2/server.yaml new file mode 100644 index 000000000..a7d3c2675 --- /dev/null +++ b/examples/fluidrelay/v1beta2/server.yaml @@ -0,0 +1,33 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: fluidrelay.azure.upbound.io/v1beta2 +kind: Server +metadata: + annotations: + meta.upbound.io/example-id: fluidrelay/v1beta2/server + labels: + testing.upbound.io/example-name: fluidrelayserverexample + name: fluidrelayserverexample +spec: + forProvider: + location: West Europe + name: fluidrelayserverexample + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: fluidrelayserver-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: fluidrelay/v1beta1/server + labels: + testing.upbound.io/example-name: fluidrelayserver-rg + name: fluidrelayserver-rg +spec: + forProvider: + location: West Europe diff --git a/examples/guestconfiguration/v1beta2/policyvirtualmachineconfigurationassignment.yaml b/examples/guestconfiguration/v1beta2/policyvirtualmachineconfigurationassignment.yaml new file mode 100644 index 000000000..a718b56f1 --- /dev/null +++ b/examples/guestconfiguration/v1beta2/policyvirtualmachineconfigurationassignment.yaml @@ -0,0 +1,155 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: guestconfiguration.azure.upbound.io/v1beta2 +kind: PolicyVirtualMachineConfigurationAssignment +metadata: + annotations: + meta.upbound.io/example-id: guestconfiguration/v1beta2/policyvirtualmachineconfigurationassignment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + configuration: + assignmentType: ApplyAndMonitor + parameter: + - name: Minimum Password Length;ExpectedValue + value: "16" + - name: Minimum Password Age;ExpectedValue + value: "0" + - name: Maximum Password Age;ExpectedValue + value: 30,45 + - name: Enforce Password History;ExpectedValue + value: "10" + - name: Password Must Meet Complexity Requirements;ExpectedValue + value: "1" + version: 1.* + location: West Europe + virtualMachineIdSelector: + matchLabels: + testing.upbound.io/example-name: examplewind + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: NetworkInterface +metadata: + annotations: + meta.upbound.io/example-id: guestconfiguration/v1beta2/policyvirtualmachineconfigurationassignment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + ipConfiguration: + - name: internal + privateIpAddressAllocation: Dynamic + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgconfigurationassignment + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: guestconfiguration/v1beta1/policyvirtualmachineconfigurationassignment + labels: + testing.upbound.io/example-name: rgconfigurationassignment + name: rgconfigurationassignment +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: guestconfiguration/v1beta2/policyvirtualmachineconfigurationassignment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgconfigurationassignment + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: guestconfiguration/v1beta2/policyvirtualmachineconfigurationassignment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgconfigurationassignment + +--- + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: WindowsVirtualMachine +metadata: + annotations: + meta.upbound.io/example-id: guestconfiguration/v1beta2/policyvirtualmachineconfigurationassignment + labels: + testing.upbound.io/example-name: examplewind + name: examplewind +spec: + forProvider: + adminPasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + adminUsername: adminuser + identity: + type: SystemAssigned + location: West Europe + networkInterfaceIdsRefs: + - name: example + osDisk: + caching: ReadWrite + storageAccountType: Standard_LRS + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgconfigurationassignment + size: Standard_F2 + sourceImageReference: + offer: WindowsServer + publisher: MicrosoftWindowsServer + sku: 2019-Datacenter + version: latest + +--- + +apiVersion: v1 +data: + example-key: dXBiMHVuZHIwY2s1ITMxMzM3Cg== +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/hdinsight/v1beta2/hadoopcluster.yaml b/examples/hdinsight/v1beta2/hadoopcluster.yaml new file mode 100644 index 000000000..e8dc4cdbd --- /dev/null +++ b/examples/hdinsight/v1beta2/hadoopcluster.yaml @@ -0,0 +1,126 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: hdinsight.azure.upbound.io/v1beta2 +kind: HadoopCluster +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/hadoopcluster + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example001 + name: example001 +spec: + forProvider: + clusterVersion: "4.0" + componentVersion: + hadoop: "3.1" + gateway: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrgw + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rghadoopcluster + roles: + headNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Standard_D3_V2 + workerNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + targetInstanceCount: 3 + username: acctestusrvm + vmSize: Standard_D4_V2 + zookeeperNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Standard_D3_V2 + storageAccount: + - isDefault: true + storageAccountKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + storageContainerIdSelector: + matchLabels: + testing.upbound.io/example-name: example + tier: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta1/hadoopcluster + labels: + testing.upbound.io/example-name: rghadoopcluster + name: rghadoopcluster +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/hadoopcluster + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-hadoopcluster.sh + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rghadoopcluster + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/hadoopcluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerAccessType: private + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: v1 +data: + example-key: VGVyckFmb3JtMTIzIQ== +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/hdinsight/v1beta2/hbasecluster.yaml b/examples/hdinsight/v1beta2/hbasecluster.yaml new file mode 100644 index 000000000..a602900b5 --- /dev/null +++ b/examples/hdinsight/v1beta2/hbasecluster.yaml @@ -0,0 +1,126 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: hdinsight.azure.upbound.io/v1beta2 +kind: HBaseCluster +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/hbasecluster + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: hbasecluster001 + name: hbasecluster001 +spec: + forProvider: + clusterVersion: "4.0" + componentVersion: + hbase: "2.1" + gateway: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrgw + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rghbasecluster + roles: + headNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Standard_D3_V2 + workerNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + targetInstanceCount: 3 + username: acctestusrvm + vmSize: Standard_D3_V2 + zookeeperNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Standard_D3_V2 + storageAccount: + - isDefault: true + storageAccountKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + storageContainerIdSelector: + matchLabels: + testing.upbound.io/example-name: example + tier: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta1/hbasecluster + labels: + testing.upbound.io/example-name: rghbasecluster + name: rghbasecluster +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/hbasecluster + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-hbasecluster.sh + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rghbasecluster + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/hbasecluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerAccessType: private + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: v1 +data: + example-key: VGVyckFmb3JtMTIzIQ== +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/hdinsight/v1beta2/interactivequerycluster.yaml b/examples/hdinsight/v1beta2/interactivequerycluster.yaml new file mode 100644 index 000000000..447be44c7 --- /dev/null +++ b/examples/hdinsight/v1beta2/interactivequerycluster.yaml @@ -0,0 +1,126 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: hdinsight.azure.upbound.io/v1beta2 +kind: InteractiveQueryCluster +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/interactivequerycluster + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: interactivecluster + name: interactivecluster +spec: + forProvider: + clusterVersion: "4.0" + componentVersion: + interactiveHive: "3.1" + gateway: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrgw + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgiqcluster + roles: + headNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Standard_D13_V2 + workerNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + targetInstanceCount: 1 + username: acctestusrvm + vmSize: Standard_D14_V2 + zookeeperNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Standard_A2_V2 + storageAccount: + - isDefault: true + storageAccountKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + storageContainerIdSelector: + matchLabels: + testing.upbound.io/example-name: example + tier: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta1/interactivequerycluster + labels: + testing.upbound.io/example-name: rgiqcluster + name: rgiqcluster +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/interactivequerycluster + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-interactivecluster.sh + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgiqcluster + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/interactivequerycluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerAccessType: private + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: v1 +data: + example-key: VGVyckFmb3JtMTIzIQ== +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/hdinsight/v1beta2/kafkacluster.yaml b/examples/hdinsight/v1beta2/kafkacluster.yaml new file mode 100644 index 000000000..52b398cee --- /dev/null +++ b/examples/hdinsight/v1beta2/kafkacluster.yaml @@ -0,0 +1,127 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: hdinsight.azure.upbound.io/v1beta2 +kind: KafkaCluster +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/kafkacluster + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: kafkacluster0001 + name: kafkacluster0001 +spec: + forProvider: + clusterVersion: "4.0" + componentVersion: + kafka: "2.1" + gateway: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrgw + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgkafkacluster + roles: + headNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Standard_D3_V2 + workerNode: + numberOfDisksPerNode: 1 + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + targetInstanceCount: 3 + username: acctestusrvm + vmSize: Standard_D3_V2 + zookeeperNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Standard_D3_V2 + storageAccount: + - isDefault: true + storageAccountKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + storageContainerIdSelector: + matchLabels: + testing.upbound.io/example-name: example + tier: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta1/kafkacluster + labels: + testing.upbound.io/example-name: rgkafkacluster + name: rgkafkacluster +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/kafkacluster + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-kafka.sh + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgkafkacluster + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/kafkacluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerAccessType: private + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: v1 +data: + example-key: VGVyckFmb3JtMTIzIQ== +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/hdinsight/v1beta2/sparkcluster.yaml b/examples/hdinsight/v1beta2/sparkcluster.yaml new file mode 100644 index 000000000..3f990937d --- /dev/null +++ b/examples/hdinsight/v1beta2/sparkcluster.yaml @@ -0,0 +1,126 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: hdinsight.azure.upbound.io/v1beta2 +kind: SparkCluster +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/sparkcluster + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: sparkcluster001 + name: sparkcluster001 +spec: + forProvider: + clusterVersion: "4.0" + componentVersion: + spark: "2.4" + gateway: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrgw + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsparkcluster + roles: + headNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Standard_A4_V2 + workerNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + targetInstanceCount: 1 + username: acctestusrvm + vmSize: Standard_A4_V2 + zookeeperNode: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: acctestusrvm + vmSize: Medium + storageAccount: + - isDefault: true + storageAccountKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + storageContainerIdSelector: + matchLabels: + testing.upbound.io/example-name: example + tier: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta1/sparkcluster + labels: + testing.upbound.io/example-name: rgsparkcluster + name: rgsparkcluster +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/sparkcluster + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-sparkcluster.sh + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsparkcluster + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: hdinsight/v1beta2/sparkcluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerAccessType: private + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: v1 +data: + example-key: VGVyckFmb3JtMTIzIQ== +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/healthcareapis/v1beta2/healthcaredicomservice.yaml b/examples/healthcareapis/v1beta2/healthcaredicomservice.yaml new file mode 100644 index 000000000..b7d938817 --- /dev/null +++ b/examples/healthcareapis/v1beta2/healthcaredicomservice.yaml @@ -0,0 +1,53 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: healthcareapis.azure.upbound.io/v1beta2 +kind: HealthcareDICOMService +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcaredicomservice + labels: + testing.upbound.io/example-name: healthcaredicomservice + name: healthcaredicomservice +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + tags: + environment: None + workspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: healthcareservice + +--- + +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareWorkspace +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcaredicomservice + labels: + testing.upbound.io/example-name: healthcareservice + name: healthcareservice +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rghealthcaredicomservice + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaredicomservice + labels: + testing.upbound.io/example-name: rghealthcaredicomservice + name: rghealthcaredicomservice +spec: + forProvider: + location: West Europe diff --git a/examples/healthcareapis/v1beta2/healthcarefhirservice.yaml b/examples/healthcareapis/v1beta2/healthcarefhirservice.yaml new file mode 100644 index 000000000..5e34b9dc1 --- /dev/null +++ b/examples/healthcareapis/v1beta2/healthcarefhirservice.yaml @@ -0,0 +1,92 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: healthcareapis.azure.upbound.io/v1beta2 +kind: HealthcareFHIRService +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcarefhirservice + labels: + testing.upbound.io/example-name: healthcareservice + name: healthcareservice +spec: + forProvider: + accessPolicyObjectIds: + - d949679c-f7ed-4e18-a8ac-0f5560ed3fdc + authentication: + audience: https://tfexfhir.fhir.azurehealthcareapis.com + authority: https://login.microsoftonline.com/b9925bc4-8383-4c37-b9d2-fa456d1bb1c7 + configurationExportStorageAccountName: example0001 + cors: + allowedHeaders: + - '*' + allowedMethods: + - GET + - DELETE + - PUT + allowedOrigins: + - https://tfex.com:123 + - https://tfex1.com:3389 + credentialsAllowed: true + maxAgeInSeconds: 3600 + identity: + type: SystemAssigned + kind: fhir-R4 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rghealthcareservice + workspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: healthcareservice + +--- + +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareWorkspace +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcarefhirservice + labels: + testing.upbound.io/example-name: healthcareservice + name: healthcareservice +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rghealthcareservice + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcarefhirservice + labels: + testing.upbound.io/example-name: rghealthcareservice + name: rghealthcareservice +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcarefhirservice + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rghealthcareservice diff --git a/examples/healthcareapis/v1beta2/healthcaremedtechservice.yaml b/examples/healthcareapis/v1beta2/healthcaremedtechservice.yaml new file mode 100644 index 000000000..f934645c7 --- /dev/null +++ b/examples/healthcareapis/v1beta2/healthcaremedtechservice.yaml @@ -0,0 +1,144 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: healthcareapis.azure.upbound.io/v1beta2 +kind: HealthcareMedtechService +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcaremedtechservice + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + deviceMappingJson: | + { + "templateType": "CollectionContent", + "template": [ + { + "templateType": "JsonPathContent", + "template": { + "typeName": "heartrate", + "typeMatchExpression": "$..[?(@heartrate)]", + "deviceIdExpression": "$.deviceid", + "timestampExpression": "$.measurementdatetime", + "values": [ + { + "required": "true", + "valueExpression": "$.heartrate", + "valueName": "hr" + } + ] + } + } + ] + } + eventhubConsumerGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNamespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + identity: + type: SystemAssigned + location: east us + workspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: healthcareapis.azure.upbound.io/v1beta1 +kind: HealthcareWorkspace +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + location: East US + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta2 +kind: EventHub +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + messageRetention: 1 + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionCount: 1 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: ConsumerGroup +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta2 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcaremedtechservice + labels: + testing.upbound.io/example-name: example + name: hcmsexample +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard diff --git a/examples/healthcareapis/v1beta2/healthcareservice.yaml b/examples/healthcareapis/v1beta2/healthcareservice.yaml new file mode 100644 index 000000000..229936bde --- /dev/null +++ b/examples/healthcareapis/v1beta2/healthcareservice.yaml @@ -0,0 +1,48 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: healthcareapis.azure.upbound.io/v1beta2 +kind: HealthcareService +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta2/healthcareservice + upjet.upbound.io/manual-intervention: Long running resource. Time to time updating + healthcareservice status takes too long. + labels: + testing.upbound.io/example-name: example + name: hstest +spec: + forProvider: + authenticationConfiguration: + audience: https://azurehealthcareapis.com/ + smartProxyEnabled: true + corsConfiguration: + allowCredentials: true + allowedMethods: + - GET + - PUT + allowedOrigins: + - http://www.example.com + - http://www.example2.com + maxAgeInSeconds: 500 + cosmosdbThroughput: 2000 + kind: fhir-R4 + location: westus2 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: healthcareapis/v1beta1/healthcareservice + labels: + testing.upbound.io/example-name: example + name: hstest +spec: + forProvider: + location: West Europe diff --git a/examples/insights/v1beta2/applicationinsightsstandardwebtest.yaml b/examples/insights/v1beta2/applicationinsightsstandardwebtest.yaml new file mode 100644 index 000000000..ca300a8d5 --- /dev/null +++ b/examples/insights/v1beta2/applicationinsightsstandardwebtest.yaml @@ -0,0 +1,57 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: ApplicationInsightsStandardWebTest +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/applicationinsightsstandardwebtest + labels: + testing.upbound.io/example-name: exampleappinsightwebtest + name: exampleappinsightwebtest +spec: + forProvider: + applicationInsightsIdSelector: + matchLabels: + testing.upbound.io/example-name: appinsightwebtest-ai + geoLocations: + - us-va-ash-azr + location: West Europe + request: + url: http://www.example.com + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: appinsightwebtest-rg + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/applicationinsightsstandardwebtest + labels: + testing.upbound.io/example-name: appinsightwebtest-ai + name: appinsightwebtest-ai +spec: + forProvider: + applicationType: web + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: appinsightwebtest-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/applicationinsightsstandardwebtest + labels: + testing.upbound.io/example-name: appinsightwebtest-rg + name: appinsightwebtest-rg +spec: + forProvider: + location: West Europe diff --git a/examples/insights/v1beta2/applicationinsightsworkbook.yaml b/examples/insights/v1beta2/applicationinsightsworkbook.yaml new file mode 100644 index 000000000..c9bf2e82b --- /dev/null +++ b/examples/insights/v1beta2/applicationinsightsworkbook.yaml @@ -0,0 +1,53 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: ApplicationInsightsWorkbook +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/applicationinsightsworkbook + labels: + testing.upbound.io/example-name: exampleappinsightsworkbook + name: exampleappinsightsworkbook +spec: + forProvider: + dataJson: |- + ${jsonencode({ + "version" = "Notebook/1.0", + "items" = [ + { + "type" = 1, + "content" = { + "json" = "Test2022" + }, + "name" = "text - 0" + } + ], + "isLocked" = false, + "fallbackResourceIds" = [ + "Azure Monitor" + ] + })} + displayName: workbook1 + location: West Europe + name: 93636960-a974-11ed-afa1-0242ac120002 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: appinsightsworkbook-rg + tags: + ENV: Test + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/applicationinsightsworkbook + labels: + testing.upbound.io/example-name: appinsightsworkbook-rg + name: appinsightsworkbook-rg +spec: + forProvider: + location: West Europe diff --git a/examples/insights/v1beta2/monitoractiongroup.yaml b/examples/insights/v1beta2/monitoractiongroup.yaml new file mode 100644 index 000000000..33d22b185 --- /dev/null +++ b/examples/insights/v1beta2/monitoractiongroup.yaml @@ -0,0 +1,35 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitoractiongroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + shortName: exampleact + webhookReceiver: + - name: callmyapi + serviceUri: http://example.com/alert + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/monitoractiongroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/insights/v1beta2/monitoractivitylogalert.yaml b/examples/insights/v1beta2/monitoractivitylogalert.yaml new file mode 100644 index 000000000..cded212ff --- /dev/null +++ b/examples/insights/v1beta2/monitoractivitylogalert.yaml @@ -0,0 +1,86 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActivityLogAlert +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitoractivitylogalert + labels: + testing.upbound.io/example-name: main + name: main +spec: + forProvider: + action: + - actionGroupIdSelector: + matchLabels: + testing.upbound.io/example-name: main + webhookProperties: + from: terraform + criteria: + category: Recommendation + operationName: Microsoft.Storage/storageAccounts/write + resourceIdSelector: + matchLabels: + testing.upbound.io/example-name: tomonitor0001 + description: This alert will monitor a specific storage account updates. + name: example-activitylogalert + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitoractivitylogalert + scopesRefs: + - name: rg-monitoractivitylogalert + +--- + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitoractivitylogalert + labels: + testing.upbound.io/example-name: main + name: main +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitoractivitylogalert + shortName: p0action + webhookReceiver: + - name: callmyapi + serviceUri: http://example.com/alert + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/monitoractivitylogalert + labels: + testing.upbound.io/example-name: rg-monitoractivitylogalert + name: rg-monitoractivitylogalert +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitoractivitylogalert + labels: + testing.upbound.io/example-name: tomonitor0001 + name: tomonitor0001 +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitoractivitylogalert diff --git a/examples/insights/v1beta2/monitorautoscalesetting.yaml b/examples/insights/v1beta2/monitorautoscalesetting.yaml new file mode 100644 index 000000000..9bcb1f168 --- /dev/null +++ b/examples/insights/v1beta2/monitorautoscalesetting.yaml @@ -0,0 +1,169 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorAutoscaleSetting +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorautoscalesetting + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + name: myAutoscaleSetting + notification: + email: + customEmails: + - admin@contoso.com + sendToSubscriptionAdministrator: true + sendToSubscriptionCoAdministrator: true + profile: + - capacity: + default: 1 + maximum: 10 + minimum: 1 + name: defaultProfile + rule: + - metricTrigger: + dimensions: + - name: AppName + operator: Equals + values: + - App1 + metricName: Percentage CPU + metricNamespace: microsoft.compute/virtualmachinescalesets + metricResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + operator: GreaterThan + statistic: Average + threshold: 75 + timeAggregation: Average + timeGrain: PT1M + timeWindow: PT5M + scaleAction: + cooldown: PT1M + direction: Increase + type: ChangeCount + value: 1 + - metricTrigger: + metricName: Percentage CPU + metricResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + operator: LessThan + statistic: Average + threshold: 25 + timeAggregation: Average + timeGrain: PT1M + timeWindow: PT5M + scaleAction: + cooldown: PT1M + direction: Decrease + type: ChangeCount + value: 1 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitorautoscalesetting + targetResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: LinuxVirtualMachineScaleSet +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorautoscalesetting + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + adminSshKey: + - publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDCsTcryUl51Q2VSEHqDRNmceUFo55ZtcIwxl2QITbN1RREti5ml/VTytC0yeBOvnZA4x4CFpdw/lCDPk0yrH9Ei5vVkXmOrExdTlT3qI7YaAzj1tUVlBd4S6LX1F7y6VLActvdHuDDuXZXzCDd/97420jrDfWZqJMlUK/EmCE5ParCeHIRIvmBxcEnGfFIsw8xQZl0HphxWOtJil8qsUWSdMyCiJYYQpMoMliO99X40AUc4/AlsyPyT5ddbKk08YrZ+rKDVHF7o29rh4vi5MmHkVgVQHKiKybWlHq+b71gIAUQk9wrJxD+dqt4igrmDSpIjfjwnd+l5UIn5fJSO5DYV4YT/4hwK7OKmuo7OFHD0WyY5YnkYEMtFgzemnRBdE8ulcT60DQpVgRMXFWHvhyCWy0L6sgj1QWDZlLpvsIvNfHsyhKFMG1frLnMt/nP0+YCcfg+v1JYeCKjeoJxB8DWcRBsjzItY0CGmzP8UYZiYKl/2u+2TgFS5r7NWH11bxoUzjKdaa1NLw+ieA8GlBFfCbfWe6YVB9ggUte4VtYFMZGxOjS2bAiYtfgTKFJv+XqORAwExG6+G2eDxIDyo80/OA9IG7Xv/jwQr7D6KDjDuULFcN/iTxuttoKrHeYz1hf5ZQlBdllwJHYx6fK2g8kha6r2JIQKocvsAXiiONqSfw== + hello@world.com + username: myadmin + adminUsername: myadmin + instances: 2 + location: West Europe + networkInterface: + - ipConfiguration: + - name: TestIPConfiguration + primary: true + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + name: TestNetworkProfile + primary: true + osDisk: + caching: ReadWrite + storageAccountType: StandardSSD_LRS + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitorautoscalesetting + sku: Standard_F2 + sourceImageReference: + offer: UbuntuServer + publisher: Canonical + sku: 16.04-LTS + version: latest + upgradeMode: Manual + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/monitorautoscalesetting + labels: + testing.upbound.io/example-name: rg-monitorautoscalesetting + name: rg-monitorautoscalesetting +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorautoscalesetting + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitorautoscalesetting + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorautoscalesetting + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitorautoscalesetting diff --git a/examples/insights/v1beta2/monitordatacollectionrule.yaml b/examples/insights/v1beta2/monitordatacollectionrule.yaml new file mode 100644 index 000000000..59d310261 --- /dev/null +++ b/examples/insights/v1beta2/monitordatacollectionrule.yaml @@ -0,0 +1,123 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorDataCollectionRule +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitordatacollectionrule + labels: + testing.upbound.io/example-name: example + name: mdcrexample +spec: + forProvider: + dataFlow: + - destinations: + - test-destination-metrics + streams: + - Microsoft-InsightsMetrics + - destinations: + - test-destination-log + streams: + - Microsoft-InsightsMetrics + - Microsoft-Syslog + - Microsoft-Perf + dataSources: + extension: + - extensionJson: |- + ${jsonencode({ + a = 1 + b = "hello" + })} + extensionName: test-extension-name + inputDataSources: + - test-datasource-wineventlog + name: test-datasource-extension + streams: + - Microsoft-WindowsEvent + syslog: + - facilityNames: + - '*' + logLevels: + - '*' + name: test-datasource-syslog + windowsEventLog: + - name: test-datasource-wineventlog + streams: + - Microsoft-WindowsEvent + xPathQueries: + - '*[System!Level=1]' + description: data collection rule example + destinations: + azureMonitorMetrics: + name: test-destination-metrics + logAnalytics: + - name: test-destination-log + workspaceResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + foo: bar + +--- + +apiVersion: operationsmanagement.azure.upbound.io/v1beta2 +kind: LogAnalyticsSolution +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitordatacollectionrule + labels: + testing.upbound.io/example-name: example + name: mdcrexample +spec: + forProvider: + location: West Europe + plan: + product: OMSGallery/WindowsEventForwarding + publisher: Microsoft + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + solutionName: WindowsEventForwarding + workspaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + workspaceResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitordatacollectionrule + labels: + testing.upbound.io/example-name: example + name: mdcrexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/monitordatacollectionrule + labels: + testing.upbound.io/example-name: example + name: mdcrexample +spec: + forProvider: + location: West Europe diff --git a/examples/insights/v1beta2/monitordiagnosticsetting.yaml b/examples/insights/v1beta2/monitordiagnosticsetting.yaml new file mode 100644 index 000000000..ccc7a024d --- /dev/null +++ b/examples/insights/v1beta2/monitordiagnosticsetting.yaml @@ -0,0 +1,81 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorDiagnosticSetting +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitordiagnosticsetting + labels: + testing.upbound.io/example-name: insightsmds + name: insightsmds +spec: + forProvider: + enabledLog: + - category: AuditEvent + retentionPolicy: + enabled: false + metric: + - category: AllMetrics + retentionPolicy: + enabled: false + name: insightsmds + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: insightsmds + targetResourceId: ${data.azurerm_client_config.current.subscription_resource_id}/resourceGroups/insightsmds/providers/Microsoft.KeyVault/vaults/insightsmds + +--- + +apiVersion: keyvault.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitordiagnosticsetting + labels: + testing.upbound.io/example-name: insightsmds + name: insightsmds +spec: + forProvider: + location: West Europe + purgeProtectionEnabled: false + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: insightsmds + skuName: standard + softDeleteRetentionDays: 7 + tenantId: ${data.azurerm_client_config.current.tenant_id} + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/monitordiagnosticsetting + labels: + testing.upbound.io/example-name: insightsmds + name: insightsmds +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitordiagnosticsetting + labels: + testing.upbound.io/example-name: insightsmds + name: insightsmds +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: insightsmds diff --git a/examples/insights/v1beta2/monitorscheduledqueryrulesalert.yaml b/examples/insights/v1beta2/monitorscheduledqueryrulesalert.yaml new file mode 100644 index 000000000..a8fae4862 --- /dev/null +++ b/examples/insights/v1beta2/monitorscheduledqueryrulesalert.yaml @@ -0,0 +1,93 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorScheduledQueryRulesAlert +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorscheduledqueryrulesalert + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + action: + actionGroupRefs: + - name: example + customWebhookPayload: '{}' + emailSubject: Email Header + dataSourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + description: Alert when total results cross threshold + enabled: true + frequency: 5 + location: West Europe + name: example + query: | + requests + | where tolong(resultCode) >= 500 + | summarize count() by bin(timestamp, 5m) + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitor + severity: 1 + tags: + foo: bar + timeWindow: 30 + trigger: + operator: GreaterThan + threshold: 3 + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorscheduledqueryrulesalert + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationType: web + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitor + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/monitorscheduledqueryrulesalert + labels: + testing.upbound.io/example-name: rg-monitor + name: rg-monitor +spec: + forProvider: + location: West Europe + +--- + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorscheduledqueryrulesalert + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitor + shortName: exampleact + webhookReceiver: + - name: callmyapi + serviceUri: http://example.com/alert diff --git a/examples/insights/v1beta2/monitorscheduledqueryrulesalertv2.yaml b/examples/insights/v1beta2/monitorscheduledqueryrulesalertv2.yaml new file mode 100644 index 000000000..ccea00773 --- /dev/null +++ b/examples/insights/v1beta2/monitorscheduledqueryrulesalertv2.yaml @@ -0,0 +1,82 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorScheduledQueryRulesAlertV2 +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorscheduledqueryrulesalertv2 + labels: + testing.upbound.io/example-name: example + name: msqraexample +spec: + forProvider: + autoMitigationEnabled: true + criteria: + - dimension: + - name: client_CountryOrRegion + operator: Exclude + values: + - "123" + failingPeriods: + minimumFailingPeriodsToTriggerAlert: 1 + numberOfEvaluationPeriods: 1 + metricMeasureColumn: CountByCountry + operator: LessThan + query: | + requests + | summarize CountByCountry=count() by client_CountryOrRegion + resourceIdColumn: client_CountryOrRegion + threshold: 17.5 + timeAggregationMethod: Maximum + description: example sqr + displayName: example-sqr + enabled: true + evaluationFrequency: PT10M + location: West Europe + queryTimeRangeOverride: PT1H + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + scopesRefs: + - name: msqraexample + severity: 4 + skipQueryValidation: true + tags: + key: value + key2: value2 + windowDuration: PT10M + workspaceAlertsStorageEnabled: false + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorscheduledqueryrulesalertv2 + labels: + testing.upbound.io/example-name: example + name: msqraexample +spec: + forProvider: + applicationType: web + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/monitorscheduledqueryrulesalertv2 + labels: + testing.upbound.io/example-name: example + name: msqraexample +spec: + forProvider: + location: West Europe diff --git a/examples/insights/v1beta2/monitorscheduledqueryruleslog.yaml b/examples/insights/v1beta2/monitorscheduledqueryruleslog.yaml new file mode 100644 index 000000000..2ab370a6e --- /dev/null +++ b/examples/insights/v1beta2/monitorscheduledqueryruleslog.yaml @@ -0,0 +1,66 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorScheduledQueryRulesLog +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorscheduledqueryruleslog + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + criteria: + dimension: + - name: Computer + operator: Include + values: + - targetVM + metricName: Average_% Idle Time + dataSourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + description: Scheduled query rule LogToMetric example + enabled: true + location: West Europe + name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitor + tags: + foo: bar + +--- + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta2/monitorscheduledqueryruleslog + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-monitor + retentionInDays: 30 + sku: PerGB2018 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: insights/v1beta1/monitorscheduledqueryruleslog + labels: + testing.upbound.io/example-name: rg-monitor + name: rg-monitor +spec: + forProvider: + location: West Europe diff --git a/examples/iotcentral/v1beta2/application.yaml b/examples/iotcentral/v1beta2/application.yaml new file mode 100644 index 000000000..21fd0fa63 --- /dev/null +++ b/examples/iotcentral/v1beta2/application.yaml @@ -0,0 +1,36 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: iotcentral.azure.upbound.io/v1beta2 +kind: Application +metadata: + annotations: + meta.upbound.io/example-id: iotcentral/v1beta2/application + labels: + testing.upbound.io/example-name: example + name: example-iotcentral-app-subdomain-${Rand.RFC1123Subdomain} +spec: + forProvider: + displayName: example-iotcentral-app-subdomain-${Rand.RFC1123Subdomain} + location: West Europe + name: example-iotcentral-app-subdomain-${Rand.RFC1123Subdomain} + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: iotcentral-r-group-label + sku: ST1 + subDomain: example-iotcentral-app-subdomain-${Rand.RFC1123Subdomain} + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: iotcentral/v1beta1/application + labels: + testing.upbound.io/example-name: iotcentral-r-group-label + name: iotcentral-r-group +spec: + forProvider: + location: West Europe diff --git a/examples/keyvault/v1beta2/certificate.yaml b/examples/keyvault/v1beta2/certificate.yaml new file mode 100644 index 000000000..5fd9954c0 --- /dev/null +++ b/examples/keyvault/v1beta2/certificate.yaml @@ -0,0 +1,119 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: keyvault.azure.upbound.io/v1beta2 +kind: Certificate +metadata: + annotations: + meta.upbound.io/example-id: keyvault/v1beta2/certificate + labels: + testing.upbound.io/example-name: example-cert + name: uptest-${Rand.RFC1123Subdomain} +spec: + forProvider: + certificatePolicy: + issuerParameters: + name: Self + keyProperties: + exportable: true + keySize: 4096 + keyType: RSA + reuseKey: true + lifetimeAction: + - action: + actionType: AutoRenew + trigger: + daysBeforeExpiry: 30 + secretProperties: + contentType: application/x-pkcs12 + x509CertificateProperties: + extendedKeyUsage: + - 1.3.6.1.5.5.7.3.1 + keyUsage: + - cRLSign + - dataEncipherment + - digitalSignature + - keyAgreement + - keyCertSign + - keyEncipherment + subject: CN=upbound + subjectAlternativeNames: + dnsNames: + - upbound.io + validityInMonths: 12 + keyVaultIdSelector: + matchLabels: + testing.upbound.io/example-name: example-cert + name: custom-Non-RFC1123Name + +--- + +apiVersion: keyvault.azure.upbound.io/v1beta1 +kind: AccessPolicy +metadata: + annotations: + meta.upbound.io/example-id: keyvault/v1beta2/certificate + labels: + testing.upbound.io/example-name: example-cert + name: example-cert +spec: + forProvider: + certificatePermissions: + - Create + - Delete + - DeleteIssuers + - Get + - GetIssuers + - SetIssuers + - Import + - List + - ListIssuers + - ManageContacts + - ManageIssuers + - Purge + - SetIssuers + - Update + - Recover + keyPermissions: + - Create + keyVaultIdSelector: + matchLabels: + testing.upbound.io/example-name: example-cert + objectId: ${data.azurerm_client_config.service_principal.object_id} + secretPermissions: + - Set + tenantId: ${data.azurerm_client_config.current.tenant_id} + +--- + +apiVersion: keyvault.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: keyvault/v1beta2/certificate + labels: + testing.upbound.io/example-name: example-cert + name: uptest-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example-cert + skuName: standard + tenantId: ${data.azurerm_client_config.current.tenant_id} + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: keyvault/v1beta1/certificate + labels: + testing.upbound.io/example-name: example-cert + name: uptest-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe diff --git a/examples/keyvault/v1beta2/vault.yaml b/examples/keyvault/v1beta2/vault.yaml new file mode 100644 index 000000000..f7e1e2ea3 --- /dev/null +++ b/examples/keyvault/v1beta2/vault.yaml @@ -0,0 +1,37 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: keyvault.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: keyvault/v1beta2/vault + labels: + testing.upbound.io/example-name: example + name: uptest-${Rand.RFC1123Subdomain} +spec: + forProvider: + enabledForDiskEncryption: true + location: West Europe + purgeProtectionEnabled: false + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: standard + softDeleteRetentionDays: 7 + tenantId: ${data.azurerm_client_config.current.tenant_id} + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: keyvault/v1beta1/vault + labels: + testing.upbound.io/example-name: example + name: uptest-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe diff --git a/examples/kusto/v1beta2/attacheddatabaseconfiguration.yaml b/examples/kusto/v1beta2/attacheddatabaseconfiguration.yaml new file mode 100644 index 000000000..23386b94a --- /dev/null +++ b/examples/kusto/v1beta2/attacheddatabaseconfiguration.yaml @@ -0,0 +1,135 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: kusto.azure.upbound.io/v1beta2 +kind: AttachedDatabaseConfiguration +metadata: + annotations: + meta.upbound.io/example-id: kusto/v1beta2/attacheddatabaseconfiguration + upjet.upbound.io/manual-intervention: Long running resource. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + clusterNameRef: + name: kcluster2 + clusterResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: followed_cluster + databaseNameSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sharing: + externalTablesToExclude: + - ExternalTable2 + externalTablesToInclude: + - ExternalTable1 + materializedViewsToExclude: + - MaterializedViewTable2 + materializedViewsToInclude: + - MaterializedViewTable1 + tablesToExclude: + - Table2 + tablesToInclude: + - Table1 + +--- + +apiVersion: kusto.azure.upbound.io/v1beta2 +kind: Cluster +metadata: + annotations: + meta.upbound.io/example-id: kusto/v1beta2/attacheddatabaseconfiguration + labels: + testing.upbound.io/example-name: followed_cluster + name: kcluster +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: + capacity: 1 + name: Dev(No SLA)_Standard_D11_v2 + +--- + +apiVersion: kusto.azure.upbound.io/v1beta2 +kind: Cluster +metadata: + annotations: + meta.upbound.io/example-id: kusto/v1beta2/attacheddatabaseconfiguration + labels: + testing.upbound.io/example-name: cluster2 + name: kcluster2 +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: + capacity: 1 + name: Dev(No SLA)_Standard_D11_v2 + +--- + +apiVersion: kusto.azure.upbound.io/v1beta1 +kind: Database +metadata: + annotations: + meta.upbound.io/example-id: kusto/v1beta2/attacheddatabaseconfiguration + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + clusterNameSelector: + matchLabels: + testing.upbound.io/example-name: followed_cluster + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: kusto.azure.upbound.io/v1beta1 +kind: Database +metadata: + annotations: + meta.upbound.io/example-id: kusto/v1beta2/attacheddatabaseconfiguration + labels: + testing.upbound.io/example-name: followed_database + name: followed-database +spec: + forProvider: + clusterNameSelector: + matchLabels: + testing.upbound.io/example-name: cluster2 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: kusto/v1beta1/attacheddatabaseconfiguration + labels: + testing.upbound.io/example-name: example + name: kusto-example +spec: + forProvider: + location: West Europe diff --git a/examples/kusto/v1beta2/cluster.yaml b/examples/kusto/v1beta2/cluster.yaml new file mode 100644 index 000000000..936c60265 --- /dev/null +++ b/examples/kusto/v1beta2/cluster.yaml @@ -0,0 +1,39 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: kusto.azure.upbound.io/v1beta2 +kind: Cluster +metadata: + annotations: + meta.upbound.io/example-id: kusto/v1beta2/cluster + labels: + testing.upbound.io/example-name: example + name: examplekustocluster +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: + capacity: 2 + name: Standard_D13_v2 + tags: + Environment: Production + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: kusto/v1beta1/cluster + labels: + testing.upbound.io/example-name: example + name: my-kusto-rg +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane diff --git a/examples/labservices/v1beta2/labserviceplan.yaml b/examples/labservices/v1beta2/labserviceplan.yaml new file mode 100644 index 000000000..1c14348cc --- /dev/null +++ b/examples/labservices/v1beta2/labserviceplan.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: labservices.azure.upbound.io/v1beta2 +kind: LabServicePlan +metadata: + annotations: + meta.upbound.io/example-id: labservices/v1beta2/labserviceplan + labels: + testing.upbound.io/example-name: example + name: lspexample +spec: + forProvider: + allowedRegions: + - West Europe + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: labservices/v1beta1/labserviceplan + labels: + testing.upbound.io/example-name: example + name: lspexample +spec: + forProvider: + location: West Europe diff --git a/examples/labservices/v1beta2/labserviceslab.yaml b/examples/labservices/v1beta2/labserviceslab.yaml new file mode 100644 index 000000000..ade71c818 --- /dev/null +++ b/examples/labservices/v1beta2/labserviceslab.yaml @@ -0,0 +1,64 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: labservices.azure.upbound.io/v1beta2 +kind: LabServiceLab +metadata: + annotations: + meta.upbound.io/example-id: labservices/v1beta2/labservicelab + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + connectionSetting: + clientRdpAccess: Public + clientSshAccess: Public + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: labserviceslab-rg + security: + openAccessEnabled: true + title: Test label + virtualMachine: + adminUser: + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: user + imageReference: + offer: 0001-com-ubuntu-server-focal + publisher: canonical + sku: 20_04-lts + version: latest + sku: + capacity: 0 + name: Classic_Fsv2_2_4GB_128_S_SSD + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: labservices/v1beta1/labserviceslab + labels: + testing.upbound.io/example-name: labserviceslab-rg + name: labserviceslab-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: v1 +data: + example-key: VGVyckFmb3JtMTIzIQ== +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/loadtestservice/v1beta2/loadtest.yaml b/examples/loadtestservice/v1beta2/loadtest.yaml new file mode 100644 index 000000000..4a26cbd89 --- /dev/null +++ b/examples/loadtestservice/v1beta2/loadtest.yaml @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: loadtestservice.azure.upbound.io/v1beta2 +kind: LoadTest +metadata: + annotations: + meta.upbound.io/example-id: loadtestservice/v1beta2/loadtest + labels: + testing.upbound.io/example-name: example-loadtest + name: example-loadtest +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example-loadtest + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: loadtestservice/v1beta1/loadtest + labels: + testing.upbound.io/example-name: example-loadtest + name: example-loadtest +spec: + forProvider: + location: West Europe diff --git a/examples/logic/v1beta2/appintegrationaccountbatchconfiguration.yaml b/examples/logic/v1beta2/appintegrationaccountbatchconfiguration.yaml new file mode 100644 index 000000000..cd65bb0f3 --- /dev/null +++ b/examples/logic/v1beta2/appintegrationaccountbatchconfiguration.yaml @@ -0,0 +1,57 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: logic.azure.upbound.io/v1beta2 +kind: AppIntegrationAccountBatchConfiguration +metadata: + annotations: + meta.upbound.io/example-id: logic/v1beta2/appintegrationaccountbatchconfiguration + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + batchGroupName: TestBatchGroup + integrationAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + name: exampleiabc + releaseCriteria: + messageCount: 80 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: logic.azure.upbound.io/v1beta1 +kind: AppIntegrationAccount +metadata: + annotations: + meta.upbound.io/example-id: logic/v1beta2/appintegrationaccountbatchconfiguration + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + name: example-ia + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: logic/v1beta1/appintegrationaccountbatchconfiguration + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/logic/v1beta2/apptriggerrecurrence.yaml b/examples/logic/v1beta2/apptriggerrecurrence.yaml new file mode 100644 index 000000000..59cd2e3ee --- /dev/null +++ b/examples/logic/v1beta2/apptriggerrecurrence.yaml @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: logic.azure.upbound.io/v1beta2 +kind: AppTriggerRecurrence +metadata: + annotations: + meta.upbound.io/example-id: logic/v1beta2/apptriggerrecurrence + labels: + testing.upbound.io/example-name: apptrgrecurrenceexample + name: apptrgrecurrenceexample +spec: + forProvider: + frequency: Day + interval: 1 + logicAppIdSelector: + matchLabels: + testing.upbound.io/example-name: apptrgrecurrence-aw + +--- + +apiVersion: logic.azure.upbound.io/v1beta2 +kind: AppWorkflow +metadata: + annotations: + meta.upbound.io/example-id: logic/v1beta2/apptriggerrecurrence + labels: + testing.upbound.io/example-name: apptrgrecurrence-aw + name: apptrgrecurrence-aw +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: apptrgrecurrence-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: logic/v1beta1/apptriggerrecurrence + labels: + testing.upbound.io/example-name: apptrgrecurrence-rg + name: apptrgrecurrence-rg +spec: + forProvider: + location: West Europe diff --git a/examples/logic/v1beta2/appworkflow.yaml b/examples/logic/v1beta2/appworkflow.yaml new file mode 100644 index 000000000..1a7d1a130 --- /dev/null +++ b/examples/logic/v1beta2/appworkflow.yaml @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: logic.azure.upbound.io/v1beta2 +kind: AppWorkflow +metadata: + annotations: + meta.upbound.io/example-id: logic/v1beta2/appworkflow + labels: + testing.upbound.io/example-name: appworkflowexample + name: appworkflowexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: appworkflowrg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: logic/v1beta1/appworkflow + labels: + testing.upbound.io/example-name: appworkflowrg + name: appworkflowrg +spec: + forProvider: + location: West Europe diff --git a/examples/logz/v1beta2/monitor.yaml b/examples/logz/v1beta2/monitor.yaml new file mode 100644 index 000000000..23cac9bbd --- /dev/null +++ b/examples/logz/v1beta2/monitor.yaml @@ -0,0 +1,41 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: logz.azure.upbound.io/v1beta2 +kind: Monitor +metadata: + annotations: + meta.upbound.io/example-id: logz/v1beta2/monitor + labels: + testing.upbound.io/example-name: examplemonitor + name: ${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe + plan: + billingCycle: MONTHLY + effectiveDate: "2022-06-06T00:00:00Z" + usageType: COMMITTED + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgmonitor + user: + email: user@example.com + firstName: Example + lastName: User + phoneNumber: "+12313803556" + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: logz/v1beta1/monitor + labels: + testing.upbound.io/example-name: rgmonitor + name: rgmonitor +spec: + forProvider: + location: West Europe diff --git a/examples/logz/v1beta2/subaccount.yaml b/examples/logz/v1beta2/subaccount.yaml new file mode 100644 index 000000000..ad8bd3a10 --- /dev/null +++ b/examples/logz/v1beta2/subaccount.yaml @@ -0,0 +1,62 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: logz.azure.upbound.io/v1beta2 +kind: SubAccount +metadata: + annotations: + meta.upbound.io/example-id: logz/v1beta2/subaccount + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + logzMonitorIdSelector: + matchLabels: + testing.upbound.io/example-name: examplemonitor + user: + email: user@example.com + firstName: Example + lastName: User + phoneNumber: "+12313803556" + +--- + +apiVersion: logz.azure.upbound.io/v1beta2 +kind: Monitor +metadata: + annotations: + meta.upbound.io/example-id: logz/v1beta2/subaccount + labels: + testing.upbound.io/example-name: examplemonitor + name: ${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe + plan: + billingCycle: MONTHLY + effectiveDate: "2022-06-06T00:00:00Z" + usageType: COMMITTED + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsubaccount + user: + email: user@example.com + firstName: Example + lastName: User + phoneNumber: "+12313803556" + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: logz/v1beta1/subaccount + labels: + testing.upbound.io/example-name: rgsubaccount + name: rgsubaccount +spec: + forProvider: + location: West Europe diff --git a/examples/machinelearningservices/v1beta2/computecluster.yaml b/examples/machinelearningservices/v1beta2/computecluster.yaml new file mode 100644 index 000000000..28b7a8a29 --- /dev/null +++ b/examples/machinelearningservices/v1beta2/computecluster.yaml @@ -0,0 +1,211 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: machinelearningservices.azure.upbound.io/v1beta2 +kind: ComputeCluster +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computecluster + uptest.upbound.io/timeout: "2400" + labels: + testing.upbound.io/example-name: compcluster001 + name: compcluster001 +spec: + forProvider: + location: West Europe + machineLearningWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + name: compcluster001 + scaleSettings: + maxNodeCount: 1 + minNodeCount: 0 + scaleDownNodesAfterIdleDuration: PT10M + subnetResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + vmPriority: Dedicated + vmSize: STANDARD_DS11_V2 + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computecluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationType: web + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputecluster + +--- + +apiVersion: keyvault.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computecluster + labels: + testing.upbound.io/example-name: examplevault0001 + name: examplevault0001 +spec: + forProvider: + location: West Europe + purgeProtectionEnabled: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputecluster + skuName: standard + tenantId: ${data.azurerm_client_config.current.tenant_id} + +--- + +apiVersion: machinelearningservices.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computecluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationInsightsIdSelector: + matchLabels: + testing.upbound.io/example-name: example + identity: + type: SystemAssigned + keyVaultIdSelector: + matchLabels: + testing.upbound.io/example-name: examplevault0001 + location: West Europe + publicNetworkAccessEnabled: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputecluster + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: exacc001 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta1/computecluster + labels: + testing.upbound.io/example-name: rgcomputecluster + name: rgcomputecluster +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computecluster + labels: + testing.upbound.io/example-name: exacc001 + name: exacc001 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputecluster + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computecluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.1.0.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputecluster + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computecluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.1.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputecluster + +--- + +apiVersion: alertsmanagement.azure.upbound.io/v1beta2 +kind: MonitorSmartDetectorAlertRule +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computecluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + actionGroup: + idsRefs: + - name: example + detectorType: FailureAnomaliesDetector + frequency: PT1M + name: myrule + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputecluster + scopeResourceIdsRefs: + - name: example + severity: Sev3 + +--- + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computecluster + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputecluster + shortName: examplegroup diff --git a/examples/machinelearningservices/v1beta2/computeinstance.yaml b/examples/machinelearningservices/v1beta2/computeinstance.yaml new file mode 100644 index 000000000..04e8b55a3 --- /dev/null +++ b/examples/machinelearningservices/v1beta2/computeinstance.yaml @@ -0,0 +1,209 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: machinelearningservices.azure.upbound.io/v1beta2 +kind: ComputeInstance +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computeinstance + uptest.upbound.io/timeout: "2400" + labels: + testing.upbound.io/example-name: exampleci0001 + name: exampleci0001 +spec: + forProvider: + authorizationType: personal + description: foo + location: West Europe + machineLearningWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: exampleworkspace001 + subnetResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + foo: bar + virtualMachineSize: STANDARD_DS11_V2 + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computeinstance + labels: + testing.upbound.io/example-name: exampleinsights + name: exampleinsights +spec: + forProvider: + applicationType: web + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputeinstance01 + +--- + +apiVersion: alertsmanagement.azure.upbound.io/v1beta2 +kind: MonitorSmartDetectorAlertRule +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computeinstance + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + actionGroup: + idsRefs: + - name: example + detectorType: FailureAnomaliesDetector + frequency: PT1M + name: myrule + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputeinstance01 + scopeResourceIdsRefs: + - name: exampleinsights + severity: Sev3 + +--- + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computeinstance + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputeinstance01 + shortName: examplegroup + +--- + +apiVersion: keyvault.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computeinstance + labels: + testing.upbound.io/example-name: examplevaultcomp01 + name: examplevaultcomp01 +spec: + forProvider: + location: West Europe + purgeProtectionEnabled: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputeinstance01 + skuName: standard + tenantId: ${data.azurerm_client_config.current.tenant_id} + +--- + +apiVersion: machinelearningservices.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computeinstance + labels: + testing.upbound.io/example-name: exampleworkspace001 + name: exampleworkspace001 +spec: + forProvider: + applicationInsightsIdSelector: + matchLabels: + testing.upbound.io/example-name: exampleinsights + identity: + type: SystemAssigned + keyVaultIdSelector: + matchLabels: + testing.upbound.io/example-name: examplevaultcomp01 + location: West Europe + publicNetworkAccessEnabled: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputeinstance01 + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta1/computeinstance + labels: + testing.upbound.io/example-name: rgcomputeinstance01 + name: rgcomputeinstance01 +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computeinstance + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputeinstance01 + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computeinstance + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.1.0.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputeinstance01 + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: virtualnetwork001 + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/computeinstance + labels: + testing.upbound.io/example-name: virtualnetwork001 + name: virtualnetwork001 +spec: + forProvider: + addressSpace: + - 10.1.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgcomputeinstance01 diff --git a/examples/machinelearningservices/v1beta2/synapsespark.yaml b/examples/machinelearningservices/v1beta2/synapsespark.yaml new file mode 100644 index 000000000..4783524de --- /dev/null +++ b/examples/machinelearningservices/v1beta2/synapsespark.yaml @@ -0,0 +1,222 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: machinelearningservices.azure.upbound.io/v1beta2 +kind: SynapseSpark +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: synapsespark001 + name: synapsespark001 +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + machineLearningWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: exampleworkspace002 + synapseSparkPoolIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationType: web + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsynapsespark + +--- + +apiVersion: keyvault.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: synapsesparkvault + name: synapsesparkvault +spec: + forProvider: + location: West Europe + purgeProtectionEnabled: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsynapsespark + skuName: standard + tenantId: ${data.azurerm_client_config.current.tenant_id} + +--- + +apiVersion: machinelearningservices.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: exampleworkspace002 + name: exampleworkspace002 +spec: + forProvider: + applicationInsightsIdSelector: + matchLabels: + testing.upbound.io/example-name: example + identity: + type: SystemAssigned + keyVaultIdSelector: + matchLabels: + testing.upbound.io/example-name: synapsesparkvault + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsynapsespark + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta1/synapsespark + labels: + testing.upbound.io/example-name: rgsynapsespark + name: rgsynapsespark +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsynapsespark + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: DataLakeGen2FileSystem +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: datalakegenfs + name: datalakegenfs +spec: + forProvider: + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: SparkPool +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + nodeCount: 3 + nodeSize: Small + nodeSizeFamily: MemoryOptimized + synapseWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: exampleworkspace001 + +--- + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: exampleworkspace001 + name: exampleworkspace001 +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsynapsespark + sqlAdministratorLogin: sqladminuser + storageDataLakeGen2FilesystemIdSelector: + matchLabels: + testing.upbound.io/example-name: datalakegenfs + +--- + +apiVersion: alertsmanagement.azure.upbound.io/v1beta2 +kind: MonitorSmartDetectorAlertRule +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + actionGroup: + idsRefs: + - name: example + detectorType: FailureAnomaliesDetector + frequency: PT1M + name: myrule + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsynapsespark + scopeResourceIdsRefs: + - name: example + severity: Sev0 + +--- + +apiVersion: insights.azure.upbound.io/v1beta2 +kind: MonitorActionGroup +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/synapsespark + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgsynapsespark + shortName: examplegroup diff --git a/examples/machinelearningservices/v1beta2/workspace.yaml b/examples/machinelearningservices/v1beta2/workspace.yaml new file mode 100644 index 000000000..cc061a20c --- /dev/null +++ b/examples/machinelearningservices/v1beta2/workspace.yaml @@ -0,0 +1,99 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: machinelearningservices.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/workspace + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationInsightsIdSelector: + matchLabels: + testing.upbound.io/example-name: example + identity: + type: SystemAssigned + keyVaultIdSelector: + matchLabels: + testing.upbound.io/example-name: exampleworkspace01 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgworkspace + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: insights.azure.upbound.io/v1beta1 +kind: ApplicationInsights +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/workspace + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + applicationType: web + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgworkspace + +--- + +apiVersion: keyvault.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/workspace + labels: + testing.upbound.io/example-name: exampleworkspace01 + name: exampleworkspace01 +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgworkspace + skuName: premium + tenantId: ${data.azurerm_client_config.current.tenant_id} + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta1/workspace + labels: + testing.upbound.io/example-name: rgworkspace + name: rgworkspace +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: machinelearningservices/v1beta2/workspace + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgworkspace diff --git a/examples/maintenance/v1beta2/maintenanceconfiguration.yaml b/examples/maintenance/v1beta2/maintenanceconfiguration.yaml new file mode 100644 index 000000000..da4118dff --- /dev/null +++ b/examples/maintenance/v1beta2/maintenanceconfiguration.yaml @@ -0,0 +1,37 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: maintenance.azure.upbound.io/v1beta2 +kind: MaintenanceConfiguration +metadata: + annotations: + meta.upbound.io/example-id: maintenance/v1beta2/maintenanceconfiguration + upjet.upbound.io/manual-intervention: Unstable resource. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgmaintenanceconfiguration + scope: SQLDB + tags: + Env: prod + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: maintenance/v1beta1/maintenanceconfiguration + upjet.upbound.io/manual-intervention: Unstable resource. + labels: + testing.upbound.io/example-name: rgmaintenanceconfiguration + name: rgmaintenanceconfiguration +spec: + forProvider: + location: West Europe diff --git a/examples/media/v1beta2/assetfilter.yaml b/examples/media/v1beta2/assetfilter.yaml new file mode 100644 index 000000000..3677bb4df --- /dev/null +++ b/examples/media/v1beta2/assetfilter.yaml @@ -0,0 +1,118 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: media.azure.upbound.io/v1beta2 +kind: AssetFilter +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/assetfilter + labels: + testing.upbound.io/example-name: exampleassetfilter + name: exampleassetfilter +spec: + forProvider: + assetIdSelector: + matchLabels: + testing.upbound.io/example-name: assetfilterasset + firstQualityBitrate: 128000 + presentationTimeRange: + endInUnits: 15 + forceEnd: false + liveBackoffInUnits: 0 + presentationWindowInUnits: 90 + startInUnits: 0 + unitTimescaleInMiliseconds: 1000 + trackSelection: + - condition: + - operation: Equal + property: Type + value: Audio + - operation: NotEqual + property: Language + value: en + - operation: NotEqual + property: FourCC + value: EC-3 + - condition: + - operation: Equal + property: Type + value: Video + - operation: Equal + property: Bitrate + value: 3000000-5000000 + +--- + +apiVersion: media.azure.upbound.io/v1beta1 +kind: Asset +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/assetfilter + labels: + testing.upbound.io/example-name: assetfilterasset + name: assetfilterasset +spec: + forProvider: + description: Asset description + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: assetfiltermediaacc + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: assetfilter-rg + +--- + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccount +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/assetfilter + labels: + testing.upbound.io/example-name: assetfiltermediaacc + name: assetfiltermediaacc +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: assetfilter-rg + storageAccount: + - idSelector: + matchLabels: + testing.upbound.io/example-name: assetfilteracc + isPrimary: true + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta1/assetfilter + labels: + testing.upbound.io/example-name: assetfilter-rg + name: assetfilter-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/assetfilter + labels: + testing.upbound.io/example-name: assetfilteracc + name: assetfilteracc +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: assetfilter-rg diff --git a/examples/media/v1beta2/contentkeypolicy.yaml b/examples/media/v1beta2/contentkeypolicy.yaml new file mode 100644 index 000000000..44a3c4efe --- /dev/null +++ b/examples/media/v1beta2/contentkeypolicy.yaml @@ -0,0 +1,133 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ContentKeyPolicy +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/contentkeypolicy + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: contentkeypolicyservacc + policyOption: + - name: playReady + openRestrictionEnabled: true + playreadyConfigurationLicense: + - allowTestDevices: true + beginDate: "2017-10-16T18:22:53Z" + contentKeyLocationFromHeaderEnabled: true + contentType: UltraVioletDownload + licenseType: Persistent + playRight: + allowPassingVideoContentToUnknownOutput: NotAllowed + analogVideoOpl: 150 + compressedDigitalAudioOpl: 150 + digitalVideoOnlyContentRestriction: false + imageConstraintForAnalogComponentVideoRestriction: false + imageConstraintForAnalogComputerMonitorRestriction: false + scmsRestriction: 2 + uncompressedDigitalAudioOpl: 100 + uncompressedDigitalVideoOpl: 100 + - clearKeyConfigurationEnabled: true + name: clearKey + tokenRestriction: + audience: urn:audience + issuer: urn:issuer + primarySymmetricTokenKeySecretRef: + key: example-key + name: example-secret + namespace: upbound-system + tokenType: Swt + - name: widevine + openRestrictionEnabled: true + widevineConfigurationTemplate: |- + ${jsonencode({ + "allowed_track_types" : "SD_HD", + "content_key_specs" : [{ + "track_type" : "SD", + "security_level" : 1, + "required_output_protection" : { + "hdcp" : "HDCP_V2" + }, + }], + "policy_overrides" : { + "can_play" : true, + "can_persist" : true, + "can_renew" : false, + }, + })} + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: contentkeypolicy-rg + +--- + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccount +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/contentkeypolicy + labels: + testing.upbound.io/example-name: contentkeypolicyservacc + name: contentkeypolicyservacc +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: contentkeypolicy-rg + storageAccount: + - idSelector: + matchLabels: + testing.upbound.io/example-name: contentkeypolicyacc + isPrimary: true + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta1/contentkeypolicy + labels: + testing.upbound.io/example-name: contentkeypolicy-rg + name: contentkeypolicy-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/contentkeypolicy + labels: + testing.upbound.io/example-name: contentkeypolicyacc + name: contentkeypolicyacc +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: contentkeypolicy-rg + +--- + +apiVersion: v1 +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +stringData: + example-key: dXBib3VuZHJvY2tz +type: Opaque diff --git a/examples/media/v1beta2/job.yaml b/examples/media/v1beta2/job.yaml new file mode 100644 index 000000000..57f9c462d --- /dev/null +++ b/examples/media/v1beta2/job.yaml @@ -0,0 +1,153 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: media.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/job + labels: + testing.upbound.io/example-name: examplejob0001 + name: examplejob0001 +spec: + forProvider: + description: My Job description + inputAsset: + nameSelector: + matchLabels: + testing.upbound.io/example-name: input0001 + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: mediaservices0001 + outputAsset: + - nameSelector: + matchLabels: + testing.upbound.io/example-name: output0001 + priority: Normal + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgjob + transformNameSelector: + matchLabels: + testing.upbound.io/example-name: example0001 + +--- + +apiVersion: media.azure.upbound.io/v1beta1 +kind: Asset +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/job + labels: + testing.upbound.io/example-name: input0001 + name: input0001 +spec: + forProvider: + description: Input Asset description + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: mediaservices0001 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgjob + +--- + +apiVersion: media.azure.upbound.io/v1beta1 +kind: Asset +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/job + labels: + testing.upbound.io/example-name: output0001 + name: output0001 +spec: + forProvider: + description: Output Asset description + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: mediaservices0001 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgjob + +--- + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccount +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/job + labels: + testing.upbound.io/example-name: mediaservices0001 + name: mediaservices0001 +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgjob + storageAccount: + - idSelector: + matchLabels: + testing.upbound.io/example-name: exampleacc0001 + isPrimary: true + +--- + +apiVersion: media.azure.upbound.io/v1beta2 +kind: Transform +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/job + labels: + testing.upbound.io/example-name: example0001 + name: example0001 +spec: + forProvider: + description: My transform description + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: mediaservices0001 + output: + - builtinPreset: + presetName: AACGoodQualityAudio + onErrorAction: ContinueJob + relativePriority: Normal + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgjob + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta1/job + labels: + testing.upbound.io/example-name: rgjob + name: rgjob +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/job + labels: + testing.upbound.io/example-name: exampleacc0001 + name: exampleacc0001 +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgjob diff --git a/examples/media/v1beta2/liveevent.yaml b/examples/media/v1beta2/liveevent.yaml new file mode 100644 index 000000000..cab98ee8f --- /dev/null +++ b/examples/media/v1beta2/liveevent.yaml @@ -0,0 +1,100 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: media.azure.upbound.io/v1beta2 +kind: LiveEvent +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/liveevent + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + description: My Event Description + encoding: + keyFrameInterval: PT2S + presetName: Default720p + stretchMode: AutoFit + type: Standard + hostnamePrefix: special-event + input: + ipAccessControlAllow: + - address: 0.0.0.0 + name: AllowAll + subnetPrefixLength: 0 + streamingProtocol: RTMP + location: West Europe + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + preview: + ipAccessControlAllow: + - address: 0.0.0.0 + name: AllowAll + subnetPrefixLength: 0 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + transcriptionLanguages: + - en-US + useStaticHostname: true + +--- + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccount +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/liveevent + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageAccount: + - idSelector: + matchLabels: + testing.upbound.io/example-name: example + isPrimary: true + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/liveevent + labels: + testing.upbound.io/example-name: example + name: exampleaccountservice +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta1/liveevent + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/media/v1beta2/serviceaccountfilter.yaml b/examples/media/v1beta2/serviceaccountfilter.yaml new file mode 100644 index 000000000..0b40b99e7 --- /dev/null +++ b/examples/media/v1beta2/serviceaccountfilter.yaml @@ -0,0 +1,101 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccountFilter +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/servicesaccountfilter + labels: + testing.upbound.io/example-name: exampleservaccountfilter + name: exampleservaccountfilter +spec: + forProvider: + firstQualityBitrate: 128000 + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: servaccountfiltermacc + presentationTimeRange: + endInUnits: 15 + forceEnd: false + liveBackoffInUnits: 0 + presentationWindowInUnits: 90 + startInUnits: 0 + unitTimescaleInMilliseconds: 1000 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: servaccountfilter-rg + trackSelection: + - condition: + - operation: Equal + property: Type + value: Audio + - operation: NotEqual + property: Language + value: en + - operation: NotEqual + property: FourCC + value: EC-3 + - condition: + - operation: Equal + property: Type + value: Video + - operation: Equal + property: Bitrate + value: 3000000-5000000 + +--- + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccount +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/servicesaccountfilter + labels: + testing.upbound.io/example-name: servaccountfiltermacc + name: servaccountfiltermacc +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: servaccountfilter-rg + storageAccount: + - idSelector: + matchLabels: + testing.upbound.io/example-name: servaccountfiltersacc + isPrimary: true + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta1/serviceaccountfilter + labels: + testing.upbound.io/example-name: servaccountfilter-rg + name: servaccountfilter-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/servicesaccountfilter + labels: + testing.upbound.io/example-name: servaccountfiltersacc + name: servaccountfiltersacc +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: servaccountfilter-rg diff --git a/examples/media/v1beta2/servicesaccount.yaml b/examples/media/v1beta2/servicesaccount.yaml new file mode 100644 index 000000000..b94dd0134 --- /dev/null +++ b/examples/media/v1beta2/servicesaccount.yaml @@ -0,0 +1,59 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccount +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/servicesaccount + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageAccount: + - idSelector: + matchLabels: + testing.upbound.io/example-name: example + isPrimary: true + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/servicesaccount + labels: + testing.upbound.io/example-name: example + name: exampleaccountservice +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta1/servicesaccount + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/media/v1beta2/streamingendpoint.yaml b/examples/media/v1beta2/streamingendpoint.yaml new file mode 100644 index 000000000..77601a347 --- /dev/null +++ b/examples/media/v1beta2/streamingendpoint.yaml @@ -0,0 +1,80 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: media.azure.upbound.io/v1beta2 +kind: StreamingEndpoint +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/streamingendpoint + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + scaleUnits: 2 + +--- + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccount +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/streamingendpoint + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageAccount: + - idSelector: + matchLabels: + testing.upbound.io/example-name: example + isPrimary: true + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/streamingendpoint + labels: + testing.upbound.io/example-name: example + name: exampleaccountservice +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta1/streamingendpoint + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/media/v1beta2/streamingpolicy.yaml b/examples/media/v1beta2/streamingpolicy.yaml new file mode 100644 index 000000000..dc3260ff3 --- /dev/null +++ b/examples/media/v1beta2/streamingpolicy.yaml @@ -0,0 +1,97 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: media.azure.upbound.io/v1beta2 +kind: StreamingPolicy +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/streamingpolicy + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + commonEncryptionCbcs: + drmFairplay: + allowPersistentLicense: true + customLicenseAcquisitionUrlTemplate: https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId} + enabledProtocols: + dash: true + download: false + hls: false + smoothStreaming: false + commonEncryptionCenc: + drmPlayready: + customAttributes: PlayReady CustomAttributes + customLicenseAcquisitionUrlTemplate: https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId} + drmWidevineCustomLicenseAcquisitionUrlTemplate: https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId} + enabledProtocols: + dash: true + download: false + hls: false + smoothStreaming: false + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccount +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/streamingpolicy + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageAccount: + - idSelector: + matchLabels: + testing.upbound.io/example-name: example + isPrimary: true + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/streamingpolicy + labels: + testing.upbound.io/example-name: example + name: exampleaccountservice +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta1/streamingpolicy + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/media/v1beta2/transform.yaml b/examples/media/v1beta2/transform.yaml new file mode 100644 index 000000000..c5956bb48 --- /dev/null +++ b/examples/media/v1beta2/transform.yaml @@ -0,0 +1,81 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: media.azure.upbound.io/v1beta2 +kind: Transform +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/transform + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + description: My transform description + mediaServicesAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + output: + - builtinPreset: + presetName: AACGoodQualityAudio + onErrorAction: ContinueJob + relativePriority: Normal + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: media.azure.upbound.io/v1beta2 +kind: ServicesAccount +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/transform + labels: + testing.upbound.io/example-name: example + name: transform +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageAccount: + - idSelector: + matchLabels: + testing.upbound.io/example-name: example + isPrimary: true + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta2/transform + labels: + testing.upbound.io/example-name: example + name: transform +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: media/v1beta1/transform + labels: + testing.upbound.io/example-name: example + name: transform +spec: + forProvider: + location: West Europe diff --git a/examples/netapp/v1beta2/account.yaml b/examples/netapp/v1beta2/account.yaml new file mode 100644 index 000000000..7332e4f00 --- /dev/null +++ b/examples/netapp/v1beta2/account.yaml @@ -0,0 +1,54 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: netapp.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: netapp/v1beta2/account + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example +spec: + forProvider: + activeDirectory: + dnsServers: + - 1.2.3.4 + domain: westcentralus.com + organizationalUnit: OU=FirstLevel + passwordSecretRef: + key: password + name: example-secret + namespace: upbound-system + smbServerName: SMBSERVER + username: aduser + location: West Europe + resourceGroupNameRef: + name: example-rg-netapp + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-rg-netapp +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane + +--- + +apiVersion: v1 +data: + password: dGVzdFBhc3N3b3JkITEyMw== +kind: Secret +metadata: + annotations: + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-secret + namespace: upbound-system +type: Opaque diff --git a/examples/netapp/v1beta2/snapshotpolicy.yaml b/examples/netapp/v1beta2/snapshotpolicy.yaml new file mode 100644 index 000000000..494bad2d0 --- /dev/null +++ b/examples/netapp/v1beta2/snapshotpolicy.yaml @@ -0,0 +1,42 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: netapp.azure.upbound.io/v1beta2 +kind: SnapshotPolicy +metadata: + annotations: + meta.upbound.io/example-id: netapp/v1beta2/snapshotpolicy + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example +spec: + forProvider: + accountNameRef: + name: example + dailySchedule: + hour: 20 + minute: 15 + snapshotsToKeep: 2 + enabled: true + hourlySchedule: + minute: 15 + snapshotsToKeep: 4 + location: West Europe + monthlySchedule: + daysOfMonth: + - 1 + - 15 + - 20 + - 30 + hour: 5 + minute: 45 + snapshotsToKeep: 1 + resourceGroupNameRef: + name: example-rg-netapp + weeklySchedule: + daysOfWeek: + - Monday + - Friday + hour: 23 + minute: 0 + snapshotsToKeep: 1 diff --git a/examples/netapp/v1beta2/volume.yaml b/examples/netapp/v1beta2/volume.yaml new file mode 100644 index 000000000..509e9e702 --- /dev/null +++ b/examples/netapp/v1beta2/volume.yaml @@ -0,0 +1,72 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: netapp.azure.upbound.io/v1beta2 +kind: Volume +metadata: + annotations: + meta.upbound.io/example-id: netapp/v1beta2/volume + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example +spec: + forProvider: + accountNameRef: + name: example + dataProtectionSnapshotPolicy: + snapshotPolicyIdRef: + name: example + location: West Europe + poolNameRef: + name: example + resourceGroupNameRef: + name: example-rg-netapp + securityStyle: Unix + serviceLevel: Premium + snapshotDirectoryVisible: false + storageQuotaInGb: 100 + subnetIdRef: + name: example-subnet + volumePath: my-unique-file-path + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: netapp/v1beta2/volume + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-vn +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameRef: + name: example-rg-netapp + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: netapp/v1beta2/volume + upjet.upbound.io/manual-intervention: This resource requires manual intervention. + name: example-subnet +spec: + forProvider: + addressPrefixes: + - 10.0.0.0/24 + delegation: + - name: dbformysqldelegation + serviceDelegation: + actions: + - Microsoft.Network/networkinterfaces/* + - Microsoft.Network/virtualNetworks/subnets/join/action + name: Microsoft.Netapp/volumes + resourceGroupNameRef: + name: example-rg-netapp + virtualNetworkNameRef: + name: example-vn diff --git a/examples/network/v1beta2/applicationgateway.yaml b/examples/network/v1beta2/applicationgateway.yaml new file mode 100644 index 000000000..86b2bf1ee --- /dev/null +++ b/examples/network/v1beta2/applicationgateway.yaml @@ -0,0 +1,151 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: ApplicationGateway +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/applicationgateway + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: network + name: example +spec: + forProvider: + backendAddressPool: + - name: example + backendHttpSettings: + - cookieBasedAffinity: Disabled + name: example + path: /path1/ + port: 80 + protocol: Http + requestTimeout: 60 + frontendIpConfiguration: + - name: example + publicIpAddressIdSelector: + matchLabels: + testing.upbound.io/example-name: example + frontendPort: + - name: example + port: 80 + gatewayIpConfiguration: + - name: my-gateway-ip-configuration + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: frontend + httpListener: + - frontendIpConfigurationName: example + frontendPortName: example + name: example + protocol: Http + location: West Europe + requestRoutingRule: + - backendAddressPoolName: example + backendHttpSettingsName: example + httpListenerName: example + name: example + priority: 9 + ruleType: Basic + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: + capacity: 2 + name: Standard_v2 + tier: Standard_v2 + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PublicIP +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/applicationgateway + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + allocationMethod: Static + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/applicationgateway + labels: + testing.upbound.io/example-name: backend + name: backend +spec: + forProvider: + addressPrefixes: + - 10.254.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/applicationgateway + labels: + testing.upbound.io/example-name: frontend + name: frontend +spec: + forProvider: + addressPrefixes: + - 10.254.0.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/applicationgateway + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.254.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/applicationgateway + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/network/v1beta2/connectionmonitor.yaml b/examples/network/v1beta2/connectionmonitor.yaml new file mode 100644 index 000000000..1c9975c1b --- /dev/null +++ b/examples/network/v1beta2/connectionmonitor.yaml @@ -0,0 +1,98 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: ConnectionMonitor +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/connectionmonitor + name: example +spec: + forProvider: + endpoint: + - name: source + targetResourceId: /subscriptions/038f2b7c-3265-43b8-8624-c9ad5da610a8/resourceGroups/norway-watcher-rg/providers/Microsoft.Network/virtualNetworks/example-vn-for-connection-monitor + targetResourceType: AzureVNet + - address: terraform.io + name: destination + location: Norway East + networkWatcherIdRef: + name: norway-watcher + notes: examplenote + testConfiguration: + - name: tcpName + protocol: Tcp + tcpConfiguration: + port: 80 + testFrequencyInSeconds: 60 + testGroup: + - destinationEndpoints: + - destination + name: exampletg + sourceEndpoints: + - source + testConfigurationNames: + - tcpName + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/connectionmonitor + name: example-vn-for-connection-monitor +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + dnsServers: + - 10.0.0.4 + - 10.0.0.5 + location: Norway East + resourceGroupNameRef: + name: norway-watcher-rg + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/connectionmonitor + name: example-subnet-for-connection-monitor +spec: + forProvider: + addressPrefixes: + - 10.0.0.0/24 + resourceGroupNameRef: + name: norway-watcher-rg + virtualNetworkNameRef: + name: example-vn-for-connection-monitor + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: Watcher +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/connectionmonitor + name: norway-watcher +spec: + forProvider: + location: Norway East + resourceGroupNameRef: + name: norway-watcher-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + name: norway-watcher-rg +spec: + forProvider: + location: Norway East + tags: + provisioner: crossplane diff --git a/examples/network/v1beta2/dnszone.yaml b/examples/network/v1beta2/dnszone.yaml new file mode 100644 index 000000000..27aff8ff8 --- /dev/null +++ b/examples/network/v1beta2/dnszone.yaml @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: DNSZone +metadata: + annotations: + crossplane.io/external-name: upbound-example.com + meta.upbound.io/example-id: network/v1beta2/dnszone + labels: + testing.upbound.io/example-name: example-public + name: example-public +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/dnszone + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/network/v1beta2/expressroutecircuit.yaml b/examples/network/v1beta2/expressroutecircuit.yaml new file mode 100644 index 000000000..a083ca12e --- /dev/null +++ b/examples/network/v1beta2/expressroutecircuit.yaml @@ -0,0 +1,23 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: ExpressRouteCircuit +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/expressroutecircuit + name: example +spec: + forProvider: + bandwidthInMbps: 50 + location: West Europe + peeringLocation: Silicon Valley + resourceGroupNameRef: + name: example + serviceProviderName: Equinix + sku: + family: MeteredData + tier: Standard + tags: + environment: Production diff --git a/examples/network/v1beta2/expressroutecircuitpeering.yaml b/examples/network/v1beta2/expressroutecircuitpeering.yaml new file mode 100644 index 000000000..080035159 --- /dev/null +++ b/examples/network/v1beta2/expressroutecircuitpeering.yaml @@ -0,0 +1,74 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: ExpressRouteCircuitPeering +metadata: + annotations: + crossplane.io/external-name: MicrosoftPeering + meta.upbound.io/example-id: network/v1beta2/expressroutecircuitpeering + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + expressRouteCircuitNameSelector: + matchLabels: + testing.upbound.io/example-name: example + ipv6: + microsoftPeering: + advertisedPublicPrefixes: + - 2002:db01::/126 + primaryPeerAddressPrefix: 2002:db01::/126 + secondaryPeerAddressPrefix: 2003:db01::/126 + microsoftPeeringConfig: + advertisedPublicPrefixes: + - 123.1.0.0/24 + peerAsn: 100 + primaryPeerAddressPrefix: 123.0.0.0/30 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + secondaryPeerAddressPrefix: 123.0.0.4/30 + vlanId: 300 + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: ExpressRouteCircuit +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/expressroutecircuitpeering + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + allowClassicOperations: false + bandwidthInMbps: 50 + location: West Europe + peeringLocation: Silicon Valley + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serviceProviderName: Equinix + sku: + family: MeteredData + tier: Standard + tags: + environment: Production + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/expressroutecircuitpeering + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/network/v1beta2/expressrouteconnection.yaml b/examples/network/v1beta2/expressrouteconnection.yaml new file mode 100644 index 000000000..98cc73b11 --- /dev/null +++ b/examples/network/v1beta2/expressrouteconnection.yaml @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: ExpressRouteConnection +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/expressrouteconnection + name: example +spec: + forProvider: + expressRouteCircuitPeeringIdRef: + name: example + expressRouteGatewayIdRef: + name: example diff --git a/examples/network/v1beta2/expressrouteport.yaml b/examples/network/v1beta2/expressrouteport.yaml new file mode 100644 index 000000000..5c1aa6935 --- /dev/null +++ b/examples/network/v1beta2/expressrouteport.yaml @@ -0,0 +1,18 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: ExpressRoutePort +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/expressrouteport + name: example +spec: + forProvider: + bandwidthInGbps: 10 + encapsulation: Dot1Q + location: West Europe + peeringLocation: VantageDC-Newport-NGD + resourceGroupNameRef: + name: example diff --git a/examples/network/v1beta2/firewall.yaml b/examples/network/v1beta2/firewall.yaml new file mode 100644 index 000000000..25a278011 --- /dev/null +++ b/examples/network/v1beta2/firewall.yaml @@ -0,0 +1,23 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Firewall +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/firewall + name: example +spec: + forProvider: + ipConfiguration: + - name: configuration + publicIpAddressIdRef: + name: example + subnetIdRef: + name: example + location: West Europe + resourceGroupNameRef: + name: example + skuName: AZFW_VNet + skuTier: Standard diff --git a/examples/network/v1beta2/firewallpolicy.yaml b/examples/network/v1beta2/firewallpolicy.yaml new file mode 100644 index 000000000..b3e2b9c12 --- /dev/null +++ b/examples/network/v1beta2/firewallpolicy.yaml @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: FirewallPolicy +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/firewallpolicy + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameRef: + name: example diff --git a/examples/network/v1beta2/localnetworkgateway.yaml b/examples/network/v1beta2/localnetworkgateway.yaml new file mode 100644 index 000000000..42cb1f59f --- /dev/null +++ b/examples/network/v1beta2/localnetworkgateway.yaml @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: LocalNetworkGateway +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/localnetworkgateway + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + gatewayAddress: 12.13.14.15 + location: West Europe + resourceGroupNameRef: + name: example-local-network-gw + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + name: example-local-network-gw +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane diff --git a/examples/network/v1beta2/manager.yaml b/examples/network/v1beta2/manager.yaml new file mode 100644 index 000000000..6c7d59b63 --- /dev/null +++ b/examples/network/v1beta2/manager.yaml @@ -0,0 +1,41 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Manager +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/manager + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + description: example network manager + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgmanager + scope: + subscriptionIds: + - ${data.azurerm_client_config.current.subscription_resource_id} + scopeAccesses: + - Connectivity + - SecurityAdmin + tags: + foo: bar + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/manager + labels: + testing.upbound.io/example-name: rgmanager + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/network/v1beta2/packetcapture.yaml b/examples/network/v1beta2/packetcapture.yaml new file mode 100644 index 000000000..2c0914359 --- /dev/null +++ b/examples/network/v1beta2/packetcapture.yaml @@ -0,0 +1,149 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: PacketCapture +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/packetcapture + name: example +spec: + forProvider: + networkWatcherNameRef: + name: norway-watcher + resourceGroupNameRef: + name: norway-watcher-rg + storageLocation: + storageAccountIdRef: + name: saflow2962022 + targetResourceId: /subscriptions/038f2b7c-3265-43b8-8624-c9ad5da610a8/resourceGroups/norway-watcher-rg/providers/Microsoft.Compute/virtualMachines/example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: Watcher +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/packetcapture + name: norway-watcher +spec: + forProvider: + location: Norway East + resourceGroupNameRef: + name: norway-watcher-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + name: norway-watcher-rg +spec: + forProvider: + location: Norway East + tags: + provisioner: crossplane + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/packetcapture + name: saflow2962022 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: Norway East + resourceGroupNameRef: + name: norway-watcher-rg + tags: + provisioner: crossplane + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/packetcapture + name: example-vn-for-network-int-test +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: Norway East + resourceGroupNameRef: + name: norway-watcher-rg + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/packetcapture + name: example-subnet-for-network-interface +spec: + forProvider: + addressPrefixes: + - 10.0.1.0/24 + resourceGroupNameRef: + name: norway-watcher-rg + virtualNetworkNameRef: + name: example-vn-for-network-int-test + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: NetworkInterface +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/packetcapture + name: example-nic +spec: + forProvider: + ipConfiguration: + - name: testconfiguration1 + privateIpAddressAllocation: Dynamic + subnetIdRef: + name: example-subnet-for-network-interface + location: Norway East + resourceGroupNameRef: + name: norway-watcher-rg + +--- + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: LinuxVirtualMachine +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/packetcapture + name: example +spec: + forProvider: + adminSshKey: + - publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1MpQOJL2JAcfp6Z8WVD/iqeIYNrY4+1KYM+IwUt1OS5+rGgk+kkwhK1RqUUjH8YYD5EU75/PXjuBzVqgyH9d9T1QUBLqXwUb0b8keu8Bo3fYbQhoCTroxpX+jUeDA8NczHiqFp5smnbG8y6Ck2jemf399g/4z28PX4V/5h9M4mMvRo4DF8DuSklnnrwqjLWb42cEC8/S88mNGAJfxB25oMI/PEDwWMbI7V7UuYZ96AfZuug0fUkspfIUxEoew63aSir7wEZJzfr6Ypj6H1h0zgplpSjE/BiscgRj0NS137+OKdvXAYMGqL+Sas60hpaujc5Z6kDM7mW2CmxiJM1fT/WEQeRbThaeHraqdV0zWAHoHRdxZOGLa/32fE7F50HeV+ZVmArZBv8CMzqt+TVUKm6lxvv0eFwFK5kvY/b1hsJpiNgsSfaPZEitoPUGXttOVxaj1wKU90se6sXkWNwuXJ4/jHlwoDy/zuMDBzJOL309T+oqTawTHAta/74AaZ28= + yury@upbound.io + username: adminuser + adminUsername: adminuser + location: Norway East + networkInterfaceIdsRefs: + - name: example-nic + osDisk: + caching: ReadWrite + storageAccountType: Standard_LRS + resourceGroupNameRef: + name: norway-watcher-rg + size: Standard_F2 + sourceImageReference: + offer: UbuntuServer + publisher: Canonical + sku: 16.04-LTS + version: latest diff --git a/examples/network/v1beta2/privatedns-all-in-one.yaml b/examples/network/v1beta2/privatedns-all-in-one.yaml new file mode 100644 index 000000000..e0e35dc5b --- /dev/null +++ b/examples/network/v1beta2/privatedns-all-in-one.yaml @@ -0,0 +1,203 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: PrivateDNSZone +metadata: + annotations: + crossplane.io/external-name: example.com + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example +spec: + forProvider: + resourceGroupNameRef: + name: private-dns-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + name: private-dns-rg +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateDNSARecord +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example +spec: + forProvider: + records: + - 10.0.180.17 + resourceGroupNameRef: + name: private-dns-rg + ttl: 300 + zoneNameRef: + name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateDNSAAAARecord +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example +spec: + forProvider: + records: + - fd5d:70bc:930e:d008:0000:0000:0000:7334 + - fd5d:70bc:930e:d008::7335 + resourceGroupNameRef: + name: private-dns-rg + ttl: 300 + zoneNameRef: + name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateDNSCNAMERecord +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example-cname +spec: + forProvider: + record: example.com + resourceGroupNameRef: + name: private-dns-rg + ttl: 300 + zoneNameRef: + name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateDNSMXRecord +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example +spec: + forProvider: + record: + - exchange: mx1.example.com + preference: 10 + - exchange: backupmx.example.com + preference: 20 + resourceGroupNameRef: + name: private-dns-rg + tags: + Environment: Production + ttl: 300 + zoneNameRef: + name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateDNSPTRRecord +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example +spec: + forProvider: + records: + - test.example.com + resourceGroupNameRef: + name: private-dns-rg + ttl: 300 + zoneNameRef: + name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateDNSSRVRecord +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example +spec: + forProvider: + record: + - port: 8080 + priority: 1 + target: target1.example.com + weight: 5 + - port: 8080 + priority: 10 + target: target2.example.com + weight: 10 + resourceGroupNameRef: + name: private-dns-rg + tags: + Environment: Production + ttl: 300 + zoneNameRef: + name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateDNSTXTRecord +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example +spec: + forProvider: + record: + - value: v=spf1 mx ~all + resourceGroupNameRef: + name: private-dns-rg + ttl: 300 + zoneNameRef: + name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example-vn-private-dns +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + dnsServers: + - 10.0.0.4 + - 10.0.0.5 + location: West Europe + resourceGroupNameRef: + name: private-dns-rg + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateDNSZoneVirtualNetworkLink +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example +spec: + forProvider: + privateDnsZoneNameRef: + name: example + resourceGroupNameRef: + name: private-dns-rg + virtualNetworkIdRef: + name: example-vn-private-dns diff --git a/examples/network/v1beta2/privatednszone.yaml b/examples/network/v1beta2/privatednszone.yaml new file mode 100644 index 000000000..ffbabfce5 --- /dev/null +++ b/examples/network/v1beta2/privatednszone.yaml @@ -0,0 +1,27 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: PrivateDNSZone +metadata: + annotations: + crossplane.io/external-name: example.com + meta.upbound.io/example-id: network/v1beta2/privatednszone + name: example +spec: + forProvider: + resourceGroupNameRef: + name: privated-dns-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + name: privated-dns-rg +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane diff --git a/examples/network/v1beta2/privateendpoint.yaml b/examples/network/v1beta2/privateendpoint.yaml new file mode 100644 index 000000000..39fa194c1 --- /dev/null +++ b/examples/network/v1beta2/privateendpoint.yaml @@ -0,0 +1,164 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: PrivateEndpoint +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privateendpoint + upjet.upbound.io/manual-intervention: This resource needs manual patching for + the private_service_connection.private_connection_resource_id field. + name: example +spec: + forProvider: + location: West Europe + privateServiceConnection: + isManualConnection: false + name: example-privateserviceconnection + privateConnectionResourceId: + resourceGroupNameRef: + name: loadbalancerrg + subnetIdRef: + name: service + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/privateendpoint + upjet.upbound.io/manual-intervention: The dependent resource PrivateEndpoint needs + a manual patching and is thus skipped. + name: loadbalancerrg +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privateendpoint + upjet.upbound.io/manual-intervention: The dependent resource PrivateEndpoint needs + a manual patching and is thus skipped. + name: example-vn-for-lb +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + dnsServers: + - 10.0.0.4 + - 10.0.0.5 + location: West Europe + resourceGroupNameRef: + name: loadbalancerrg + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privateendpoint + upjet.upbound.io/manual-intervention: The dependent resource PrivateEndpoint needs + a manual patching and is thus skipped. + name: service +spec: + forProvider: + addressPrefixes: + - 10.0.1.0/24 + enforcePrivateLinkServiceNetworkPolicies: true + resourceGroupNameRef: + name: loadbalancerrg + virtualNetworkNameRef: + name: example-vn-for-lb + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privateendpoint + upjet.upbound.io/manual-intervention: The dependent resource PrivateEndpoint needs + a manual patching and is thus skipped. + name: endpoint +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + enforcePrivateLinkEndpointNetworkPolicies: true + resourceGroupNameRef: + name: loadbalancerrg + virtualNetworkNameRef: + name: example-vn-for-lb + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PublicIP +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privateendpoint + upjet.upbound.io/manual-intervention: The dependent resource PrivateEndpoint needs + a manual patching and is thus skipped. + name: publicipforlb +spec: + forProvider: + allocationMethod: Static + location: West Europe + resourceGroupNameRef: + name: loadbalancerrg + sku: Standard + tags: + environment: Production + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: LoadBalancer +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privateendpoint + upjet.upbound.io/manual-intervention: The dependent resource PrivateEndpoint needs + a manual patching and is thus skipped. + name: testloadbalancer +spec: + forProvider: + frontendIpConfiguration: + - name: publicipaddress + publicIpAddressIdRef: + name: publicipforlb + location: West Europe + resourceGroupNameRef: + name: loadbalancerrg + sku: Standard + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PrivateLinkService +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/privateendpoint + upjet.upbound.io/manual-intervention: The dependent resource PrivateEndpoint needs + a manual patching and is thus skipped. + name: example +spec: + forProvider: + loadBalancerFrontendIpConfigurationIds: + - /subscriptions/038f2b7c-3265-43b8-8624-c9ad5da610a8/resourceGroups/loadbalancerrg/providers/Microsoft.Network/loadBalancers/testloadbalancer/frontendIPConfigurations/publicipaddress + location: West Europe + natIpConfiguration: + - name: primary + primary: true + subnetIdRef: + name: service + resourceGroupNameRef: + name: loadbalancerrg diff --git a/examples/network/v1beta2/routefilter.yaml b/examples/network/v1beta2/routefilter.yaml new file mode 100644 index 000000000..15b12efde --- /dev/null +++ b/examples/network/v1beta2/routefilter.yaml @@ -0,0 +1,38 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: RouteFilter +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/routefilter + labels: + testing.upbound.io/example-name: example + name: routefex +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + rule: + access: Allow + communities: + - 12076:52004 + name: rule + ruleType: Community + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/routefilter + labels: + testing.upbound.io/example-name: example + name: routefex +spec: + forProvider: + location: West Europe diff --git a/examples/network/v1beta2/trafficmanagerprofile.yaml b/examples/network/v1beta2/trafficmanagerprofile.yaml new file mode 100644 index 000000000..3f834957c --- /dev/null +++ b/examples/network/v1beta2/trafficmanagerprofile.yaml @@ -0,0 +1,44 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: TrafficManagerProfile +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/trafficmanagerprofile + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + dnsConfig: + relativeName: example + ttl: 100 + monitorConfig: + intervalInSeconds: 30 + path: / + port: 80 + protocol: HTTP + timeoutInSeconds: 9 + toleratedNumberOfFailures: 3 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + tags: + environment: Production + trafficRoutingMethod: Weighted + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/trafficmanagerprofile + labels: + testing.upbound.io/example-name: example + name: traffic-example +spec: + forProvider: + location: West Europe diff --git a/examples/network/v1beta2/virtualhubconnection.yaml b/examples/network/v1beta2/virtualhubconnection.yaml new file mode 100644 index 000000000..d9833086f --- /dev/null +++ b/examples/network/v1beta2/virtualhubconnection.yaml @@ -0,0 +1,93 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualHubConnection +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualhubconnection + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: examplehubconn + name: examplehubconn +spec: + forProvider: + remoteVirtualNetworkIdSelector: + matchLabels: + testing.upbound.io/example-name: virtualhubconnection-vn + virtualHubIdSelector: + matchLabels: + testing.upbound.io/example-name: virtualhubconnection-vhub + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/virtualhubconnection + labels: + testing.upbound.io/example-name: virtualhubconnection-rg + name: virtualhubconnection-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: VirtualHub +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualhubconnection + uptest.upbound.io/timeout: "7200" + labels: + testing.upbound.io/example-name: virtualhubconnection-vhub + name: virtualhubconnection-vhub +spec: + forProvider: + addressPrefix: 10.0.1.0/24 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: virtualhubconnection-rg + virtualWanIdSelector: + matchLabels: + testing.upbound.io/example-name: virtualhubconnection-vwan + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualhubconnection + labels: + testing.upbound.io/example-name: virtualhubconnection-vn + name: virtualhubconnection-vn +spec: + forProvider: + addressSpace: + - 172.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: virtualhubconnection-rg + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: VirtualWAN +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualhubconnection + labels: + testing.upbound.io/example-name: virtualhubconnection-vwan + name: virtualhubconnection-vwan +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: virtualhubconnection-rg diff --git a/examples/network/v1beta2/virtualnetwork.yaml b/examples/network/v1beta2/virtualnetwork.yaml new file mode 100644 index 000000000..eef797f49 --- /dev/null +++ b/examples/network/v1beta2/virtualnetwork.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualnetwork + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example-virtualnetwork + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/virtualnetwork + labels: + testing.upbound.io/example-name: example-virtualnetwork + name: example-virtualnetwork +spec: + forProvider: + location: West Europe diff --git a/examples/network/v1beta2/virtualnetworkgateway.yaml b/examples/network/v1beta2/virtualnetworkgateway.yaml new file mode 100644 index 000000000..12c2d198d --- /dev/null +++ b/examples/network/v1beta2/virtualnetworkgateway.yaml @@ -0,0 +1,119 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetworkGateway +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgateway + upjet.upbound.io/manual-intervention: This resource needs a valid public key. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + activeActive: false + enableBgp: false + ipConfiguration: + - name: vnetGatewayConfig + privateIpAddressAllocation: Dynamic + publicIpAddressIdSelector: + matchLabels: + testing.upbound.io/example-name: example + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Basic + type: Vpn + vpnClientConfiguration: + addressSpace: + - 10.2.0.0/24 + revokedCertificate: + - name: Verizon-Global-Root-CA + thumbprint: null + rootCertificate: + - name: DigiCert-Federated-ID-Root-CA + publicCertData: null + vpnType: RouteBased + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PublicIP +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgateway + upjet.upbound.io/manual-intervention: This resource is a dependency of VirtualNetworkGateway. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + allocationMethod: Dynamic + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/virtualnetworkgateway + upjet.upbound.io/manual-intervention: This resource is a dependency of VirtualNetworkGateway. + labels: + testing.upbound.io/example-name: example + name: example-vn-gateway +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + crossplane.io/external-name: GatewaySubnet + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgateway + upjet.upbound.io/manual-intervention: This resource is a dependency of VirtualNetworkGateway. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.0.1.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgateway + upjet.upbound.io/manual-intervention: This resource is a dependency of VirtualNetworkGateway. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/network/v1beta2/virtualnetworkgatewayconnection.yaml b/examples/network/v1beta2/virtualnetworkgatewayconnection.yaml new file mode 100644 index 000000000..d33fef759 --- /dev/null +++ b/examples/network/v1beta2/virtualnetworkgatewayconnection.yaml @@ -0,0 +1,159 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetworkGatewayConnection +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgatewayconnection + upjet.upbound.io/manual-intervention: The resource needs valid kubernetes secret. + labels: + testing.upbound.io/example-name: onpremise + name: onpremise +spec: + forProvider: + localNetworkGatewayIdSelector: + matchLabels: + testing.upbound.io/example-name: onpremise + location: West US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sharedKeySecretRef: + key: example-key + name: example-secret + namespace: upbound-system + type: IPsec + virtualNetworkGatewayIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: LocalNetworkGateway +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgatewayconnection + upjet.upbound.io/manual-intervention: The resource is dependency of root resource. + labels: + testing.upbound.io/example-name: onpremise + name: onpremise +spec: + forProvider: + addressSpace: + - 10.1.1.0/24 + gatewayAddress: 168.62.225.23 + location: West US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: PublicIP +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgatewayconnection + upjet.upbound.io/manual-intervention: The resource is dependency of root resource. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + allocationMethod: Dynamic + location: West US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/virtualnetworkgatewayconnection + upjet.upbound.io/manual-intervention: The resource is dependency of root resource. + labels: + testing.upbound.io/example-name: example + name: example-vng-connection +spec: + forProvider: + location: West US + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + crossplane.io/external-name: GatewaySubnet + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgatewayconnection + upjet.upbound.io/manual-intervention: The resource is dependency of root resource. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.0.1.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgatewayconnection + upjet.upbound.io/manual-intervention: The resource is dependency of root resource. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetworkGateway +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/virtualnetworkgatewayconnection + upjet.upbound.io/manual-intervention: The resource is dependency of root resource. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + activeActive: false + enableBgp: false + ipConfiguration: + - privateIpAddressAllocation: Dynamic + publicIpAddressIdSelector: + matchLabels: + testing.upbound.io/example-name: example + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Basic + type: Vpn + vpnType: RouteBased diff --git a/examples/network/v1beta2/vpngateway.yaml b/examples/network/v1beta2/vpngateway.yaml new file mode 100644 index 000000000..c99f77dc9 --- /dev/null +++ b/examples/network/v1beta2/vpngateway.yaml @@ -0,0 +1,93 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VPNGateway +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpngateway + uptest.upbound.io/timeout: "14400" + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualHubIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/vpngateway + labels: + testing.upbound.io/example-name: example + name: vpn-example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: VirtualHub +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpngateway + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefix: 10.0.1.0/24 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualWanIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpngateway + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: VirtualWAN +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpngateway + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/network/v1beta2/vpngatewayconnection.yaml b/examples/network/v1beta2/vpngatewayconnection.yaml new file mode 100644 index 000000000..6d2b3b1c8 --- /dev/null +++ b/examples/network/v1beta2/vpngatewayconnection.yaml @@ -0,0 +1,125 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VPNGatewayConnection +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpngatewayconnection + upjet.upbound.io/manual-intervention: Require vpnSiteLinkId to be manually specified. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + remoteVpnSiteIdSelector: + matchLabels: + testing.upbound.io/example-name: example + vpnGatewayIdSelector: + matchLabels: + testing.upbound.io/example-name: example + vpnLink: + - name: link1 + vpnSiteLinkId: /subscriptions/038f2b7c-3265-43b8-8624-c9ad5da610a8/resourceGroups/vpn-example/providers/Microsoft.Network/vpnSites/example/vpnSiteLinks/link1 + - name: link2 + vpnSiteLinkId: /subscriptions/038f2b7c-3265-43b8-8624-c9ad5da610a8/resourceGroups/vpn-example/providers/Microsoft.Network/vpnSites/example/vpnSiteLinks/link2 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/vpngatewayconnection + labels: + testing.upbound.io/example-name: example + name: vpn-example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: VirtualHub +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpngatewayconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefix: 10.0.0.0/24 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualWanIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: VirtualWAN +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpngatewayconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VPNGateway +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpngatewayconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualHubIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VPNSite +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpngatewayconnection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressCidrs: + - 10.0.0.0/16 + link: + - ipAddress: 10.1.0.0 + name: link1 + - ipAddress: 10.2.0.0 + name: link2 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualWanIdSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/network/v1beta2/vpnserverconfiguration.yaml b/examples/network/v1beta2/vpnserverconfiguration.yaml new file mode 100644 index 000000000..058cfe34c --- /dev/null +++ b/examples/network/v1beta2/vpnserverconfiguration.yaml @@ -0,0 +1,40 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VPNServerConfiguration +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpnserverconfiguration + name: example +spec: + forProvider: + clientRootCertificate: + - name: DigiCert-Federated-ID-Root-CA + publicCertData: | + MIIDuzCCAqOgAwIBAgIQCHTZWCM+IlfFIRXIvyKSrjANBgkqhkiG9w0BAQsFADBn + MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 + d3cuZGlnaWNlcnQuY29tMSYwJAYDVQQDEx1EaWdpQ2VydCBGZWRlcmF0ZWQgSUQg + Um9vdCBDQTAeFw0xMzAxMTUxMjAwMDBaFw0zMzAxMTUxMjAwMDBaMGcxCzAJBgNV + BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp + Y2VydC5jb20xJjAkBgNVBAMTHURpZ2lDZXJ0IEZlZGVyYXRlZCBJRCBSb290IENB + MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvAEB4pcCqnNNOWE6Ur5j + QPUH+1y1F9KdHTRSza6k5iDlXq1kGS1qAkuKtw9JsiNRrjltmFnzMZRBbX8Tlfl8 + zAhBmb6dDduDGED01kBsTkgywYPxXVTKec0WxYEEF0oMn4wSYNl0lt2eJAKHXjNf + GTwiibdP8CUR2ghSM2sUTI8Nt1Omfc4SMHhGhYD64uJMbX98THQ/4LMGuYegou+d + GTiahfHtjn7AboSEknwAMJHCh5RlYZZ6B1O4QbKJ+34Q0eKgnI3X6Vc9u0zf6DH8 + Dk+4zQDYRRTqTnVO3VT8jzqDlCRuNtq6YvryOWN74/dq8LQhUnXHvFyrsdMaE1X2 + DwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNV + HQ4EFgQUGRdkFnbGt1EWjKwbUne+5OaZvRYwHwYDVR0jBBgwFoAUGRdkFnbGt1EW + jKwbUne+5OaZvRYwDQYJKoZIhvcNAQELBQADggEBAHcqsHkrjpESqfuVTRiptJfP + 9JbdtWqRTmOf6uJi2c8YVqI6XlKXsD8C1dUUaaHKLUJzvKiazibVuBwMIT84AyqR + QELn3e0BtgEymEygMU569b01ZPxoFSnNXc7qDZBDef8WfqAV/sxkTi8L9BkmFYfL + uGLOhRJOFprPdoDIUBB+tmCl3oDcBy3vnUeOEioz8zAkprcb3GHwHAK+vHmmfgcn + WsfMLH4JCLa/tRYL+Rw/N3ybCkDp00s0WUZ+AoDywSl0Q/ZEnNY0MsFiw6LyIdbq + M/s/1JRtO3bDSzD9TazRVzn2oBqzSa8VgIo5C1nOnoAKJTlsClJKvIhnRlaLQqk= + location: West Europe + resourceGroupNameRef: + name: example + vpnAuthenticationTypes: + - Certificate diff --git a/examples/network/v1beta2/vpnsite.yaml b/examples/network/v1beta2/vpnsite.yaml new file mode 100644 index 000000000..2e3bc9164 --- /dev/null +++ b/examples/network/v1beta2/vpnsite.yaml @@ -0,0 +1,57 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VPNSite +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpnsite + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressCidrs: + - 10.0.0.0/24 + link: + - ipAddress: 10.0.0.1 + name: link1 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualWanIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/vpnsite + labels: + testing.upbound.io/example-name: example + name: vpn-example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: VirtualWAN +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/vpnsite + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/network/v1beta2/watcherflowlog.yaml b/examples/network/v1beta2/watcherflowlog.yaml new file mode 100644 index 000000000..9f47494de --- /dev/null +++ b/examples/network/v1beta2/watcherflowlog.yaml @@ -0,0 +1,87 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: WatcherFlowLog +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/watcherflowlog + name: example +spec: + forProvider: + enabled: true + networkSecurityGroupIdRef: + name: example + networkWatcherNameRef: + name: norway-watcher + resourceGroupNameRef: + name: norway-watcher-rg + retentionPolicy: + days: 7 + enabled: true + storageAccountIdRef: + name: saflow2762022 + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: Watcher +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/watcherflowlog + name: norway-watcher +spec: + forProvider: + location: Norway East + resourceGroupNameRef: + name: norway-watcher-rg + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + name: norway-watcher-rg +spec: + forProvider: + location: Norway East + tags: + provisioner: crossplane + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: SecurityGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/watcherflowlog + name: example +spec: + forProvider: + location: Norway East + resourceGroupNameRef: + name: norway-watcher-rg + tags: + environment: Production + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/watcherflowlog + name: saflow2762022 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: Norway East + resourceGroupNameRef: + name: norway-watcher-rg + tags: + provisioner: crossplane + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system diff --git a/examples/network/v1beta2/webapplicationfirewallpolicy.yaml b/examples/network/v1beta2/webapplicationfirewallpolicy.yaml new file mode 100644 index 000000000..c8f9294e0 --- /dev/null +++ b/examples/network/v1beta2/webapplicationfirewallpolicy.yaml @@ -0,0 +1,89 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: network.azure.upbound.io/v1beta2 +kind: WebApplicationFirewallPolicy +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta2/webapplicationfirewallpolicy + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + customRules: + - action: Block + matchConditions: + - matchValues: + - 192.168.1.0/24 + - 10.0.0.0/24 + matchVariables: + - variableName: RemoteAddr + negationCondition: false + operator: IPMatch + name: Rule1 + priority: 1 + ruleType: MatchRule + - action: Block + matchConditions: + - matchValues: + - 192.168.1.0/24 + matchVariables: + - variableName: RemoteAddr + negationCondition: false + operator: IPMatch + - matchValues: + - Windows + matchVariables: + - selector: UserAgent + variableName: RequestHeaders + negationCondition: false + operator: Contains + name: Rule2 + priority: 2 + ruleType: MatchRule + location: West Europe + managedRules: + exclusion: + - matchVariable: RequestHeaderNames + selector: x-company-secret-header + selectorMatchOperator: Equals + - matchVariable: RequestCookieNames + selector: too-tasty + selectorMatchOperator: EndsWith + managedRuleSet: + - ruleGroupOverride: + - rule: + - action: Log + enabled: true + id: "920300" + - action: Block + enabled: true + id: "920440" + ruleGroupName: REQUEST-920-PROTOCOL-ENFORCEMENT + type: OWASP + version: "3.2" + policySettings: + enabled: true + fileUploadLimitInMb: 100 + maxRequestBodySizeInKb: 128 + mode: Prevention + requestBodyCheck: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: network/v1beta1/webapplicationfirewallpolicy + labels: + testing.upbound.io/example-name: example + name: webrole-example +spec: + forProvider: + location: West Europe diff --git a/examples/notificationhubs/v1beta2/notificationhub.yaml b/examples/notificationhubs/v1beta2/notificationhub.yaml new file mode 100644 index 000000000..373679508 --- /dev/null +++ b/examples/notificationhubs/v1beta2/notificationhub.yaml @@ -0,0 +1,54 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: notificationhubs.azure.upbound.io/v1beta2 +kind: NotificationHub +metadata: + annotations: + meta.upbound.io/example-id: notificationhubs/v1beta2/notificationhub + labels: + testing.upbound.io/example-name: example + name: example2 +spec: + forProvider: + location: West Europe + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: notificationhubs.azure.upbound.io/v1beta1 +kind: NotificationHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: notificationhubs/v1beta2/notificationhub + labels: + testing.upbound.io/example-name: example + name: hubnamesapce +spec: + forProvider: + location: West Europe + namespaceType: Messaging + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: Free + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: notificationhubs/v1beta1/notificationhub + labels: + testing.upbound.io/example-name: example + name: example-notificationhubs-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe diff --git a/examples/operationalinsights/v1beta2/workspace.yaml b/examples/operationalinsights/v1beta2/workspace.yaml new file mode 100644 index 000000000..1981f092b --- /dev/null +++ b/examples/operationalinsights/v1beta2/workspace.yaml @@ -0,0 +1,32 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: operationalinsights/v1beta2/workspace + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example-operationalinsights + retentionInDays: 30 + sku: PerGB2018 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + labels: + testing.upbound.io/example-name: example-operationalinsights + name: example-operationalinsights-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe diff --git a/examples/operationsmanagement/v1beta2/loganalyticssolution.yaml b/examples/operationsmanagement/v1beta2/loganalyticssolution.yaml new file mode 100644 index 000000000..0de7697df --- /dev/null +++ b/examples/operationsmanagement/v1beta2/loganalyticssolution.yaml @@ -0,0 +1,61 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: operationsmanagement.azure.upbound.io/v1beta2 +kind: LogAnalyticsSolution +metadata: + annotations: + meta.upbound.io/example-id: operationsmanagement/v1beta2/loganalyticssolution + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + plan: + product: OMSGallery/ContainerInsights + publisher: Microsoft + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-operationsmanagement + solutionName: ContainerInsights + workspaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + workspaceResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: operationsmanagement/v1beta2/loganalyticssolution + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-loganalyticssolution.sh + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-operationsmanagement + sku: PerGB2018 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: operationsmanagement/v1beta1/loganalyticssolution + labels: + testing.upbound.io/example-name: rg-operationsmanagement + name: rg-operationsmanagement +spec: + forProvider: + location: West Europe diff --git a/examples/purview/v1beta2/account.yaml b/examples/purview/v1beta2/account.yaml new file mode 100644 index 000000000..01bb52137 --- /dev/null +++ b/examples/purview/v1beta2/account.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: purview.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: purview/v1beta2/account + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: purview/v1beta1/account + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/recoveryservices/v1beta2/backuppolicyfileshare.yaml b/examples/recoveryservices/v1beta2/backuppolicyfileshare.yaml new file mode 100644 index 000000000..e1367e736 --- /dev/null +++ b/examples/recoveryservices/v1beta2/backuppolicyfileshare.yaml @@ -0,0 +1,81 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: recoveryservices.azure.upbound.io/v1beta2 +kind: BackupPolicyFileShare +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/backuppolicyfileshare + labels: + testing.upbound.io/example-name: policy + name: policy +spec: + forProvider: + backup: + frequency: Daily + time: "23:00" + recoveryVaultNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionDaily: + count: 10 + retentionMonthly: + count: 7 + weekdays: + - Sunday + - Wednesday + weeks: + - First + - Last + retentionWeekly: + count: 7 + weekdays: + - Sunday + - Wednesday + - Friday + - Saturday + retentionYearly: + count: 7 + months: + - January + weekdays: + - Sunday + weeks: + - Last + timezone: UTC + +--- + +apiVersion: recoveryservices.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/backuppolicyfileshare + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta1/backuppolicyfileshare + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/recoveryservices/v1beta2/backuppolicyvm.yaml b/examples/recoveryservices/v1beta2/backuppolicyvm.yaml new file mode 100644 index 000000000..e05d882ed --- /dev/null +++ b/examples/recoveryservices/v1beta2/backuppolicyvm.yaml @@ -0,0 +1,81 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: recoveryservices.azure.upbound.io/v1beta2 +kind: BackupPolicyVM +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/backuppolicyvm + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + backup: + frequency: Daily + time: "23:00" + recoveryVaultNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionDaily: + count: 10 + retentionMonthly: + count: 7 + weekdays: + - Sunday + - Wednesday + weeks: + - First + - Last + retentionWeekly: + count: 42 + weekdays: + - Sunday + - Wednesday + - Friday + - Saturday + retentionYearly: + count: 77 + months: + - January + weekdays: + - Sunday + weeks: + - Last + timezone: UTC + +--- + +apiVersion: recoveryservices.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/backuppolicyvm + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta1/backuppolicyvm + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/recoveryservices/v1beta2/backuppolicyvmworkload.yaml b/examples/recoveryservices/v1beta2/backuppolicyvmworkload.yaml new file mode 100644 index 000000000..0b86d6b57 --- /dev/null +++ b/examples/recoveryservices/v1beta2/backuppolicyvmworkload.yaml @@ -0,0 +1,69 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: recoveryservices.azure.upbound.io/v1beta2 +kind: BackupPolicyVMWorkload +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/backuppolicyvmworkload + labels: + testing.upbound.io/example-name: example + name: bpwexample +spec: + forProvider: + protectionPolicy: + - backup: + frequency: Daily + time: "15:00" + policyType: Full + retentionDaily: + count: 8 + - backup: + frequencyInMinutes: 15 + policyType: Log + simpleRetention: + count: 8 + recoveryVaultNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + settings: + compressionEnabled: false + timeZone: UTC + workloadType: SQLDataBase + +--- + +apiVersion: recoveryservices.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/backuppolicyvmworkload + labels: + testing.upbound.io/example-name: example + name: bpwexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard + softDeleteEnabled: false + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta1/backuppolicyvmworkload + labels: + testing.upbound.io/example-name: example + name: bpwexample +spec: + forProvider: + location: West Europe diff --git a/examples/recoveryservices/v1beta2/siterecoveryprotectioncontainermapping.yaml b/examples/recoveryservices/v1beta2/siterecoveryprotectioncontainermapping.yaml new file mode 100644 index 000000000..27918e7af --- /dev/null +++ b/examples/recoveryservices/v1beta2/siterecoveryprotectioncontainermapping.yaml @@ -0,0 +1,183 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: recoveryservices.azure.upbound.io/v1beta2 +kind: SiteRecoveryProtectionContainerMapping +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/siterecoveryprotectioncontainermapping + labels: + testing.upbound.io/example-name: container-mapping + name: container-mapping +spec: + forProvider: + recoveryFabricNameSelector: + matchLabels: + testing.upbound.io/example-name: primary + recoveryReplicationPolicyIdSelector: + matchLabels: + testing.upbound.io/example-name: policy + recoverySourceProtectionContainerNameSelector: + matchLabels: + testing.upbound.io/example-name: primary + recoveryTargetProtectionContainerIdSelector: + matchLabels: + testing.upbound.io/example-name: secondary + recoveryVaultNameSelector: + matchLabels: + testing.upbound.io/example-name: vault + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: secondary + +--- + +apiVersion: recoveryservices.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/siterecoveryprotectioncontainermapping + labels: + testing.upbound.io/example-name: vault + name: vault +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: secondary + sku: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta1/siterecoveryprotectioncontainermapping + labels: + testing.upbound.io/example-name: primary + name: primary +spec: + forProvider: + location: West US + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta1/siterecoveryprotectioncontainermapping + labels: + testing.upbound.io/example-name: secondary + name: secondary +spec: + forProvider: + location: East US + +--- + +apiVersion: recoveryservices.azure.upbound.io/v1beta1 +kind: SiteRecoveryFabric +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/siterecoveryprotectioncontainermapping + labels: + testing.upbound.io/example-name: primary + name: primary +spec: + forProvider: + location: West US + recoveryVaultNameSelector: + matchLabels: + testing.upbound.io/example-name: vault + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: secondary + +--- + +apiVersion: recoveryservices.azure.upbound.io/v1beta1 +kind: SiteRecoveryFabric +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/siterecoveryprotectioncontainermapping + labels: + testing.upbound.io/example-name: secondary + name: secondary +spec: + forProvider: + location: East US + recoveryVaultNameSelector: + matchLabels: + testing.upbound.io/example-name: vault + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: secondary + +--- + +apiVersion: recoveryservices.azure.upbound.io/v1beta1 +kind: SiteRecoveryProtectionContainer +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/siterecoveryprotectioncontainermapping + labels: + testing.upbound.io/example-name: primary + name: primary-protection-container +spec: + forProvider: + recoveryFabricNameSelector: + matchLabels: + testing.upbound.io/example-name: primary + recoveryVaultNameSelector: + matchLabels: + testing.upbound.io/example-name: vault + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: secondary + +--- + +apiVersion: recoveryservices.azure.upbound.io/v1beta1 +kind: SiteRecoveryProtectionContainer +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/siterecoveryprotectioncontainermapping + labels: + testing.upbound.io/example-name: secondary + name: secondary +spec: + forProvider: + recoveryFabricNameSelector: + matchLabels: + testing.upbound.io/example-name: secondary + recoveryVaultNameSelector: + matchLabels: + testing.upbound.io/example-name: vault + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: secondary + +--- + +apiVersion: recoveryservices.azure.upbound.io/v1beta1 +kind: SiteRecoveryReplicationPolicy +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/siterecoveryprotectioncontainermapping + labels: + testing.upbound.io/example-name: policy + name: policy +spec: + forProvider: + applicationConsistentSnapshotFrequencyInMinutes: 120 + recoveryPointRetentionInMinutes: 240 + recoveryVaultNameSelector: + matchLabels: + testing.upbound.io/example-name: vault + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: secondary diff --git a/examples/recoveryservices/v1beta2/vault.yaml b/examples/recoveryservices/v1beta2/vault.yaml new file mode 100644 index 000000000..06ce153df --- /dev/null +++ b/examples/recoveryservices/v1beta2/vault.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: recoveryservices.azure.upbound.io/v1beta2 +kind: Vault +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta2/vault + labels: + testing.upbound.io/example-name: vault + name: vault +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard + softDeleteEnabled: true + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: recoveryservices/v1beta1/vault + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/resources/v1beta2/resourcedeploymentscriptazurecli.yaml b/examples/resources/v1beta2/resourcedeploymentscriptazurecli.yaml new file mode 100644 index 000000000..d8d0575fe --- /dev/null +++ b/examples/resources/v1beta2/resourcedeploymentscriptazurecli.yaml @@ -0,0 +1,65 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: resources.azure.upbound.io/v1beta2 +kind: ResourceDeploymentScriptAzureCli +metadata: + annotations: + meta.upbound.io/example-id: resources/v1beta2/resourcedeploymentscriptazurecli + labels: + testing.upbound.io/example-name: example + name: rdsacex +spec: + forProvider: + cleanupPreference: OnSuccess + commandLine: '''foo'' ''bar''' + forceUpdateTag: "1" + identity: + identityIdsRefs: + - name: rdsacex + type: UserAssigned + location: West Europe + name: rdsacex + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInterval: P1D + scriptContent: |2 + echo "{\"name\":{\"displayName\":\"$1 $2\"}}" > $AZ_SCRIPTS_OUTPUT_PATH + tags: + key: value + timeout: PT30M + version: 2.40.0 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: resources/v1beta1/resourcedeploymentscriptazurecli + labels: + testing.upbound.io/example-name: example + name: rdsacex +spec: + forProvider: + location: West Europe + +--- + +apiVersion: managedidentity.azure.upbound.io/v1beta1 +kind: UserAssignedIdentity +metadata: + annotations: + meta.upbound.io/example-id: resources/v1beta2/resourcedeploymentscriptazurecli + labels: + testing.upbound.io/example-name: example + name: rdsacex +spec: + forProvider: + location: West Europe + name: rdsacex + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/resources/v1beta2/resourcedeploymentscriptazurepowershell.yaml b/examples/resources/v1beta2/resourcedeploymentscriptazurepowershell.yaml new file mode 100644 index 000000000..f08cebfd4 --- /dev/null +++ b/examples/resources/v1beta2/resourcedeploymentscriptazurepowershell.yaml @@ -0,0 +1,69 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: resources.azure.upbound.io/v1beta2 +kind: ResourceDeploymentScriptAzurePowerShell +metadata: + annotations: + meta.upbound.io/example-id: resources/v1beta2/resourcedeploymentscriptazurepowershell + labels: + testing.upbound.io/example-name: example + name: rdsapsex +spec: + forProvider: + cleanupPreference: OnSuccess + commandLine: -name "John Dole" + forceUpdateTag: "1" + identity: + identityIdsRefs: + - name: rdsapsex + type: UserAssigned + location: West Europe + name: rdsapsex + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInterval: P1D + scriptContent: |2 + param([string] $name) + $output = 'Hello {0}.' -f $name + Write-Output $output + $DeploymentScriptOutputs = @{} + $DeploymentScriptOutputs['text'] = $output + tags: + key: value + timeout: PT30M + version: "8.3" + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: resources/v1beta1/resourcedeploymentscriptazurepowershell + labels: + testing.upbound.io/example-name: example + name: rdsapsex +spec: + forProvider: + location: West Europe + +--- + +apiVersion: managedidentity.azure.upbound.io/v1beta1 +kind: UserAssignedIdentity +metadata: + annotations: + meta.upbound.io/example-id: resources/v1beta2/resourcedeploymentscriptazurepowershell + labels: + testing.upbound.io/example-name: example + name: rdsapsex +spec: + forProvider: + location: West Europe + name: rdsapsex + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/search/v1beta2/service.yaml b/examples/search/v1beta2/service.yaml new file mode 100644 index 000000000..22b1e6861 --- /dev/null +++ b/examples/search/v1beta2/service.yaml @@ -0,0 +1,33 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: search.azure.upbound.io/v1beta2 +kind: Service +metadata: + annotations: + meta.upbound.io/example-id: search/v1beta2/service + labels: + testing.upbound.io/example-name: search-example + name: search-example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: search-rg + sku: standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: search/v1beta1/service + labels: + testing.upbound.io/example-name: search-rg + name: search-rg +spec: + forProvider: + location: West Europe diff --git a/examples/security/v1beta2/iotsecuritydevicegroup.yaml b/examples/security/v1beta2/iotsecuritydevicegroup.yaml new file mode 100644 index 000000000..6e9baf1d7 --- /dev/null +++ b/examples/security/v1beta2/iotsecuritydevicegroup.yaml @@ -0,0 +1,82 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: security.azure.upbound.io/v1beta2 +kind: IOTSecurityDeviceGroup +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta2/iotsecuritydevicegroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + allowRule: + connectionToIpsNotAllowed: + - 10.0.0.0/24 + iothubIdSelector: + matchLabels: + testing.upbound.io/example-name: example + name: example-device-security-group + rangeRule: + - duration: PT5M + max: 30 + min: 0 + type: ActiveConnectionsNotInAllowedRange + +--- + +apiVersion: security.azure.upbound.io/v1beta2 +kind: IOTSecuritySolution +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta2/iotsecuritydevicegroup + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + displayName: Iot Security Solution + iothubIdsSelector: + matchLabels: + testing.upbound.io/example-name: example + location: West Europe + name: example-Iot-Security-Solution + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: device + +--- + +apiVersion: devices.azure.upbound.io/v1beta2 +kind: IOTHub +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta2/iotsecuritydevicegroup + labels: + testing.upbound.io/example-name: example + name: example-security-iot-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: device + sku: + capacity: 1 + name: S1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta1/iotsecuritydevicegroup + labels: + testing.upbound.io/example-name: device + name: example-security-device-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe diff --git a/examples/security/v1beta2/securitycenterassessment.yaml b/examples/security/v1beta2/securitycenterassessment.yaml new file mode 100644 index 000000000..9476eabd8 --- /dev/null +++ b/examples/security/v1beta2/securitycenterassessment.yaml @@ -0,0 +1,145 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: security.azure.upbound.io/v1beta2 +kind: SecurityCenterAssessment +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta2/securitycenterassessment + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + assessmentPolicyIdSelector: + matchLabels: + testing.upbound.io/example-name: example-security-policy + status: + code: Healthy + targetResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: securitycenterassessment-vm + +--- + +apiVersion: compute.azure.upbound.io/v1beta2 +kind: LinuxVirtualMachineScaleSet +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta2/securitycenterassessment + labels: + testing.upbound.io/example-name: securitycenterassessment-vm + name: securitycenterassessment-vm +spec: + forProvider: + adminPasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + adminUsername: testadmin + disablePasswordAuthentication: false + instances: 1 + location: West Europe + networkInterface: + - ipConfiguration: + - name: internal + primary: true + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: securitycenterassessment-sn + name: example + primary: true + osDisk: + caching: ReadWrite + storageAccountType: Standard_LRS + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: securitycenterassessment-rg + sku: Standard_F2 + sourceImageReference: + offer: UbuntuServer + publisher: Canonical + sku: 16.04-LTS + version: latest + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta1/securitycenterassessment + labels: + testing.upbound.io/example-name: securitycenterassessment-rg + name: securitycenterassessment-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: security.azure.upbound.io/v1beta1 +kind: SecurityCenterAssessmentPolicy +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta2/securitycenterassessment + labels: + testing.upbound.io/example-name: example-security-policy + name: example-security-policy +spec: + forProvider: + description: Test Description + displayName: Test Display Name + severity: Medium + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta2/securitycenterassessment + labels: + testing.upbound.io/example-name: securitycenterassessment-sn + name: securitycenterassessment-sn +spec: + forProvider: + addressPrefixes: + - 10.0.2.0/24 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: securitycenterassessment-rg + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: securitycenterassessment-vn + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: security/v1beta2/securitycenterassessment + labels: + testing.upbound.io/example-name: securitycenterassessment-vn + name: securitycenterassessment-vn +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: securitycenterassessment-rg + +--- + +apiVersion: v1 +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +stringData: + example-key: dGVzdFBhc3N3b3JkITEyMw== +type: Opaque diff --git a/examples/servicebus/v1beta2/servicebusnamespace.yaml b/examples/servicebus/v1beta2/servicebusnamespace.yaml new file mode 100644 index 000000000..a8dc4b5cb --- /dev/null +++ b/examples/servicebus/v1beta2/servicebusnamespace.yaml @@ -0,0 +1,35 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: servicebus.azure.upbound.io/v1beta2 +kind: ServiceBusNamespace +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta2/servicebusnamespace + labels: + testing.upbound.io/example-name: example + name: example-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard + tags: + source: terraform + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta1/servicebusnamespace + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/servicebus/v1beta2/subscription.yaml b/examples/servicebus/v1beta2/subscription.yaml new file mode 100644 index 000000000..826d02cc6 --- /dev/null +++ b/examples/servicebus/v1beta2/subscription.yaml @@ -0,0 +1,70 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: servicebus.azure.upbound.io/v1beta2 +kind: Subscription +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta2/subscription + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + maxDeliveryCount: 1 + topicIdSelector: + matchLabels: + testing.upbound.io/example-name: subscription-topic + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta1/subscription + labels: + testing.upbound.io/example-name: servicebus-subscription-rg + name: servicebus-subscription-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: servicebus.azure.upbound.io/v1beta2 +kind: ServiceBusNamespace +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta2/subscription + labels: + testing.upbound.io/example-name: subscriptionnamespace + name: subscriptionnamespace +spec: + forProvider: + capacity: 1 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: servicebus-subscription-rg + sku: Premium + tags: + source: test + +--- + +apiVersion: servicebus.azure.upbound.io/v1beta1 +kind: Topic +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta2/subscription + labels: + testing.upbound.io/example-name: subscription-topic + name: subscription-topic +spec: + forProvider: + maxMessageSizeInKilobytes: 1024 + namespaceIdSelector: + matchLabels: + testing.upbound.io/example-name: subscriptionnamespace diff --git a/examples/servicebus/v1beta2/subscriptionrule.yaml b/examples/servicebus/v1beta2/subscriptionrule.yaml new file mode 100644 index 000000000..7ed50c058 --- /dev/null +++ b/examples/servicebus/v1beta2/subscriptionrule.yaml @@ -0,0 +1,88 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: servicebus.azure.upbound.io/v1beta2 +kind: SubscriptionRule +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta2/subscriptionrule + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + filterType: SqlFilter + sqlFilter: colour = 'red' + subscriptionIdSelector: + matchLabels: + testing.upbound.io/example-name: subscriptionrule-subscription + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta1/subscriptionrule + labels: + testing.upbound.io/example-name: subscriptionrule-rg + name: subscriptionrule-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: servicebus.azure.upbound.io/v1beta2 +kind: ServiceBusNamespace +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta2/subscriptionrule + labels: + testing.upbound.io/example-name: subscriptionrule-namespace + name: subscriptionrule-namespace +spec: + forProvider: + capacity: 1 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: subscriptionrule-rg + sku: Premium + tags: + source: terraform + +--- + +apiVersion: servicebus.azure.upbound.io/v1beta2 +kind: Subscription +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta2/subscriptionrule + labels: + testing.upbound.io/example-name: subscriptionrule-subscription + name: subscriptionrule-subscription +spec: + forProvider: + maxDeliveryCount: 1 + topicIdSelector: + matchLabels: + testing.upbound.io/example-name: subscriptionrule-topic + +--- + +apiVersion: servicebus.azure.upbound.io/v1beta1 +kind: Topic +metadata: + annotations: + meta.upbound.io/example-id: servicebus/v1beta2/subscriptionrule + labels: + testing.upbound.io/example-name: subscriptionrule-topic + name: subscriptionrule-topic +spec: + forProvider: + maxMessageSizeInKilobytes: 1024 + namespaceIdSelector: + matchLabels: + testing.upbound.io/example-name: subscriptionrule-namespace diff --git a/examples/servicefabric/v1beta2/cluster.yaml b/examples/servicefabric/v1beta2/cluster.yaml new file mode 100644 index 000000000..20bd7a78a --- /dev/null +++ b/examples/servicefabric/v1beta2/cluster.yaml @@ -0,0 +1,43 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: servicefabric.azure.upbound.io/v1beta2 +kind: Cluster +metadata: + annotations: + meta.upbound.io/example-id: servicefabric/v1beta2/cluster + labels: + testing.upbound.io/example-name: sfexample + name: sfexample +spec: + forProvider: + clusterCodeVersion: 8.2.1235.9590 + location: West Europe + managementEndpoint: https://example:80 + nodeType: + - clientEndpointPort: 2020 + httpEndpointPort: 80 + instanceCount: 3 + isPrimary: true + name: first + reliabilityLevel: Bronze + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-servicefabric + upgradeMode: Manual + vmImage: Windows + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: servicefabric/v1beta1/cluster + labels: + testing.upbound.io/example-name: rg-servicefabric + name: rg-servicefabric +spec: + forProvider: + location: West Europe diff --git a/examples/servicefabric/v1beta2/managedcluster.yaml b/examples/servicefabric/v1beta2/managedcluster.yaml new file mode 100644 index 000000000..3abffeead --- /dev/null +++ b/examples/servicefabric/v1beta2/managedcluster.yaml @@ -0,0 +1,56 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: servicefabric.azure.upbound.io/v1beta2 +kind: ManagedCluster +metadata: + annotations: + meta.upbound.io/example-id: servicefabric/v1beta2/managedcluster + labels: + testing.upbound.io/example-name: sfexamplemc + name: sfexamplemc +spec: + forProvider: + clientConnectionPort: 12345 + httpGatewayPort: 4567 + lbRule: + - backendPort: 38080 + frontendPort: 80 + probeProtocol: http + probeRequestPath: /test + protocol: tcp + location: West Europe + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-servicefabric + username: UserName123 + +--- + +apiVersion: v1 +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +stringData: + example-key: UserName123 +type: Opaque + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: servicefabric/v1beta1/managedcluster + labels: + testing.upbound.io/example-name: rg-servicefabric + name: rg-servicefabric +spec: + forProvider: + location: West Europe diff --git a/examples/servicelinker/v1beta2/springcloudconnection.yaml b/examples/servicelinker/v1beta2/springcloudconnection.yaml new file mode 100644 index 000000000..d32761f76 --- /dev/null +++ b/examples/servicelinker/v1beta2/springcloudconnection.yaml @@ -0,0 +1,161 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: servicelinker.azure.upbound.io/v1beta2 +kind: SpringCloudConnection +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta2/springcloudconnection + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + authentication: + type: systemAssignedIdentity + name: example_serviceconnector + springCloudIdSelector: + matchLabels: + testing.upbound.io/example-name: example + targetResourceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta2/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default-${Rand.RFC1123Subdomain} +spec: + forProvider: + consistencyPolicy: + consistencyLevel: BoundedStaleness + maxIntervalInSeconds: 10 + maxStalenessPrefix: 200 + geoLocation: + - failoverPriority: 0 + location: West Europe + kind: GlobalDocumentDB + location: West Europe + offerType: Standard + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: SQLContainer +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta2/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + databaseNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionKeyPath: /definition + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection + +--- + +apiVersion: cosmosdb.azure.upbound.io/v1beta2 +kind: SQLDatabase +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta2/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection + throughput: 400 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta1/springcloudconnection + labels: + testing.upbound.io/example-name: rgspringcloudconnection + name: rgspringcloudconnection +spec: + forProvider: + location: West Europe + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudApp +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta2/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + identity: + type: SystemAssigned + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection + serviceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudJavaDeployment +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta2/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default +spec: + forProvider: + springCloudAppIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: appplatform.azure.upbound.io/v1beta2 +kind: SpringCloudService +metadata: + annotations: + meta.upbound.io/example-id: servicelinker/v1beta2/springcloudconnection + labels: + testing.upbound.io/example-name: example + name: default-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rgspringcloudconnection diff --git a/examples/signalrservice/v1beta2/networkacl.yaml b/examples/signalrservice/v1beta2/networkacl.yaml new file mode 100644 index 000000000..919992d33 --- /dev/null +++ b/examples/signalrservice/v1beta2/networkacl.yaml @@ -0,0 +1,128 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: signalrservice.azure.upbound.io/v1beta2 +kind: NetworkACL +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/networkacl + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + defaultAction: Deny + privateEndpoint: + - allowedRequestTypes: + - ServerConnection + idSelector: + matchLabels: + testing.upbound.io/example-name: example + publicNetwork: + allowedRequestTypes: + - ClientConnection + signalrServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: PrivateEndpoint +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/networkacl + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + privateServiceConnection: + isManualConnection: false + name: psc-sig-test + privateConnectionResourceId: ${data.azurerm_client_config.current.subscription_resource_id}/resourceGroups/rg-signalrservice/providers/Microsoft.SignalRService/signalR/example + subresourceNames: + - signalr + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-signalrservice + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta1/networkacl + labels: + testing.upbound.io/example-name: rg-signalrservice + name: rg-signalrservice +spec: + forProvider: + location: West Europe + +--- + +apiVersion: signalrservice.azure.upbound.io/v1beta2 +kind: Service +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/networkacl + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-signalrservice + sku: + capacity: 1 + name: Standard_S1 + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/networkacl + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressPrefixes: + - 10.5.2.0/24 + enforcePrivateLinkEndpointNetworkPolicies: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-signalrservice + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/networkacl + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + addressSpace: + - 10.5.0.0/16 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-signalrservice diff --git a/examples/signalrservice/v1beta2/service.yaml b/examples/signalrservice/v1beta2/service.yaml new file mode 100644 index 000000000..719ede902 --- /dev/null +++ b/examples/signalrservice/v1beta2/service.yaml @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: signalrservice.azure.upbound.io/v1beta2 +kind: Service +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/service + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + connectivityLogsEnabled: true + cors: + - allowedOrigins: + - http://www.example.com + location: West Europe + messagingLogsEnabled: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: rg-signalrservice + serviceMode: Serverless + sku: + capacity: 1 + name: Free_F1 + upstreamEndpoint: + - categoryPattern: + - connections + - messages + eventPattern: + - '*' + hubPattern: + - hub1 + urlTemplate: http://foo.com + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta1/service + labels: + testing.upbound.io/example-name: rg-signalrservice + name: rg-signalrservice +spec: + forProvider: + location: West Europe diff --git a/examples/signalrservice/v1beta2/webpubsub.yaml b/examples/signalrservice/v1beta2/webpubsub.yaml new file mode 100644 index 000000000..37790dca6 --- /dev/null +++ b/examples/signalrservice/v1beta2/webpubsub.yaml @@ -0,0 +1,38 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: signalrservice.azure.upbound.io/v1beta2 +kind: WebPubsub +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/webpubsub + labels: + testing.upbound.io/example-name: examplewebpubsub + name: examplewebpubsub +spec: + forProvider: + capacity: 1 + identity: + type: SystemAssigned + location: West Europe + name: examplewebpubsub + publicNetworkAccessEnabled: false + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: webpubsub-rg + sku: Standard_S1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta1/webpubsub + labels: + testing.upbound.io/example-name: webpubsub-rg + name: webpubsub-rg +spec: + forProvider: + location: West Europe diff --git a/examples/signalrservice/v1beta2/webpubsubhub.yaml b/examples/signalrservice/v1beta2/webpubsubhub.yaml new file mode 100644 index 000000000..6d86e63a1 --- /dev/null +++ b/examples/signalrservice/v1beta2/webpubsubhub.yaml @@ -0,0 +1,85 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: signalrservice.azure.upbound.io/v1beta2 +kind: WebPubsubHub +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/webpubsubhub + labels: + testing.upbound.io/example-name: examplewebpubsubhub + name: examplewebpubsubhub +spec: + forProvider: + anonymousConnectionsEnabled: true + eventHandler: + - systemEvents: + - connect + - connected + urlTemplate: https://test.com/api/{hub}/{event} + userEventPattern: '*' + - auth: + managedIdentityIdSelector: + matchLabels: + testing.upbound.io/example-name: webpubsubhub-id + systemEvents: + - connected + urlTemplate: https://test.com/api/{hub}/{event} + userEventPattern: event1, event2 + name: examplewebpubsubhub + webPubsubIdSelector: + matchLabels: + testing.upbound.io/example-name: webpubsubhub-wp + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta1/webpubsubhub + labels: + testing.upbound.io/example-name: webpubsubhub-rg + name: webpubsubhub-rg +spec: + forProvider: + location: east us + +--- + +apiVersion: managedidentity.azure.upbound.io/v1beta1 +kind: UserAssignedIdentity +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/webpubsubhub + labels: + testing.upbound.io/example-name: webpubsubhub-id + name: webpubsubhub-id +spec: + forProvider: + location: east us + name: tfex-uai + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: webpubsubhub-rg + +--- + +apiVersion: signalrservice.azure.upbound.io/v1beta2 +kind: WebPubsub +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/webpubsubhub + labels: + testing.upbound.io/example-name: webpubsubhub-wp + name: webpubsubhub-wp +spec: + forProvider: + capacity: 1 + location: east us + name: webpubsubhub-wp + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: webpubsubhub-rg + sku: Standard_S1 diff --git a/examples/signalrservice/v1beta2/webpubsubnetworkacl.yaml b/examples/signalrservice/v1beta2/webpubsubnetworkacl.yaml new file mode 100644 index 000000000..b12fa9a73 --- /dev/null +++ b/examples/signalrservice/v1beta2/webpubsubnetworkacl.yaml @@ -0,0 +1,130 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: signalrservice.azure.upbound.io/v1beta2 +kind: WebPubsubNetworkACL +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/webpubsubnetworkacl + labels: + testing.upbound.io/example-name: example + name: wpsnetworkaclname +spec: + forProvider: + defaultAction: Allow + privateEndpoint: + - deniedRequestTypes: + - RESTAPI + - ClientConnection + idSelector: + matchLabels: + testing.upbound.io/example-name: example + publicNetwork: + deniedRequestTypes: + - ClientConnection + webPubsubIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: PrivateEndpoint +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/webpubsubnetworkacl + upjet.upbound.io/manual-intervention: privateConnectionResourceId depends on existing + resource id (web_pubsub id in this example) + labels: + testing.upbound.io/example-name: example + name: privateendpoint +spec: + forProvider: + location: East US + privateServiceConnection: + isManualConnection: false + name: psc-sig-test + privateConnectionResourceId: ${azurerm_web_pubsub.example.id} + subresourceNames: + - webpubsub + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + subnetIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta1/webpubsubnetworkacl + labels: + testing.upbound.io/example-name: example + name: acl-rg +spec: + forProvider: + location: East US + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/webpubsubnetworkacl + labels: + testing.upbound.io/example-name: example + name: subnet +spec: + forProvider: + addressPrefixes: + - 10.5.2.0/24 + enforcePrivateLinkEndpointNetworkPolicies: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + virtualNetworkNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/webpubsubnetworkacl + labels: + testing.upbound.io/example-name: example + name: virtualnetwork +spec: + forProvider: + addressSpace: + - 10.5.0.0/16 + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: signalrservice.azure.upbound.io/v1beta2 +kind: WebPubsub +metadata: + annotations: + meta.upbound.io/example-id: signalrservice/v1beta2/webpubsubnetworkacl + labels: + testing.upbound.io/example-name: example + name: webpubsubname +spec: + forProvider: + capacity: 1 + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard_S1 diff --git a/examples/sql/v1beta2/mssqlmanageddatabase.yaml b/examples/sql/v1beta2/mssqlmanageddatabase.yaml new file mode 100644 index 000000000..48390e784 --- /dev/null +++ b/examples/sql/v1beta2/mssqlmanageddatabase.yaml @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: sql.azure.upbound.io/v1beta2 +kind: MSSQLManagedDatabase +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanageddatabase + upjet.upbound.io/manual-intervention: Creation of MSSQLManagedInstance takes 4 + hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example +spec: + forProvider: + managedInstanceIdRef: + name: example-sql diff --git a/examples/sql/v1beta2/mssqlmanagedinstance.yaml b/examples/sql/v1beta2/mssqlmanagedinstance.yaml new file mode 100644 index 000000000..ca6c4b980 --- /dev/null +++ b/examples/sql/v1beta2/mssqlmanagedinstance.yaml @@ -0,0 +1,174 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: sql.azure.upbound.io/v1beta2 +kind: MSSQLManagedInstance +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstance + upjet.upbound.io/manual-intervention: Creation takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-sql +spec: + forProvider: + administratorLogin: mradministrator + administratorLoginPasswordSecretRef: + key: password + name: example-secret + namespace: upbound-system + identity: + type: SystemAssigned + licenseType: BasePrice + location: West Europe + resourceGroupNameRef: + name: example-sql-rg + skuName: GP_Gen5 + storageSizeInGb: 32 + subnetIdRef: + name: example-subnet + vcores: 4 + +--- + +apiVersion: v1 +data: + password: dGVzdFBhc3N3b3JkITEyMw== +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + upjet.upbound.io/manual-intervention: Creation takes of MSSQLManagedInstance takes + 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-sql-rg +spec: + forProvider: + location: West Europe + tags: + provisioner: crossplane + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstance + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstance takes 4 hours, + see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-vn +spec: + forProvider: + addressSpace: + - 10.0.0.0/16 + dnsServers: + - 10.0.0.4 + - 10.0.0.5 + location: West Europe + resourceGroupNameRef: + name: example-sql-rg + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstance + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstance takes 4 hours, + see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-subnet +spec: + forProvider: + addressPrefixes: + - 10.0.0.0/24 + delegation: + - name: managedinstancedelegation + serviceDelegation: + actions: + - Microsoft.Network/virtualNetworks/subnets/join/action + - Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action + - Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action + name: Microsoft.Sql/managedInstances + resourceGroupNameRef: + name: example-sql-rg + virtualNetworkNameRef: + name: example-vn + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: SecurityGroup +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstance + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstance takes 4 hours, + see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameRef: + name: example-sql-rg + tags: + environment: Production + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: SubnetNetworkSecurityGroupAssociation +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstance + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstance takes 4 hours, + see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example +spec: + forProvider: + networkSecurityGroupIdRef: + name: example + subnetIdRef: + name: example-subnet + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: RouteTable +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstance + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstance takes 4 hours, + see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example +spec: + forProvider: + disableBgpRoutePropagation: false + location: West Europe + resourceGroupNameRef: + name: example-sql-rg + tags: + environment: Production + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: SubnetRouteTableAssociation +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstance + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstance takes 4 hours, + see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example +spec: + forProvider: + routeTableIdRef: + name: example + subnetIdRef: + name: example-subnet diff --git a/examples/sql/v1beta2/mssqlmanagedinstancefailovergroup.yaml b/examples/sql/v1beta2/mssqlmanagedinstancefailovergroup.yaml new file mode 100644 index 000000000..f300f3922 --- /dev/null +++ b/examples/sql/v1beta2/mssqlmanagedinstancefailovergroup.yaml @@ -0,0 +1,220 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: sql.azure.upbound.io/v1beta2 +kind: MSSQLManagedInstanceFailoverGroup +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-sql-managed-failover +spec: + forProvider: + location: West Europe + managedInstanceIdRef: + name: example-sql + partnerManagedInstanceIdRef: + name: example-sql-failover-instance + readWriteEndpointFailoverPolicy: + graceMinutes: 60 + mode: Automatic + +--- + +apiVersion: sql.azure.upbound.io/v1beta2 +kind: MSSQLManagedInstance +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-sql-failover-instance +spec: + forProvider: + administratorLogin: mradministrator + administratorLoginPasswordSecretRef: + key: password + name: example-secret + namespace: upbound-system + dnsZonePartnerIdRef: + name: example-sql + identity: + type: SystemAssigned + licenseType: BasePrice + location: North Europe + resourceGroupNameRef: + name: example-sql-rg-failover + skuName: GP_Gen5 + storageSizeInGb: 32 + subnetIdRef: + name: example-subnet-failover + vcores: 4 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup + takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-sql-rg-failover +spec: + forProvider: + location: North Europe + tags: + provisioner: crossplane + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: VirtualNetwork +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup + takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-vn-failover +spec: + forProvider: + addressSpace: + - 10.1.0.0/16 + location: North Europe + resourceGroupNameRef: + name: example-sql-rg-failover + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: Subnet +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup + takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-subnet-failover +spec: + forProvider: + addressPrefixes: + - 10.1.0.0/24 + delegation: + - name: managedinstancedelegation + serviceDelegation: + actions: + - Microsoft.Network/virtualNetworks/subnets/join/action + - Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action + - Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action + name: Microsoft.Sql/managedInstances + resourceGroupNameRef: + name: example-sql-rg-failover + virtualNetworkNameRef: + name: example-vn-failover + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: SecurityGroup +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup + takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-failover +spec: + forProvider: + location: North Europe + resourceGroupNameRef: + name: example-sql-rg-failover + tags: + environment: Production + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: SubnetNetworkSecurityGroupAssociation +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup + takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-failover +spec: + forProvider: + networkSecurityGroupIdRef: + name: example-failover + subnetIdRef: + name: example-subnet-failover + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: RouteTable +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup + takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-failover +spec: + forProvider: + disableBgpRoutePropagation: false + location: North Europe + resourceGroupNameRef: + name: example-sql-rg-failover + tags: + environment: Production + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: SubnetRouteTableAssociation +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup + takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-failover +spec: + forProvider: + routeTableIdRef: + name: example-failover + subnetIdRef: + name: example-subnet-failover + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: VirtualNetworkPeering +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup + takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example +spec: + forProvider: + remoteVirtualNetworkIdRef: + name: example-vn-failover + resourceGroupNameRef: + name: example-sql-rg + virtualNetworkNameRef: + name: example-vn + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: VirtualNetworkPeering +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancefailovergroup + upjet.upbound.io/manual-intervention: Creation MSSQLManagedInstanceFailoverGroup + takes 4 hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-failover +spec: + forProvider: + remoteVirtualNetworkIdRef: + name: example-vn + resourceGroupNameRef: + name: example-sql-rg-failover + virtualNetworkNameRef: + name: example-vn-failover diff --git a/examples/sql/v1beta2/mssqlmanagedinstancevulnerabilityassessment.yaml b/examples/sql/v1beta2/mssqlmanagedinstancevulnerabilityassessment.yaml new file mode 100644 index 000000000..8f92053a7 --- /dev/null +++ b/examples/sql/v1beta2/mssqlmanagedinstancevulnerabilityassessment.yaml @@ -0,0 +1,51 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: sql.azure.upbound.io/v1beta2 +kind: MSSQLManagedInstanceVulnerabilityAssessment +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancevulnerabilityassessment + upjet.upbound.io/manual-intervention: Creation of MSSQLManagedInstance takes 4 + hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example +spec: + forProvider: + managedInstanceIdRef: + name: example-sql + recurringScans: + emailSubscriptionAdmins: true + emails: + - email@example1.com + - email@example2.com + enabled: true + storageAccountAccessKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + storageContainerPath: https://crossplestoraccsql13722.blob.core.windows.net/example-storage-account + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + crossplane.io/external-name: crossplestoraccsql13722 + meta.upbound.io/example-id: sql/v1beta2/mssqlmanagedinstancevulnerabilityassessment + upjet.upbound.io/manual-intervention: Creation of MSSQLManagedInstance takes 4 + hours, see https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/management-operations-overview?view=azuresql#duration + name: example-storage-account +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameRef: + name: example-sql-rg + tags: + provisioner: crossplane + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system diff --git a/examples/sql/v1beta2/mssqlservervulnerabilityassessment.yaml b/examples/sql/v1beta2/mssqlservervulnerabilityassessment.yaml new file mode 100644 index 000000000..9ebf52f31 --- /dev/null +++ b/examples/sql/v1beta2/mssqlservervulnerabilityassessment.yaml @@ -0,0 +1,155 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: sql.azure.upbound.io/v1beta2 +kind: MSSQLServerVulnerabilityAssessment +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlservervulnerabilityassessment + upjet.upbound.io/manual-intervention: Requires existing blob storage path and + key + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + recurringScans: + emailSubscriptionAdmins: true + emails: + - email@example1.com + - email@example2.com + enabled: true + serverSecurityAlertPolicyIdSelector: + matchLabels: + testing.upbound.io/example-name: mssqlvulnassessment-pol + storageAccountAccessKeySecretRef: + key: example-key + name: example-secret-stor + namespace: upbound-system + storageContainerPath: ${azurerm_storage_account.example.primary_blob_endpoint}${azurerm_storage_container.example.name}/ + +--- + +apiVersion: sql.azure.upbound.io/v1beta1 +kind: MSSQLServerSecurityAlertPolicy +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlservervulnerabilityassessment + upjet.upbound.io/manual-intervention: Requires existing blob storage path and + key + labels: + testing.upbound.io/example-name: mssqlvulnassessment-pol + name: mssqlvulnassessment-pol +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: mssqlvulnassessment-rg + serverNameSelector: + matchLabels: + testing.upbound.io/example-name: mssqlvulnassessment-srv + state: Enabled + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta1/mssqlservervulnerabilityassessment + upjet.upbound.io/manual-intervention: Requires existing blob storage path and + key + labels: + testing.upbound.io/example-name: mssqlvulnassessment-rg + name: mssqlvulnassessment-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlservervulnerabilityassessment + upjet.upbound.io/manual-intervention: Requires existing blob storage path and + key + labels: + testing.upbound.io/example-name: mssqlvulnassessmentacc + name: mssqlvulnassessmentacc +spec: + forProvider: + accountReplicationType: GRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: mssqlvulnassessment-rg + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlservervulnerabilityassessment + upjet.upbound.io/manual-intervention: Requires existing blob storage path and + key + labels: + testing.upbound.io/example-name: mssqlvulnassessmentcont + name: mssqlvulnassessmentcont +spec: + forProvider: + containerAccessType: private + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: mssqlvulnassessmentacc + +--- + +apiVersion: sql.azure.upbound.io/v1beta2 +kind: MSSQLServer +metadata: + annotations: + meta.upbound.io/example-id: sql/v1beta2/mssqlservervulnerabilityassessment + upjet.upbound.io/manual-intervention: Requires existing blob storage path and + key + labels: + testing.upbound.io/example-name: mssqlvulnassessment-srv + name: mssqlvulnassessment-srv +spec: + forProvider: + administratorLogin: 4dm1n157r470r + administratorLoginPasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + location: northeurope + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: mssqlvulnassessment-rg + version: "12.0" + +--- + +apiVersion: v1 +data: + example-key: dGVzdFBhc3N3b3JkITEyMw== +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque + +--- + +apiVersion: v1 +data: + example-key: SmNQL1krSlFtOWhaVnNIQzQ4TlVTR0lSUmRnU0I1WU1mRlVBcU1SbHZPdGdQaVFUMUdEUVNoZ2hCRWFhYXk0OVlIbUl5S1ltZ2pMYytBU3R3RlR2SXc9PQ== +kind: Secret +metadata: + name: example-secret-stor + namespace: upbound-system +type: Opaque diff --git a/examples/storage/v1beta2/accountlocaluser.yaml b/examples/storage/v1beta2/accountlocaluser.yaml new file mode 100644 index 000000000..30fbc3f51 --- /dev/null +++ b/examples/storage/v1beta2/accountlocaluser.yaml @@ -0,0 +1,53 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: AccountLocalUser +metadata: + annotations: + meta.upbound.io/example-id: storage/v1beta2/accountlocaluser + labels: + testing.upbound.io/example-name: example + name: aluexample +spec: + forProvider: + sshPasswordEnabled: false + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: storage/v1beta1/accountlocaluser + labels: + testing.upbound.io/example-name: example + name: aluexample +spec: + forProvider: + location: WestEurope + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: storage/v1beta2/accountlocaluser + labels: + testing.upbound.io/example-name: example + name: aluexample +spec: + forProvider: + accountKind: StorageV2 + accountReplicationType: LRS + accountTier: Standard + isHnsEnabled: true + location: WestEurope + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/storage/v1beta2/blobinventorypolicy.yaml b/examples/storage/v1beta2/blobinventorypolicy.yaml new file mode 100644 index 000000000..1c4ad06f7 --- /dev/null +++ b/examples/storage/v1beta2/blobinventorypolicy.yaml @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: BlobInventoryPolicy +metadata: + annotations: + meta.upbound.io/example-id: storage/v1beta2/blobinventorypolicy + name: example +spec: + forProvider: + rules: + - format: Csv + name: rule1 + schedule: Daily + schemaFields: + - Name + - Last-Modified + scope: Container + storageContainerName: examplecontainer + storageAccountId: /subscriptions/.../resourceGroups/example-resources111/providers/Microsoft.Storage/storageAccounts/examplestoracc111 diff --git a/examples/storage/v1beta2/hpccache.yaml b/examples/storage/v1beta2/hpccache.yaml new file mode 100644 index 000000000..8d325eafb --- /dev/null +++ b/examples/storage/v1beta2/hpccache.yaml @@ -0,0 +1,18 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: storagecache.azure.upbound.io/v1beta2 +kind: HPCCache +metadata: + annotations: + meta.upbound.io/example-id: storagecache/v1beta2/hpccache + name: example2 +spec: + forProvider: + cacheSizeInGb: 3072 + location: West Europe + resourceGroupNameRef: + name: example-resources + skuName: Standard_2G + subnetId: /subscriptions/038f2b7c-3265-43b8-8624-c9ad5da610a8/resourceGroups/example-resources/providers/Microsoft.Network/virtualNetworks/deletemepls/subnets/default diff --git a/examples/storage/v1beta2/managementpolicy.yaml b/examples/storage/v1beta2/managementpolicy.yaml new file mode 100644 index 000000000..a5e902a9a --- /dev/null +++ b/examples/storage/v1beta2/managementpolicy.yaml @@ -0,0 +1,87 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: ManagementPolicy +metadata: + annotations: + meta.upbound.io/example-id: storage/v1beta2/managementpolicy + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + rule: + - actions: + baseBlob: + deleteAfterDaysSinceModificationGreaterThan: 100 + tierToArchiveAfterDaysSinceModificationGreaterThan: 50 + tierToCoolAfterDaysSinceModificationGreaterThan: 10 + snapshot: + deleteAfterDaysSinceCreationGreaterThan: 30 + enabled: true + filters: + blobTypes: + - blockBlob + prefixMatch: + - container1/prefix1 + name: rule1 + - actions: + baseBlob: + deleteAfterDaysSinceModificationGreaterThan: 101 + tierToArchiveAfterDaysSinceModificationGreaterThan: 51 + tierToCoolAfterDaysSinceModificationGreaterThan: 11 + snapshot: + changeTierToArchiveAfterDaysSinceCreation: 90 + changeTierToCoolAfterDaysSinceCreation: 23 + deleteAfterDaysSinceCreationGreaterThan: 31 + version: + changeTierToArchiveAfterDaysSinceCreation: 9 + changeTierToCoolAfterDaysSinceCreation: 90 + deleteAfterDaysSinceCreation: 3 + enabled: false + filters: + blobTypes: + - blockBlob + prefixMatch: + - container2/prefix1 + - container2/prefix2 + name: rule2 + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: storage/v1beta1/managementpolicy + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: storage/v1beta2/managementpolicy + labels: + testing.upbound.io/example-name: example + name: managementpolicy +spec: + forProvider: + accountKind: BlobStorage + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/streamanalytics/v1beta2/analyticsfunctionjavascriptuda.yaml b/examples/streamanalytics/v1beta2/analyticsfunctionjavascriptuda.yaml new file mode 100644 index 000000000..22c7f3590 --- /dev/null +++ b/examples/streamanalytics/v1beta2/analyticsfunctionjavascriptuda.yaml @@ -0,0 +1,79 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: FunctionJavascriptUda +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/functionjavascriptuda + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + input: + - type: bigint + output: + type: bigint + script: | + function main() { + this.init = function () { + this.state = 0; + } + + this.accumulate = function (value, timestamp) { + this.state += value; + } + + this.computeResult = function () { + return this.state; + } + } + streamAnalyticsJobIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/functionjavascriptuda + labels: + testing.upbound.io/example-name: example + name: example-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/functionjavascriptuda + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/streamanalytics/v1beta2/job.yaml b/examples/streamanalytics/v1beta2/job.yaml new file mode 100644 index 000000000..2d312a11a --- /dev/null +++ b/examples/streamanalytics/v1beta2/job.yaml @@ -0,0 +1,45 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/job + labels: + testing.upbound.io/example-name: example + name: example-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/job + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/streamanalytics/v1beta2/outputblob.yaml b/examples/streamanalytics/v1beta2/outputblob.yaml new file mode 100644 index 000000000..30c89ee78 --- /dev/null +++ b/examples/streamanalytics/v1beta2/outputblob.yaml @@ -0,0 +1,122 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: OutputBlob +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputblob + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + dateFormat: yyyy-MM-dd + pathPattern: some-pattern + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serialization: + encoding: UTF8 + fieldDelimiter: ',' + type: Csv + storageAccountKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageContainerNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamAnalyticsJobNameSelector: + matchLabels: + testing.upbound.io/example-name: example + timeFormat: HH + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputblob + labels: + testing.upbound.io/example-name: example + name: exampleupboundstblob +spec: + forProvider: + accountKind: StorageV2 + accountReplicationType: LRS + accountTier: Standard + isHnsEnabled: true + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputblob + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerAccessType: private + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputblob + labels: + testing.upbound.io/example-name: example + name: example-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/outputblob + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples/streamanalytics/v1beta2/outputeventhub.yaml b/examples/streamanalytics/v1beta2/outputeventhub.yaml new file mode 100644 index 000000000..c18c1793a --- /dev/null +++ b/examples/streamanalytics/v1beta2/outputeventhub.yaml @@ -0,0 +1,126 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: OutputEventHub +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputeventhub + labels: + testing.upbound.io/example-name: outputeventhubexample + name: outputeventhubexample +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: outputeventhub-eh + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: outputeventhub-rg + serialization: + type: Avro + servicebusNamespaceSelector: + matchLabels: + testing.upbound.io/example-name: outputeventhub-ns + sharedAccessPolicyKeySecretRef: + key: example-key + name: example-name + namespace: upbound-system + sharedAccessPolicyName: RootManageSharedAccessKey + streamAnalyticsJobName: outputeventhub-job + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta2 +kind: EventHub +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputeventhub + labels: + testing.upbound.io/example-name: outputeventhub-eh + name: outputeventhub-eh +spec: + forProvider: + messageRetention: 1 + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: outputeventhub-ns + partitionCount: 2 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: outputeventhub-rg + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta2 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputeventhub + labels: + testing.upbound.io/example-name: outputeventhub-ns + name: outputeventhub-ns +spec: + forProvider: + capacity: 1 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: outputeventhub-rg + sku: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/outputeventhub + labels: + testing.upbound.io/example-name: outputeventhub-rg + name: outputeventhub-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: v1 +data: + example-key: dGVzdFBhc3N3b3JkMTIzIQ== +kind: Secret +metadata: + name: example-name + namespace: upbound-system +type: Opaque + +--- + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputeventhub + labels: + testing.upbound.io/example-name: outputeventhub-job + name: outputeventhub-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: outputeventhub-rg + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] diff --git a/examples/streamanalytics/v1beta2/outputservicebusqueue.yaml b/examples/streamanalytics/v1beta2/outputservicebusqueue.yaml new file mode 100644 index 000000000..f4525b5d9 --- /dev/null +++ b/examples/streamanalytics/v1beta2/outputservicebusqueue.yaml @@ -0,0 +1,141 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: OutputServiceBusQueue +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputservicebusqueue + upjet.upbound.io/manual-intervention: Long-running resource. + labels: + testing.upbound.io/example-name: example + name: queueexample +spec: + forProvider: + name: blob-storage-output + queueNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serialization: + encoding: UTF8 + format: Array + type: Json + servicebusNamespaceSelector: + matchLabels: + testing.upbound.io/example-name: example + sharedAccessPolicyKeySecretRef: + key: default_primary_key + name: example-servicebus-namespace + namespace: upbound-system + sharedAccessPolicyName: RootManageSharedAccessKey + streamAnalyticsJobNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: v1 +data: + default_primary_key: key1 +kind: Secret +metadata: + annotations: + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-queue.sh + name: example-servicebus-namespace + namespace: upbound-system +type: Opaque + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/outputservicebusqueue + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + labels: + testing.upbound.io/example-name: example + name: queueexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: servicebus.azure.upbound.io/v1beta2 +kind: ServiceBusNamespace +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputservicebusqueue + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + labels: + testing.upbound.io/example-name: example + name: sbqueueexample +spec: + forProvider: + capacity: 1 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Premium + +--- + +apiVersion: servicebus.azure.upbound.io/v1beta1 +kind: Queue +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputservicebusqueue + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + labels: + testing.upbound.io/example-name: example + name: queueexample +spec: + forProvider: + enablePartitioning: false + maxMessageSizeInKilobytes: 1024 + namespaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputservicebusqueue + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + labels: + testing.upbound.io/example-name: example + name: example-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] diff --git a/examples/streamanalytics/v1beta2/outputservicebustopic.yaml b/examples/streamanalytics/v1beta2/outputservicebustopic.yaml new file mode 100644 index 000000000..766012c90 --- /dev/null +++ b/examples/streamanalytics/v1beta2/outputservicebustopic.yaml @@ -0,0 +1,143 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: OutputServiceBusTopic +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputservicebustopic + upjet.upbound.io/manual-intervention: Long-running resource. + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + name: blob-storage-output + propertyColumns: + - col1 + - col2 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serialization: + encoding: UTF8 + format: Array + type: Json + servicebusNamespaceSelector: + matchLabels: + testing.upbound.io/example-name: example + sharedAccessPolicyKeySecretRef: + key: default_primary_key + name: example-servicebus-namespace + namespace: upbound-system + sharedAccessPolicyName: RootManageSharedAccessKey + streamAnalyticsJobNameSelector: + matchLabels: + testing.upbound.io/example-name: example + topicNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: v1 +data: + default_primary_key: key1 +kind: Secret +metadata: + annotations: + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-topic.sh + name: example-servicebus-namespace + namespace: upbound-system +type: Opaque + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/outputservicebustopic + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + labels: + testing.upbound.io/example-name: example + name: stopicexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: servicebus.azure.upbound.io/v1beta2 +kind: ServiceBusNamespace +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputservicebustopic + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + labels: + testing.upbound.io/example-name: example + name: stopicexample +spec: + forProvider: + capacity: 1 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Premium + +--- + +apiVersion: servicebus.azure.upbound.io/v1beta1 +kind: Topic +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputservicebustopic + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + labels: + testing.upbound.io/example-name: example + name: stopicexample +spec: + forProvider: + enablePartitioning: false + namespaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/outputservicebustopic + upjet.upbound.io/manual-intervention: The dependent is a long-running resource + and has manual-intervention annotation. + labels: + testing.upbound.io/example-name: example + name: example-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] diff --git a/examples/streamanalytics/v1beta2/referenceinputblob.yaml b/examples/streamanalytics/v1beta2/referenceinputblob.yaml new file mode 100644 index 000000000..f38f5d06b --- /dev/null +++ b/examples/streamanalytics/v1beta2/referenceinputblob.yaml @@ -0,0 +1,130 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: ReferenceInputBlob +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/referenceinputblob + labels: + testing.upbound.io/example-name: test + name: refinputblob +spec: + forProvider: + dateFormat: yyyy/MM/dd + name: refinputblob + pathPattern: some-random-pattern + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serialization: + encoding: UTF8 + type: Json + storageAccountKeySecretRef: + key: primary_access_key + name: example-storage-account + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageContainerNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamAnalyticsJobNameSelector: + matchLabels: + testing.upbound.io/example-name: example + timeFormat: HH + +--- + +apiVersion: v1 +data: + primary_access_key: key1 +kind: Secret +metadata: + annotations: + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-reference.sh + name: example-storage-account + namespace: upbound-system +type: Opaque + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/referenceinputblob + labels: + testing.upbound.io/example-name: example + name: refinputblob +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/referenceinputblob + labels: + testing.upbound.io/example-name: example + name: refinputblob +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/referenceinputblob + labels: + testing.upbound.io/example-name: example + name: refinputblob +spec: + forProvider: + containerAccessType: private + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/referenceinputblob + labels: + testing.upbound.io/example-name: example + name: example-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] diff --git a/examples/streamanalytics/v1beta2/streaminputblob.yaml b/examples/streamanalytics/v1beta2/streaminputblob.yaml new file mode 100644 index 000000000..0cb1b70c7 --- /dev/null +++ b/examples/streamanalytics/v1beta2/streaminputblob.yaml @@ -0,0 +1,130 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: StreamInputBlob +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputblob + labels: + testing.upbound.io/example-name: example + name: snputblob +spec: + forProvider: + dateFormat: yyyy/MM/dd + name: snputblob + pathPattern: some-random-pattern + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serialization: + encoding: UTF8 + type: Json + storageAccountKeySecretRef: + key: primary_access_key + name: example-storage-account + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + storageContainerNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamAnalyticsJobNameSelector: + matchLabels: + testing.upbound.io/example-name: example + timeFormat: HH + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/streaminputblob + labels: + testing.upbound.io/example-name: example + name: snputblob +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputblob + labels: + testing.upbound.io/example-name: example + name: snputblob +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputblob + labels: + testing.upbound.io/example-name: example + name: snputblob +spec: + forProvider: + containerAccessType: private + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: v1 +data: + primary_access_key: key1 +kind: Secret +metadata: + annotations: + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-stream.sh + name: example-storage-account + namespace: upbound-system +type: Opaque + +--- + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputblob + labels: + testing.upbound.io/example-name: example + name: example-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] diff --git a/examples/streamanalytics/v1beta2/streaminputeventhub.yaml b/examples/streamanalytics/v1beta2/streaminputeventhub.yaml new file mode 100644 index 000000000..5a4147572 --- /dev/null +++ b/examples/streamanalytics/v1beta2/streaminputeventhub.yaml @@ -0,0 +1,157 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: StreamInputEventHub +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputeventhub + labels: + testing.upbound.io/example-name: example + name: ehubexample +spec: + forProvider: + eventhubConsumerGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + name: ehubexample + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serialization: + encoding: UTF8 + type: Json + servicebusNamespaceSelector: + matchLabels: + testing.upbound.io/example-name: example + sharedAccessPolicyKeySecretRef: + key: default_primary_key + name: example-eventhub-namespace + namespace: upbound-system + sharedAccessPolicyName: RootManageSharedAccessKey + streamAnalyticsJobNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: v1 +data: + default_primary_key: key1 +kind: Secret +metadata: + annotations: + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-srteam-hub.sh + name: example-eventhub-namespace + namespace: upbound-system +type: Opaque + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta2 +kind: EventHub +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputeventhub + labels: + testing.upbound.io/example-name: example + name: ehubexample +spec: + forProvider: + messageRetention: 1 + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionCount: 2 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: ConsumerGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputeventhub + labels: + testing.upbound.io/example-name: example + name: ehubexample +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta2 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputeventhub + labels: + testing.upbound.io/example-name: example + name: ehubexample +spec: + forProvider: + capacity: 1 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/streaminputeventhub + labels: + testing.upbound.io/example-name: example + name: ehubexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputeventhub + labels: + testing.upbound.io/example-name: example + name: example-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] diff --git a/examples/streamanalytics/v1beta2/streaminputiothub.yaml b/examples/streamanalytics/v1beta2/streaminputiothub.yaml new file mode 100644 index 000000000..8206f46ad --- /dev/null +++ b/examples/streamanalytics/v1beta2/streaminputiothub.yaml @@ -0,0 +1,175 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: StreamInputIOTHub +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputiothub + labels: + testing.upbound.io/example-name: example + name: iotexample +spec: + forProvider: + endpoint: messages/events + eventhubConsumerGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + iothubNamespaceSelector: + matchLabels: + testing.upbound.io/example-name: example + name: iotexample + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + serialization: + encoding: UTF8 + type: Json + sharedAccessPolicyKeySecretRef: + key: primary_key + name: example-iothub + namespace: upbound-system + sharedAccessPolicyName: iothubowner + streamAnalyticsJobNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: v1 +data: + primary_key: key1 +kind: Secret +metadata: + annotations: + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-iot-hub.sh + name: example-iothub + namespace: upbound-system +type: Opaque + +--- + +apiVersion: devices.azure.upbound.io/v1beta2 +kind: IOTHub +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputiothub + labels: + testing.upbound.io/example-name: example + name: iotexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: + capacity: 1 + name: S1 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta1/streaminputiothub + labels: + testing.upbound.io/example-name: example + name: iotexample +spec: + forProvider: + location: West Europe + +--- + +apiVersion: streamanalytics.azure.upbound.io/v1beta2 +kind: Job +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputiothub + labels: + testing.upbound.io/example-name: example + name: example-job +spec: + forProvider: + compatibilityLevel: "1.2" + dataLocale: en-GB + eventsLateArrivalMaxDelayInSeconds: 60 + eventsOutOfOrderMaxDelayInSeconds: 50 + eventsOutOfOrderPolicy: Adjust + location: West Europe + outputErrorPolicy: Drop + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + streamingUnits: 3 + tags: + environment: example + transformationQuery: |2 + SELECT * + INTO [YourOutputAlias] + FROM [YourInputAlias] + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta2 +kind: EventHub +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputiothub + labels: + testing.upbound.io/example-name: example + name: iotexample +spec: + forProvider: + messageRetention: 1 + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + partitionCount: 2 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta1 +kind: ConsumerGroup +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputiothub + labels: + testing.upbound.io/example-name: example + name: iotexample +spec: + forProvider: + eventhubNameSelector: + matchLabels: + testing.upbound.io/example-name: example + namespaceNameSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: eventhub.azure.upbound.io/v1beta2 +kind: EventHubNamespace +metadata: + annotations: + meta.upbound.io/example-id: streamanalytics/v1beta2/streaminputiothub + labels: + testing.upbound.io/example-name: example + name: iotexample +spec: + forProvider: + capacity: 1 + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + sku: Standard diff --git a/examples/synapse/v1beta2/linkedservice.yaml b/examples/synapse/v1beta2/linkedservice.yaml new file mode 100644 index 000000000..f686ba1fc --- /dev/null +++ b/examples/synapse/v1beta2/linkedservice.yaml @@ -0,0 +1,137 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: LinkedService +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/linkedservice + upjet.upbound.io/manual-intervention: This resource requires manual intervention + for connectionString + labels: + testing.upbound.io/example-name: example + name: linkedservice +spec: + forProvider: + integrationRuntime: + nameSelector: + matchLabels: + testing.upbound.io/example-name: integrationruntime-label + synapseWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: linkedservice-ws-label + type: AzureBlobStorage + typePropertiesJson: | + { + "connectionString": "DefaultEndpointsProtocol=https;AccountName=linkedserviceaccounta;AccountKey=pSdrpZkn9ezkh7Mjkcnj66tTGN38FwJzB/s6zAx7WFwH6Ru0EyTxQUwDbPWdF2vS1rBXX6/YyQtE+AStEl/5Aw==;EndpointSuffix=core.windows.net" + } + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta1/linkedservice + labels: + testing.upbound.io/example-name: linkedservice-rg-label + name: linkedservice-rg +spec: + forProvider: + location: West India + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/linkedservice + labels: + testing.upbound.io/example-name: account-label + name: linkedserviceaccounta +spec: + forProvider: + accountKind: BlobStorage + accountReplicationType: LRS + accountTier: Standard + location: West India + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linkedservice-rg-label + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: DataLakeGen2FileSystem +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/linkedservice + labels: + testing.upbound.io/example-name: file-system-label + name: file-system +spec: + forProvider: + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: account-label + +--- + +apiVersion: synapse.azure.upbound.io/v1beta1 +kind: FirewallRule +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/linkedservice + labels: + testing.upbound.io/example-name: firewallrule-label + name: firewallrule +spec: + forProvider: + endIpAddress: 255.255.255.255 + startIpAddress: 0.0.0.0 + synapseWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: linkedservice-ws-label + +--- + +apiVersion: synapse.azure.upbound.io/v1beta1 +kind: IntegrationRuntimeAzure +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/linkedservice + labels: + testing.upbound.io/example-name: integrationruntime-label + name: integrationruntime +spec: + forProvider: + location: West Europe + synapseWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: linkedservice-ws-label + +--- + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/linkedservice + labels: + testing.upbound.io/example-name: linkedservice-ws-label + name: linkedservice-ws +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + managedVirtualNetworkEnabled: true + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linkedservice-rg-label + sqlAdministratorLogin: sqladminuser + storageDataLakeGen2FilesystemIdSelector: + matchLabels: + testing.upbound.io/example-name: file-system-label diff --git a/examples/synapse/v1beta2/sparkpool.yaml b/examples/synapse/v1beta2/sparkpool.yaml new file mode 100644 index 000000000..6bb2df9b3 --- /dev/null +++ b/examples/synapse/v1beta2/sparkpool.yaml @@ -0,0 +1,101 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: SparkPool +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/sparkpool + labels: + testing.upbound.io/example-name: example + name: sparkpool +spec: + forProvider: + autoPause: + delayInMinutes: 15 + autoScale: + maxNodeCount: 5 + minNodeCount: 3 + cacheSize: 100 + nodeSize: Small + nodeSizeFamily: MemoryOptimized + synapseWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: sparkpool-synapse-ws-label + tags: + ENV: Production + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/sparkpool + labels: + testing.upbound.io/example-name: account-label + name: accountqwertynameabcde +spec: + forProvider: + accountKind: StorageV2 + accountReplicationType: LRS + accountTier: Standard + isHnsEnabled: true + location: East US 2 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: security-alert-resource-group-label + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: DataLakeGen2FileSystem +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/sparkpool + labels: + testing.upbound.io/example-name: file-system-label + name: file-system +spec: + forProvider: + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: account-label + +--- + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/sparkpool + labels: + testing.upbound.io/example-name: sparkpool-synapse-ws-label + name: sparkpool-synapse-ws-1234 +spec: + forProvider: + identity: + type: SystemAssigned + location: East US 2 + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: security-alert-resource-group-label + sqlAdministratorLogin: sqladminuser + storageDataLakeGen2FilesystemIdSelector: + matchLabels: + testing.upbound.io/example-name: file-system-label + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta1/sparkpool + labels: + testing.upbound.io/example-name: security-alert-resource-group-label + name: security-alert-resource-group-rg +spec: + forProvider: + location: East US 2 diff --git a/examples/synapse/v1beta2/sqlpool.yaml b/examples/synapse/v1beta2/sqlpool.yaml new file mode 100644 index 000000000..caafa58f7 --- /dev/null +++ b/examples/synapse/v1beta2/sqlpool.yaml @@ -0,0 +1,93 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: SQLPool +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/sqlpool + labels: + testing.upbound.io/example-name: sqlpool-label + name: sqlpool +spec: + forProvider: + createMode: Default + skuName: DW100c + synapseWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: sqlkpool-synapse-ws-label + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta1/sqlpool + labels: + testing.upbound.io/example-name: security-alert-resource-group-label + name: security-alert-resource-group-rg +spec: + forProvider: + location: South Central US + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/sqlpool + labels: + testing.upbound.io/example-name: account-label + name: accountnameabcdef +spec: + forProvider: + accountKind: StorageV2 + accountReplicationType: LRS + accountTier: Standard + isHnsEnabled: true + location: South Central US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: security-alert-resource-group-label + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: DataLakeGen2FileSystem +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/sqlpool + labels: + testing.upbound.io/example-name: file-system-label + name: file-system +spec: + forProvider: + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: account-label + +--- + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/sqlpool + labels: + testing.upbound.io/example-name: sqlkpool-synapse-ws-label + name: sqlpool-synapse-ws-12345 +spec: + forProvider: + identity: + type: SystemAssigned + location: South Central US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: security-alert-resource-group-label + sqlAdministratorLogin: sqladminuser + storageDataLakeGen2FilesystemIdSelector: + matchLabels: + testing.upbound.io/example-name: file-system-label diff --git a/examples/synapse/v1beta2/workspace.yaml b/examples/synapse/v1beta2/workspace.yaml new file mode 100644 index 000000000..5745cb3ae --- /dev/null +++ b/examples/synapse/v1beta2/workspace.yaml @@ -0,0 +1,75 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspace + labels: + testing.upbound.io/example-name: example + name: synapse-workspace-123 +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: synapse-resource-group-label + sqlAdministratorLogin: sqladminuser + storageDataLakeGen2FilesystemIdSelector: + matchLabels: + testing.upbound.io/example-name: file-system-label + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta1/workspace + labels: + testing.upbound.io/example-name: synapse-resource-group-label + name: synapse-resource-group +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspace + labels: + testing.upbound.io/example-name: account-label + name: synapseaccountname1234 +spec: + forProvider: + accountKind: StorageV2 + accountReplicationType: LRS + accountTier: Standard + isHnsEnabled: true + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: synapse-resource-group-label + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: DataLakeGen2FileSystem +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspace + labels: + testing.upbound.io/example-name: file-system-label + name: file-system +spec: + forProvider: + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: account-label diff --git a/examples/synapse/v1beta2/workspacevulnerabilityassessment.yaml b/examples/synapse/v1beta2/workspacevulnerabilityassessment.yaml new file mode 100644 index 000000000..fddd8f23f --- /dev/null +++ b/examples/synapse/v1beta2/workspacevulnerabilityassessment.yaml @@ -0,0 +1,161 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: WorkspaceVulnerabilityAssessment +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspacevulnerabilityassessment + upjet.upbound.io/manual-intervention: storageContainerPath cannot be obtained + and need to be hardcoded + labels: + testing.upbound.io/example-name: example + name: wsvulnerabilityassessment +spec: + forProvider: + recurringScans: + emailSubscriptionAdminsEnabled: true + emails: + - email@example1.com + - email@example2.com + enabled: true + storageContainerPath: ${azurerm_storage_account.example.primary_blob_endpoint}${azurerm_storage_container.example.name}/ + workspaceSecurityAlertPolicyIdSelector: + matchLabels: + testing.upbound.io/example-name: securityalertpolicy-label + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta1/workspacevulnerabilityassessment + labels: + testing.upbound.io/example-name: ws-vulnerability-rg-label + name: ws-vulnerability-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspacevulnerabilityassessment + labels: + testing.upbound.io/example-name: audit_logs + name: assessmentaccountabc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: ws-vulnerability-rg-label + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspacevulnerabilityassessment + labels: + testing.upbound.io/example-name: account-example-label + name: assessmentaccountexample +spec: + forProvider: + accountKind: StorageV2 + accountReplicationType: LRS + accountTier: Standard + isHnsEnabled: true + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: ws-vulnerability-rg-label + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Container +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspacevulnerabilityassessment + labels: + testing.upbound.io/example-name: container-label + name: containerabc +spec: + forProvider: + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: account-example-label + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: DataLakeGen2FileSystem +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspacevulnerabilityassessment + labels: + testing.upbound.io/example-name: file-system-label + name: file-system +spec: + forProvider: + storageAccountIdSelector: + matchLabels: + testing.upbound.io/example-name: account-example-label + +--- + +apiVersion: synapse.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspacevulnerabilityassessment + labels: + testing.upbound.io/example-name: assessment-ws-label + name: assessment-ws +spec: + forProvider: + identity: + type: SystemAssigned + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: ws-vulnerability-rg-label + sqlAdministratorLogin: sqladminuser + storageDataLakeGen2FilesystemIdSelector: + matchLabels: + testing.upbound.io/example-name: file-system-label + tags: + Env: production + +--- + +apiVersion: synapse.azure.upbound.io/v1beta1 +kind: WorkspaceSecurityAlertPolicy +metadata: + annotations: + meta.upbound.io/example-id: synapse/v1beta2/workspacevulnerabilityassessment + labels: + testing.upbound.io/example-name: securityalertpolicy-label + name: securityalertpolicyabc +spec: + forProvider: + disabledAlerts: + - Sql_Injection + - Data_Exfiltration + policyState: Enabled + retentionDays: 0 + storageEndpointSelector: + matchLabels: + testing.upbound.io/example-name: audit_logs + synapseWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: assessment-ws-label diff --git a/examples/timeseriesinsights/v1beta2/gen2environment.yaml b/examples/timeseriesinsights/v1beta2/gen2environment.yaml new file mode 100644 index 000000000..d922c9b2e --- /dev/null +++ b/examples/timeseriesinsights/v1beta2/gen2environment.yaml @@ -0,0 +1,74 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: timeseriesinsights.azure.upbound.io/v1beta2 +kind: Gen2Environment +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta2/gen2environment + labels: + testing.upbound.io/example-name: example + name: gentwoenv +spec: + forProvider: + idProperties: + - id + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: gentwoenv-rg-label + skuName: L1 + storage: + keySecretRef: + key: example-key + name: example-secret + namespace: upbound-system + nameSelector: + matchLabels: + testing.upbound.io/example-name: storage-label + warmStoreDataRetentionTime: P30D + +--- + +apiVersion: v1 +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +stringData: + example-key: g2dpXyPOGUyevGjHsUdarVZgWJbxz3FQRF008866IMGnMGxSQgOXinjZSfBfvgIymD4YyUgUnn2oyP+AStgONd4A== +type: Opaque + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta1/gen2environment + labels: + testing.upbound.io/example-name: gentwoenv-rg-label + name: gentwoenv-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: timeseriesinsights/v1beta2/gen2environment + labels: + testing.upbound.io/example-name: storage-label + name: gentwoenvstorage +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: gentwoenv-rg-label diff --git a/examples/web/v1beta2/functionapp.yaml b/examples/web/v1beta2/functionapp.yaml new file mode 100644 index 000000000..fd75e8ec4 --- /dev/null +++ b/examples/web/v1beta2/functionapp.yaml @@ -0,0 +1,95 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: FunctionApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/functionapp + labels: + testing.upbound.io/example-name: funcappxmpl + name: funcappxmpl +spec: + forProvider: + appServicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: functionapp-sp + location: West Europe + name: fncappxmpl + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: functionapp-rg + siteConfig: {} + storageAccountAccessKeySecretRef: + key: example-key + name: example-name + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: funcnappstorage + +--- + +apiVersion: web.azure.upbound.io/v1beta2 +kind: AppServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/functionapp + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-function-app.sh + labels: + testing.upbound.io/example-name: functionapp-sp + name: functionapp-sp +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: functionapp-rg + sku: + size: S1 + tier: Standard + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/functionapp + labels: + testing.upbound.io/example-name: functionapp-rg + name: functionapp-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/functionapp + labels: + testing.upbound.io/example-name: funcnappstorage + name: funcnappstorage +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: functionapp-rg + +--- + +apiVersion: v1 +data: + example-key: dGVzdFBhc3N3b3JkMTIzIQ== +kind: Secret +metadata: + name: example-name + namespace: upbound-system +type: Opaque diff --git a/examples/web/v1beta2/functionappslot.yaml b/examples/web/v1beta2/functionappslot.yaml new file mode 100644 index 000000000..9cfe0352f --- /dev/null +++ b/examples/web/v1beta2/functionappslot.yaml @@ -0,0 +1,126 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: FunctionAppSlot +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/functionappslot + labels: + testing.upbound.io/example-name: examplefuncappslot + name: examplefuncappslot +spec: + forProvider: + appServicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: funcappslot-sp + functionAppNameSelector: + matchLabels: + testing.upbound.io/example-name: funcappnameexample + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: funcappslot-rg + siteConfig: {} + storageAccountAccessKeySecretRef: + key: example-key + name: example-name + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: funcappslotaccount + +--- + +apiVersion: web.azure.upbound.io/v1beta2 +kind: AppServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/functionappslot + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-function-app.sh + labels: + testing.upbound.io/example-name: funcappslot-sp + name: funcappslot-sp +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: funcappslot-rg + sku: + size: S1 + tier: Standard + +--- + +apiVersion: web.azure.upbound.io/v1beta2 +kind: FunctionApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/functionappslot + labels: + testing.upbound.io/example-name: funcappnameexample + name: funcappnameexample +spec: + forProvider: + appServicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: funcappslot-sp + location: West Europe + name: funcappnameexample + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: funcappslot-rg + siteConfig: {} + storageAccountAccessKeySecretRef: + key: example-key + name: example-name + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: funcappslotaccount + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/functionappslot + labels: + testing.upbound.io/example-name: funcappslot-rg + name: funcappslot-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/functionappslot + labels: + testing.upbound.io/example-name: funcappslotaccount + name: funcappslotaccount +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: funcappslot-rg + +--- + +apiVersion: v1 +data: + example-key: dGVzdFBhc3N3b3JkMTIzIQ== +kind: Secret +metadata: + name: example-name + namespace: upbound-system +type: Opaque diff --git a/examples/web/v1beta2/linuxfunctionapp.yaml b/examples/web/v1beta2/linuxfunctionapp.yaml new file mode 100644 index 000000000..090854a80 --- /dev/null +++ b/examples/web/v1beta2/linuxfunctionapp.yaml @@ -0,0 +1,86 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: LinuxFunctionApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxfunctionapp + labels: + testing.upbound.io/example-name: linuxappexmpl + name: linuxappexmpl +spec: + forProvider: + location: West Europe + name: linuxappexmpl + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncapp-rg + servicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncapp-sp + siteConfig: {} + storageAccountAccessKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncappacc + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/linuxfunctionapp + labels: + testing.upbound.io/example-name: linuxfuncapp-rg + name: linuxfuncapp-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: web.azure.upbound.io/v1beta1 +kind: ServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxfunctionapp + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-linux-func-app.sh + labels: + testing.upbound.io/example-name: linuxfuncapp-sp + name: linuxfuncapp-sp +spec: + forProvider: + location: West Europe + osType: Linux + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncapp-rg + skuName: Y1 + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxfunctionapp + labels: + testing.upbound.io/example-name: linuxfuncappacc + name: linuxfuncappacc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncapp-rg + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system diff --git a/examples/web/v1beta2/linuxfunctionappslot.yaml b/examples/web/v1beta2/linuxfunctionappslot.yaml new file mode 100644 index 000000000..f07c26eed --- /dev/null +++ b/examples/web/v1beta2/linuxfunctionappslot.yaml @@ -0,0 +1,106 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: LinuxFunctionAppSlot +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxfunctionappslot + labels: + testing.upbound.io/example-name: examplelinslot + name: examplelinslot +spec: + forProvider: + functionAppIdSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncnappslotapp + siteConfig: {} + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncnappslotacc + +--- + +apiVersion: web.azure.upbound.io/v1beta2 +kind: LinuxFunctionApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxfunctionappslot + labels: + testing.upbound.io/example-name: linuxfuncnappslotapp + name: linuxfuncnappslotapp +spec: + forProvider: + location: West Europe + name: linuxfuncnappslotapp + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncnappslot-rg + servicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncnappslot-sp + siteConfig: {} + storageAccountAccessKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncnappslotacc + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/linuxfunctionappslot + labels: + testing.upbound.io/example-name: linuxfuncnappslot-rg + name: linuxfuncnappslot-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: web.azure.upbound.io/v1beta1 +kind: ServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxfunctionappslot + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-linux-func-app.sh + labels: + testing.upbound.io/example-name: linuxfuncnappslot-sp + name: linuxfuncnappslot-sp +spec: + forProvider: + location: West Europe + osType: Linux + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncnappslot-rg + skuName: Y1 + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxfunctionappslot + labels: + testing.upbound.io/example-name: linuxfuncnappslotacc + name: linuxfuncnappslotacc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxfuncnappslot-rg + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system diff --git a/examples/web/v1beta2/linuxwebapp.yaml b/examples/web/v1beta2/linuxwebapp.yaml new file mode 100644 index 000000000..217cefd87 --- /dev/null +++ b/examples/web/v1beta2/linuxwebapp.yaml @@ -0,0 +1,56 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: LinuxWebApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxwebapp + labels: + testing.upbound.io/example-name: linuxappexample + name: linuxappexample +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxwebapp-rg + servicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: linuxwebapp-sp + siteConfig: {} + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/linuxwebapp + labels: + testing.upbound.io/example-name: linuxwebapp-rg + name: linuxwebapp-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: web.azure.upbound.io/v1beta1 +kind: ServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxwebapp + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-linux-app.sh + labels: + testing.upbound.io/example-name: linuxwebapp-sp + name: linuxwebapp-sp +spec: + forProvider: + location: West Europe + osType: Linux + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxwebapp-rg + skuName: P2v2 diff --git a/examples/web/v1beta2/linuxwebappslot.yaml b/examples/web/v1beta2/linuxwebappslot.yaml new file mode 100644 index 000000000..c37ed0fad --- /dev/null +++ b/examples/web/v1beta2/linuxwebappslot.yaml @@ -0,0 +1,74 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: LinuxWebAppSlot +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxwebappslot + labels: + testing.upbound.io/example-name: lnxappslotexample + name: lnxappslotexample +spec: + forProvider: + appServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: linuxwebappslot-lwa + name: lnxappslotexample + siteConfig: {} + +--- + +apiVersion: web.azure.upbound.io/v1beta2 +kind: LinuxWebApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxwebappslot + labels: + testing.upbound.io/example-name: linuxwebappslot-lwa + name: linuxwebappslot-lwa +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxwebappslot-rg + servicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: linuxwebappslot-sp + siteConfig: {} + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/linuxwebappslot + labels: + testing.upbound.io/example-name: linuxwebappslot-rg + name: linuxwebappslot-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: web.azure.upbound.io/v1beta1 +kind: ServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/linuxwebappslot + uptest.upbound.io/pre-delete-hook: ../testhooks/delete-linux-app.sh + labels: + testing.upbound.io/example-name: linuxwebappslot-sp + name: linuxwebappslot-sp +spec: + forProvider: + location: West Europe + osType: Linux + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: linuxwebappslot-rg + skuName: P1v2 diff --git a/examples/web/v1beta2/staticsite.yaml b/examples/web/v1beta2/staticsite.yaml new file mode 100644 index 000000000..9bbdcc694 --- /dev/null +++ b/examples/web/v1beta2/staticsite.yaml @@ -0,0 +1,33 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: StaticSite +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/staticsite + upjet.upbound.io/manual-intervention: Resource causes Uptest flaky results + labels: + testing.upbound.io/example-name: example + name: ssiteex +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: spring/v1beta1/staticsite + labels: + testing.upbound.io/example-name: example + name: ssiteex +spec: + forProvider: + location: West Europe diff --git a/examples/web/v1beta2/windowsfunctionapp.yaml b/examples/web/v1beta2/windowsfunctionapp.yaml new file mode 100644 index 000000000..9bca7b12d --- /dev/null +++ b/examples/web/v1beta2/windowsfunctionapp.yaml @@ -0,0 +1,96 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: WindowsFunctionApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowsfunctionapp + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example + name: windowsfunctionappnameaa +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: winfunctionapp-rg + servicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: winfunctionapp-sp + siteConfig: {} + storageAccountAccessKeySecretRef: + key: example-key + name: example-name + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: winfunctionappacc + +--- + +apiVersion: v1 +data: + example-key: bXJ06E6nNnr/j4kemUlz2B/n4MqILTG9MwQdIuXY4gQmillkI7nt5heqaYEDXH2JV2DG4lwwpK86+ASt2+ta+Q== +kind: Secret +metadata: + name: example-name + namespace: upbound-system +type: Opaque + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/windowsfunctionapp + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: winfunctionapp-rg + name: winfunctionapp-rg +spec: + forProvider: + location: East US + +--- + +apiVersion: web.azure.upbound.io/v1beta1 +kind: ServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowsfunctionapp + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: winfunctionapp-sp + name: winfunctionapp-rg +spec: + forProvider: + location: East US + osType: Windows + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: winfunctionapp-rg + skuName: S1 + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowsfunctionapp + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: winfunctionappacc + name: winfunctionappacc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: winfunctionapp-rg diff --git a/examples/web/v1beta2/windowsfunctionappslot.yaml b/examples/web/v1beta2/windowsfunctionappslot.yaml new file mode 100644 index 000000000..c8f53c846 --- /dev/null +++ b/examples/web/v1beta2/windowsfunctionappslot.yaml @@ -0,0 +1,117 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: WindowsFunctionAppSlot +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowsfunctionappslot + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: examplewinfuncappslot + name: examplewinfuncappslot +spec: + forProvider: + functionAppIdSelector: + matchLabels: + testing.upbound.io/example-name: winfuncappslot-wapp + siteConfig: {} + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: winfuncappslotacc + +--- + +apiVersion: web.azure.upbound.io/v1beta2 +kind: WindowsFunctionApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowsfunctionappslot + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: winfuncappslot-wapp + name: winfuncappslot-wapp +spec: + forProvider: + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: winfuncappslot-rg + servicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: winfuncappslot-sp + siteConfig: {} + storageAccountAccessKeySecretRef: + key: example-key + name: example-name + namespace: upbound-system + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: winfuncappslotacc + +--- + +apiVersion: v1 +data: + example-key: bXJ06E6nNnr/j4kemUlz2B/n4MqILTG9MwQdIuXY4gQmillkI7nt5heqaYEDXH2JV2DG4lwwpK86+ASt2+ta+Q== +kind: Secret +metadata: + name: example-name + namespace: upbound-system +type: Opaque + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/windowsfunctionappslot + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: winfuncappslot-rg + name: winfuncappslot-rg +spec: + forProvider: + location: East US + +--- + +apiVersion: web.azure.upbound.io/v1beta1 +kind: ServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowsfunctionappslot + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: winfuncappslot-sp + name: winfuncappslot-sp +spec: + forProvider: + location: East US + osType: Windows + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: winfuncappslot-rg + skuName: S1 + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowsfunctionappslot + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: winfuncappslotacc + name: winfuncappslotacc +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: East US + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: winfuncappslot-rg diff --git a/examples/web/v1beta2/windowswebapp.yaml b/examples/web/v1beta2/windowswebapp.yaml new file mode 100644 index 000000000..b5623a438 --- /dev/null +++ b/examples/web/v1beta2/windowswebapp.yaml @@ -0,0 +1,58 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: WindowsWebApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowswebapp + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example + name: windowswebappnamea +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + servicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: example + siteConfig: {} + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/windowswebapp + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: web.azure.upbound.io/v1beta1 +kind: ServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowswebapp + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + osType: Windows + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: P1v2 diff --git a/examples/web/v1beta2/windowswebappslot.yaml b/examples/web/v1beta2/windowswebappslot.yaml new file mode 100644 index 000000000..924ef293f --- /dev/null +++ b/examples/web/v1beta2/windowswebappslot.yaml @@ -0,0 +1,74 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: web.azure.upbound.io/v1beta2 +kind: WindowsWebAppSlot +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowswebappslot + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + appServiceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + siteConfig: {} + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta1/windowswebappslot + labels: + testing.upbound.io/example-name: example + name: slot-rg +spec: + forProvider: + location: West Europe + +--- + +apiVersion: web.azure.upbound.io/v1beta1 +kind: ServicePlan +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowswebappslot + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + osType: Windows + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + skuName: P1v2 + +--- + +apiVersion: web.azure.upbound.io/v1beta2 +kind: WindowsWebApp +metadata: + annotations: + meta.upbound.io/example-id: web/v1beta2/windowswebappslot + uptest.upbound.io/timeout: "3600" + labels: + testing.upbound.io/example-name: example + name: windowswebappname +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + servicePlanIdSelector: + matchLabels: + testing.upbound.io/example-name: example + siteConfig: {}