fix controller bug
diff --git a/test/app/consumer/deployment.yaml b/test/app/consumer/deployment.yaml
index 23409e7..86642c2 100644
--- a/test/app/consumer/deployment.yaml
+++ b/test/app/consumer/deployment.yaml
@@ -25,10 +25,11 @@
app: dubbo-samples-apiserver-consumer
template:
metadata:
+ annotations:
+ dubbo.io/xds-enable: enabled
labels:
app: dubbo-samples-apiserver-consumer
spec:
- serviceAccountName: dubbo-sa
containers:
- name: server
image: apache/dubbo-demo:dubbo-samples-apiserver-consumer_0.0.1
diff --git a/test/app/provider/deployment.yaml b/test/app/provider/deployment.yaml
index d67ed5e..52d34ab 100644
--- a/test/app/provider/deployment.yaml
+++ b/test/app/provider/deployment.yaml
@@ -25,10 +25,11 @@
app: dubbo-samples-apiserver-provider
template:
metadata:
+ annotations:
+ dubbo.io/xds-enable: enabled
labels:
app: dubbo-samples-apiserver-provider
spec:
- serviceAccountName: dubbo-sa
containers:
- name: server
image: apache/dubbo-demo:dubbo-samples-apiserver-provider_0.0.1
diff --git a/test/app/provider/serviceaccount.yaml b/test/app/provider/serviceaccount.yaml
deleted file mode 100644
index 83ec3a9..0000000
--- a/test/app/provider/serviceaccount.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-apiVersion: v1
-kind: Namespace
-metadata:
- name: dubbo-system
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
- namespace: dubbo-system
- name: dubbo-role
-rules:
- - apiGroups: [ "" ]
- resources: [ "pods" ]
- verbs: [ "get", "watch", "list", "update", "patch" ]
- - apiGroups: [ "", "service.dubbo.apache.org" ]
- resources: [ "services", "endpoints", "virtualservices", "destinationrules" ]
- verbs: [ "get", "watch", "list" ]
----
-apiVersion: v1
-kind: ServiceAccount
-metadata:
- name: dubbo-sa
- namespace: dubbo-system
----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
- name: dubbo-sa-bind
- namespace: dubbo-system
-roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: dubbo-role
-subjects:
- - kind: ServiceAccount
- name: dubbo-sa
\ No newline at end of file