fix k8s mode
diff --git a/test/control-plane/dubbo.io_conditionroutes.yaml b/test/control-plane/crds/dubbo.io_conditionroutes.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_conditionroutes.yaml
rename to test/control-plane/crds/dubbo.io_conditionroutes.yaml
diff --git a/test/control-plane/dubbo.io_dataplaneinsights.yaml b/test/control-plane/crds/dubbo.io_dataplaneinsights.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_dataplaneinsights.yaml
rename to test/control-plane/crds/dubbo.io_dataplaneinsights.yaml
diff --git a/test/control-plane/dubbo.io_dataplanes.yaml b/test/control-plane/crds/dubbo.io_dataplanes.yaml
similarity index 98%
rename from test/control-plane/dubbo.io_dataplanes.yaml
rename to test/control-plane/crds/dubbo.io_dataplanes.yaml
index 17c4922..8c22bdd 100644
--- a/test/control-plane/dubbo.io_dataplanes.yaml
+++ b/test/control-plane/crds/dubbo.io_dataplanes.yaml
@@ -14,7 +14,7 @@
listKind: DataplaneList
plural: dataplanes
singular: dataplane
- scope: Cluster
+ scope: Namespaced
versions:
- name: v1alpha1
schema:
diff --git a/test/control-plane/dubbo.io_datasources.yaml b/test/control-plane/crds/dubbo.io_datasources.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_datasources.yaml
rename to test/control-plane/crds/dubbo.io_datasources.yaml
diff --git a/test/control-plane/dubbo.io_dynamicconfigs.yaml b/test/control-plane/crds/dubbo.io_dynamicconfigs.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_dynamicconfigs.yaml
rename to test/control-plane/crds/dubbo.io_dynamicconfigs.yaml
diff --git a/test/control-plane/dubbo.io_mappings.yaml b/test/control-plane/crds/dubbo.io_mappings.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_mappings.yaml
rename to test/control-plane/crds/dubbo.io_mappings.yaml
diff --git a/test/control-plane/dubbo.io_meshes.yaml b/test/control-plane/crds/dubbo.io_meshes.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_meshes.yaml
rename to test/control-plane/crds/dubbo.io_meshes.yaml
diff --git a/test/control-plane/dubbo.io_meshinsights.yaml b/test/control-plane/crds/dubbo.io_meshinsights.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_meshinsights.yaml
rename to test/control-plane/crds/dubbo.io_meshinsights.yaml
diff --git a/test/control-plane/dubbo.io_metadata.yaml b/test/control-plane/crds/dubbo.io_metadata.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_metadata.yaml
rename to test/control-plane/crds/dubbo.io_metadata.yaml
diff --git a/test/control-plane/dubbo.io_secrets.yaml b/test/control-plane/crds/dubbo.io_secrets.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_secrets.yaml
rename to test/control-plane/crds/dubbo.io_secrets.yaml
diff --git a/test/control-plane/dubbo.io_servicenamemappings.yaml b/test/control-plane/crds/dubbo.io_servicenamemappings.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_servicenamemappings.yaml
rename to test/control-plane/crds/dubbo.io_servicenamemappings.yaml
diff --git a/test/control-plane/dubbo.io_tagroutes.yaml b/test/control-plane/crds/dubbo.io_tagroutes.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_tagroutes.yaml
rename to test/control-plane/crds/dubbo.io_tagroutes.yaml
diff --git a/test/control-plane/dubbo.io_zoneegresses.yaml b/test/control-plane/crds/dubbo.io_zoneegresses.yaml
similarity index 98%
rename from test/control-plane/dubbo.io_zoneegresses.yaml
rename to test/control-plane/crds/dubbo.io_zoneegresses.yaml
index a8a62d9..3437323 100644
--- a/test/control-plane/dubbo.io_zoneegresses.yaml
+++ b/test/control-plane/crds/dubbo.io_zoneegresses.yaml
@@ -14,7 +14,7 @@
listKind: ZoneEgressList
plural: zoneegresses
singular: zoneegress
- scope: Cluster
+ scope: Namespaced
versions:
- name: v1alpha1
schema:
diff --git a/test/control-plane/dubbo.io_zoneingresses.yaml b/test/control-plane/crds/dubbo.io_zoneegressinsights.yaml
similarity index 86%
copy from test/control-plane/dubbo.io_zoneingresses.yaml
copy to test/control-plane/crds/dubbo.io_zoneegressinsights.yaml
index ddadb94..ad7c88f 100644
--- a/test/control-plane/dubbo.io_zoneingresses.yaml
+++ b/test/control-plane/crds/dubbo.io_zoneegressinsights.yaml
@@ -4,17 +4,17 @@
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
- name: zoneingresses.dubbo.io
+ name: zoneegressinsights.dubbo.io
spec:
group: dubbo.io
names:
categories:
- dubbo
- kind: ZoneIngress
- listKind: ZoneIngressList
- plural: zoneingresses
- singular: zoneingress
- scope: Cluster
+ kind: ZoneEgressInsight
+ listKind: ZoneEgressInsightList
+ plural: zoneegressinsights
+ singular: zoneegressinsight
+ scope: Namespaced
versions:
- name: v1alpha1
schema:
@@ -43,7 +43,8 @@
metadata:
type: object
spec:
- description: Spec is the specification of the Dubbo ZoneIngress resource.
+ description: Spec is the specification of the Dubbo ZoneEgressInsight
+ resource.
x-kubernetes-preserve-unknown-fields: true
type: object
served: true
diff --git a/test/control-plane/dubbo.io_zoneingresses.yaml b/test/control-plane/crds/dubbo.io_zoneingresses.yaml
similarity index 98%
rename from test/control-plane/dubbo.io_zoneingresses.yaml
rename to test/control-plane/crds/dubbo.io_zoneingresses.yaml
index ddadb94..afc12c4 100644
--- a/test/control-plane/dubbo.io_zoneingresses.yaml
+++ b/test/control-plane/crds/dubbo.io_zoneingresses.yaml
@@ -14,7 +14,7 @@
listKind: ZoneIngressList
plural: zoneingresses
singular: zoneingress
- scope: Cluster
+ scope: Namespaced
versions:
- name: v1alpha1
schema:
diff --git a/test/control-plane/dubbo.io_zoneingressinsights.yaml b/test/control-plane/crds/dubbo.io_zoneingressinsights.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_zoneingressinsights.yaml
rename to test/control-plane/crds/dubbo.io_zoneingressinsights.yaml
diff --git a/test/control-plane/dubbo.io_zoneinsights.yaml b/test/control-plane/crds/dubbo.io_zoneinsights.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_zoneinsights.yaml
rename to test/control-plane/crds/dubbo.io_zoneinsights.yaml
diff --git a/test/control-plane/dubbo.io_zones.yaml b/test/control-plane/crds/dubbo.io_zones.yaml
similarity index 100%
rename from test/control-plane/dubbo.io_zones.yaml
rename to test/control-plane/crds/dubbo.io_zones.yaml