You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2023/09/13 01:35:29 UTC

[dubbo-kubernetes] 01/01: Merge pull request #21, dubboctl supporting more commands

This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git

commit 2d20e5a1e7a01d52d4f7201e7a2cd1e7a86f8ce0
Merge: 6d0d795 be15d18
Author: Ken Liu <ke...@gmail.com>
AuthorDate: Wed Sep 13 09:35:24 2023 +0800

    Merge pull request #21, dubboctl supporting more commands

 .../dubbo-admin-feature-request-template.md        |   4 +-
 .../dubbo-admin-issue-report-template.md           |   4 +-
 .licenserc.yaml                                    |   3 +
 .run/Admin.run.xml                                 |   2 +-
 Dockerfile                                         |   6 +-
 Makefile                                           |  14 +-
 api/ca/ca.proto                                    |   2 +-
 api/dds/dds.proto                                  |   2 +-
 app/dubbo-cp/cmd/root.go                           |   6 +-
 app/dubbo-cp/cmd/run.go                            |  26 +-
 app/dubbo-cp/main.go                               |   2 +-
 app/dubboctl/cmd/build.go                          | 199 +++++
 app/dubboctl/cmd/client.go                         |  85 ++
 app/dubboctl/cmd/{subcmd => }/common.go            |   2 +-
 app/dubboctl/cmd/completion_util.go                |  68 ++
 app/dubboctl/cmd/create.go                         | 558 +++++++++++++
 app/dubboctl/cmd/create_test.go                    | 108 +++
 app/dubboctl/cmd/dashboard.go                      |  13 +-
 .../cmd/{subcmd => }/dashboard_all_cmds.go         |  16 +-
 app/dubboctl/cmd/deploy.go                         | 339 ++++++++
 app/dubboctl/cmd/manifest.go                       |   9 +-
 app/dubboctl/cmd/{subcmd => }/manifest_diff.go     |   6 +-
 app/dubboctl/cmd/{subcmd => }/manifest_generate.go |  16 +-
 app/dubboctl/cmd/{subcmd => }/manifest_install.go  |  10 +-
 app/dubboctl/cmd/manifest_test.go                  |  10 +-
 .../cmd/{subcmd => }/manifest_uninstall.go         |  10 +-
 app/dubboctl/cmd/profile.go                        |   5 +-
 app/dubboctl/cmd/{subcmd => }/profile_diff.go      |  10 +-
 app/dubboctl/cmd/{subcmd => }/profile_list.go      |  10 +-
 app/dubboctl/cmd/profile_test.go                   |  16 -
 app/dubboctl/cmd/prompt/prompt.go                  | 149 ++++
 app/dubboctl/cmd/prompt/prompt_test.go             |  89 ++
 app/dubboctl/cmd/repository.go                     | 592 ++++++++++++++
 app/dubboctl/cmd/repository_test.go                | 165 ++++
 app/dubboctl/cmd/root.go                           | 151 +++-
 app/dubboctl/cmd/root_test.go                      |  88 ++
 app/dubboctl/cmd/testdata/repository.git/HEAD      |   1 +
 app/dubboctl/cmd/testdata/repository.git/config    |   6 +
 .../cmd/testdata/repository.git/description        |   1 +
 .../cmd/testdata/repository.git/hooks/.gitinclude  |   0
 .../cmd/testdata/repository.git/info/exclude       |   6 +
 app/dubboctl/cmd/testdata/repository.git/info/refs |   1 +
 .../00/9641334a89d30963a68442a132e5f8ef389ba8      | Bin 0 -> 48 bytes
 .../25/128199189ce87956e5e41fa8113bbf5cb6c39a      | Bin 0 -> 83 bytes
 .../27/d75d0e58009a59e1ff8a52a3297e1e0574138b      | Bin 0 -> 46 bytes
 .../43/0739f6d9930f74a6aef1a410f0f0727d171cef      | Bin 0 -> 56 bytes
 .../67/00ea8078422674e91189c1b513d1ab0696b150      | Bin 0 -> 783 bytes
 .../6f/6a77b977041c978dbdd431f9e7b2952c6908a3      | Bin 0 -> 818 bytes
 .../8b/57110b1cc8f2019ca4b2ed51a450ee0873eaaf      |   4 +
 .../98/68959b2b456ac7767bf351a84b369f9fbadb3a      | Bin 0 -> 790 bytes
 .../9a/c29c7ad8c06fa6613b794521568fbd7ea007dd      | Bin 0 -> 787 bytes
 .../b2/7e306a552e80fcae0bfa959bd6e8652de70c69      | Bin 0 -> 58 bytes
 .../b7/5832d0a4a4bb0409cca573b2c97b017d088f90      | Bin 0 -> 48 bytes
 .../c7/e84596af04680b8e7a39b9a527f19ccd75f287      | Bin 0 -> 466 bytes
 .../ca/1a6296f97eced6c9497d05598ef508852cac5d      | Bin 0 -> 83 bytes
 .../ca/5019f945b1d769d042c5f87d39f5d7a15f290c      | Bin 0 -> 60 bytes
 .../e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391      | Bin 0 -> 15 bytes
 .../f3/a9c97a29b561e7d72668581ea82284de2f1ca0      | Bin 0 -> 111 bytes
 .../cmd/testdata/repository.git/objects/info/packs |   1 +
 .../cmd/testdata/repository.git/packed-refs        |   2 +
 .../cmd/testdata/repository.git/refs/heads/main    |   1 +
 .../testdata/repository.git/refs/tags/.gitinclude  |   0
 app/dubboctl/internal/builders/builders.go         | 112 +++
 app/dubboctl/internal/builders/builders_test.go    | 121 +++
 app/dubboctl/internal/builders/dockerfile/build.go |  60 ++
 app/dubboctl/internal/builders/pack/build.go       | 258 ++++++
 app/dubboctl/internal/builders/pack/build_test.go  | 167 ++++
 app/dubboctl/internal/docker/creds/credentials.go  | 483 +++++++++++
 .../internal/docker/creds/credentials_test.go      | 896 +++++++++++++++++++++
 app/dubboctl/internal/docker/docker_client.go      | 219 +++++
 .../internal/docker/docker_client_ssh_test.go      | 405 ++++++++++
 app/dubboctl/internal/docker/docker_client_test.go | 138 ++++
 .../internal/docker/docker_client_windows_test.go  |  61 ++
 app/dubboctl/internal/docker/pusher.go             | 284 +++++++
 app/dubboctl/internal/docker/pusher_test.go        | 498 ++++++++++++
 app/dubboctl/internal/dubbo/client.go              | 521 ++++++++++++
 .../{main.go => internal/dubbo/client_test.go}     |  14 +-
 app/dubboctl/internal/dubbo/deploy.tpl             | 152 ++++
 app/dubboctl/internal/dubbo/deployer.go            | 182 +++++
 app/dubboctl/internal/dubbo/dockerfile.go          |  65 ++
 app/dubboctl/internal/dubbo/dubbo.go               | 460 +++++++++++
 .../{main.go => internal/dubbo/dubbo_test.go}      |  16 +-
 app/dubboctl/internal/dubbo/errors.go              |  87 ++
 app/dubboctl/internal/dubbo/repositories.go        | 226 ++++++
 app/dubboctl/internal/dubbo/repositories_test.go   | 364 +++++++++
 app/dubboctl/internal/dubbo/repository.go          | 492 +++++++++++
 app/dubboctl/internal/dubbo/template.go            |  78 ++
 app/dubboctl/internal/dubbo/templates.go           | 120 +++
 .../internal/dubbo/templates_embedded.go}          |  20 +-
 app/dubboctl/internal/dubbo/templates_test.go      | 375 +++++++++
 app/dubboctl/internal/dubbo/testdata/README.md     |  48 ++
 app/dubboctl/internal/dubbo/testdata/dubbo.yaml    |  46 ++
 .../dubbo/testdata/example.com/region1/README.md   |   3 +
 .../internal/dubbo/testdata/migrations/README.md   |   4 +
 .../dubbo/testdata/migrations/v0.19.0/func.yaml    |  22 +
 .../migrations/v0.23.0-customized/func.yaml        |  26 +
 .../dubbo/testdata/migrations/v0.23.0/func.yaml    |  26 +
 .../dubbo/testdata/migrations/v0.25.0/func.yaml    |  22 +
 .../dubbo/testdata/migrations/v0.34.0/func.yaml    |  27 +
 .../migrations/v0.35.0-nondefault/func.yaml        |  10 +
 .../dubbo/testdata/migrations/v0.35.0/func.yaml    |  10 +
 .../internal/dubbo/testdata/repositories/README.md |  16 +
 .../customLanguagePackRepo/manifest.yaml           |  19 +
 .../customRuntime/customTemplate/custom.impl       |   0
 .../manifestedRuntime/customTemplate/custom.impl   |   0
 .../templates/manifestedRuntime/manifest.yaml      |  12 +
 .../manifestedTemplate/custom.impl                 |   0
 .../manifestedTemplate/manifest.yaml               |  20 +
 .../repositories/customTemplateRepo/README.md      |   0
 .../customTemplateRepo/customRuntime/.gitinclude   |   0
 .../customRuntime/customTemplate/custom.impl       |   0
 .../customTemplateRepo/go/customTemplate/custom.go |   1 +
 .../customTemplateRepo/node/json/index.js          |   0
 .../customTemplateRepo/node/json/json.js           |   0
 .../customTemplateRepo/test/tpla/customtpl.txt     |   3 +
 .../customTemplateRepo/test/tplb/executable.sh     |   2 +
 .../customTemplateRepo/test/tplc/customtpl.txt     |   3 +
 .../dubbo/testdata/repository-a.git/COMMIT_EDITMSG |   1 +
 .../internal/dubbo/testdata/repository-a.git/HEAD  |   1 +
 .../dubbo/testdata/repository-a.git/config         |   4 +
 .../dubbo/testdata/repository-a.git/description    |   1 +
 .../testdata/repository-a.git/hooks/.gitinclude    |   0
 .../internal/dubbo/testdata/repository-a.git/index | Bin 0 -> 217 bytes
 .../dubbo/testdata/repository-a.git/info/exclude   |   6 +
 .../dubbo/testdata/repository-a.git/logs/HEAD      |   3 +
 .../testdata/repository-a.git/logs/refs/heads/main |   3 +
 .../repository-a.git/logs/refs/remotes/origin/HEAD |   1 +
 .../32/bad9e3775e80ae9b7483acf6d7630bf8b945e9      | Bin 0 -> 54 bytes
 .../88/3ff23f61018546cac0c302c5c75e3c65ed832d      | Bin 0 -> 572 bytes
 .../91/f1295d025a69a8ae87296ea5fda680672275d9      | Bin 0 -> 32 bytes
 .../af/e663f9ef928be2b5cb93f836c0905e60f09ab2      |   2 +
 .../d5/c0914f5e90ce1ccc3ee90e44ab610f466c774f      | Bin 0 -> 831 bytes
 .../dd/c6c5f6af77cfd92693c2b5b910b22a26379d01      | Bin 0 -> 35 bytes
 .../e7/ca8dffd312a48aac1f2aadd64a13ac34e021b9      | Bin 0 -> 91 bytes
 .../ee/f72a905e2866c0e4b4d13cb14bf118c8e8aa0b      | Bin 0 -> 92 bytes
 .../ef/1e6c8ed28e25dec915e8cd7479dacf671665ed      | Bin 0 -> 781 bytes
 .../repository-a.git/objects/info/.gitinclude      |   0
 .../repository-a.git/objects/pack/.gitinclude      |   0
 ...ck-3cc26077b1d72f3ffb9484d7baca188936db8c5e.idx | Bin 0 -> 1156 bytes
 ...k-3cc26077b1d72f3ffb9484d7baca188936db8c5e.pack | Bin 0 -> 878 bytes
 .../dubbo/testdata/repository-a.git/packed-refs    |   2 +
 .../repository-a.git/refs/heads/.gitinclude        |   0
 .../testdata/repository-a.git/refs/heads/main      |   1 +
 .../repository-a.git/refs/remotes/origin/HEAD      |   1 +
 .../repository-a.git/refs/tags/.gitinclude         |   0
 .../internal/dubbo/testdata/repository.git/HEAD    |   1 +
 .../internal/dubbo/testdata/repository.git/config  |   6 +
 .../dubbo/testdata/repository.git/description      |   1 +
 .../repository.git/hooks/applypatch-msg.sample     |  15 +
 .../repository.git/hooks/commit-msg.sample         |  24 +
 .../repository.git/hooks/fsmonitor-watchman.sample | 173 ++++
 .../repository.git/hooks/post-update.sample        |   8 +
 .../repository.git/hooks/pre-applypatch.sample     |  14 +
 .../repository.git/hooks/pre-commit.sample         |  49 ++
 .../repository.git/hooks/pre-merge-commit.sample   |  13 +
 .../testdata/repository.git/hooks/pre-push.sample  |  53 ++
 .../repository.git/hooks/pre-rebase.sample         | 169 ++++
 .../repository.git/hooks/pre-receive.sample        |  24 +
 .../repository.git/hooks/prepare-commit-msg.sample |  42 +
 .../repository.git/hooks/push-to-checkout.sample   |  78 ++
 .../testdata/repository.git/hooks/update.sample    | 128 +++
 .../dubbo/testdata/repository.git/info/exclude     |   6 +
 .../00/9641334a89d30963a68442a132e5f8ef389ba8      | Bin 0 -> 48 bytes
 .../27/d75d0e58009a59e1ff8a52a3297e1e0574138b      | Bin 0 -> 46 bytes
 .../43/0739f6d9930f74a6aef1a410f0f0727d171cef      | Bin 0 -> 56 bytes
 .../44/788c5d0e56a8bb819c56a307b6c8de4045e020      | Bin 0 -> 144 bytes
 .../93/bd2fa63bb19bf11231dde8709672bd1428e57c      | Bin 0 -> 110 bytes
 .../b2/7e306a552e80fcae0bfa959bd6e8652de70c69      | Bin 0 -> 58 bytes
 .../b7/5832d0a4a4bb0409cca573b2c97b017d088f90      | Bin 0 -> 48 bytes
 .../c8/fdee8e0a172c9e1544bc127b2bfb35829ffe1f      |   4 +
 .../e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391      | Bin 0 -> 15 bytes
 .../dubbo/testdata/repository.git/refs/heads/main  |   1 +
 .../testdata/repository.git/refs/heads/master      |   1 +
 .../dubbo/testdata/testClientRunReadiness/f.go     |  30 +
 .../dubbo/testdata/testClientRunReadiness/go.mod   |   3 +
 .../dubbo/testdata/testClientRunTimeout/f.go       |  30 +
 .../dubbo/testdata/testClientRunTimeout/go.mod     |   3 +
 .../testFunctionMarshallingError/func.yaml         |   1 +
 .../testdata/testFunctionMigrationError/func.yaml  |   5 +
 .../{main.go => internal/dubbo/validate.go}        |  12 +-
 app/dubboctl/internal/filesystem/filesystem.go     | 325 ++++++++
 app/dubboctl/internal/http/transport.go            | 215 +++++
 app/dubboctl/internal/kube/client.go               |   4 +-
 app/dubboctl/internal/kube/client_test.go          |   4 +-
 app/dubboctl/internal/kube/object.go               |   2 +-
 app/dubboctl/internal/kube/port_foward.go          |   2 +-
 app/dubboctl/internal/manifest/common.go           |   4 +-
 app/dubboctl/internal/manifest/render/render.go    |   6 +-
 .../internal/manifest/render/render_test.go        |   4 +-
 app/dubboctl/internal/manifest/tree.go             |   2 +-
 .../{cmd/profile.go => internal/mock/builder.go}   |  27 +-
 app/dubboctl/internal/mock/client.go               |  91 +++
 .../{cmd/profile.go => internal/mock/pusher.go}    |  27 +-
 app/dubboctl/internal/operator/component.go        |  10 +-
 app/dubboctl/internal/operator/component_test.go   |   6 +-
 app/dubboctl/internal/operator/operator.go         |   8 +-
 .../common.go => internal/ssh/ssh_agent_conf.go}   |  15 +-
 .../ssh/ssh_agent_conf_windows.go}                 |  20 +-
 app/dubboctl/internal/ssh/ssh_dialer.go            | 474 +++++++++++
 app/dubboctl/internal/ssh/terminal.go              | 136 ++++
 app/dubboctl/internal/testing/testing.go           | 239 ++++++
 app/dubboctl/internal/util/config.go               |  82 ++
 app/dubboctl/internal/util/config_test.go          |  95 +++
 .../{cmd/subcmd/common.go => internal/util/env.go} |  16 +-
 app/dubboctl/internal/util/file.go                 |  82 ++
 app/dubboctl/internal/util/filter_test.go          |  27 -
 app/dubboctl/internal/util/names.go                |  45 ++
 app/dubboctl/internal/util/names_test.go           |  71 ++
 .../dubboctl/internal/util/sortedset.go            |  53 +-
 .../util/testdata/TestLoad/dubbo/config.yaml       |   1 +
 .../internal/util/testdata/dubbo/config.yaml       |   1 +
 app/dubboctl/main.go                               |   2 +-
 generate/templates/main.go                         | 182 +++++
 generate/zz_filesystem_generated.go                | 589 ++++++++++++++
 go.mod                                             | 177 +++-
 go.sum                                             | 410 ++++++++--
 pkg/admin/bootstrap.go                             |  22 +-
 pkg/admin/cache/registry/kube/registry.go          |   4 +-
 pkg/admin/cache/registry/universal/registry.go     |   2 +-
 .../service_instances_changed_listener_impl.go     |   2 +-
 pkg/admin/config/config.go                         |   4 +-
 pkg/admin/handlers/condition_route.go              |   6 +-
 pkg/admin/handlers/mock_rule.go                    |   8 +-
 pkg/admin/handlers/overrides.go                    |  10 +-
 pkg/admin/handlers/service.go                      |  14 +-
 pkg/admin/handlers/tag_route.go                    |   8 +-
 pkg/admin/handlers/traffic/accesslog.go            |   6 +-
 pkg/admin/handlers/traffic/argument.go             |   6 +-
 pkg/admin/handlers/traffic/gray.go                 |   6 +-
 pkg/admin/handlers/traffic/mock.go                 |   6 +-
 pkg/admin/handlers/traffic/region.go               |   6 +-
 pkg/admin/handlers/traffic/retry.go                |   6 +-
 pkg/admin/handlers/traffic/timeout.go              |   6 +-
 pkg/admin/handlers/traffic/weight.go               |   6 +-
 pkg/admin/mapper/mock_rule_mapper.go               |   4 +-
 pkg/admin/mapper/mock_rule_mapper_mock.go          |   4 +-
 pkg/admin/model/dynamic_config.go                  |   2 +-
 pkg/admin/model/match.go                           |   2 +-
 pkg/admin/model/override.go                        |   2 +-
 pkg/admin/model/traffic.go                         |   2 +-
 pkg/admin/model/util/override_utils.go             |   6 +-
 pkg/admin/model/util/override_utils_test.go        |   4 +-
 pkg/admin/model/util/sync_utils.go                 |   8 +-
 pkg/admin/model/util/sync_utils_test.go            |   2 +-
 pkg/admin/providers/mock/mock_provider.go          |  10 +-
 pkg/admin/router/router.go                         |  10 +-
 pkg/admin/services/consumer_service.go             |   2 +-
 pkg/admin/services/consumer_service_impl.go        |   6 +-
 pkg/admin/services/generic_service_Impl.go         |   6 +-
 pkg/admin/services/mock_rule_service.go            |   2 +-
 pkg/admin/services/mock_rule_service_impl.go       |   4 +-
 pkg/admin/services/mock_rule_service_impl_test.go  |   6 +-
 pkg/admin/services/monitor_service.go              |   2 +-
 pkg/admin/services/override_service.go             |   2 +-
 pkg/admin/services/override_service_impl.go        |  12 +-
 pkg/admin/services/override_service_impl_test.go   |   8 +-
 pkg/admin/services/prometheus_service_impl.go      |  12 +-
 pkg/admin/services/prometheus_service_impl_test.go |   8 +-
 pkg/admin/services/provider_service.go             |   2 +-
 pkg/admin/services/provider_service_impl.go        |   8 +-
 pkg/admin/services/provider_service_impl_test.go   |   8 +-
 pkg/admin/services/registry_service_sync.go        |  10 +-
 pkg/admin/services/route_service.go                |   2 +-
 pkg/admin/services/route_service_impl.go           |  10 +-
 pkg/admin/services/route_service_impl_test.go      |  10 +-
 pkg/admin/services/service_testing_v3.go           |   2 +-
 pkg/admin/services/traffic/accesslog.go            |   6 +-
 pkg/admin/services/traffic/argument.go             |   6 +-
 .../services/traffic/generic_rule_operation.go     |   6 +-
 pkg/admin/services/traffic/gray.go                 |   6 +-
 pkg/admin/services/traffic/mock.go                 |   6 +-
 pkg/admin/services/traffic/region.go               |   6 +-
 pkg/admin/services/traffic/retry.go                |  10 +-
 pkg/admin/services/traffic/timeout.go              |   8 +-
 pkg/admin/services/traffic/timeout_test.go         |   6 +-
 pkg/admin/services/traffic/weight.go               |   6 +-
 pkg/admin/setup.go                                 |   4 +-
 pkg/admin/util/base_service_metadata.go            |   2 +-
 pkg/admin/util/monitor_utils.go                    |   2 +-
 pkg/admin/util/monitor_utils_test.go               |   2 +-
 pkg/authority/patch/javasdk.go                     |   4 +-
 pkg/authority/patch/javasdk_test.go                |  10 +-
 pkg/authority/server/authority.go                  |  16 +-
 pkg/authority/server/authority_test.go             |  16 +-
 pkg/authority/setup.go                             |  10 +-
 pkg/authority/webhook/server.go                    |   4 +-
 pkg/authority/webhook/server_test.go               |   8 +-
 pkg/config/admin/config.go                         |   2 +-
 pkg/config/app/dubbo-cp/config.go                  |  12 +-
 pkg/config/loader.go                               |   2 +-
 pkg/core/alias.go                                  |   2 +-
 pkg/core/bootstrap/bootstrap.go                    |  18 +-
 pkg/core/cert/provider/certelection.go             |   2 +-
 pkg/core/cert/provider/client.go                   |   6 +-
 pkg/core/cert/provider/storage.go                  |   4 +-
 pkg/core/cert/provider/storage_test.go             |   6 +-
 pkg/core/cert/provider/util.go                     |   4 +-
 pkg/core/cert/provider/util_test.go                |   4 +-
 pkg/core/cert/setup.go                             |   2 +-
 pkg/core/cmd/util.go                               |   2 +-
 pkg/core/election/kube/leaderelection.go           |   4 +-
 pkg/core/election/kube/leaderelection_test.go      |   4 +-
 pkg/core/election/universe/leaderelection.go       |   2 +-
 pkg/core/endpoint/endpoint.go                      |   2 +-
 pkg/core/endpoint/endpoint_test.go                 |   2 +-
 .../gen/apis/dubbo.apache.org/v1alpha1/types.go    |   2 +-
 .../gen/generated/clientset/versioned/clientset.go |   2 +-
 .../versioned/fake/clientset_generated.go          |   6 +-
 .../generated/clientset/versioned/fake/register.go |   2 +-
 .../clientset/versioned/scheme/register.go         |   2 +-
 .../v1alpha1/authenticationpolicy.go               |   4 +-
 .../v1alpha1/authorizationpolicy.go                |   4 +-
 .../dubbo.apache.org/v1alpha1/conditionroute.go    |   4 +-
 .../v1alpha1/dubbo.apache.org_client.go            |   4 +-
 .../dubbo.apache.org/v1alpha1/dynamicconfig.go     |   4 +-
 .../v1alpha1/fake/fake_authenticationpolicy.go     |   2 +-
 .../v1alpha1/fake/fake_authorizationpolicy.go      |   2 +-
 .../v1alpha1/fake/fake_conditionroute.go           |   2 +-
 .../v1alpha1/fake/fake_dubbo.apache.org_client.go  |   2 +-
 .../v1alpha1/fake/fake_dynamicconfig.go            |   2 +-
 .../v1alpha1/fake/fake_servicenamemapping.go       |   2 +-
 .../v1alpha1/fake/fake_tagroute.go                 |   2 +-
 .../v1alpha1/servicenamemapping.go                 |   4 +-
 .../typed/dubbo.apache.org/v1alpha1/tagroute.go    |   4 +-
 .../externalversions/dubbo.apache.org/interface.go |   4 +-
 .../v1alpha1/authenticationpolicy.go               |   8 +-
 .../v1alpha1/authorizationpolicy.go                |   8 +-
 .../dubbo.apache.org/v1alpha1/conditionroute.go    |   8 +-
 .../dubbo.apache.org/v1alpha1/dynamicconfig.go     |   8 +-
 .../dubbo.apache.org/v1alpha1/interface.go         |   2 +-
 .../v1alpha1/servicenamemapping.go                 |   8 +-
 .../dubbo.apache.org/v1alpha1/tagroute.go          |   8 +-
 .../informers/externalversions/factory.go          |   6 +-
 .../informers/externalversions/generic.go          |   2 +-
 .../internalinterfaces/factory_interfaces.go       |   2 +-
 .../v1alpha1/authenticationpolicy.go               |   2 +-
 .../v1alpha1/authorizationpolicy.go                |   2 +-
 .../dubbo.apache.org/v1alpha1/conditionroute.go    |   2 +-
 .../dubbo.apache.org/v1alpha1/dynamicconfig.go     |   2 +-
 .../v1alpha1/servicenamemapping.go                 |   2 +-
 .../listers/dubbo.apache.org/v1alpha1/tagroute.go  |   2 +-
 pkg/core/jwt/util_test.go                          |   2 +-
 pkg/core/kubeclient/client/fake.go                 |   4 +-
 pkg/core/kubeclient/client/kube.go                 |   8 +-
 pkg/core/kubeclient/setup.go                       |   2 +-
 pkg/core/labels/collection_test.go                 |   2 +-
 pkg/core/labels/instance_test.go                   |   2 +-
 pkg/core/model/model.go                            |   2 +-
 pkg/core/model/model_test.go                       |   2 +-
 pkg/core/monitor/prometheus/metrics.go             |   2 +-
 pkg/core/queue/delay.go                            |   2 +-
 pkg/core/queue/instance.go                         |   2 +-
 pkg/core/runtime/builder.go                        |  12 +-
 pkg/core/runtime/component/component.go            |   4 +-
 pkg/core/runtime/runtime.go                        |  10 +-
 pkg/core/schema/ast/ast.go                         |   4 +-
 pkg/core/schema/collection/schema.go               |   2 +-
 pkg/core/schema/collection/schema_test.go          |   4 +-
 pkg/core/schema/collection/schemas.go              |   2 +-
 pkg/core/schema/collection/schemas_test.go         |   6 +-
 pkg/core/schema/collections/collections.gen.go     |   8 +-
 pkg/core/schema/gvk/gvk.gen.go                     |   2 +-
 pkg/core/schema/resource/schema.go                 |   6 +-
 pkg/core/schema/schema.go                          |  10 +-
 pkg/core/schema/schema_test.go                     |   4 +-
 pkg/core/tools/endpoint/endpoint.go                |   8 +-
 pkg/core/tools/endpoint/endpoint_test.go           |  12 +-
 pkg/core/validation/validation.go                  |   2 +-
 pkg/cp-server/server/server.go                     |   6 +-
 pkg/cp-server/setup.go                             |   2 +-
 pkg/dds/kube/crdclient/cache_handler.go            |   2 +-
 pkg/dds/kube/crdclient/client.go                   |  14 +-
 pkg/dds/kube/crdclient/client_test.go              |  10 +-
 pkg/dds/kube/crdclient/config.go                   |   4 +-
 pkg/dds/kube/crdclient/config_test.go              |   6 +-
 pkg/dds/kube/crdclient/handler.go                  |  16 +-
 pkg/dds/kube/crdclient/handler_test.go             |  10 +-
 pkg/dds/kube/crdclient/types.gen.go                |  10 +-
 pkg/dds/server/server.go                           |  16 +-
 pkg/dds/setup.go                                   |  12 +-
 pkg/dds/storage/generate.go                        |   8 +-
 pkg/dds/storage/storage.go                         |  12 +-
 pkg/dds/storage/storage_test.go                    |  28 +-
 pkg/dds/storage/validate.go                        |   6 +-
 pkg/dds/storage/validate_test.go                   |  12 +-
 pkg/snp/server/servicemapping.go                   |  18 +-
 pkg/snp/setup.go                                   |   6 +-
 templates/go/common/.gitignore                     |   1 +
 templates/go/common/api/api.pb.go                  | 240 ++++++
 templates/go/common/api/api.proto                  |  25 +
 templates/go/common/api/api_triple.pb.go           | 242 ++++++
 templates/go/common/cmd/app.go                     |  16 +
 templates/go/common/conf/dubbogo.yaml              |  13 +
 templates/go/common/go.mod                         |  11 +
 templates/go/common/pkg/service/service.go         |  25 +
 templates/java/common/.gitignore                   |  33 +
 templates/java/common/pom.xml                      |  93 +++
 .../java/com/example/demo/DemoApplication.java     |  15 +
 .../example/demo/demos/web/BasicController.java    |  67 ++
 .../demo/demos/web/PathVariableController.java     |  44 +
 .../main/java/com/example/demo/demos/web/User.java |  43 +
 .../com/example/demo/dubbo/api/DemoService.java    |   7 +
 .../com/example/demo/dubbo/consumer/Consumer.java  |  21 +
 .../demo/dubbo/service/DemoServiceImpl.java        |  14 +
 .../java/common/src/main/resources/application.yml |   9 +
 .../common/src/main/resources/log4j.properties     |  12 +
 .../common/src/main/resources/static/index.html    |   6 +
 .../com/example/demo/DemoApplicationTests.java     |  13 +
 templates/manifest.yaml                            |   6 +
 test/testclient/ddsc.go                            |  10 +-
 test/util/retry/retry.go                           |   2 +-
 tools/code-generator-gen/main.go                   |   2 +-
 tools/code-generator-gen/typesgen.go.tmpl          |   2 +-
 tools/deepcopy-gen/generate.go                     |   2 +-
 tools/resource-gen/cmd/cmd.go                      |   6 +-
 tools/resource-gen/collections.go                  |  12 +-
 tools/resource-gen/collections_test.go             |  10 +-
 tools/types-gen/main.go                            |   4 +-
 tools/types-gen/types.go.tmpl                      |  10 +-
 419 files changed, 15486 insertions(+), 902 deletions(-)