# First create the namespace using Kubernetes provider
apiVersion: kubernetes.crossplane.io/v1alpha2
kind: Object
metadata:
  name: istio-system-namespace
  namespace: crossplane-system
spec:
  providerConfigRef:
    name: kubernetes-provider
  forProvider:
    manifest:
      apiVersion: v1
      kind: Namespace
      metadata:
        name: istio-system
---
# Then deploy Istio using Helm provider without createNamespace
apiVersion: helm.crossplane.io/v1beta1
kind: Release
metadata:
  name: istio-base
  namespace: crossplane-system
spec:
  providerConfigRef:
    name: helm-provider
  forProvider:
    chart:
      name: base
      repository: https://istio-release.storage.googleapis.com/charts
      version: 1.18.2
    namespace: istio-system
