This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new 748f9299 [chore] update project and remove content (#700)
748f9299 is described below
commit 748f929909d877543b29adff6d53bcb3f37e43ec
Author: Jian Zhong <[email protected]>
AuthorDate: Sat May 3 01:13:13 2025 +0800
[chore] update project and remove content (#700)
---
hack/swagger/README.md | 8 +
hack/swagger/README_ZH.md | 9 --
manifests/charts/admin/templates/deployment.yaml | 4 +-
manifests/charts/admin/values.yaml | 43 +-----
.../register-discovery/nacos/values.yaml | 8 +-
mk/api.mk | 55 -------
mk/check.mk | 86 -----------
mk/dependencies/clang-format.sh | 29 ----
mk/dependencies/container-structure-test.sh | 25 ---
mk/dependencies/deps.lock | 1 -
mk/dependencies/etcd.sh | 24 ---
mk/dependencies/go-deps.sh | 73 ---------
mk/dependencies/go-deps.versions | 11 --
mk/dependencies/golangci-lint.sh | 17 --
mk/dependencies/hadolint.sh | 30 ----
mk/dependencies/helm.sh | 17 --
mk/dependencies/k3d.sh | 9 --
mk/dependencies/kind.sh | 18 ---
mk/dependencies/kubebuilder.sh | 28 ----
mk/dependencies/kubernetes.sh | 27 ----
mk/dependencies/protoc.sh | 35 -----
mk/dependencies/shellcheck.sh | 27 ----
mk/dev.mk | 76 ---------
mk/generate.mk | 135 ----------------
mk/run.mk | 16 --
tests/cert/tls.crt | 39 -----
tests/cert/tls.key | 44 ------
tests/cp/cp.yaml | 172 ---------------------
tests/cp/crds/dubbo.io_conditionroutes.yaml | 65 --------
tests/cp/crds/dubbo.io_dataplaneinsights.yaml | 65 --------
tests/cp/crds/dubbo.io_dataplanes.yaml | 65 --------
tests/cp/crds/dubbo.io_datasources.yaml | 65 --------
tests/cp/crds/dubbo.io_dynamicconfigs.yaml | 65 --------
tests/cp/crds/dubbo.io_mappings.yaml | 65 --------
tests/cp/crds/dubbo.io_meshes.yaml | 65 --------
tests/cp/crds/dubbo.io_meshinsights.yaml | 65 --------
tests/cp/crds/dubbo.io_metadata.yaml | 65 --------
tests/cp/crds/dubbo.io_secrets.yaml | 65 --------
tests/cp/crds/dubbo.io_servicenamemappings.yaml | 74 ---------
tests/cp/crds/dubbo.io_tagroutes.yaml | 65 --------
tests/cp/crds/dubbo.io_zoneegresses.yaml | 65 --------
tests/cp/crds/dubbo.io_zoneegressinsights.yaml | 66 --------
tests/cp/crds/dubbo.io_zoneingresses.yaml | 65 --------
tests/cp/crds/dubbo.io_zoneingressinsights.yaml | 66 --------
tests/cp/crds/dubbo.io_zoneinsights.yaml | 65 --------
tests/cp/crds/dubbo.io_zones.yaml | 65 --------
tests/dp/dp-bootstrap.yaml | 151 ------------------
tests/dp/dp.Dockerfile | 67 --------
tests/dp/dp/ingress.yaml | 22 ---
49 files changed, 17 insertions(+), 2470 deletions(-)
diff --git a/hack/swagger/README.md b/hack/swagger/README.md
new file mode 100644
index 00000000..7cbc9e74
--- /dev/null
+++ b/hack/swagger/README.md
@@ -0,0 +1,8 @@
+# Swaggo usage documentation
+
+- Document description https://github.com/swaggo/swag/blob/master/README.md
+- Sample code
https://github.com/swaggo/swag/blob/master/example/celler/controller/examples.go
+
+# Generate admin dashboard swagger documentation
+
+Execute `make admin-swagger` in the project root directory to generate
swagger.json in the hack/swagger directory
\ No newline at end of file
diff --git a/hack/swagger/README_ZH.md b/hack/swagger/README_ZH.md
deleted file mode 100644
index 1f9cfcfa..00000000
--- a/hack/swagger/README_ZH.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# swaggo 使用说明文档
-
-- 文档说明 https://github.com/swaggo/swag/blob/master/README_zh-CN.md
-- 样例代码
https://github.com/swaggo/swag/blob/master/example/celler/controller/examples.go
-
-# 生成 dubbo-admin swagger 文档
-
-在项目根目录下执行 `make dubbo-admin-swagger` 后即会在 hack/swagger 目录下生成 swagger.json
-
diff --git a/manifests/charts/admin/templates/deployment.yaml
b/manifests/charts/admin/templates/deployment.yaml
index 7b675b4a..80e114b6 100644
--- a/manifests/charts/admin/templates/deployment.yaml
+++ b/manifests/charts/admin/templates/deployment.yaml
@@ -35,8 +35,8 @@ spec:
serviceAccountName: admin-sa
containers:
- name: admin
- image: "{{ $admin.image }}:{{ $admin.tag }}"
- imagePullPolicy: "{{ $admin.imagePullPolicy }}"
+ image: "{{ $admin.image }}
+ imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8888
diff --git a/manifests/charts/admin/values.yaml
b/manifests/charts/admin/values.yaml
index 72b7f229..401f5cfb 100644
--- a/manifests/charts/admin/values.yaml
+++ b/manifests/charts/admin/values.yaml
@@ -14,51 +14,14 @@
# limitations under the License.
_internal_default_values_not_set:
- ## Number of replicas for the Deployment.
replicas: 1
image: mfordjody/gin-web-log
- tag: ""
- ## Image pull policy, available options are: Always, IfNotPresent, Never.
- imagePullPolicy: ~
resources:
limits:
- cpu: "512m"
+ cpu: "256m"
memory: "512Mi"
requests:
- cpu: "512m"
- memory: "512Mi"
-
- ## Whether to enable the csiDriver.
- csiDriver:
- enabled: false
-
- dubbo:
- mode: half
- remote:
- mode: zone # test
- store:
- traditional:
- configCenter: nacos://nacos:8848?username=nacos&password=nacos
- registry:
- address: nacos://nacos:8848?username=nacos&password=nacos
- metadataReport:
- address: nacos://nacos:8848?username=nacos&password=nacos
- admin:
- metric:
- application:
- baseURL:
http://grafana:3000/d/a0b114ca-edf7-4dfe-ac2c-34a4fc545fed/application
- instance:
- baseURL:
http://grafana:3000/d/dcf5defe-d198-4704-9edf-6520838880e9/instance
- service:
- baseURL:
http://grafana:3000/d/ec689613-b4a1-45b1-b8bd-9d557059f970/service
- trace:
- application:
- baseURL:
http://grafana:3000/d/e968a89b-f03d-42e3-8ad3-930ae815cb0f/application
- instance:
- baseURL:
http://grafana:3000/d/f5f48f75-13ec-489b-88ae-635ae38d8618/instance
- service:
- baseURL:
http://grafana:3000/d/b2e178fb-ada3-4d5e-9f54-de99e7f07662/service
- prometheus: http://kube-prometheus-prometheus.svc.cluster.local:9090
- grafana: http://grafana:3000/
\ No newline at end of file
+ cpu: "256m"
+ memory: "512Mi"
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
index 132dc0b1..91972a3b 100644
--- a/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
+++ b/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
@@ -14,11 +14,11 @@
# limitations under the License.
_internal_default_values_not_set:
- ## Whether to enable the nacos.
+ # Whether to enable the nacos.
enabled: false
- ## Specifies the mode in which nacos is running (standalone, cluster, etc.).
+ # Specifies the mode in which nacos is running (standalone, cluster, etc.).
mode: ""
- ## Number of replicas for the Deployment.
+ # Number of replicas for the Deployment.
replicas: 1
# Deploy the required container images.
image: nacos/nacos-server
@@ -27,7 +27,7 @@ _internal_default_values_not_set:
requests:
cpu: 500m
memory: 1Gi
-
+ # Define the way to store Nacos data.
storage:
# Specifies the storage type (embedded, mysql, etc.).
type: ""
diff --git a/mk/api.mk b/mk/api.mk
deleted file mode 100644
index d769b405..00000000
--- a/mk/api.mk
+++ /dev/null
@@ -1,55 +0,0 @@
-
-#
-# Re-usable snippets
-#
-
-go_import_mapping_entries := \
-
envoy/annotations/deprecation.proto=github.com/envoyproxy/go-control-plane/envoy/annotations
\
-
envoy/api/v2/core/address.proto=github.com/envoyproxy/go-control-plane/envoy/api/v2/core
\
-
envoy/api/v2/core/backoff.proto=github.com/envoyproxy/go-control-plane/envoy/api/v2/core
\
-
envoy/api/v2/core/base.proto=github.com/envoyproxy/go-control-plane/envoy/api/v2/core
\
-
envoy/api/v2/core/http_uri.proto=github.com/envoyproxy/go-control-plane/envoy/api/v2/core
\
-
envoy/api/v2/core/http_uri.proto=github.com/envoyproxy/go-control-plane/envoy/api/v2/core
\
-
envoy/api/v2/core/socket_option.proto=github.com/envoyproxy/go-control-plane/envoy/api/v2/core
\
-
envoy/api/v2/discovery.proto=github.com/envoyproxy/go-control-plane/envoy/api/v2
\
-
envoy/config/core/v3/address.proto=github.com/envoyproxy/go-control-plane/envoy/config/core/v3
\
-
envoy/config/core/v3/backoff.proto=github.com/envoyproxy/go-control-plane/envoy/config/core/v3
\
-
envoy/config/core/v3/base.proto=github.com/envoyproxy/go-control-plane/envoy/config/core/v3
\
-
envoy/config/core/v3/http_uri.proto=github.com/envoyproxy/go-control-plane/envoy/config/core/v3
\
-
envoy/config/core/v3/socket_option.proto=github.com/envoyproxy/go-control-plane/envoy/config/core/v3
\
-
envoy/service/discovery/v3/discovery.proto=github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3
\
-
envoy/type/http_status.proto=github.com/envoyproxy/go-control-plane/envoy/type \
-
envoy/type/percent.proto=github.com/envoyproxy/go-control-plane/envoy/type \
-
envoy/type/semantic_version.proto=github.com/envoyproxy/go-control-plane/envoy/type
\
-
envoy/type/v3/percent.proto=github.com/envoyproxy/go-control-plane/envoy/type/v3
\
-
envoy/type/v3/semantic_version.proto=github.com/envoyproxy/go-control-plane/envoy/type/v3
\
- google/protobuf/any.proto=google.golang.org/protobuf/types/known/anypb \
-
google/protobuf/duration.proto=google.golang.org/protobuf/types/known/durationpb
\
-
google/protobuf/struct.proto=google.golang.org/protobuf/types/known/structpb \
-
google/protobuf/timestamp.proto=google.golang.org/protobuf/types/known/timestamppb
\
-
google/protobuf/wrappers.proto=google.golang.org/protobuf/types/known/wrapperspb
\
- udpa/annotations/migrate.proto=github.com/cncf/udpa/go/udpa/annotations
\
- udpa/annotations/status.proto=github.com/cncf/udpa/go/udpa/annotations \
-
udpa/annotations/versioning.proto=github.com/cncf/udpa/go/udpa/annotations \
- xds/core/v3/context_params.proto=github.com/cncf/udpa/go/xds/core/v3
-
-# see https://makefiletutorial.com/
-comma := ,
-empty:=
-space := $(empty) $(empty)
-
-go_mapping_with_spaces := $(foreach
entry,$(go_import_mapping_entries),M$(entry),)
-go_mapping := $(subst $(space),$(empty),$(go_mapping_with_spaces))
-
-PROTOC := $(PROTOC_BIN) \
- --proto_path=$(PROTOS_DEPS_PATH) \
- --proto_path=$(DUBBO_DIR) \
- --proto_path=.
-
-PROTOC_GO := $(PROTOC) \
- --plugin=protoc-gen-go=$(PROTOC_GEN_GO) \
- --plugin=protoc-gen-go-grpc=$(PROTOC_GEN_GO_GRPC) \
- --go_opt=paths=source_relative \
- --go_out=$(go_mapping):. \
- --go-grpc_opt=paths=source_relative \
- --go-grpc_out=$(go_mapping):.
diff --git a/mk/check.mk b/mk/check.mk
deleted file mode 100644
index 36a91f2f..00000000
--- a/mk/check.mk
+++ /dev/null
@@ -1,86 +0,0 @@
-GO = go
-GO_INSTALL = $(GO) install
-GO_BIN = $(shell go env GOPATH)/bin
-
-.PHONY: fmt
-fmt: gofmt dubbogofmt golangci-lint-fmt fmt/proto ## Dev: Run various format
tools
-
-.PHONY: gofmt
- go fmt ./...
-
-.PHONY: fmt/proto
-fmt/proto: ## Dev: Run clang-format on .proto files
- find . -name '*.proto' | xargs -L 1 $(CLANG_FORMAT) -i
-
-.PHONY: tidy
-tidy:
- @TOP=$(shell pwd) && \
- for m in $$(find . -name go.mod) ; do \
- ( cd $$(dirname $$m) && go mod tidy ) ; \
- done
-
-.PHONY: shellcheck
-shellcheck:
- find . -name "*.sh" -not -path "./.git/*" -exec $(SHELLCHECK) -P
SCRIPTDIR -x {} +
-
-.PHONY: golangci-lint
-golangci-lint: ## Dev: Runs golangci-lint linter
-ifndef CI
- GOMEMLIMIT=7GiB $(GOENV) $(GOLANGCI_LINT) run --timeout=10m -v
-else
- @echo "skipping golangci-lint as it's done as a github action"
-endif
-
-.PHONY: golangci-lint-fmt
-golangci-lint-fmt:
- GOMEMLIMIT=7GiB $(GOENV) $(GOLANGCI_LINT) run --timeout=10m -v \
- --disable-all \
- --enable gofumpt
-
-.PHONY: dubbogofmt
-dubbogofmt: $(GO_BIN)/imports-formatter
- GOROOT=$(shell go env GOROOT) $(GO_BIN)/imports-formatter
-
-$(GO_BIN)/imports-formatter:
- $(GO_INSTALL) github.com/dubbogo/tools/cmd/imports-formatter@latest
-
-.PHONY: helm-lint
-helm-lint:
- find ./deploy/charts -maxdepth 1 -mindepth 1 -type d -exec $(HELM) lint
--strict {} \;
-
-.PHONY: ginkgo/unfocus
-ginkgo/unfocus:
- @$(GINKGO) unfocus
-
-.PHONY: ginkgo/lint
-ginkgo/lint:
- go run $(TOOLS_DIR)/ci/check_test_files.go
-
-.PHONY: format/common
-format/common: generate tidy ginkgo/unfocus
-
-.PHONY: format
-format: fmt format/common
-
-.PHONY: hadolint
-hadolint:
- find ./tools/releases/dockerfiles/ -type f -iname "Dockerfile*" | grep
-v dockerignore | xargs -I {} $(HADOLINT) {}
-
-.PHONY: lint
-lint: helm-lint golangci-lint shellcheck hadolint ginkgo/lint
-
-.PHONY: check
-check: format/common lint ## Dev: Run code checks (go fmt, go vet, ...)
- @untracked() { git ls-files --other --directory --exclude-standard
--no-empty-directory; }; \
- check-changes() { git --no-pager diff "$$@"; }; \
- if [ $$(untracked | wc -l) -gt 0 ]; then \
- FAILED=true; \
- echo "The following files are untracked:"; \
- untracked; \
- fi; \
- if [ $$(check-changes --name-only | wc -l) -gt 0 ]; then \
- FAILED=true; \
- echo "The following changes (result of code generators and code
checks) have been detected:"; \
- check-changes; \
- fi; \
- if [ "$$FAILED" = true ]; then exit 1; fi
diff --git a/mk/dependencies/clang-format.sh b/mk/dependencies/clang-format.sh
deleted file mode 100755
index 10dd4663..00000000
--- a/mk/dependencies/clang-format.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="13.0.0"
-CLANG_FORMAT=${OUTPUT_DIR}/clang-format
-# No arm64 linux so let's do a dummy script
-if [ "${ARCH}" == "arm64" ] && [ "${OS}" == "linux" ]; then
- printf "#!/bin/bash\necho clang-format not suported on arm linux" >
"${CLANG_FORMAT}"
- chmod u+x "${CLANG_FORMAT}"
- exit
-fi
-# There's no clang-format for arm64 mac so let's just use the amd64
-if [ "${OS}" == "darwin" ]; then
- ARCH="amd64"
- OS="macosx"
-fi
-
-VERSION_NAME="clang-format-13_${OS}-${ARCH}"
-if [ -e "${CLANG_FORMAT}" ] && [ "v$("${CLANG_FORMAT}" --version | cut -f3 -d
' ')" == "v${VERSION}" ]; then
- echo "$("${CLANG_FORMAT}" --version | head -1) is already installed at
${OUTPUT_DIR}"
- exit
-fi
-echo "Installing clang-format ${VERSION}..."
-set -x
-curl --location --fail -s -o "${CLANG_FORMAT}"
https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-208096c1/"${VERSION_NAME}"
-chmod u+x "${CLANG_FORMAT}"
-set +x
diff --git a/mk/dependencies/container-structure-test.sh
b/mk/dependencies/container-structure-test.sh
deleted file mode 100755
index 9bbeaafc..00000000
--- a/mk/dependencies/container-structure-test.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="1.15.0"
-NAME="container-structure-test"
-BASE_URL="https://github.com/GoogleContainerTools/container-structure-test/releases/download"
-CONTAINER_STRUCTURE_TEST="${OUTPUT_DIR}/${NAME}"
-
-if [ "${OS}" == "darwin" ]; then
- ARCH='amd64'
-fi
-if [ -e "${CONTAINER_STRUCTURE_TEST}" ] && [ "$("${CONTAINER_STRUCTURE_TEST}"
version)" == "v${VERSION}" ]; then
- echo "${NAME} v${VERSION} is already installed at ${OUTPUT_DIR}"
- exit
-fi
-
-echo "Installing ${NAME} ${VERSION}..."
-
-curl --fail --location --silent \
- --output "${CONTAINER_STRUCTURE_TEST}" \
- "${BASE_URL}/v${VERSION}/${NAME}-${OS}-${ARCH}"
-
-chmod u+x "${CONTAINER_STRUCTURE_TEST}"
diff --git a/mk/dependencies/deps.lock b/mk/dependencies/deps.lock
deleted file mode 100644
index 8aaa8e3d..00000000
--- a/mk/dependencies/deps.lock
+++ /dev/null
@@ -1 +0,0 @@
-6d5d8c9718a5fb75dd7bc217721706b5848374a2
diff --git a/mk/dependencies/etcd.sh b/mk/dependencies/etcd.sh
deleted file mode 100755
index f26cf44b..00000000
--- a/mk/dependencies/etcd.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="3.5.9"
-ETCD=${OUTPUT_DIR}/etcd
-# There's no etcd for arm64 mac so let's just use the amd64
-[[ ${OS} == "darwin" ]] && ARCH="amd64"
-
-VERSION_NAME="etcd-v${VERSION}-${OS}-${ARCH}"
-if [ -e "$ETCD" ] && [ "v$($ETCD --version | head -1 | cut -f3 -d ' ')" ==
"v${VERSION}" ]; then
- echo "$(${ETCD} --version | head -1) is already installed at ${OUTPUT_DIR}"
- exit
-fi
-echo "Installing etcd ${VERSION}..."
-set -x
-FNAME=${VERSION_NAME}.tar.gz
-if [ "${OS}" != "linux" ]; then
- FNAME=${VERSION_NAME}.zip
-fi
-curl --location --fail -s
https://github.com/etcd-io/etcd/releases/download/v${VERSION}/"${FNAME}" | tar
--strip-components=1 --no-same-owner -xz -C "${OUTPUT_DIR}"
"${VERSION_NAME}"/etcd
-chmod u+x "${ETCD}"
-set +x
diff --git a/mk/dependencies/go-deps.sh b/mk/dependencies/go-deps.sh
deleted file mode 100755
index c98e1b51..00000000
--- a/mk/dependencies/go-deps.sh
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_BIN_DIR=$1/bin
-OUTPUT_PROTO_DIR=$1/protos
-
-# Use go list -m for deps that are also on go.mod this way we use dependabot a
live on the same version
-
-PGV=github.com/envoyproxy/protoc-gen-validate@$(go list -f '{{.Version}}' -m
github.com/envoyproxy/protoc-gen-validate)
-GINKGO=github.com/onsi/ginkgo/v2/ginkgo@$(go list -f '{{.Version}}' -m
github.com/onsi/ginkgo/v2)
-CONTROLLER_GEN=sigs.k8s.io/controller-tools/cmd/controller-gen@$(go list -f
'{{.Version}}' -m sigs.k8s.io/controller-tools)
-
-echo '' > mk/dependencies/go-deps.versions
-for i in \
- google.golang.org/protobuf/cmd/[email protected] \
- google.golang.org/grpc/cmd/[email protected] \
-
github.com/chrusty/protoc-gen-jsonschema/cmd/[email protected]
\
- ${PGV} \
- ${GINKGO} \
- ${CONTROLLER_GEN} \
- github.com/mikefarah/yq/[email protected] \
- github.com/norwoodj/helm-docs/cmd/[email protected] \
- golang.stackrox.io/kube-linter/cmd/[email protected] \
- github.com/deepmap/oapi-codegen/cmd/[email protected] \
- ; do
- echo "install go dep: ${i}"
- echo "${i}" >> mk/dependencies/go-deps.versions
- GOBIN=${OUTPUT_BIN_DIR} go install "${i}" &
-done
-wait
-
-set +x
-# Get the protos from some go dependencies
-#
-ROOT=$(go env GOPATH)/pkg/mod
-
-function cpOnlyProto() {
- pushd "${1}" || exit
- # shellcheck disable=SC2044
- for i in $(find . -name '*.proto'); do
- local base_path
- base_path=${2}/$(dirname "${i}")
- mkdir -p "${base_path}" && install "${i}" "${base_path}"
- done
- popd || exit
-}
-
-rm -fr "${OUTPUT_PROTO_DIR}"/udpa "${OUTPUT_PROTO_DIR}"/xds
-mkdir -p "${OUTPUT_PROTO_DIR}"/{udpa,xds}
-go mod download github.com/cncf/udpa@main
-VERSION=$(find "${ROOT}"/github.com/cncf/udpa@* -maxdepth 0 | sort -r | head
-1)
-cpOnlyProto "${VERSION}"/udpa "${OUTPUT_PROTO_DIR}"/udpa
-cpOnlyProto "${VERSION}"/xds "${OUTPUT_PROTO_DIR}"/xds
-
-rm -fr "${OUTPUT_PROTO_DIR}"/envoy
-mkdir -p "${OUTPUT_PROTO_DIR}"
-go mod download github.com/envoyproxy/data-plane-api@main
-VERSION=$(find "${ROOT}"/github.com/envoyproxy/data-plane-api@* -maxdepth 0 |
sort -r | head -1)
-cpOnlyProto "${VERSION}"/envoy "${OUTPUT_PROTO_DIR}"/envoy
-
-rm -fr "${OUTPUT_PROTO_DIR}"/validate
-mkdir -p "${OUTPUT_PROTO_DIR}"/validate
-go mod download "${PGV}"
-cpOnlyProto "${ROOT}"/"${PGV}"/validate "${OUTPUT_PROTO_DIR}"/validate
-
-rm -rf "${OUTPUT_PROTO_DIR}"/google/{api,rpc}
-mkdir -p "${OUTPUT_PROTO_DIR}"/google/{api,rpc}
-
-go mod download github.com/googleapis/googleapis@master
-VERSION=$(find "${ROOT}"/github.com/googleapis/googleapis@* -maxdepth 0 | sort
-r | head -1)
-cpOnlyProto "${VERSION}"/google/api "${OUTPUT_PROTO_DIR}"/google/api
-cpOnlyProto "${VERSION}"/google/rpc "${OUTPUT_PROTO_DIR}"/google/rpc
diff --git a/mk/dependencies/go-deps.versions b/mk/dependencies/go-deps.versions
deleted file mode 100644
index 3df83b45..00000000
--- a/mk/dependencies/go-deps.versions
+++ /dev/null
@@ -1,11 +0,0 @@
-
-google.golang.org/protobuf/cmd/[email protected]
-google.golang.org/grpc/cmd/[email protected]
-github.com/chrusty/protoc-gen-jsonschema/cmd/[email protected]
-github.com/envoyproxy/[email protected]
-github.com/onsi/ginkgo/v2/[email protected]
-sigs.k8s.io/controller-tools/cmd/[email protected]
-github.com/mikefarah/yq/[email protected]
-github.com/norwoodj/helm-docs/cmd/[email protected]
-golang.stackrox.io/kube-linter/cmd/[email protected]
-github.com/deepmap/oapi-codegen/cmd/[email protected]
diff --git a/mk/dependencies/golangci-lint.sh b/mk/dependencies/golangci-lint.sh
deleted file mode 100755
index ce19d15f..00000000
--- a/mk/dependencies/golangci-lint.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-set -e
-
-OUTPUT_BIN_DIR=$1/bin
-VERSION=${GOLANGCI_LINT_VERSION}
-
-golangcilint="${OUTPUT_BIN_DIR}"/golangci-lint
-if [ "${VERSION}" == "" ]; then
- echo "No version specified for golangci-lint"
- exit 1
-fi
-
-if [ -e "${golangcilint}" ] && [ "v$(${golangcilint} version --format short)"
== "${VERSION}" ]; then
- echo "golangci-lint ${VERSION} is already installed at ${OUTPUT_BIN_DIR}"
- exit
-fi
-curl -sSfL
https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh
-s -- -b "${OUTPUT_BIN_DIR}" "${VERSION}"
diff --git a/mk/dependencies/hadolint.sh b/mk/dependencies/hadolint.sh
deleted file mode 100755
index cd99647a..00000000
--- a/mk/dependencies/hadolint.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="2.12.0"
-if [ "$ARCH" == "amd64" ]; then
- ARCH="x86_64"
-fi
-if [ "$OS" == "darwin" ]; then
- OS="Darwin"
- # Darwin does not have arm builds so we will use x86_64 via rosetta
- ARCH="x86_64"
-elif [ "$OS" == "windows" ]; then
- OS="Windows"
-elif [ "$OS" == "linux" ]; then
- OS="Linux"
-fi
-VERSION_NAME="hadolint-${OS}-${ARCH}"
-hadolint=${OUTPUT_DIR}/hadolint
-if [ -e "${hadolint}" ] && [ "v$(${hadolint} --version | cut -d' ' -f4)" ==
v${VERSION} ]; then
- echo "hadolint is already installed at ${OUTPUT_DIR}"
- exit
-fi
-echo "Installing hadolint ${hadolint}"
-set -x
-curl --output "$hadolint" --fail --location -s
https://github.com/hadolint/hadolint/releases/download/v${VERSION}/"${VERSION_NAME}"
-chmod +x "$hadolint"
-set +x
-echo "hadolint $hadolint has been installed at $OUTPUT_DIR"
diff --git a/mk/dependencies/helm.sh b/mk/dependencies/helm.sh
deleted file mode 100755
index e39475dc..00000000
--- a/mk/dependencies/helm.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="3.8.2"
-export PATH="$OUTPUT_DIR:$PATH" # install script checks if helm is in your path
-curl --fail --location -s
https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | \
- HELM_INSTALL_DIR=${OUTPUT_DIR} DESIRED_VERSION=v${VERSION}
USE_SUDO=false bash
-
-CR_VERSION="1.3.0"
-cr=${OUTPUT_DIR}/cr
-if [ -e "${cr}" ] && [ "$(${cr} version | grep 'Version:' | cut -d' ' -f2)" ==
v${CR_VERSION} ]; then
- echo "cr version ${CR_VERSION} is already installed at ${OUTPUT_DIR}"
- exit
-fi
-curl --fail --location -s
"https://github.com/helm/chart-releaser/releases/download/v${CR_VERSION}/chart-releaser_${CR_VERSION}_${OS}_${ARCH}.tar.gz"
| tar xvz --directory "${OUTPUT_DIR}" cr
diff --git a/mk/dependencies/k3d.sh b/mk/dependencies/k3d.sh
deleted file mode 100755
index f765f8ff..00000000
--- a/mk/dependencies/k3d.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="5.4.7"
-# see https://raw.githubusercontent.com/rancher/k3d/main/install.sh
-curl --fail --location -s
https://raw.githubusercontent.com/rancher/k3d/main/install.sh | \
- PATH=${OUTPUT_DIR}:${PATH} TAG=v${VERSION} USE_SUDO="false"
K3D_INSTALL_DIR="${OUTPUT_DIR}" bash
diff --git a/mk/dependencies/kind.sh b/mk/dependencies/kind.sh
deleted file mode 100755
index a8be6a80..00000000
--- a/mk/dependencies/kind.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="0.11.1"
-KIND=${OUTPUT_DIR}/kind
-if [ -e "$KIND" ] && [ "v$($KIND --version | cut -d ' ' -f3)" == v${VERSION}
]; then
- echo "$($KIND --version ) is already installed at ${OUTPUT_DIR}" ;
- exit
-fi
-echo "Installing kind ${VERSION} ..."
-set -x
-# see https://kind.sigs.k8s.io/docs/user/quick-start/#installation
-curl --location --fail -s -o "${KIND}"
https://github.com/kubernetes-sigs/kind/releases/download/v${VERSION}/kind-"${OS}"-"${ARCH}"
-chmod +x "${KIND}"
-set +x
-echo "Kind $VERSION has been installed at $OUTPUT_DIR"
diff --git a/mk/dependencies/kubebuilder.sh b/mk/dependencies/kubebuilder.sh
deleted file mode 100755
index ff161ca7..00000000
--- a/mk/dependencies/kubebuilder.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-
-set -e
-
-if [ "$ARCH" == "arm64" ]; then
- if [ "$OS" == "darwin" ]; then
- # there is no arm64 build for darwin so use amd64 via rosetta
- ARCH="amd64"
- fi
-fi
-
-# see https://book.kubebuilder.io/quick-start.html#installation
-OUTPUT_DIR=$1/bin
-VERSION="2.3.2"
-KUBEBUILDER="${OUTPUT_DIR}"/kubebuilder
-VERSION_NAME=kubebuilder_"${VERSION}"_"${OS}"_"${ARCH}"
-
-if [ -e "${KUBEBUILDER}" ] && [ "v$("${KUBEBUILDER}" version | sed -E
's/.*KubeBuilderVersion:"([0-9\.]+)".*/\1/')" == "v${VERSION}" ]; then
- echo "kubebuilder version ${VERSION} is already installed at ${KUBEBUILDER}"
- exit
-fi
-echo "Installing Kubebuilder ${CI_KUBEBUILDER_VERSION} ..."
-rm -rf "${KUBEBUILDER}"
-set -x
-curl --location --fail -s
https://github.com/kubernetes-sigs/kubebuilder/releases/download/v"${VERSION}"/"${VERSION_NAME}".tar.gz
\
- | tar --strip-components=2 -xz -C "${OUTPUT_DIR}"
"${VERSION_NAME}"/bin/kubebuilder
-set +x
-echo "kubebuilder ${CI_KUBEBUILDER_VERSION} and dependencies has been
installed at ${KUBEBUILDER}"
diff --git a/mk/dependencies/kubernetes.sh b/mk/dependencies/kubernetes.sh
deleted file mode 100755
index 9e6c2016..00000000
--- a/mk/dependencies/kubernetes.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="1.23.5"
-KUBECTL=${OUTPUT_DIR}/kubectl
-if [ -e "${KUBECTL}" ] && [ "$(${KUBECTL} version -o yaml --client=true | grep
gitVersion | cut -f4 -d ' ')" == "v${VERSION}" ]; then
- echo "kubectl version ${VERSION} is already installed at ${OUTPUT_DIR}"
- exit
-fi
-echo "Installing Kubernetes ${CI_KUBEBUILDER_VERSION} ..."
-set -x
-for component in kube-apiserver kubectl; do
- rm -f "${OUTPUT_DIR}"/${component}
- if [ "${OS}" == "darwin" ] && [ ${component} == "kube-apiserver" ]; then
- # There's no official build of kube-apiserver on darwin so we'll just get
the one from kubebuilder
- KUBEBUILDER_VERSION=2.3.2
- VERSION_NAME=kubebuilder_${KUBEBUILDER_VERSION}_${OS}_amd64
- curl --location --fail -s
https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${KUBEBUILDER_VERSION}/"${VERSION_NAME}".tar.gz
| tar --strip-components=2 -xz -C "${OUTPUT_DIR}"
"${VERSION_NAME}"/bin/kube-apiserver
- else
- curl --location -o "${OUTPUT_DIR}"/${component} --fail -s
https://dl.k8s.io/v${VERSION}/bin/"${OS}"/"${ARCH}"/${component}
- fi
- chmod +x "${OUTPUT_DIR}"/${component}
-done
-set +x
-echo "kubebuilder ${CI_KUBEBUILDER_VERSION} and dependencies has been
installed at ${KUBEBUILDER}"
diff --git a/mk/dependencies/protoc.sh b/mk/dependencies/protoc.sh
deleted file mode 100755
index 95a3ed59..00000000
--- a/mk/dependencies/protoc.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="3.20.0"
-PROTOC=${OUTPUT_DIR}/protoc
-WKT_DIR=${1}/protos/google/protobuf
-if [ "${OS}" == "darwin" ]; then
- OS="osx"
-fi
-if [ "${ARCH}" == "amd64" ]; then
- ARCH="x86_64"
-elif [ "${ARCH}" == "arm64" ]; then
- ARCH="aarch_64"
-fi
-
-VERSION_NAME=protoc-${VERSION}-${OS}-${ARCH}
-if [ -e "$PROTOC" ] && [ -e "$WKT_DIR" ] && [ "v$("$PROTOC" --version | cut
-f2 -d ' ')" == "v${VERSION}" ]; then
- echo "$($PROTOC --version) is already installed at ${OUTPUT_DIR}"
- exit
-fi
-echo "Installing Protoc ${PROTOC} ${VERSION} ..."
-rm -rf "${PROTOC}"
-rm -rf "${WKT_DIR}"
-set -x
-mkdir -p /tmp/${VERSION_NAME}
-curl --location --fail -s -o /tmp/${VERSION_NAME}.zip
https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/${VERSION_NAME}.zip
-unzip /tmp/${VERSION_NAME}.zip bin/protoc 'include/*' -d /tmp/${VERSION_NAME}
-cp /tmp/"${VERSION_NAME}"/bin/protoc "${PROTOC}"
-mkdir -p "${WKT_DIR}"
-cp -r /tmp/"${VERSION_NAME}"/include/google/protobuf/* "${WKT_DIR}"
-rm -rf /tmp/"${VERSION_NAME}"*
-set +x
-echo "Protoc ${VERSION} has been installed at ${PROTOC}" ;
diff --git a/mk/dependencies/shellcheck.sh b/mk/dependencies/shellcheck.sh
deleted file mode 100755
index 9ce724c3..00000000
--- a/mk/dependencies/shellcheck.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-set -e
-
-OUTPUT_DIR=$1/bin
-VERSION="0.8.0"
-mkdir -p "${OUTPUT_DIR}"
-if [ "$ARCH" == "amd64" ]; then
- ARCH="x86_64"
-elif [ "$ARCH" == "arm64" ]; then
- if [ "$OS" == "linux" ]; then
- ARCH="aarch64"
- else
- ARCH="x86_64"
- fi
-fi
-VERSION_NAME="shellcheck-v${VERSION}.${OS}.${ARCH}"
-SHELLCHECK=${OUTPUT_DIR}/shellcheck
-if [ -e "${SHELLCHECK}" ] && [ "v$(${SHELLCHECK} --version | grep version: |
cut -d' ' -f2)" == v${VERSION} ]; then
- echo "Shellcheck is already installed at ${OUTPUT_DIR}"
- exit
-fi
- echo "Installing shellcheck ${SHELLCHECK}"
- set -x
- curl --fail --location -s
https://github.com/koalaman/shellcheck/releases/download/v${VERSION}/"${VERSION_NAME}".tar.xz
\
- | tar --no-same-owner --strip-component=1 -C "$OUTPUT_DIR" -xJ
- echo "Shellcheck $SHELLCHECK has been installed at $OUTPUT_DIR"
diff --git a/mk/dev.mk b/mk/dev.mk
deleted file mode 100644
index 67caebe1..00000000
--- a/mk/dev.mk
+++ /dev/null
@@ -1,76 +0,0 @@
-DUBBO_DIR ?= .
-TOOLS_DIR = $(DUBBO_DIR)/tools
-
-CI_TOOLS_VERSION ?= master
-CHART_REPO_NAME ?= dubbo
-PROJECT_NAME ?= dubbo
-
-CI_TOOLS_DIR ?= ${HOME}/.dubbo-dev/${PROJECT_NAME}-${CI_TOOLS_VERSION}
-ifdef XDG_DATA_HOME
- CI_TOOLS_DIR :=
${XDG_DATA_HOME}/dubbo-dev/${PROJECT_NAME}-${CI_TOOLS_VERSION}
-endif
-CI_TOOLS_BIN_DIR=$(CI_TOOLS_DIR)/bin
-
-# Change here and `make check` ensures these are used for CI
-# Note: These are _docker image tags_
-# If changing min version, update mk/kind.mk as well
-K8S_MIN_VERSION = v1.23.17-k3s1
-K8S_MAX_VERSION = v1.28.1-k3s1
-export GO_VERSION=$(shell go mod edit -json | jq -r .Go)
-export GOLANGCI_LINT_VERSION=v1.60.2
-GOOS := $(shell go env GOOS)
-GOARCH := $(shell go env GOARCH)
-
-# A helper to protect calls that push things upstreams (.e.g docker push or
github artifact publish)
-# $(1) - the actual command to run, if ALLOW_PUSH is not set we'll prefix this
with '#' to prevent execution
-define GATE_PUSH
-$(if $(ALLOW_PUSH),$(1), # $(1))
-endef
-
-# The e2e tests depend on Kind kubeconfigs being in this directory,
-# so this is location should not be changed by developers.
-KUBECONFIG_DIR := $(HOME)/.kube
-
-PROTOS_DEPS_PATH=$(CI_TOOLS_DIR)/protos
-
-CLANG_FORMAT=$(CI_TOOLS_BIN_DIR)/clang-format
-HELM=$(CI_TOOLS_BIN_DIR)/helm
-K3D_BIN=$(CI_TOOLS_BIN_DIR)/k3d
-KIND=$(CI_TOOLS_BIN_DIR)/kind
-KUBEBUILDER=$(CI_TOOLS_BIN_DIR)/kubebuilder
-KUBEBUILDER_ASSETS=$(CI_TOOLS_BIN_DIR)
-CONTROLLER_GEN=$(CI_TOOLS_BIN_DIR)/controller-gen
-KUBECTL=$(CI_TOOLS_BIN_DIR)/kubectl
-PROTOC_BIN=$(CI_TOOLS_BIN_DIR)/protoc
-SHELLCHECK=$(CI_TOOLS_BIN_DIR)/shellcheck
-CONTAINER_STRUCTURE_TEST=$(CI_TOOLS_BIN_DIR)/container-structure-test
-# from go-deps
-PROTOC_GEN_GO=$(CI_TOOLS_BIN_DIR)/protoc-gen-go
-PROTOC_GEN_GO_GRPC=$(CI_TOOLS_BIN_DIR)/protoc-gen-go-grpc
-PROTOC_GEN_VALIDATE=$(CI_TOOLS_BIN_DIR)/protoc-gen-validate
-PROTOC_GEN_JSONSCHEMA=$(CI_TOOLS_BIN_DIR)/protoc-gen-jsonschema
-GINKGO=$(CI_TOOLS_BIN_DIR)/ginkgo
-GOLANGCI_LINT=$(CI_TOOLS_BIN_DIR)/golangci-lint
-HELM_DOCS=$(CI_TOOLS_BIN_DIR)/helm-docs
-KUBE_LINTER=$(CI_TOOLS_BIN_DIR)/kube-linter
-HADOLINT=$(CI_TOOLS_BIN_DIR)/hadolint
-IMPORTFORMATTER=$(CI_TOOLS_BIN_DIR)/imports-formatter
-
-TOOLS_DEPS_DIRS=$(DUBBO_DIR)/mk/dependencies
-TOOLS_DEPS_LOCK_FILE=mk/dependencies/deps.lock
-TOOLS_MAKEFILE=$(DUBBO_DIR)/mk/dev.mk
-
-# Install all dependencies on tools and protobuf files
-# We add one script per tool in the `mk/dependencies` folder. Add a VARIABLE
for each binary and use this everywhere in Makefiles
-# ideally the tool should be idempotent to make things quick to rerun.
-# it's important that everything lands in $(CI_TOOLS_DIR) to be able to cache
this folder in CI and speed up the build.
-.PHONY: dev/tools
-dev/tools: ## Bootstrap: Install all development tools
- $(TOOLS_DIR)/dev/install-dev-tools.sh $(CI_TOOLS_BIN_DIR)
$(CI_TOOLS_DIR) "$(TOOLS_DEPS_DIRS)" $(TOOLS_DEPS_LOCK_FILE) $(GOOS) $(GOARCH)
$(TOOLS_MAKEFILE)
-
-.PHONY: dev/tools/clean
-dev/tools/clean: ## Bootstrap: Remove all development tools
- rm -rf $(CI_TOOLS_DIR)
-
-.PHONY: clean
-clean: clean/build clean/generated clean/docs ## Dev: Clean
diff --git a/mk/generate.mk b/mk/generate.mk
deleted file mode 100644
index d83d6d4b..00000000
--- a/mk/generate.mk
+++ /dev/null
@@ -1,135 +0,0 @@
-ENVOY_IMPORTS := ./pkg/xds/envoy/imports.go
-RESOURCE_GEN := $(DUBBO_DIR)/build/tools-${GOOS}-${GOARCH}/resource-gen
-POLICY_GEN := $(DUBBO_DIR)/build/tools-${GOOS}-${GOARCH}/policy-gen/generator
-
-PROTO_DIRS ?= ./pkg/config ./api ./pkg/plugins
-GO_MODULE ?= github.com/apache/dubbo-kubernetes
-
-LICENSE := '/*\n* Licensed to the Apache Software Foundation (ASF) under one
or more\n* contributor license agreements. See the NOTICE file distributed
with\n* this work for additional information regarding copyright ownership.\n*
The ASF licenses this file to You under the Apache License, Version 2.0\n* (the
"License"); you may not use this file except in compliance with\n* the License.
You may obtain a copy of the License at\n*\n*
http://www.apache.org/licenses/LICENSE-2.0\n*\n* [...]
-
-HELM_VALUES_FILE ?= "deploy/charts/admin/values.yaml"
-HELM_CRD_DIR ?= "deploy/charts/admin/crds/"
-HELM_VALUES_FILE_POLICY_PATH ?= ".plugins.policies"
-
-GENERATE_OAS_PREREQUISITES ?=
-EXTRA_GENERATE_DEPS_TARGETS ?= generate/envoy-imports
-
-.PHONY: clean/generated
-clean/generated: clean/protos clean/builtin-crds clean/resources
clean/policies clean/tools
-
-.PHONY: generate/protos
-generate/protos:
- find $(PROTO_DIRS) -name '*.proto' -exec $(PROTOC_GO) {} \;
-
-# Generate the embedded templates
-.PHONY: generate/templates
-generate/templates:
- go generate dubboctl/internal/dubbo/templates_embedded.go
-
-.PHONY: clean/tools
-clean/tools:
- rm -rf $(DUBBO_DIR)/build/tools-*
-
-.PHONY: clean/proto
-clean/protos: ## Dev: Remove auto-generated Protobuf files
- find $(PROTO_DIRS) -name '*.pb.go' -delete
- find $(PROTO_DIRS) -name '*.pb.validate.go' -delete
-
-.PHONY: generate
-generate: generate/protos generate/templates $(if $(findstring
./api,$(PROTO_DIRS)),resources/type generate/builtin-crds) generate/policies
generate/oas $(EXTRA_GENERATE_DEPS_TARGETS) ## Dev: Run all code generation
-
-$(POLICY_GEN):
- cd $(DUBBO_DIR) && go build -o
./build/tools-${GOOS}-${GOARCH}/policy-gen/generator
./tools/policy-gen/generator/main.go
-
-$(RESOURCE_GEN):
- cd $(DUBBO_DIR) && go build -o
./build/tools-${GOOS}-${GOARCH}/resource-gen ./tools/resource-gen/main.go
-
-.PHONY: resources/type
-resources/type: $(RESOURCE_GEN)
- $(RESOURCE_GEN) -package mesh -generator type >
pkg/core/resources/apis/mesh/zz_generated.resources.go
- $(RESOURCE_GEN) -package system -generator type >
pkg/core/resources/apis/system/zz_generated.resources.go
-
-.PHONY: clean/resources
-clean/resources:
- find pkg -name 'zz_generated.*.go' -delete
-
-POLICIES_DIR := pkg/plugins/policies
-
-policies = $(foreach dir,$(shell find pkg/plugins/policies -maxdepth 1
-mindepth 1 -type d | grep -v -e core | sort),$(notdir $(dir)))
-
-generate/policies: $(addprefix generate/policy/,$(policies))
generate/policy-import generate/policy-helm ## Generate all policies written as
plugins
-
-.PHONY: clean/policies
-clean/policies: $(addprefix clean/policy/,$(policies))
-
-# deletes all files in policy directory except *.proto, validator.go and
schema.yaml
-clean/policy/%:
- $(shell find $(POLICIES_DIR)/$* \( -name '*.pb.go' -o -name '*.yaml' -o
-name 'zz_generated.*' \) -not -path '*/testdata/*' -type f -delete)
- @rm -fr $(POLICIES_DIR)/$*/k8s
-
-generate/policy/%: generate/schema/%
- @echo "Policy $* successfully generated"
-
-generate/schema/%: generate/controller-gen/%
- for version in $(foreach dir,$(wildcard
$(POLICIES_DIR)/$*/api/*),$(notdir $(dir))); do \
- PATH=$(CI_TOOLS_BIN_DIR):$$PATH
$(TOOLS_DIR)/policy-gen/crd-extract-openapi.sh $* $$version $(TOOLS_DIR) ; \
- done
-
-generate/policy-import:
- $(TOOLS_DIR)/policy-gen/generate-policy-import.sh $(GO_MODULE)
$(policies)
-
-generate/policy-helm:
- PATH=$(CI_TOOLS_BIN_DIR):$$PATH
$(TOOLS_DIR)/policy-gen/generate-policy-helm.sh $(HELM_VALUES_FILE)
$(HELM_CRD_DIR) $(HELM_VALUES_FILE_POLICY_PATH) $(policies)
-
-generate/controller-gen/%: generate/dubbopolicy-gen/%
- # touch is a fix for controller-gen complaining that there is no
schema.yaml file
- # controller-gen imports it a policy package and then the //go:embed
match is triggered and causes an error
- for version in $(foreach dir,$(wildcard
$(POLICIES_DIR)/$*/api/*),$(notdir $(dir))); do \
- touch $(POLICIES_DIR)/$*/api/$$version/schema.yaml && \
- $(CONTROLLER_GEN)
"crd:crdVersions=v1,ignoreUnexportedFields=true"
paths="./$(POLICIES_DIR)/$*/k8s/..."
output:crd:artifacts:config=$(POLICIES_DIR)/$*/k8s/crd && \
- $(CONTROLLER_GEN) object
paths=$(POLICIES_DIR)/$*/k8s/$$version/zz_generated.types.go && \
- $(CONTROLLER_GEN) object
paths=$(POLICIES_DIR)/$*/api/$$version/$*.go; \
- done
-
-generate/dubbopolicy-gen/%: $(POLICY_GEN) generate/dirs/%
- $(POLICY_GEN) core-resource --plugin-dir $(POLICIES_DIR)/$* --gomodule
$(GO_MODULE) && \
- $(POLICY_GEN) k8s-resource --plugin-dir $(POLICIES_DIR)/$* --gomodule
$(GO_MODULE) && \
- $(POLICY_GEN) openapi --plugin-dir $(POLICIES_DIR)/$*
--openapi-template-path=$(TOOLS_DIR)/policy-gen/templates/endpoints.yaml
--gomodule $(GO_MODULE) && \
- $(POLICY_GEN) plugin-file --plugin-dir $(POLICIES_DIR)/$* --gomodule
$(GO_MODULE)
-
-endpoints = $(foreach dir,$(shell find api/openapi/specs -type f |
sort),$(basename $(dir)))
-
-generate/oas: $(GENERATE_OAS_PREREQUISITES)
- for endpoint in $(endpoints); do \
- DEST=$${endpoint#"api/openapi/specs"}; \
- PATH=$(CI_TOOLS_BIN_DIR):$$PATH oapi-codegen -config
api/openapi/openapi.cfg.yaml -o api/openapi/types/$$(dirname
$${DEST}})/zz_generated.$$(basename $${DEST}).go $${endpoint}.yaml; \
- done
-
-generate/dirs/%:
- for version in $(foreach dir,$(wildcard
$(POLICIES_DIR)/$*/api/*),$(notdir $(dir))); do \
- mkdir -p $(POLICIES_DIR)/$*/api/$$version ; \
- mkdir -p $(POLICIES_DIR)/$*/k8s/$$version ; \
- mkdir -p $(POLICIES_DIR)/$*/k8s/crd ; \
- done
-
-.PHONY: generate/builtin-crds
-generate/builtin-crds: $(RESOURCE_GEN)
- $(RESOURCE_GEN) -package mesh -generator crd >
./pkg/plugins/resources/k8s/native/api/v1alpha1/zz_generated.mesh.go
- $(RESOURCE_GEN) -package system -generator crd >
./pkg/plugins/resources/k8s/native/api/v1alpha1/zz_generated.system.go
- $(CONTROLLER_GEN) "crd:crdVersions=v1"
paths=./pkg/plugins/resources/k8s/native/api/...
output:crd:artifacts:config=$(HELM_CRD_DIR)
- $(CONTROLLER_GEN) object
paths=./pkg/plugins/resources/k8s/native/api/...
-
-.PHONY: clean/builtin-crds
-clean/builtin-crds:
- rm -f ./deployments/charts/dubbo/crds/*
- rm -f ./pkg/plugins/resources/k8s/native/test/config/crd/bases/*
-
-.PHONY: generate/envoy-imports
-generate/envoy-imports:
- echo -e ${LICENSE} > ${ENVOY_IMPORTS}
- printf 'package envoy\n\n' >> ${ENVOY_IMPORTS}
- echo '// Import all Envoy packages so protobuf are registered and are
ready to used in functions such as MarshalAny.' >> ${ENVOY_IMPORTS}
- echo '// This file is autogenerated. run "make generate/envoy-imports"
to regenerate it after go-control-plane upgrade' >> ${ENVOY_IMPORTS}
- echo 'import (' >> ${ENVOY_IMPORTS}
- go list github.com/envoyproxy/go-control-plane/... | grep
"github.com/envoyproxy/go-control-plane/envoy/" | awk '{printf "\t_ \"%s\"\n",
$$1}' >> ${ENVOY_IMPORTS}
- echo ')' >> ${ENVOY_IMPORTS}
diff --git a/mk/run.mk b/mk/run.mk
deleted file mode 100644
index 3e4e1703..00000000
--- a/mk/run.mk
+++ /dev/null
@@ -1,16 +0,0 @@
-NUM_OF_DATAPLANES ?= 100
-NUM_OF_SERVICES ?= 80
-DISTRIBUTION_TARGET_NAME ?= $(PROJECT_NAME)
-DUBBO_CP_ADDRESS ?= grpc://localhost:5678
-DISTRIBUTION_FOLDER=build/distributions/$(GOOS)-$(GOARCH)/$(DISTRIBUTION_TARGET_NAME)
-
-CP_STORE = memory
-CP_ENV += DUBBO_ENVIRONMENT=universal DUBBO_MULTIZONE_ZONE_NAME=zone-1
DUBBO_STORE_TYPE=$(CP_STORE)
-
-.PHONY: run/xds-client
-run/xds-client:
- go run ./tools/xds-client/... run --dps "${NUM_OF_DATAPLANES}"
--services "${NUM_OF_SERVICES}" --xds-server-address "${DUBBO_CP_ADDRESS}"
-
-.PHONY: run/dubbo-cp
-run/dubbo-cp:
- go run ./app/dubbo-cp/... run --log-level=debug -c
app/dubbo-cp/dubbo-cp.yaml
diff --git a/tests/cert/tls.crt b/tests/cert/tls.crt
deleted file mode 100644
index ee8ec6bd..00000000
--- a/tests/cert/tls.crt
+++ /dev/null
@@ -1,39 +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.
--->
-
------BEGIN CERTIFICATE-----
-MIIDkDCCAnigAwIBAgIURE5tI2W9BDoq160jOjvGBJ72xvcwDQYJKoZIhvcNAQEL
-BQAwSTELMAkGA1UEBhMCemgxCzAJBgNVBAcTAmJqMQswCQYDVQQKEwJiajELMAkG
-A1UECxMCQ0ExEzARBgNVBAMTCkt1YmVybmV0ZXMwHhcNMjQwMzI1MTAxOTAwWhcN
-MjUwMzI1MTAxOTAwWjBIMQswCQYDVQQGEwJ6aDELMAkGA1UEBxMCYmoxCzAJBgNV
-BAoTAmJqMQswCQYDVQQLEwJiajESMBAGA1UEAxMJYWRtaXNzaW9uMIIBIjANBgkq
-hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtfa7oJmrKICO8z+xseSFAi73+xoT1QwY
-bxEXHghk8ztoKHqc3sMY7g5q/rFu1cduFQd1BkC0P5gaJ4fVZx1+Unn2Yt2aPXRI
-JCVdghldcBtYvvoTW8pk+q4HdAbTVICVSLPE3AzzOuvp+94sViKWYk/oLQE+dMv9
-WdB8g2x+mGDKVvulCye+RFoyEKRRP3d9KROWQj/1GjhpNnGj5u0NakVUazMzXf9i
-zhkJOPAnF/i38lE9IFMZ4bxyJj+ch1uoKZHg7fJ4LqVtSsDC+RxMsejuWPCRK7Oh
-7bIXR+0VE1TwbRlCtnSHV6KLs5qRtV+7yrED3f0HMNIp+LiY62v/WwIDAQABo3Ew
-bzAOBgNVHQ8BAf8EBAMCB4AwDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUDes4x295
-kaZ6BZOubGFSQjAJhYMwHwYDVR0jBBgwFoAUVA6/QWohVYMPK44tnFNh+IvLzKww
-DwYDVR0RBAgwBocECheEMzANBgkqhkiG9w0BAQsFAAOCAQEACfKg/iBWOuLbYOVW
-nFW6SF8jrpHD6vZxmGJvA7FV62frwKd6rdL3sjtxhTAioWWO9LkgBhlCWVkpN3EK
-CbgBEqusRNeWOebakZq/kitdWDO/S4L0kLPdnCerNqHuGfGzAsdU/0r5YUy9v93G
-ZTzDVX0i1CIAPkGDslO86UAjaQHMhUaI4tGEamaYdym8KSV66JzJARFd5GCKRDpx
-bVVImXnI8eZ1ksQ0bV32fL1UeF4tW8n4WOPquXNvvsmFbKTNT7ZCYESFSUw90a0D
-4tUrwgutl7SNFAZXwAw3ZWvg3ioWOZueZYjKkl91drYTEZ6TNW53mPgh1oU+oGcz
-4EASdA==
------END CERTIFICATE-----
diff --git a/tests/cert/tls.key b/tests/cert/tls.key
deleted file mode 100644
index 96ebac5c..00000000
--- a/tests/cert/tls.key
+++ /dev/null
@@ -1,44 +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.
--->
-
------BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKCAQEAtfa7oJmrKICO8z+xseSFAi73+xoT1QwYbxEXHghk8ztoKHqc
-3sMY7g5q/rFu1cduFQd1BkC0P5gaJ4fVZx1+Unn2Yt2aPXRIJCVdghldcBtYvvoT
-W8pk+q4HdAbTVICVSLPE3AzzOuvp+94sViKWYk/oLQE+dMv9WdB8g2x+mGDKVvul
-Cye+RFoyEKRRP3d9KROWQj/1GjhpNnGj5u0NakVUazMzXf9izhkJOPAnF/i38lE9
-IFMZ4bxyJj+ch1uoKZHg7fJ4LqVtSsDC+RxMsejuWPCRK7Oh7bIXR+0VE1TwbRlC
-tnSHV6KLs5qRtV+7yrED3f0HMNIp+LiY62v/WwIDAQABAoIBAE7+jRe8fnx3yxc4
-yIik30VCZK9i88cimBzne3SzSjf5y07/Y8ilQ9Zc9gAZwTcXe+evNBOB1X5iJsCQ
-jIlWWXeusNLcx0/0gjkG66BGKLU5ef52jB7mL45QLLYnHGlr5OMJ/+VTzef/cLXC
-DtdZ7pVBgVbAWn/T6umpw9Q+LnsxlZJoan2z4whNAF7yXolQyqar4NpbObgS2Kc2
-207goXdRJ/7aVWmlFnehgblE/f16W+D7/TMIpeU/83iRciH7FJujxaILZudydRBF
-/RlsQqfvwWgcjtbjlZkmSx81BFPhhQJVpKEUtaub/stcFyuTDO16Mkv5t70/WDZl
-nYDOu7kCgYEAxLuMYdwqwlr6jvDzUlFm0xyqhf6BQPmzVgUaZxas84waNIUzHbi+
-lz03DBiNuPnrXDap0BhdLWIpRsV7xGb3q2WMzv8rAf/h/kO8+ini1LFB3CglENX2
-qaSd/KeVb4eKhmifjAwa4B1KXDT22xmoAPxO8iqbv4qbDN1fpmE7qZcCgYEA7Mgu
-cTmQ/kkOplrBkM6h5B3vAH+GxZbdTVY3+6lxYS1IGFleaEz4To9vMKaQaozLpvrG
-kOoklCYMAU7Z1DDKuGuDRcMvEr95S5Gp0d3esB7vmaoh3ST+GfnhN+ISKzqqsD0V
-o5C4l7QgG1hat6Vjc1ufVorTgtjRoYXLYkpNKN0CgYEAgca2dFeoXU1mu6R23naU
-Pe9LDdk1qocNplD3ecmbjY1+O+ciMRkNoPbguTn5Q2yZtdrZakyoKqf2Upkza/wA
-pS/4ExSAanFBw1kr8FpxJ51GtNRGnzSF4qKVFXX3PftLhh6+IMRbdjvcMbc+oIns
-KbpG2bkBxPjKD1J5Jmg900ECgYEA5fXw7PQMtnn7qWLhNSMJpcPQl/pCyOmhWnfO
-/TJuNAPHTiaVgtSmH548TdKm1WSScUSCzsEn714YMLkE44jTiVKZdop+0EV3pwX8
-GR/TI9eXufS62M0Rn+bIbf64yJU8qtdYibeHH4bH2+bujAcrVCD62hEQJLcwuR95
-DKe+0l0CgYBOmlpmyDDVJfMltScQyh7wFHJADV514np8Ihrtc3r9Emo+Pnsoor4+
-DPdtgqbcZVrMyh2MXJ9kTmrmo7vlVPYVNR0K7RHt+m+5svVbbgLL/Ri+sGp3k1Wm
-yW0igfwUJBVJsmmHDOJcMaSvoTBaXFjMpuoNjNqLIa1oSST6xuhIoA==
------END RSA PRIVATE KEY-----
diff --git a/tests/cp/cp.yaml b/tests/cp/cp.yaml
deleted file mode 100644
index 092a0dfd..00000000
--- a/tests/cp/cp.yaml
+++ /dev/null
@@ -1,172 +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
- labels:
- dubbo.io/system-namespace: "true"
-
----
-apiVersion: admissionregistration.k8s.io/v1
-kind: MutatingWebhookConfiguration
-metadata:
- name: dubbo-admission-mutating-webhook-configuration
- namespace: dubbo-system
- labels:
- app: dubbo-control-plane
- app.kubernetes.io/name: dubbo
- app.kubernetes.io/instance: dubbo
-webhooks:
- - name: mesh.defaulter.dubbo-admission.dubbo.io
- admissionReviewVersions: [ "v1" ]
- failurePolicy: Fail
- namespaceSelector:
- matchExpressions:
- - key: kubernetes.io/metadata.name
- operator: NotIn
- values: [ "kube-system" ]
- clientConfig:
- caBundle:
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURZakNDQWtxZ0F3SUJBZ0lVR09zN2R6N0Z2dFZLYVY0Y0ZDRDZHUm9qMjlRd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1NURUxNQWtHQTFVRUJoTUNlbWd4Q3pBSkJnTlZCQWNUQW1KcU1Rc3dDUVlEVlFRS0V3SmlhakVMTUFrRwpBMVVFQ3hNQ1EwRXhFekFSQmdOVkJBTVRDa3QxWW1WeWJtVjBaWE13SGhjTk1qUXdNekkxTVRBeE56QXdXaGNOCk1qa3dNekkwTVRBeE56QXdXakJKTVFzd0NRWURWUVFHRXdKNmFERUxNQWtHQTFVRUJ4TUNZbW94Q3pBSkJnTlYKQkFvVEFtSnFNUXN3Q1FZRFZRUUxFd0pEUVRFVE1CRUdBMVVFQXhNS1MzVmlaWEp1WlhSbGN6Q0NBU0l3RFFZSgpLb1pJ
[...]
- url: https://10.23.132.51:5443/default-dubbo-io-v1alpha1-mesh
- rules:
- - apiGroups:
- - dubbo.io
- apiVersions:
- - v1alpha1
- operations:
- - CREATE
- - UPDATE
- resources:
- - meshes
- sideEffects: None
- - name: owner-reference.dubbo-admission.dubbo.io
- admissionReviewVersions: [ "v1" ]
- failurePolicy: Fail
- namespaceSelector:
- matchExpressions:
- - key: kubernetes.io/metadata.name
- operator: NotIn
- values: [ "dubbo-system" ]
- clientConfig:
- caBundle:
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURZakNDQWtxZ0F3SUJBZ0lVR09zN2R6N0Z2dFZLYVY0Y0ZDRDZHUm9qMjlRd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1NURUxNQWtHQTFVRUJoTUNlbWd4Q3pBSkJnTlZCQWNUQW1KcU1Rc3dDUVlEVlFRS0V3SmlhakVMTUFrRwpBMVVFQ3hNQ1EwRXhFekFSQmdOVkJBTVRDa3QxWW1WeWJtVjBaWE13SGhjTk1qUXdNekkxTVRBeE56QXdXaGNOCk1qa3dNekkwTVRBeE56QXdXakJKTVFzd0NRWURWUVFHRXdKNmFERUxNQWtHQTFVRUJ4TUNZbW94Q3pBSkJnTlYKQkFvVEFtSnFNUXN3Q1FZRFZRUUxFd0pEUVRFVE1CRUdBMVVFQXhNS1MzVmlaWEp1WlhSbGN6Q0NBU0l3RFFZSgpLb1pJ
[...]
- url: https://10.23.132.51:5443/owner-reference-dubbo-io-v1alpha1
- rules:
- - apiGroups:
- - dubbo.io
- apiVersions:
- - v1alpha1
- operations:
- - CREATE
- resources:
- - conditionroutes
- - dynamicconfigs
- - tagroutes
- sideEffects: None
- - name: pod-env-injection.dubbo-admission.dubbo.io
- admissionReviewVersions: [ "v1" ]
- failurePolicy: Fail
- namespaceSelector:
- matchExpressions:
- - key: kubernetes.io/metadata.name
- operator: NotIn
- values: [ "dubbo-system","kube-system" ]
- clientConfig:
- caBundle:
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURZakNDQWtxZ0F3SUJBZ0lVR09zN2R6N0Z2dFZLYVY0Y0ZDRDZHUm9qMjlRd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1NURUxNQWtHQTFVRUJoTUNlbWd4Q3pBSkJnTlZCQWNUQW1KcU1Rc3dDUVlEVlFRS0V3SmlhakVMTUFrRwpBMVVFQ3hNQ1EwRXhFekFSQmdOVkJBTVRDa3QxWW1WeWJtVjBaWE13SGhjTk1qUXdNekkxTVRBeE56QXdXaGNOCk1qa3dNekkwTVRBeE56QXdXakJKTVFzd0NRWURWUVFHRXdKNmFERUxNQWtHQTFVRUJ4TUNZbW94Q3pBSkJnTlYKQkFvVEFtSnFNUXN3Q1FZRFZRUUxFd0pEUVRFVE1CRUdBMVVFQXhNS1MzVmlaWEp1WlhSbGN6Q0NBU0l3RFFZSgpLb1pJ
[...]
- url: https://10.23.132.51:5443/pod-env-injection-dubbo-io-v1alpha1
- rules:
- - apiVersions:
- - v1
- operations:
- - CREATE
- resources:
- - pod
- sideEffects: None
-
----
-apiVersion: admissionregistration.k8s.io/v1
-kind: ValidatingWebhookConfiguration
-metadata:
- name: dubbo-validating-webhook-configuration
- namespace: dubbo-system
- labels:
- app: dubbo-control-plane
- app.kubernetes.io/name: dubbo
- app.kubernetes.io/instance: dubbo
-webhooks:
- - name: validator.dubbo-admission.dubbo.io
- admissionReviewVersions: [ "v1" ]
- failurePolicy: Fail
- namespaceSelector:
- matchExpressions:
- - key: kubernetes.io/metadata.name
- operator: NotIn
- values: [ "kube-system" ]
- clientConfig:
- caBundle:
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURZakNDQWtxZ0F3SUJBZ0lVR09zN2R6N0Z2dFZLYVY0Y0ZDRDZHUm9qMjlRd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1NURUxNQWtHQTFVRUJoTUNlbWd4Q3pBSkJnTlZCQWNUQW1KcU1Rc3dDUVlEVlFRS0V3SmlhakVMTUFrRwpBMVVFQ3hNQ1EwRXhFekFSQmdOVkJBTVRDa3QxWW1WeWJtVjBaWE13SGhjTk1qUXdNekkxTVRBeE56QXdXaGNOCk1qa3dNekkwTVRBeE56QXdXakJKTVFzd0NRWURWUVFHRXdKNmFERUxNQWtHQTFVRUJ4TUNZbW94Q3pBSkJnTlYKQkFvVEFtSnFNUXN3Q1FZRFZRUUxFd0pEUVRFVE1CRUdBMVVFQXhNS1MzVmlaWEp1WlhSbGN6Q0NBU0l3RFFZSgpLb1pJ
[...]
- url: https://10.23.132.51:5443/validate-dubbo-io-v1alpha1
- rules:
- - apiGroups:
- - dubbo.io
- apiVersions:
- - v1alpha1
- operations:
- - CREATE
- - UPDATE
- - DELETE
- resources:
- - conditionroutes
- - dataplanes
- - dataplaneinsights
- - datasources
- - dynamicconfigs
- - mappings
- - meshes
- - meshinsights
- - metadata
- - secrets
- - servicenamemappings
- - tagroutes
- - zoneegresses
- - zoneingresses
- - zoneingressinsights
- - zoneinsights
- - zones
-
- sideEffects: None
- - name: service.validator.dubbo-admission.dubbo.io
- admissionReviewVersions: [ "v1" ]
- failurePolicy: Ignore
- namespaceSelector:
- matchExpressions:
- - key: kubernetes.io/metadata.name
- operator: NotIn
- values: [ "kube-system" ]
- clientConfig:
- caBundle:
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURZakNDQWtxZ0F3SUJBZ0lVR09zN2R6N0Z2dFZLYVY0Y0ZDRDZHUm9qMjlRd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1NURUxNQWtHQTFVRUJoTUNlbWd4Q3pBSkJnTlZCQWNUQW1KcU1Rc3dDUVlEVlFRS0V3SmlhakVMTUFrRwpBMVVFQ3hNQ1EwRXhFekFSQmdOVkJBTVRDa3QxWW1WeWJtVjBaWE13SGhjTk1qUXdNekkxTVRBeE56QXdXaGNOCk1qa3dNekkwTVRBeE56QXdXakJKTVFzd0NRWURWUVFHRXdKNmFERUxNQWtHQTFVRUJ4TUNZbW94Q3pBSkJnTlYKQkFvVEFtSnFNUXN3Q1FZRFZRUUxFd0pEUVRFVE1CRUdBMVVFQXhNS1MzVmlaWEp1WlhSbGN6Q0NBU0l3RFFZSgpLb1pJ
[...]
- url: https://10.23.132.51:5443/validate-v1-service
- rules:
- - apiGroups:
- - ""
- apiVersions:
- - v1
- operations:
- - CREATE
- - UPDATE
- resources:
- - services
- sideEffects: None
diff --git a/tests/cp/crds/dubbo.io_conditionroutes.yaml
b/tests/cp/crds/dubbo.io_conditionroutes.yaml
deleted file mode 100644
index a3aa558b..00000000
--- a/tests/cp/crds/dubbo.io_conditionroutes.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: conditionroutes.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: ConditionRoute
- listKind: ConditionRouteList
- plural: conditionroutes
- singular: conditionroute
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo ConditionRoute
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_dataplaneinsights.yaml
b/tests/cp/crds/dubbo.io_dataplaneinsights.yaml
deleted file mode 100644
index 8312537b..00000000
--- a/tests/cp/crds/dubbo.io_dataplaneinsights.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: dataplaneinsights.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: DataplaneInsight
- listKind: DataplaneInsightList
- plural: dataplaneinsights
- singular: dataplaneinsight
- scope: Namespaced
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- status:
- description: Status is the status the dubbo resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_dataplanes.yaml
b/tests/cp/crds/dubbo.io_dataplanes.yaml
deleted file mode 100644
index 7d19bbef..00000000
--- a/tests/cp/crds/dubbo.io_dataplanes.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: dataplanes.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: Dataplane
- listKind: DataplaneList
- plural: dataplanes
- singular: dataplane
- scope: Namespaced
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo Dataplane
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_datasources.yaml
b/tests/cp/crds/dubbo.io_datasources.yaml
deleted file mode 100644
index d32fc810..00000000
--- a/tests/cp/crds/dubbo.io_datasources.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: datasources.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: DataSource
- listKind: DataSourceList
- plural: datasources
- singular: datasource
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo DataSource
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_dynamicconfigs.yaml
b/tests/cp/crds/dubbo.io_dynamicconfigs.yaml
deleted file mode 100644
index 9b22fbee..00000000
--- a/tests/cp/crds/dubbo.io_dynamicconfigs.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: dynamicconfigs.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: DynamicConfig
- listKind: DynamicConfigList
- plural: dynamicconfigs
- singular: dynamicconfig
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo DynamicConfig
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_mappings.yaml
b/tests/cp/crds/dubbo.io_mappings.yaml
deleted file mode 100644
index 5c93d70f..00000000
--- a/tests/cp/crds/dubbo.io_mappings.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: mappings.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: Mapping
- listKind: MappingList
- plural: mappings
- singular: mapping
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo Mapping
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_meshes.yaml
b/tests/cp/crds/dubbo.io_meshes.yaml
deleted file mode 100644
index 7158965e..00000000
--- a/tests/cp/crds/dubbo.io_meshes.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: meshes.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: Mesh
- listKind: MeshList
- plural: meshes
- singular: mesh
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo Mesh resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_meshinsights.yaml
b/tests/cp/crds/dubbo.io_meshinsights.yaml
deleted file mode 100644
index be4a4bf2..00000000
--- a/tests/cp/crds/dubbo.io_meshinsights.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: meshinsights.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: MeshInsight
- listKind: MeshInsightList
- plural: meshinsights
- singular: meshinsight
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo MeshInsight
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_metadata.yaml
b/tests/cp/crds/dubbo.io_metadata.yaml
deleted file mode 100644
index 0bd89335..00000000
--- a/tests/cp/crds/dubbo.io_metadata.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: metadata.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: MetaData
- listKind: MetaDataList
- plural: metadata
- singular: metadata
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo MetaData
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_secrets.yaml
b/tests/cp/crds/dubbo.io_secrets.yaml
deleted file mode 100644
index 33329dc9..00000000
--- a/tests/cp/crds/dubbo.io_secrets.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: secrets.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: Secret
- listKind: SecretList
- plural: secrets
- singular: secret
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo Secret
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_servicenamemappings.yaml
b/tests/cp/crds/dubbo.io_servicenamemappings.yaml
deleted file mode 100644
index e6a6b9b8..00000000
--- a/tests/cp/crds/dubbo.io_servicenamemappings.yaml
+++ /dev/null
@@ -1,74 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: servicenamemappings.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: ServiceNameMapping
- listKind: ServiceNameMappingList
- plural: servicenamemappings
- singular: servicenamemapping
- scope: Namespaced
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo
ServiceNameMapping
- resource.
- properties:
- applicationNames:
- items:
- type: string
- type: array
- interfaceName:
- type: string
- namespace:
- type: string
- required:
- - applicationNames
- - interfaceName
- - namespace
- type: object
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_tagroutes.yaml
b/tests/cp/crds/dubbo.io_tagroutes.yaml
deleted file mode 100644
index 55fbdc89..00000000
--- a/tests/cp/crds/dubbo.io_tagroutes.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: tagroutes.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: TagRoute
- listKind: TagRouteList
- plural: tagroutes
- singular: tagroute
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo TagRoute
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_zoneegresses.yaml
b/tests/cp/crds/dubbo.io_zoneegresses.yaml
deleted file mode 100644
index b7c866c2..00000000
--- a/tests/cp/crds/dubbo.io_zoneegresses.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: zoneegresses.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: ZoneEgress
- listKind: ZoneEgressList
- plural: zoneegresses
- singular: zoneegress
- scope: Namespaced
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo ZoneEgress
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_zoneegressinsights.yaml
b/tests/cp/crds/dubbo.io_zoneegressinsights.yaml
deleted file mode 100644
index 22b43f92..00000000
--- a/tests/cp/crds/dubbo.io_zoneegressinsights.yaml
+++ /dev/null
@@ -1,66 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: zoneegressinsights.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: ZoneEgressInsight
- listKind: ZoneEgressInsightList
- plural: zoneegressinsights
- singular: zoneegressinsight
- scope: Namespaced
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo
ZoneEgressInsight
- resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_zoneingresses.yaml
b/tests/cp/crds/dubbo.io_zoneingresses.yaml
deleted file mode 100644
index a5f37612..00000000
--- a/tests/cp/crds/dubbo.io_zoneingresses.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: zoneingresses.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: ZoneIngress
- listKind: ZoneIngressList
- plural: zoneingresses
- singular: zoneingress
- scope: Namespaced
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo ZoneIngress
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_zoneingressinsights.yaml
b/tests/cp/crds/dubbo.io_zoneingressinsights.yaml
deleted file mode 100644
index 7a4343e3..00000000
--- a/tests/cp/crds/dubbo.io_zoneingressinsights.yaml
+++ /dev/null
@@ -1,66 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: zoneingressinsights.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: ZoneIngressInsight
- listKind: ZoneIngressInsightList
- plural: zoneingressinsights
- singular: zoneingressinsight
- scope: Namespaced
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo
ZoneIngressInsight
- resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_zoneinsights.yaml
b/tests/cp/crds/dubbo.io_zoneinsights.yaml
deleted file mode 100644
index 41fb477b..00000000
--- a/tests/cp/crds/dubbo.io_zoneinsights.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: zoneinsights.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: ZoneInsight
- listKind: ZoneInsightList
- plural: zoneinsights
- singular: zoneinsight
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo ZoneInsight
resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/cp/crds/dubbo.io_zones.yaml
b/tests/cp/crds/dubbo.io_zones.yaml
deleted file mode 100644
index a34a8491..00000000
--- a/tests/cp/crds/dubbo.io_zones.yaml
+++ /dev/null
@@ -1,65 +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: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- controller-gen.kubebuilder.io/version: v0.14.0
- name: zones.dubbo.io
-spec:
- group: dubbo.io
- names:
- categories:
- - dubbo
- kind: Zone
- listKind: ZoneList
- plural: zones
- singular: zone
- scope: Cluster
- versions:
- - name: v1alpha1
- schema:
- openAPIV3Schema:
- properties:
- apiVersion:
- description: |-
- APIVersion defines the versioned schema of this representation
of an object.
- Servers should convert recognized schemas to the latest internal
value, and
- may reject unrecognized values.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- type: string
- kind:
- description: |-
- Kind is a string value representing the REST resource this
object represents.
- Servers may infer this from the endpoint the client submits
requests to.
- Cannot be updated.
- In CamelCase.
- More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- type: string
- mesh:
- description: |-
- Mesh is the name of the dubbo mesh this resource belongs to.
- It may be omitted for cluster-scoped resources.
- type: string
- metadata:
- type: object
- spec:
- description: Spec is the specification of the Dubbo Zone resource.
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
diff --git a/tests/dp/dp-bootstrap.yaml b/tests/dp/dp-bootstrap.yaml
deleted file mode 100644
index a887e7b9..00000000
--- a/tests/dp/dp-bootstrap.yaml
+++ /dev/null
@@ -1,151 +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
- labels:
- dubbo.apache/system-namespace: "true"
----
-apiVersion: v1
-kind: ServiceAccount
-metadata:
- name: dubbo-ingress
- namespace: dubbo-system
- labels:
- app: dubbo-ingress
- app.kubernetes.io/name: dubbo
- app.kubernetes.io/instance: dubbo
----
-apiVersion: v1
-kind: Service
-metadata:
- name: dubbo-ingress
- namespace: dubbo-system
- labels:
- app: dubbo-ingress
- app.kubernetes.io/name: dubbo
- app.kubernetes.io/instance: dubbo
-spec:
- type: LoadBalancer
- ports:
- - port: 10001
- protocol: TCP
- targetPort: 10001
- selector:
- app: dubbo-ingress
- app.kubernetes.io/name: dubbo
- app.kubernetes.io/instance: dubbo
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: dubbo-ingress
- namespace: dubbo-system
- labels:
- app: dubbo-ingress
- app.kubernetes.io/name: dubbo
- app.kubernetes.io/instance: dubbo
-spec:
- strategy:
- rollingUpdate:
- maxSurge: 1
- maxUnavailable: 0
- replicas: 1
- selector:
- matchLabels:
- app.kubernetes.io/name: dubbo
- app.kubernetes.io/instance: dubbo
- app: dubbo-ingress
- template:
- metadata:
- annotations:
- dubbo.io/ingress: enabled
- labels:
- app: dubbo-ingress
- app.kubernetes.io/name: dubbo
- app.kubernetes.io/instance: dubbo
- spec:
- hostNetwork: true
- serviceAccountName: dubbo-ingress
- automountServiceAccountToken: true
- nodeSelector:
- kubernetes.io/os: linux
- terminationGracePeriodSeconds: 40
- containers:
- - name: ingress
- image: "dubboctl/proxy:latest"
- imagePullPolicy: IfNotPresent
- args:
- - --cp-address=http://127.0.0.1:5678
- ports:
- - containerPort: 10001
- livenessProbe:
- httpGet:
- path: "/ready"
- port: 9901
- failureThreshold: 12
- initialDelaySeconds: 60
- periodSeconds: 5
- successThreshold: 1
- timeoutSeconds: 3
- readinessProbe:
- httpGet:
- path: "/ready"
- port: 9901
- failureThreshold: 12
- initialDelaySeconds: 1
- periodSeconds: 5
- successThreshold: 1
- timeoutSeconds: 3
- resources:
- limits:
- cpu: 1000m
- memory: 512Mi
- requests:
- cpu: 50m
- memory: 64Mi
- volumeMounts:
- - name: tmp
- mountPath: /tmp
- - name: ingress-config
- mountPath: /config
- volumes:
- - name: tmp
- emptyDir: { }
- - name: ingress-config
- configMap:
- name: ingress-config
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: ingress-config
- namespace: dubbo-system
- labels:
- app: dubbo-control-plane
- app.kubernetes.io/name: dubbo
- app.kubernetes.io/instance: dubbo
-data:
- ingress.yaml: |
- type: ZoneIngress
- name: zoneingress-1
- networking:
- address: 192.168.0.1
- port: 10001
- advertisedAddress: 10.0.0.1
- advertisedPort: 10000
\ No newline at end of file
diff --git a/tests/dp/dp.Dockerfile b/tests/dp/dp.Dockerfile
deleted file mode 100644
index 3c6e8731..00000000
--- a/tests/dp/dp.Dockerfile
+++ /dev/null
@@ -1,67 +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.
-
-# Build the image binary
-FROM golang:1.20.1-alpine3.17 as builder
-
-
-# Build argments
-ARG TARGETOS=linux
-ARG TARGETARCH=amd64
-ARG LDFLAGS="-s -w"
-ARG BUILD
-
-WORKDIR /go/src/github.com/apache/dubbo-kubernetes
-
-# Copy the Go Modules manifests
-COPY go.mod go.mod
-COPY go.sum go.sum
-
-#RUN if [[ "${PKGNAME}" == "authority" ]]; then apk --update add gcc libc-dev
upx ca-certificates && update-ca-certificates; fi
-
-# cache deps before building and copying source so that we don't need to
re-download as much
-# and so that source changes don't invalidate our downloaded layer
-RUN if [[ "${BUILD}" != "CI" ]]; then go env -w
GOPROXY=https://goproxy.cn,direct; fi
-RUN go env
-RUN go mod download
-
-
-# Copy the go source
-COPY pkg pkg/
-COPY app app/
-COPY api api/
-COPY conf conf/
-COPY manifests manifests/
-COPY generate generate/
-COPY test/proxy/dp test/proxy/dp
-
-# Build
-RUN env
-RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="${LDFLAGS:- -s
-w}" -a -o dubboctl /go/src/github.com/apache/dubbo-kubernetes/dubboctl/main.go
-
-FROM envoyproxy/envoy:v1.29.2
-
-
-
-# Build
-WORKDIR /
-ARG PKGNAME
-COPY --from=builder /go/src/github.com/apache/dubbo-kubernetes/dubboctl .
-COPY --from=builder /go/src/github.com/apache/dubbo-kubernetes/test/proxy/dp .
-#COPY --from=builder /go/src/github.com/apache/dubbo-kubernetes/conf/admin.yml
.
-#ENV ADMIN_CONFIG_PATH=./admin.yml
-
-
-ENTRYPOINT ["./dubboctl",
"proxy","--proxy-type=ingress","--dataplane-file=/ingress.yaml"]
diff --git a/tests/dp/dp/ingress.yaml b/tests/dp/dp/ingress.yaml
deleted file mode 100644
index 6080785c..00000000
--- a/tests/dp/dp/ingress.yaml
+++ /dev/null
@@ -1,22 +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.
-
-type: ZoneIngress
-name: zoneingress-1
-networking:
- address: 192.168.0.1
- port: 10001
- advertisedAddress: 10.0.0.1
- advertisedPort: 10000
\ No newline at end of file