You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by zh...@apache.org on 2026/03/22 19:42:04 UTC
(dubbo-kubernetes) branch master updated: Migrate API (#880)
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 72b6de10 Migrate API (#880)
72b6de10 is described below
commit 72b6de10056524f7dca87f486f29c484096b4393
Author: Joe Zhong <11...@qq.com>
AuthorDate: Mon Mar 23 03:41:58 2026 +0800
Migrate API (#880)
---
README.md | 2 +-
api/annotation/annotations.gen.go | 155 ------
api/annotation/annotations.yaml | 53 --
api/fix_import.sh | 19 -
api/google/api/field_behavior.proto | 79 ---
api/kubernetes/customresourcedefinitions.gen.yaml | 378 -------------
api/label/labels.gen.go | 211 --------
api/label/labels.yaml | 71 ---
api/mesh/v1alpha1/config.pb.go | 599 ---------------------
api/mesh/v1alpha1/config.proto | 93 ----
api/mesh/v1alpha1/config_json.gen.go | 78 ---
api/mesh/v1alpha1/proxy.pb.go | 281 ----------
api/mesh/v1alpha1/proxy.proto | 57 --
api/mesh/v1alpha1/proxy_json.gen.go | 23 -
api/meta/v1alpha1/status.pb.go | 221 --------
api/meta/v1alpha1/status.proto | 41 --
api/meta/v1alpha1/status_deepcopy.gen.go | 48 --
api/meta/v1alpha1/status_json.gen.go | 34 --
api/networking/v1alpha3/destination_rule.pb.go | 424 ---------------
api/networking/v1alpha3/destination_rule.proto | 124 -----
.../v1alpha3/destination_rule_deepcopy.gen.go | 90 ----
.../v1alpha3/destination_rule_json.gen.go | 56 --
api/networking/v1alpha3/virtual_service.pb.go | 348 ------------
api/networking/v1alpha3/virtual_service.proto | 106 ----
.../v1alpha3/virtual_service_deepcopy.gen.go | 90 ----
.../v1alpha3/virtual_service_json.gen.go | 56 --
api/security/v1alpha3/ca.pb.go | 211 --------
api/security/v1alpha3/ca.proto | 37 --
api/security/v1alpha3/ca_deepcopy.gen.go | 48 --
api/security/v1alpha3/ca_grpc.pb.go | 138 -----
api/security/v1alpha3/ca_json.gen.go | 34 --
api/security/v1alpha3/peer_authentication.pb.go | 309 -----------
api/security/v1alpha3/peer_authentication.proto | 85 ---
.../v1alpha3/peer_authentication_deepcopy.gen.go | 48 --
.../v1alpha3/peer_authentication_json.gen.go | 34 --
api/type/v1alpha3/selector.pb.go | 149 -----
api/type/v1alpha3/selector.proto | 32 --
api/type/v1alpha3/selector_deepcopy.gen.go | 27 -
api/type/v1alpha3/selector_json.gen.go | 23 -
.../pkg/apis/networking/v1alpha3/types.gen.go | 4 +-
client-go/pkg/apis/security/v1alpha3/types.gen.go | 4 +-
.../networking/v1alpha3/destinationrule.go | 4 +-
.../networking/v1alpha3/virtualservice.go | 4 +-
.../security/v1alpha3/peerauthentication.go | 4 +-
dubbod/discovery/cmd/dubbo-agent/options/agent.go | 2 +-
.../discovery/cmd/dubbo-agent/options/security.go | 2 +-
dubbod/discovery/pkg/bootstrap/server.go | 2 +-
.../pkg/config/kube/crdclient/types.gen.go | 6 +-
dubbod/discovery/pkg/model/authentication.go | 4 +-
dubbod/discovery/pkg/model/context.go | 2 +-
dubbod/discovery/pkg/model/destinationrule.go | 2 +-
dubbod/discovery/pkg/model/push_context.go | 4 +-
dubbod/discovery/pkg/model/virtualservice.go | 2 +-
dubbod/discovery/pkg/networking/core/configgen.go | 2 +-
dubbod/discovery/pkg/networking/grpcgen/cds.go | 2 +-
dubbod/discovery/pkg/networking/grpcgen/rds.go | 2 +-
.../pkg/serviceregistry/kube/conversion.go | 2 +-
.../nodeagent/caclient/providers/aegis/client.go | 2 +-
dubbod/security/pkg/pki/ra/common.go | 2 +-
dubbod/security/pkg/server/ca/server.go | 2 +-
go.mod | 1 +
go.sum | 2 +
pkg/adsc/adsc.go | 2 +-
pkg/bootstrap/config.go | 2 +-
pkg/config/mesh/mesh.go | 2 +-
pkg/config/mesh/meshwatcher/mesh.go | 2 +-
pkg/config/mesh/watchers.go | 2 +-
pkg/config/schema/collections/collections.gen.go | 16 +-
pkg/config/schema/kubetypes/resources.gen.go | 6 +-
pkg/dubboagent/agent.go | 2 +-
pkg/dubboagent/config/config.go | 2 +-
pkg/dubboagent/xds_proxy.go | 2 +-
pkg/kube/inject/inject.go | 4 +-
pkg/kube/inject/webhook.go | 2 +-
pkg/kube/namespace/filter.go | 2 +-
pkg/model/proxy.go | 2 +-
pkg/spiffe/spiffe.go | 2 +-
tools/cmd/kubetype-gen/generators/types.go | 4 +-
78 files changed, 61 insertions(+), 4968 deletions(-)
diff --git a/README.md b/README.md
index 20575961..24aba59d 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ Dubbo component composition:
Projects are distributed across the code directory repositories:
-- [dubbo/api](./api). — Defines the component level APIs for the Dubbo control plane.
+- [dubbo/api](https://github.com/kdubbo/api). — Defines the component level APIs for the Dubbo control plane.
- [dubbo/xds-api](https://github.com/kdubbo/xds-api). — Define the xDS API for the Dubbo control plane.
diff --git a/api/annotation/annotations.gen.go b/api/annotation/annotations.gen.go
deleted file mode 100644
index 3100adb5..00000000
--- a/api/annotation/annotations.gen.go
+++ /dev/null
@@ -1,155 +0,0 @@
-// GENERATED FILE -- DO NOT EDIT
-
-package annotation
-
-type FeatureStatus int
-
-const (
- Alpha FeatureStatus = iota
- Beta
- Stable
-)
-
-func (s FeatureStatus) String() string {
- switch s {
- case Alpha:
- return "Alpha"
- case Beta:
- return "Beta"
- case Stable:
- return "Stable"
- }
- return "Unknown"
-}
-
-type ResourceTypes int
-
-const (
- Unknown ResourceTypes = iota
- Pod
-)
-
-func (r ResourceTypes) String() string {
- switch r {
- case 1:
- return "Pod"
- }
- return "Unknown"
-}
-
-// Instance describes a single resource annotation
-type Instance struct {
- // The name of the annotation.
- Name string
-
- // Description of the annotation.
- Description string
-
- // FeatureStatus of this annotation.
- FeatureStatus FeatureStatus
-
- // Hide the existence of this annotation when outputting usage information.
- Hidden bool
-
- // Mark this annotation as deprecated when generating usage information.
- Deprecated bool
-
- // The types of resources this annotation applies to.
- Resources []ResourceTypes
-}
-
-var (
- OrgApacheDubboRev = Instance{
- Name: "dubbo.apache.org/rev",
- Description: "Specifies a control plane revision to which a given proxy " +
- "is connected. This annotation is added automatically, not " +
- "set by a user. In contrary to the label " +
- "dubbo.apache.org/rev, it represents the actual revision, " +
- "not the requested revision.",
- FeatureStatus: Alpha,
- Hidden: false,
- Deprecated: false,
- Resources: []ResourceTypes{
- Pod,
- },
- }
-
- OrgApacheDubboInjectTemplates = Instance{
- Name: "inject.dubbo.apache.org/templates",
- Description: "The name of the inject template(s) to use, as a comma " +
- "separate list.",
- FeatureStatus: Alpha,
- Hidden: false,
- Deprecated: false,
- Resources: []ResourceTypes{
- Pod,
- },
- }
-
- OrgApacheDubboProxyConfig = Instance{
- Name: "proxy.dubbo.apache.org/config",
- Description: "Overrides for the proxy configuration for this specific " +
- "proxy.",
- FeatureStatus: Beta,
- Hidden: false,
- Deprecated: false,
- Resources: []ResourceTypes{
- Pod,
- },
- }
-
- OrgApacheDubboProxyOverrides = Instance{
- Name: "proxy.dubbo.apache.org/overrides",
- Description: "Used internally to indicate user-specified overrides in " +
- "the proxy container of the pod during injection.",
- FeatureStatus: Alpha,
- Hidden: true,
- Deprecated: false,
- Resources: []ResourceTypes{
- Pod,
- },
- }
-
- OrgApacheDubboProxylessInject = Instance{
- Name: "proxyless.dubbo.apache.org/inject",
- Description: "Specifies whether or not an proxyless adapter should be " +
- "automatically injected into the workload.",
- FeatureStatus: Alpha,
- Hidden: false,
- Deprecated: true,
- Resources: []ResourceTypes{
- Pod,
- },
- }
-
- OrgApacheDubboProxylessStatus = Instance{
- Name: "proxyless.dubbo.apache.org/status",
- Description: "Generated by proxyless adapter injection that indicates " +
- "the status of the operation. Includes a version hash of " +
- "the executed template, as well as names of injected " +
- "resources.",
- FeatureStatus: Alpha,
- Hidden: false,
- Deprecated: false,
- Resources: []ResourceTypes{
- Pod,
- },
- }
-)
-
-func AllResourceAnnotations() []*Instance {
- return []*Instance{
- &OrgApacheDubboRev,
- &OrgApacheDubboInjectTemplates,
- &OrgApacheDubboProxyConfig,
- &OrgApacheDubboProxyOverrides,
- &OrgApacheDubboProxylessInject,
- &OrgApacheDubboProxylessStatus,
- }
-}
-
-func AllResourceTypes() []string {
- return []string{
- "Pod",
- }
-}
diff --git a/api/annotation/annotations.yaml b/api/annotation/annotations.yaml
deleted file mode 100644
index ab42b771..00000000
--- a/api/annotation/annotations.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-annotations:
- - name: proxyless.dubbo.apache.org/inject
- featureStatus: Alpha
- description: Specifies whether or not an proxyless adapter should be automatically
- injected into the workload.
- deprecated: true
- hidden: false
- resources:
- - Pod
-
- - name: proxyless.dubbo.apache.org/status
- featureStatus: Alpha
- description: Generated by proxyless adapter injection that indicates the status of
- the operation. Includes a version hash of the executed template, as well as names of
- injected resources.
- deprecated: false
- hidden: false
- resources:
- - Pod
-
- - name: proxy.dubbo.apache.org/config
- featureStatus: Beta
- description: Overrides for the proxy configuration for this specific proxy.
- deprecated: false
- hidden: false
- resources:
- - Pod
-
- - name: dubbo.apache.org/rev
- featureStatus: Alpha
- description: Specifies a control plane revision to which a given proxy is connected.
- This annotation is added automatically, not set by a user. In contrary to the label dubbo.apache.org/rev,
- it represents the actual revision, not the requested revision.
- deprecated: false
- hidden: false
- resources:
- - Pod
-
- - name: proxy.dubbo.apache.org/overrides
- featureStatus: Alpha
- description: Used internally to indicate user-specified overrides in the proxy container of the pod during injection.
- deprecated: false
- hidden: true
- resources:
- - Pod
-
- - name: inject.dubbo.apache.org/templates
- featureStatus: Alpha
- description: The name of the inject template(s) to use, as a comma separate list.
- deprecated: false
- hidden: false
- resources:
- - Pod
diff --git a/api/fix_import.sh b/api/fix_import.sh
deleted file mode 100755
index 1f425525..00000000
--- a/api/fix_import.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-TARGET_PATH='github.com/apache/dubbo-kubernetes/api/type/v1alpha3'
-
-find . -name "*.go" -type f | while read -r file; do
- sed -i.bak \
- -e 's|v1alpha3[[:space:]]*"/api/type/v1alpha3"|v1alpha3 "'"$TARGET_PATH"'"|g' \
- "$file"
-
- sed -i.bak \
- -e 's|"/api/type/v1alpha3"|"'"$TARGET_PATH"'"|g' \
- "$file"
-
- rm -f "${file}.bak"
-done
-
-echo "Fixed Success:/api/type/v1alpha3 -> ${TARGET_PATH}"
diff --git a/api/google/api/field_behavior.proto b/api/google/api/field_behavior.proto
deleted file mode 100644
index eb7f78ef..00000000
--- a/api/google/api/field_behavior.proto
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2019 Google LLC.
-//
-// Licensed 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.
-//
-
-syntax = "proto3";
-
-package google.api;
-
-import "google/protobuf/descriptor.proto";
-
-option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
-option java_multiple_files = true;
-option java_outer_classname = "FieldBehaviorProto";
-option java_package = "com.google.api";
-option objc_class_prefix = "GAPI";
-
-extend google.protobuf.FieldOptions {
- // A designation of a specific field behavior (required, output only, etc.)
- // in protobuf messages.
- //
- // Examples:
- //
- // string name = 1 [(google.api.field_behavior) = REQUIRED];
- // State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
- // google.protobuf.Duration ttl = 1
- // [(google.api.field_behavior) = INPUT_ONLY];
- // google.protobuf.Timestamp expire_time = 1
- // [(google.api.field_behavior) = OUTPUT_ONLY,
- // (google.api.field_behavior) = IMMUTABLE];
- repeated google.api.FieldBehavior field_behavior = 1052;
-}
-
-// An indicator of the behavior of a given field (for example, that a field
-// is required in requests, or given as output but ignored as input).
-// This **does not** change the behavior in protocol buffers itself; it only
-// denotes the behavior and may affect how API tooling handles the field.
-//
-// Note: This enum **may** receive new values in the future.
-enum FieldBehavior {
- // Conventional default for enums. Do not use this.
- FIELD_BEHAVIOR_UNSPECIFIED = 0;
-
- // Specifically denotes a field as optional.
- // While all fields in protocol buffers are optional, this may be specified
- // for emphasis if appropriate.
- OPTIONAL = 1;
-
- // Denotes a field as required.
- // This indicates that the field **must** be provided as part of the request,
- // and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
- REQUIRED = 2;
-
- // Denotes a field as output only.
- // This indicates that the field is provided in responses, but including the
- // field in a request does nothing (the server *must* ignore it and
- // *must not* throw an error as a result of the field's presence).
- OUTPUT_ONLY = 3;
-
- // Denotes a field as input only.
- // This indicates that the field is provided in requests, and the
- // corresponding field is not included in output.
- INPUT_ONLY = 4;
-
- // Denotes a field as immutable.
- // This indicates that the field may be set once in a request to create a
- // resource, but may not be changed thereafter.
- IMMUTABLE = 5;
-}
diff --git a/api/kubernetes/customresourcedefinitions.gen.yaml b/api/kubernetes/customresourcedefinitions.gen.yaml
deleted file mode 100644
index 04730e6f..00000000
--- a/api/kubernetes/customresourcedefinitions.gen.yaml
+++ /dev/null
@@ -1,378 +0,0 @@
-# DO NOT EDIT - Generated by Cue OpenAPI generator based on Dubbo APIs.
-apiVersion: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- "helm.sh/resource-policy": keep
- labels:
- app: dubbo
- chart: dubbo
- heritage: Tiller
- release: dubbo
- name: destinationrules.networking.dubbo.apache.org
-spec:
- group: networking.dubbo.apache.org
- names:
- categories:
- - dubbo
- - networking
- kind: DestinationRule
- listKind: DestinationRuleList
- plural: destinationrules
- shortNames:
- - dr
- singular: destinationrule
- scope: Namespaced
- versions:
- - additionalPrinterColumns:
- - description: The name of a service from the service registry
- jsonPath: .spec.host
- name: Host
- type: string
- - description: CreationTimestamp is a timestamp representing the server time when
- this object was created. It is not guaranteed to be set in happens-before
- order across separate operations. Clients may not set this value. It is represented
- in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for
- lists. For more information, see [Kubernetes API Conventions](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata)
- jsonPath: .metadata.creationTimestamp
- name: Age
- type: date
- name: v1alpha3
- schema:
- openAPIV3Schema:
- properties:
- spec:
- description: 'Configuration affecting load balancing, outlier detection,
- etc. See more details at: '
- properties:
- exportTo:
- description: A list of namespaces to which this destination rule is
- exported.
- items:
- type: string
- type: array
- host:
- type: string
- subsets:
- description: One or more named sets that represent individual versions
- of a service.
- items:
- properties:
- labels:
- additionalProperties:
- type: string
- description: Labels apply a filter over the endpoints of a service
- in the service registry.
- type: object
- name:
- description: Name of the subset.
- type: string
- trafficPolicy:
- description: Traffic policies that apply to this subset.
- properties:
- tls:
- description: TLS related settings for connections to the
- upstream service.
- properties:
- mode:
- description: |-
- Indicates whether connections to this port should be secured using TLS.
-
- Valid Options: DISABLE, MUTUAL, DUBBO_MUTUAL
- type: string
- x-kubernetes-int-or-string: true
- type: object
- type: object
- required:
- - name
- type: object
- type: array
- trafficPolicy:
- description: Traffic policies to apply (load balancing policy, connection
- pool sizes, outlier detection).
- properties:
- tls:
- description: TLS related settings for connections to the upstream
- service.
- properties:
- mode:
- description: |-
- Indicates whether connections to this port should be secured using TLS.
-
- Valid Options: DISABLE, MUTUAL, DUBBO_MUTUAL
- type: string
- x-kubernetes-int-or-string: true
- type: object
- type: object
- required:
- - host
- type: object
- status:
- properties:
- conditions:
- items:
- properties:
- observedGeneration:
- anyOf:
- - type: integer
- - type: string
- x-kubernetes-int-or-string: true
- reason:
- type: string
- status:
- type: string
- type:
- type: string
- type: object
- type: array
- type: object
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
- subresources:
- status: {}
----
-apiVersion: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- "helm.sh/resource-policy": keep
- labels:
- app: dubbo
- chart: dubbo
- heritage: Tiller
- release: dubbo
- name: virtualservices.networking.dubbo.apache.org
-spec:
- group: networking.dubbo.apache.org
- names:
- categories:
- - dubbo
- - networking
- kind: VirtualService
- listKind: VirtualServiceList
- plural: virtualservices
- shortNames:
- - vs
- singular: virtualservice
- scope: Namespaced
- versions:
- - additionalPrinterColumns:
- - description: The destination hosts to which traffic is being sent
- jsonPath: .spec.hosts
- name: Hosts
- type: string
- - description: 'CreationTimestamp is a timestamp representing the server time
- when this object was created. It is not guaranteed to be set in happens-before
- order across separate operations. Clients may not set this value. It is represented
- in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for
- lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
- jsonPath: .metadata.creationTimestamp
- name: Age
- type: date
- name: v1alpha3
- schema:
- openAPIV3Schema:
- properties:
- spec:
- description: 'Configuration affecting label/content routing, sni routing,
- etc. See more details at: '
- properties:
- exportTo:
- description: A list of namespaces to which this virtual service is
- exported.
- items:
- type: string
- type: array
- hosts:
- description: The hosts field applies to both HTTP and TCP services.
- items:
- type: string
- type: array
- http:
- description: An ordered list of route rules for HTTP traffic.
- items:
- properties:
- route:
- description: A HTTP rule can either return a direct_response,
- redirect or forward (default) traffic.
- items:
- properties:
- destination:
- description: Destination uniquely identifies the instances
- of a service to which the request/connection should
- be forwarded to.
- properties:
- host:
- description: The name of a service from the service
- registry.
- type: string
- subset:
- description: The name of a subset within the service.
- type: string
- required:
- - host
- type: object
- weight:
- description: Weight specifies the relative proportion
- of traffic to be forwarded to the destination.
- format: int32
- type: integer
- required:
- - destination
- type: object
- type: array
- type: object
- type: array
- type: object
- status:
- properties:
- conditions:
- items:
- properties:
- observedGeneration:
- anyOf:
- - type: integer
- - type: string
- x-kubernetes-int-or-string: true
- reason:
- type: string
- status:
- type: string
- type:
- type: string
- type: object
- type: array
- type: object
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
- subresources:
- status: {}
----
-apiVersion: apiextensions.k8s.io/v1
-kind: CustomResourceDefinition
-metadata:
- annotations:
- "helm.sh/resource-policy": keep
- labels:
- app: dubbo
- chart: dubbo
- dubbo: security
- heritage: Tiller
- release: dubbo
- name: peerauthentications.security.dubbo.apache.org
-spec:
- group: security.dubbo.apache.org
- names:
- categories:
- - dubbo
- - security
- kind: PeerAuthentication
- listKind: PeerAuthenticationList
- plural: peerauthentications
- shortNames:
- - pa
- singular: peerauthentication
- scope: Namespaced
- versions:
- - additionalPrinterColumns:
- - description: Defines the mTLS mode used for peer authentication.
- jsonPath: .spec.mtls.mode
- name: Mode
- type: string
- - description: 'CreationTimestamp is a timestamp representing the server time
- when this object was created. It is not guaranteed to be set in happens-before
- order across separate operations. Clients may not set this value. It is represented
- in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for
- lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
- jsonPath: .metadata.creationTimestamp
- name: Age
- type: date
- name: v1alpha3
- schema:
- openAPIV3Schema:
- properties:
- spec:
- description: 'Peer authentication configuration for workloads. See more
- details at: '
- properties:
- mtls:
- description: Mutual TLS settings for workload.
- properties:
- mode:
- description: |-
- Defines the mTLS mode used for peer authentication.
-
- Valid Options: DISABLE, PERMISSIVE, STRICT
- type: string
- x-kubernetes-int-or-string: true
- type: object
- portLevelMtls:
- additionalProperties:
- properties:
- mode:
- description: |-
- Defines the mTLS mode used for peer authentication.
-
- Valid Options: DISABLE, PERMISSIVE, STRICT
- type: string
- x-kubernetes-int-or-string: true
- type: object
- description: Port specific mutual TLS settings.
- minProperties: 1
- type: object
- x-kubernetes-validations:
- - message: port must be between 1-65535
- rule: self.all(key, 0 < int(key) && int(key) <= 65535)
- selector:
- description: The selector determines the workloads to apply the PeerAuthentication
- on.
- properties:
- matchLabels:
- additionalProperties:
- maxLength: 63
- type: string
- x-kubernetes-validations:
- - message: wildcard not allowed in label value match
- rule: '!self.contains("*")'
- maxProperties: 4096
- type: object
- x-kubernetes-validations:
- - message: wildcard not allowed in label key match
- rule: self.all(key, !key.contains("*"))
- - message: key must not be empty
- rule: self.all(key, key.size() != 0)
- type: object
- type: object
- x-kubernetes-validations:
- - message: portLevelMtls requires selector
- rule: 'has(self.portLevelMtls) ? (((has(self.selector) && has(self.selector.matchLabels))
- ? self.selector.matchLabels : {}).size() > 0) : true'
- status:
- properties:
- conditions:
- items:
- properties:
- observedGeneration:
- anyOf:
- - type: integer
- - type: string
- x-kubernetes-int-or-string: true
- reason:
- type: string
- status:
- type: string
- type:
- type: string
- type: object
- type: array
- type: object
- x-kubernetes-preserve-unknown-fields: true
- type: object
- served: true
- storage: true
- subresources:
- status: {}
diff --git a/api/label/labels.gen.go b/api/label/labels.gen.go
deleted file mode 100644
index 9627d46a..00000000
--- a/api/label/labels.gen.go
+++ /dev/null
@@ -1,211 +0,0 @@
-// GENERATED FILE -- DO NOT EDIT
-
-package label
-
-type FeatureStatus int
-
-const (
- Alpha FeatureStatus = iota
- Beta
- Stable
-)
-
-func (s FeatureStatus) String() string {
- switch s {
- case Alpha:
- return "Alpha"
- case Beta:
- return "Beta"
- case Stable:
- return "Stable"
- }
- return "Unknown"
-}
-
-type ResourceTypes int
-
-const (
- Unknown ResourceTypes = iota
- Any
- Deployment
- Gateway
- HorizontalPodAutoscaler
- Namespace
- Pod
- PodDisruptionBudget
- Service
- ServiceAccount
-)
-
-func (r ResourceTypes) String() string {
- switch r {
- case 1:
- return "Any"
- case 2:
- return "Deployment"
- case 3:
- return "Gateway"
- case 4:
- return "HorizontalPodAutoscaler"
- case 5:
- return "Namespace"
- case 6:
- return "Pod"
- case 7:
- return "PodDisruptionBudget"
- case 8:
- return "Service"
- case 9:
- return "ServiceAccount"
- }
- return "Unknown"
-}
-
-// Instance describes a single resource label
-type Instance struct {
- // The name of the label.
- Name string
-
- // Description of the label.
- Description string
-
- // FeatureStatus of this label.
- FeatureStatus FeatureStatus
-
- // Hide the existence of this label when outputting usage information.
- Hidden bool
-
- // Mark this label as deprecated when generating usage information.
- Deprecated bool
-
- // The types of resources this label applies to.
- Resources []ResourceTypes
-}
-
-var (
- OrgApacheDubboRev = Instance{
- Name: "dubbo.apache.org/rev",
- Description: "Dubbo control plane revision or tag associated with the " +
- "resource; e.g. `canary`",
- FeatureStatus: Beta,
- Hidden: false,
- Deprecated: false,
- Resources: []ResourceTypes{
- Namespace,
- Gateway,
- Pod,
- },
- }
-
- IoK8sNetworkingGatewayGatewayClassName = Instance{
- Name: "gateway.networking.k8s.io/gateway-class-name",
- Description: "Automatically added to all resources [automatically " +
- "created](/docs/tasks/traffic-management/ingress/gateway-api/#automated-deployment) " +
- "by Dubbo Gateway controller to indicate which " +
- "`GatewayClass` resulted in the object creation. Users " +
- "should not set this label themselves.",
- FeatureStatus: Stable,
- Hidden: false,
- Deprecated: false,
- Resources: []ResourceTypes{
- ServiceAccount,
- Deployment,
- Service,
- PodDisruptionBudget,
- HorizontalPodAutoscaler,
- },
- }
-
- IoK8sNetworkingGatewayGatewayName = Instance{
- Name: "gateway.networking.k8s.io/gateway-name",
- Description: "Automatically added to all resources [automatically " +
- "created](/docs/tasks/traffic-management/ingress/gateway-api/#automated-deployment) " +
- "by Dubbo Gateway controller to indicate which `Gateway` " +
- "resulted in the object creation. Users should not set " +
- "this label themselves.",
- FeatureStatus: Stable,
- Hidden: false,
- Deprecated: false,
- Resources: []ResourceTypes{
- ServiceAccount,
- Deployment,
- Service,
- PodDisruptionBudget,
- HorizontalPodAutoscaler,
- },
- }
-
- OrgApacheDubboOperatorComponent = Instance{
- Name: "operator.dubbo.apache.org/component",
- Description: "Dubbo operator component name of the resource, e.g. " +
- "`Pilot`",
- FeatureStatus: Alpha,
- Hidden: true,
- Deprecated: false,
- Resources: []ResourceTypes{
- Any,
- },
- }
-
- OrgApacheDubboOperatorManaged = Instance{
- Name: "operator.dubbo.apache.org/managed",
- Description: "Set to `Reconcile` if the Dubbo operator will reconcile " +
- "the resource.",
- FeatureStatus: Alpha,
- Hidden: true,
- Deprecated: false,
- Resources: []ResourceTypes{
- Any,
- },
- }
-
- OrgApacheDubboOperatorVersion = Instance{
- Name: "operator.dubbo.apache.org/version",
- Description: "The Dubbo operator version that installed the resource, " +
- "e.g. `1.6.0`",
- FeatureStatus: Alpha,
- Hidden: true,
- Deprecated: false,
- Resources: []ResourceTypes{
- Any,
- },
- }
-
- OrgApacheDubboProxylessInject = Instance{
- Name: "proxyless.dubbo.apache.org/inject",
- Description: "Specifies whether or not an proxyless adapter should be " +
- "automatically injected into the workload.",
- FeatureStatus: Alpha,
- Hidden: false,
- Deprecated: false,
- Resources: []ResourceTypes{
- Pod,
- },
- }
-)
-
-func AllResourceLabels() []*Instance {
- return []*Instance{
- &OrgApacheDubboRev,
- &IoK8sNetworkingGatewayGatewayClassName,
- &IoK8sNetworkingGatewayGatewayName,
- &OrgApacheDubboOperatorComponent,
- &OrgApacheDubboOperatorManaged,
- &OrgApacheDubboOperatorVersion,
- &OrgApacheDubboProxylessInject,
- }
-}
-
-func AllResourceTypes() []string {
- return []string{
- "Any",
- "Deployment",
- "Gateway",
- "HorizontalPodAutoscaler",
- "Namespace",
- "Pod",
- "PodDisruptionBudget",
- "Service",
- "ServiceAccount",
- }
-}
diff --git a/api/label/labels.yaml b/api/label/labels.yaml
deleted file mode 100644
index 9f04ae5b..00000000
--- a/api/label/labels.yaml
+++ /dev/null
@@ -1,71 +0,0 @@
-labels:
- - name: dubbo.apache.org/rev
- featureStatus: Beta
- description: Dubbo control plane revision or tag associated with the resource; e.g. `canary`
- hidden: false
- deprecated: false
- resources:
- - Namespace
- - Gateway
- - Pod
-
- - name: operator.dubbo.apache.org/component
- featureStatus: Alpha
- description: Dubbo operator component name of the resource, e.g. `Pilot`
- hidden: true
- deprecated: false
- resources:
- - Any
-
- - name: operator.dubbo.apache.org/managed
- featureStatus: Alpha
- description: Set to `Reconcile` if the Dubbo operator will reconcile the resource.
- hidden: true
- deprecated: false
- resources:
- - Any
-
- - name: operator.dubbo.apache.org/version
- featureStatus: Alpha
- description: The Dubbo operator version that installed the resource, e.g. `1.6.0`
- hidden: true
- deprecated: false
- resources:
- - Any
-
- - name: proxyless.dubbo.apache.org/inject
- featureStatus: Alpha
- description: Specifies whether or not an proxyless adapter should be automatically
- injected into the workload.
- deprecated: false
- hidden: false
- resources:
- - Pod
-
-
- - name: gateway.networking.k8s.io/gateway-name
- featureStatus: Stable
- description: Automatically added to all resources [automatically created](/docs/tasks/traffic-management/ingress/gateway-api/#automated-deployment)
- by Dubbo Gateway controller to indicate which `Gateway` resulted in the object creation. Users should not set this label themselves.
- deprecated: false
- hidden: false
- resources:
- - ServiceAccount
- - Deployment
- - Service
- - PodDisruptionBudget
- - HorizontalPodAutoscaler
-
- - name: gateway.networking.k8s.io/gateway-class-name
- featureStatus: Stable
- description: Automatically added to all resources [automatically created](/docs/tasks/traffic-management/ingress/gateway-api/#automated-deployment)
- by Dubbo Gateway controller to indicate which `GatewayClass` resulted in the object creation. Users should not set this label themselves.
- deprecated: false
- hidden: false
- resources:
- - ServiceAccount
- - Deployment
- - Service
- - PodDisruptionBudget
- - HorizontalPodAutoscaler
-
diff --git a/api/mesh/v1alpha1/config.pb.go b/api/mesh/v1alpha1/config.pb.go
deleted file mode 100644
index e328e4d9..00000000
--- a/api/mesh/v1alpha1/config.pb.go
+++ /dev/null
@@ -1,599 +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.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v6.33.0
-// source: config.proto
-
-package v1alpha1
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- durationpb "google.golang.org/protobuf/types/known/durationpb"
- _ "google.golang.org/protobuf/types/known/structpb"
- _ "google.golang.org/protobuf/types/known/wrapperspb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-// MeshGlobalConfig defines mesh-wide settings for the Dubbo service mesh.
-type MeshGlobalConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ConnectTimeout *durationpb.Duration `protobuf:"bytes,1,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"`
- DefaultConfig *ProxyConfig `protobuf:"bytes,2,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"`
- ConfigSources []*ConfigSource `protobuf:"bytes,3,rep,name=config_sources,json=configSources,proto3" json:"config_sources,omitempty"`
- TrustDomain string `protobuf:"bytes,4,opt,name=trust_domain,json=trustDomain,proto3" json:"trust_domain,omitempty"`
- TrustDomainAliases []string `protobuf:"bytes,5,rep,name=trust_domain_aliases,json=trustDomainAliases,proto3" json:"trust_domain_aliases,omitempty"`
- CaCertificates []*MeshGlobalConfig_CertificateData `protobuf:"bytes,6,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"`
- DefaultServiceExportTo []string `protobuf:"bytes,7,rep,name=default_service_export_to,json=defaultServiceExportTo,proto3" json:"default_service_export_to,omitempty"`
- DefaultVirtualServiceExportTo []string `protobuf:"bytes,8,rep,name=default_virtual_service_export_to,json=defaultVirtualServiceExportTo,proto3" json:"default_virtual_service_export_to,omitempty"`
- DefaultDestinationRuleExportTo []string `protobuf:"bytes,9,rep,name=default_destination_rule_export_to,json=defaultDestinationRuleExportTo,proto3" json:"default_destination_rule_export_to,omitempty"`
- RootNamespace string `protobuf:"bytes,10,opt,name=root_namespace,json=rootNamespace,proto3" json:"root_namespace,omitempty"`
- DnsRefreshRate *durationpb.Duration `protobuf:"bytes,11,opt,name=dns_refresh_rate,json=dnsRefreshRate,proto3" json:"dns_refresh_rate,omitempty"`
- // Deprecated: Marked as deprecated in config.proto.
- Certificates []*Certificate `protobuf:"bytes,12,rep,name=certificates,proto3" json:"certificates,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *MeshGlobalConfig) Reset() {
- *x = MeshGlobalConfig{}
- mi := &file_config_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *MeshGlobalConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*MeshGlobalConfig) ProtoMessage() {}
-
-func (x *MeshGlobalConfig) ProtoReflect() protoreflect.Message {
- mi := &file_config_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use MeshGlobalConfig.ProtoReflect.Descriptor instead.
-func (*MeshGlobalConfig) Descriptor() ([]byte, []int) {
- return file_config_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *MeshGlobalConfig) GetConnectTimeout() *durationpb.Duration {
- if x != nil {
- return x.ConnectTimeout
- }
- return nil
-}
-
-func (x *MeshGlobalConfig) GetDefaultConfig() *ProxyConfig {
- if x != nil {
- return x.DefaultConfig
- }
- return nil
-}
-
-func (x *MeshGlobalConfig) GetConfigSources() []*ConfigSource {
- if x != nil {
- return x.ConfigSources
- }
- return nil
-}
-
-func (x *MeshGlobalConfig) GetTrustDomain() string {
- if x != nil {
- return x.TrustDomain
- }
- return ""
-}
-
-func (x *MeshGlobalConfig) GetTrustDomainAliases() []string {
- if x != nil {
- return x.TrustDomainAliases
- }
- return nil
-}
-
-func (x *MeshGlobalConfig) GetCaCertificates() []*MeshGlobalConfig_CertificateData {
- if x != nil {
- return x.CaCertificates
- }
- return nil
-}
-
-func (x *MeshGlobalConfig) GetDefaultServiceExportTo() []string {
- if x != nil {
- return x.DefaultServiceExportTo
- }
- return nil
-}
-
-func (x *MeshGlobalConfig) GetDefaultVirtualServiceExportTo() []string {
- if x != nil {
- return x.DefaultVirtualServiceExportTo
- }
- return nil
-}
-
-func (x *MeshGlobalConfig) GetDefaultDestinationRuleExportTo() []string {
- if x != nil {
- return x.DefaultDestinationRuleExportTo
- }
- return nil
-}
-
-func (x *MeshGlobalConfig) GetRootNamespace() string {
- if x != nil {
- return x.RootNamespace
- }
- return ""
-}
-
-func (x *MeshGlobalConfig) GetDnsRefreshRate() *durationpb.Duration {
- if x != nil {
- return x.DnsRefreshRate
- }
- return nil
-}
-
-// Deprecated: Marked as deprecated in config.proto.
-func (x *MeshGlobalConfig) GetCertificates() []*Certificate {
- if x != nil {
- return x.Certificates
- }
- return nil
-}
-
-type LabelSelector struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // +optional
- MatchLabels map[string]string `protobuf:"bytes,1,rep,name=matchLabels,proto3" json:"matchLabels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- // +optional
- MatchExpressions []*LabelSelectorRequirement `protobuf:"bytes,2,rep,name=matchExpressions,proto3" json:"matchExpressions,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *LabelSelector) Reset() {
- *x = LabelSelector{}
- mi := &file_config_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *LabelSelector) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*LabelSelector) ProtoMessage() {}
-
-func (x *LabelSelector) ProtoReflect() protoreflect.Message {
- mi := &file_config_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use LabelSelector.ProtoReflect.Descriptor instead.
-func (*LabelSelector) Descriptor() ([]byte, []int) {
- return file_config_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *LabelSelector) GetMatchLabels() map[string]string {
- if x != nil {
- return x.MatchLabels
- }
- return nil
-}
-
-func (x *LabelSelector) GetMatchExpressions() []*LabelSelectorRequirement {
- if x != nil {
- return x.MatchExpressions
- }
- return nil
-}
-
-type LabelSelectorRequirement struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // +patchMergeKey=key
- // +patchStrategy=merge
- Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
- Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
- // +optional
- Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *LabelSelectorRequirement) Reset() {
- *x = LabelSelectorRequirement{}
- mi := &file_config_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *LabelSelectorRequirement) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*LabelSelectorRequirement) ProtoMessage() {}
-
-func (x *LabelSelectorRequirement) ProtoReflect() protoreflect.Message {
- mi := &file_config_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use LabelSelectorRequirement.ProtoReflect.Descriptor instead.
-func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) {
- return file_config_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *LabelSelectorRequirement) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
-}
-
-func (x *LabelSelectorRequirement) GetOperator() string {
- if x != nil {
- return x.Operator
- }
- return ""
-}
-
-func (x *LabelSelectorRequirement) GetValues() []string {
- if x != nil {
- return x.Values
- }
- return nil
-}
-
-type ConfigSource struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ConfigSource) Reset() {
- *x = ConfigSource{}
- mi := &file_config_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ConfigSource) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ConfigSource) ProtoMessage() {}
-
-func (x *ConfigSource) ProtoReflect() protoreflect.Message {
- mi := &file_config_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ConfigSource.ProtoReflect.Descriptor instead.
-func (*ConfigSource) Descriptor() ([]byte, []int) {
- return file_config_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *ConfigSource) GetAddress() string {
- if x != nil {
- return x.Address
- }
- return ""
-}
-
-type Certificate struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SecretName string `protobuf:"bytes,1,opt,name=secret_name,json=secretName,proto3" json:"secret_name,omitempty"`
- DnsNames []string `protobuf:"bytes,2,rep,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Certificate) Reset() {
- *x = Certificate{}
- mi := &file_config_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Certificate) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Certificate) ProtoMessage() {}
-
-func (x *Certificate) ProtoReflect() protoreflect.Message {
- mi := &file_config_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
-func (*Certificate) Descriptor() ([]byte, []int) {
- return file_config_proto_rawDescGZIP(), []int{4}
-}
-
-func (x *Certificate) GetSecretName() string {
- if x != nil {
- return x.SecretName
- }
- return ""
-}
-
-func (x *Certificate) GetDnsNames() []string {
- if x != nil {
- return x.DnsNames
- }
- return nil
-}
-
-type MeshGlobalConfig_CertificateData struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // Types that are valid to be assigned to CertificateData:
- //
- // *MeshGlobalConfig_CertificateData_Pem
- // *MeshGlobalConfig_CertificateData_SpiffeBundleUrl
- CertificateData isMeshGlobalConfig_CertificateData_CertificateData `protobuf_oneof:"certificate_data"`
- CertSigners []string `protobuf:"bytes,3,rep,name=cert_signers,json=certSigners,proto3" json:"cert_signers,omitempty"`
- TrustDomains []string `protobuf:"bytes,4,rep,name=trust_domains,json=trustDomains,proto3" json:"trust_domains,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *MeshGlobalConfig_CertificateData) Reset() {
- *x = MeshGlobalConfig_CertificateData{}
- mi := &file_config_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *MeshGlobalConfig_CertificateData) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*MeshGlobalConfig_CertificateData) ProtoMessage() {}
-
-func (x *MeshGlobalConfig_CertificateData) ProtoReflect() protoreflect.Message {
- mi := &file_config_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use MeshGlobalConfig_CertificateData.ProtoReflect.Descriptor instead.
-func (*MeshGlobalConfig_CertificateData) Descriptor() ([]byte, []int) {
- return file_config_proto_rawDescGZIP(), []int{0, 0}
-}
-
-func (x *MeshGlobalConfig_CertificateData) GetCertificateData() isMeshGlobalConfig_CertificateData_CertificateData {
- if x != nil {
- return x.CertificateData
- }
- return nil
-}
-
-func (x *MeshGlobalConfig_CertificateData) GetPem() string {
- if x != nil {
- if x, ok := x.CertificateData.(*MeshGlobalConfig_CertificateData_Pem); ok {
- return x.Pem
- }
- }
- return ""
-}
-
-func (x *MeshGlobalConfig_CertificateData) GetSpiffeBundleUrl() string {
- if x != nil {
- if x, ok := x.CertificateData.(*MeshGlobalConfig_CertificateData_SpiffeBundleUrl); ok {
- return x.SpiffeBundleUrl
- }
- }
- return ""
-}
-
-func (x *MeshGlobalConfig_CertificateData) GetCertSigners() []string {
- if x != nil {
- return x.CertSigners
- }
- return nil
-}
-
-func (x *MeshGlobalConfig_CertificateData) GetTrustDomains() []string {
- if x != nil {
- return x.TrustDomains
- }
- return nil
-}
-
-type isMeshGlobalConfig_CertificateData_CertificateData interface {
- isMeshGlobalConfig_CertificateData_CertificateData()
-}
-
-type MeshGlobalConfig_CertificateData_Pem struct {
- Pem string `protobuf:"bytes,1,opt,name=pem,proto3,oneof"`
-}
-
-type MeshGlobalConfig_CertificateData_SpiffeBundleUrl struct {
- SpiffeBundleUrl string `protobuf:"bytes,2,opt,name=spiffe_bundle_url,json=spiffeBundleUrl,proto3,oneof"`
-}
-
-func (*MeshGlobalConfig_CertificateData_Pem) isMeshGlobalConfig_CertificateData_CertificateData() {}
-
-func (*MeshGlobalConfig_CertificateData_SpiffeBundleUrl) isMeshGlobalConfig_CertificateData_CertificateData() {
-}
-
-var File_config_proto protoreflect.FileDescriptor
-
-const file_config_proto_rawDesc = "" +
- "\n" +
- "\fconfig.proto\x12\x13dubbo.mesh.v1alpha1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\vproxy.proto\"\xd7\a\n" +
- "\x10MeshGlobalConfig\x12B\n" +
- "\x0fconnect_timeout\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\x0econnectTimeout\x12G\n" +
- "\x0edefault_config\x18\x02 \x01(\v2 .dubbo.mesh.v1alpha1.ProxyConfigR\rdefaultConfig\x12H\n" +
- "\x0econfig_sources\x18\x03 \x03(\v2!.dubbo.mesh.v1alpha1.ConfigSourceR\rconfigSources\x12!\n" +
- "\ftrust_domain\x18\x04 \x01(\tR\vtrustDomain\x120\n" +
- "\x14trust_domain_aliases\x18\x05 \x03(\tR\x12trustDomainAliases\x12^\n" +
- "\x0fca_certificates\x18\x06 \x03(\v25.dubbo.mesh.v1alpha1.MeshGlobalConfig.CertificateDataR\x0ecaCertificates\x129\n" +
- "\x19default_service_export_to\x18\a \x03(\tR\x16defaultServiceExportTo\x12H\n" +
- "!default_virtual_service_export_to\x18\b \x03(\tR\x1ddefaultVirtualServiceExportTo\x12J\n" +
- "\"default_destination_rule_export_to\x18\t \x03(\tR\x1edefaultDestinationRuleExportTo\x12%\n" +
- "\x0eroot_namespace\x18\n" +
- " \x01(\tR\rrootNamespace\x12C\n" +
- "\x10dns_refresh_rate\x18\v \x01(\v2\x19.google.protobuf.DurationR\x0ednsRefreshRate\x12H\n" +
- "\fcertificates\x18\f \x03(\v2 .dubbo.mesh.v1alpha1.CertificateB\x02\x18\x01R\fcertificates\x1a\xaf\x01\n" +
- "\x0fCertificateData\x12\x12\n" +
- "\x03pem\x18\x01 \x01(\tH\x00R\x03pem\x12,\n" +
- "\x11spiffe_bundle_url\x18\x02 \x01(\tH\x00R\x0fspiffeBundleUrl\x12!\n" +
- "\fcert_signers\x18\x03 \x03(\tR\vcertSigners\x12#\n" +
- "\rtrust_domains\x18\x04 \x03(\tR\ftrustDomainsB\x12\n" +
- "\x10certificate_data\"\x81\x02\n" +
- "\rLabelSelector\x12U\n" +
- "\vmatchLabels\x18\x01 \x03(\v23.dubbo.mesh.v1alpha1.LabelSelector.MatchLabelsEntryR\vmatchLabels\x12Y\n" +
- "\x10matchExpressions\x18\x02 \x03(\v2-.dubbo.mesh.v1alpha1.LabelSelectorRequirementR\x10matchExpressions\x1a>\n" +
- "\x10MatchLabelsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"`\n" +
- "\x18LabelSelectorRequirement\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x1a\n" +
- "\boperator\x18\x02 \x01(\tR\boperator\x12\x16\n" +
- "\x06values\x18\x03 \x03(\tR\x06values\"(\n" +
- "\fConfigSource\x12\x18\n" +
- "\aaddress\x18\x01 \x01(\tR\aaddress\"K\n" +
- "\vCertificate\x12\x1f\n" +
- "\vsecret_name\x18\x01 \x01(\tR\n" +
- "secretName\x12\x1b\n" +
- "\tdns_names\x18\x02 \x03(\tR\bdnsNamesB\x14Z\x12/api/mesh/v1alpha1b\x06proto3"
-
-var (
- file_config_proto_rawDescOnce sync.Once
- file_config_proto_rawDescData []byte
-)
-
-func file_config_proto_rawDescGZIP() []byte {
- file_config_proto_rawDescOnce.Do(func() {
- file_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_config_proto_rawDesc), len(file_config_proto_rawDesc)))
- })
- return file_config_proto_rawDescData
-}
-
-var file_config_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
-var file_config_proto_goTypes = []any{
- (*MeshGlobalConfig)(nil), // 0: dubbo.mesh.v1alpha1.MeshGlobalConfig
- (*LabelSelector)(nil), // 1: dubbo.mesh.v1alpha1.LabelSelector
- (*LabelSelectorRequirement)(nil), // 2: dubbo.mesh.v1alpha1.LabelSelectorRequirement
- (*ConfigSource)(nil), // 3: dubbo.mesh.v1alpha1.ConfigSource
- (*Certificate)(nil), // 4: dubbo.mesh.v1alpha1.Certificate
- (*MeshGlobalConfig_CertificateData)(nil), // 5: dubbo.mesh.v1alpha1.MeshGlobalConfig.CertificateData
- nil, // 6: dubbo.mesh.v1alpha1.LabelSelector.MatchLabelsEntry
- (*durationpb.Duration)(nil), // 7: google.protobuf.Duration
- (*ProxyConfig)(nil), // 8: dubbo.mesh.v1alpha1.ProxyConfig
-}
-var file_config_proto_depIdxs = []int32{
- 7, // 0: dubbo.mesh.v1alpha1.MeshGlobalConfig.connect_timeout:type_name -> google.protobuf.Duration
- 8, // 1: dubbo.mesh.v1alpha1.MeshGlobalConfig.default_config:type_name -> dubbo.mesh.v1alpha1.ProxyConfig
- 3, // 2: dubbo.mesh.v1alpha1.MeshGlobalConfig.config_sources:type_name -> dubbo.mesh.v1alpha1.ConfigSource
- 5, // 3: dubbo.mesh.v1alpha1.MeshGlobalConfig.ca_certificates:type_name -> dubbo.mesh.v1alpha1.MeshGlobalConfig.CertificateData
- 7, // 4: dubbo.mesh.v1alpha1.MeshGlobalConfig.dns_refresh_rate:type_name -> google.protobuf.Duration
- 4, // 5: dubbo.mesh.v1alpha1.MeshGlobalConfig.certificates:type_name -> dubbo.mesh.v1alpha1.Certificate
- 6, // 6: dubbo.mesh.v1alpha1.LabelSelector.matchLabels:type_name -> dubbo.mesh.v1alpha1.LabelSelector.MatchLabelsEntry
- 2, // 7: dubbo.mesh.v1alpha1.LabelSelector.matchExpressions:type_name -> dubbo.mesh.v1alpha1.LabelSelectorRequirement
- 8, // [8:8] is the sub-list for method output_type
- 8, // [8:8] is the sub-list for method input_type
- 8, // [8:8] is the sub-list for extension type_name
- 8, // [8:8] is the sub-list for extension extendee
- 0, // [0:8] is the sub-list for field type_name
-}
-
-func init() { file_config_proto_init() }
-func file_config_proto_init() {
- if File_config_proto != nil {
- return
- }
- file_proxy_proto_init()
- file_config_proto_msgTypes[5].OneofWrappers = []any{
- (*MeshGlobalConfig_CertificateData_Pem)(nil),
- (*MeshGlobalConfig_CertificateData_SpiffeBundleUrl)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_config_proto_rawDesc), len(file_config_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 7,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_config_proto_goTypes,
- DependencyIndexes: file_config_proto_depIdxs,
- MessageInfos: file_config_proto_msgTypes,
- }.Build()
- File_config_proto = out.File
- file_config_proto_goTypes = nil
- file_config_proto_depIdxs = nil
-}
diff --git a/api/mesh/v1alpha1/config.proto b/api/mesh/v1alpha1/config.proto
deleted file mode 100755
index 9336503f..00000000
--- a/api/mesh/v1alpha1/config.proto
+++ /dev/null
@@ -1,93 +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.
-
-syntax = "proto3";
-
-package dubbo.mesh.v1alpha1;
-
-import "google/protobuf/duration.proto";
-import "google/protobuf/struct.proto";
-import "google/protobuf/wrappers.proto";
-import "proxy.proto";
-
-option go_package = "/api/mesh/v1alpha1";
-
-// MeshGlobalConfig defines mesh-wide settings for the Dubbo service mesh.
-message MeshGlobalConfig {
- google.protobuf.Duration connect_timeout = 1;
-
- ProxyConfig default_config = 2;
-
- repeated ConfigSource config_sources = 3;
-
- string trust_domain = 4;
-
- repeated string trust_domain_aliases = 5;
-
- message CertificateData {
- oneof certificate_data {
- string pem = 1;
- string spiffe_bundle_url = 2;
- }
- repeated string cert_signers = 3;
-
- repeated string trust_domains = 4;
- }
-
- repeated CertificateData ca_certificates = 6;
-
- repeated string default_service_export_to = 7;
-
- repeated string default_virtual_service_export_to = 8;
-
- repeated string default_destination_rule_export_to = 9;
-
- string root_namespace = 10;
-
- google.protobuf.Duration dns_refresh_rate = 11;
-
- repeated Certificate certificates = 12 [deprecated = true];
-}
-
-message LabelSelector {
- // +optional
- map<string, string> matchLabels = 1;
-
- // +optional
- repeated LabelSelectorRequirement matchExpressions = 2;
-}
-
-message LabelSelectorRequirement {
- // +patchMergeKey=key
- // +patchStrategy=merge
- string key = 1;
-
- string operator = 2;
-
- // +optional
- repeated string values = 3;
-}
-
-message ConfigSource {
- string address = 1;
- // TLS settings removed - not needed for proxyless mesh
- // dubbo.networking.v1alpha3.ClientTLSSettings tls_settings = 2;
-}
-
-message Certificate {
- string secret_name = 1;
- repeated string dns_names = 2;
-}
diff --git a/api/mesh/v1alpha1/config_json.gen.go b/api/mesh/v1alpha1/config_json.gen.go
deleted file mode 100644
index 62af6a29..00000000
--- a/api/mesh/v1alpha1/config_json.gen.go
+++ /dev/null
@@ -1,78 +0,0 @@
-// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
-package v1alpha1
-
-import (
- bytes "bytes"
- jsonpb "github.com/golang/protobuf/jsonpb"
-)
-
-// MarshalJSON is a custom marshaler for MeshGlobalConfig
-func (this *MeshGlobalConfig) MarshalJSON() ([]byte, error) {
- str, err := ConfigMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for MeshGlobalConfig
-func (this *MeshGlobalConfig) UnmarshalJSON(b []byte) error {
- return ConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for MeshGlobalConfig_CertificateData
-func (this *MeshGlobalConfig_CertificateData) MarshalJSON() ([]byte, error) {
- str, err := ConfigMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for MeshGlobalConfig_CertificateData
-func (this *MeshGlobalConfig_CertificateData) UnmarshalJSON(b []byte) error {
- return ConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for LabelSelector
-func (this *LabelSelector) MarshalJSON() ([]byte, error) {
- str, err := ConfigMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for LabelSelector
-func (this *LabelSelector) UnmarshalJSON(b []byte) error {
- return ConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for LabelSelectorRequirement
-func (this *LabelSelectorRequirement) MarshalJSON() ([]byte, error) {
- str, err := ConfigMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for LabelSelectorRequirement
-func (this *LabelSelectorRequirement) UnmarshalJSON(b []byte) error {
- return ConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for ConfigSource
-func (this *ConfigSource) MarshalJSON() ([]byte, error) {
- str, err := ConfigMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for ConfigSource
-func (this *ConfigSource) UnmarshalJSON(b []byte) error {
- return ConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for Certificate
-func (this *Certificate) MarshalJSON() ([]byte, error) {
- str, err := ConfigMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for Certificate
-func (this *Certificate) UnmarshalJSON(b []byte) error {
- return ConfigUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-var (
- ConfigMarshaler = &jsonpb.Marshaler{}
- ConfigUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
-)
diff --git a/api/mesh/v1alpha1/proxy.pb.go b/api/mesh/v1alpha1/proxy.pb.go
deleted file mode 100644
index ff1c1267..00000000
--- a/api/mesh/v1alpha1/proxy.pb.go
+++ /dev/null
@@ -1,281 +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.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v6.33.0
-// source: proxy.proto
-
-package v1alpha1
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- durationpb "google.golang.org/protobuf/types/known/durationpb"
- _ "google.golang.org/protobuf/types/known/wrapperspb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type AuthenticationPolicy int32
-
-const (
- AuthenticationPolicy_NONE AuthenticationPolicy = 0
- AuthenticationPolicy_MUTUAL_TLS AuthenticationPolicy = 1
- AuthenticationPolicy_INHERIT AuthenticationPolicy = 1000
-)
-
-// Enum value maps for AuthenticationPolicy.
-var (
- AuthenticationPolicy_name = map[int32]string{
- 0: "NONE",
- 1: "MUTUAL_TLS",
- 1000: "INHERIT",
- }
- AuthenticationPolicy_value = map[string]int32{
- "NONE": 0,
- "MUTUAL_TLS": 1,
- "INHERIT": 1000,
- }
-)
-
-func (x AuthenticationPolicy) Enum() *AuthenticationPolicy {
- p := new(AuthenticationPolicy)
- *p = x
- return p
-}
-
-func (x AuthenticationPolicy) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (AuthenticationPolicy) Descriptor() protoreflect.EnumDescriptor {
- return file_proxy_proto_enumTypes[0].Descriptor()
-}
-
-func (AuthenticationPolicy) Type() protoreflect.EnumType {
- return &file_proxy_proto_enumTypes[0]
-}
-
-func (x AuthenticationPolicy) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use AuthenticationPolicy.Descriptor instead.
-func (AuthenticationPolicy) EnumDescriptor() ([]byte, []int) {
- return file_proxy_proto_rawDescGZIP(), []int{0}
-}
-
-type ProxyConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ConfigPath string `protobuf:"bytes,1,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
- BinaryPath string `protobuf:"bytes,2,opt,name=binary_path,json=binaryPath,proto3" json:"binary_path,omitempty"`
- DrainDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=drain_duration,json=drainDuration,proto3" json:"drain_duration,omitempty"`
- DiscoveryAddress string `protobuf:"bytes,6,opt,name=discovery_address,json=discoveryAddress,proto3" json:"discovery_address,omitempty"`
- ControlPlaneAuthPolicy AuthenticationPolicy `protobuf:"varint,13,opt,name=control_plane_auth_policy,json=controlPlaneAuthPolicy,proto3,enum=dubbo.mesh.v1alpha1.AuthenticationPolicy" json:"control_plane_auth_policy,omitempty"`
- CustomConfigFile string `protobuf:"bytes,14,opt,name=custom_config_file,json=customConfigFile,proto3" json:"custom_config_file,omitempty"`
- ProxyBootstrapTemplatePath string `protobuf:"bytes,17,opt,name=proxy_bootstrap_template_path,json=proxyBootstrapTemplatePath,proto3" json:"proxy_bootstrap_template_path,omitempty"`
- ProxyMetadata map[string]string `protobuf:"bytes,24,rep,name=proxy_metadata,json=proxyMetadata,proto3" json:"proxy_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- StatusPort int32 `protobuf:"varint,26,opt,name=status_port,json=statusPort,proto3" json:"status_port,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ProxyConfig) Reset() {
- *x = ProxyConfig{}
- mi := &file_proxy_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ProxyConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ProxyConfig) ProtoMessage() {}
-
-func (x *ProxyConfig) ProtoReflect() protoreflect.Message {
- mi := &file_proxy_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead.
-func (*ProxyConfig) Descriptor() ([]byte, []int) {
- return file_proxy_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *ProxyConfig) GetConfigPath() string {
- if x != nil {
- return x.ConfigPath
- }
- return ""
-}
-
-func (x *ProxyConfig) GetBinaryPath() string {
- if x != nil {
- return x.BinaryPath
- }
- return ""
-}
-
-func (x *ProxyConfig) GetDrainDuration() *durationpb.Duration {
- if x != nil {
- return x.DrainDuration
- }
- return nil
-}
-
-func (x *ProxyConfig) GetDiscoveryAddress() string {
- if x != nil {
- return x.DiscoveryAddress
- }
- return ""
-}
-
-func (x *ProxyConfig) GetControlPlaneAuthPolicy() AuthenticationPolicy {
- if x != nil {
- return x.ControlPlaneAuthPolicy
- }
- return AuthenticationPolicy_NONE
-}
-
-func (x *ProxyConfig) GetCustomConfigFile() string {
- if x != nil {
- return x.CustomConfigFile
- }
- return ""
-}
-
-func (x *ProxyConfig) GetProxyBootstrapTemplatePath() string {
- if x != nil {
- return x.ProxyBootstrapTemplatePath
- }
- return ""
-}
-
-func (x *ProxyConfig) GetProxyMetadata() map[string]string {
- if x != nil {
- return x.ProxyMetadata
- }
- return nil
-}
-
-func (x *ProxyConfig) GetStatusPort() int32 {
- if x != nil {
- return x.StatusPort
- }
- return 0
-}
-
-var File_proxy_proto protoreflect.FileDescriptor
-
-const file_proxy_proto_rawDesc = "" +
- "\n" +
- "\vproxy.proto\x12\x13dubbo.mesh.v1alpha1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x8b\x05\n" +
- "\vProxyConfig\x12\x1f\n" +
- "\vconfig_path\x18\x01 \x01(\tR\n" +
- "configPath\x12\x1f\n" +
- "\vbinary_path\x18\x02 \x01(\tR\n" +
- "binaryPath\x12@\n" +
- "\x0edrain_duration\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\rdrainDuration\x12+\n" +
- "\x11discovery_address\x18\x06 \x01(\tR\x10discoveryAddress\x12d\n" +
- "\x19control_plane_auth_policy\x18\r \x01(\x0e2).dubbo.mesh.v1alpha1.AuthenticationPolicyR\x16controlPlaneAuthPolicy\x12,\n" +
- "\x12custom_config_file\x18\x0e \x01(\tR\x10customConfigFile\x12A\n" +
- "\x1dproxy_bootstrap_template_path\x18\x11 \x01(\tR\x1aproxyBootstrapTemplatePath\x12Z\n" +
- "\x0eproxy_metadata\x18\x18 \x03(\v23.dubbo.mesh.v1alpha1.ProxyConfig.ProxyMetadataEntryR\rproxyMetadata\x12\x1f\n" +
- "\vstatus_port\x18\x1a \x01(\x05R\n" +
- "statusPort\x1a@\n" +
- "\x12ProxyMetadataEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01J\x04\b\x05\x10\x06J\x04\b\t\x10\n" +
- "R\x18parent_shutdown_durationR\x0fconnect_timeout*>\n" +
- "\x14AuthenticationPolicy\x12\b\n" +
- "\x04NONE\x10\x00\x12\x0e\n" +
- "\n" +
- "MUTUAL_TLS\x10\x01\x12\f\n" +
- "\aINHERIT\x10\xe8\aB\x14Z\x12/api/mesh/v1alpha1b\x06proto3"
-
-var (
- file_proxy_proto_rawDescOnce sync.Once
- file_proxy_proto_rawDescData []byte
-)
-
-func file_proxy_proto_rawDescGZIP() []byte {
- file_proxy_proto_rawDescOnce.Do(func() {
- file_proxy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_proto_rawDesc), len(file_proxy_proto_rawDesc)))
- })
- return file_proxy_proto_rawDescData
-}
-
-var file_proxy_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_proxy_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
-var file_proxy_proto_goTypes = []any{
- (AuthenticationPolicy)(0), // 0: dubbo.mesh.v1alpha1.AuthenticationPolicy
- (*ProxyConfig)(nil), // 1: dubbo.mesh.v1alpha1.ProxyConfig
- nil, // 2: dubbo.mesh.v1alpha1.ProxyConfig.ProxyMetadataEntry
- (*durationpb.Duration)(nil), // 3: google.protobuf.Duration
-}
-var file_proxy_proto_depIdxs = []int32{
- 3, // 0: dubbo.mesh.v1alpha1.ProxyConfig.drain_duration:type_name -> google.protobuf.Duration
- 0, // 1: dubbo.mesh.v1alpha1.ProxyConfig.control_plane_auth_policy:type_name -> dubbo.mesh.v1alpha1.AuthenticationPolicy
- 2, // 2: dubbo.mesh.v1alpha1.ProxyConfig.proxy_metadata:type_name -> dubbo.mesh.v1alpha1.ProxyConfig.ProxyMetadataEntry
- 3, // [3:3] is the sub-list for method output_type
- 3, // [3:3] is the sub-list for method input_type
- 3, // [3:3] is the sub-list for extension type_name
- 3, // [3:3] is the sub-list for extension extendee
- 0, // [0:3] is the sub-list for field type_name
-}
-
-func init() { file_proxy_proto_init() }
-func file_proxy_proto_init() {
- if File_proxy_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_proto_rawDesc), len(file_proxy_proto_rawDesc)),
- NumEnums: 1,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_proxy_proto_goTypes,
- DependencyIndexes: file_proxy_proto_depIdxs,
- EnumInfos: file_proxy_proto_enumTypes,
- MessageInfos: file_proxy_proto_msgTypes,
- }.Build()
- File_proxy_proto = out.File
- file_proxy_proto_goTypes = nil
- file_proxy_proto_depIdxs = nil
-}
diff --git a/api/mesh/v1alpha1/proxy.proto b/api/mesh/v1alpha1/proxy.proto
deleted file mode 100644
index cc63d872..00000000
--- a/api/mesh/v1alpha1/proxy.proto
+++ /dev/null
@@ -1,57 +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.
-
-syntax = "proto3";
-
-package dubbo.mesh.v1alpha1;
-
-import "google/protobuf/duration.proto";
-import "google/protobuf/wrappers.proto";
-
-option go_package = "/api/mesh/v1alpha1";
-
-enum AuthenticationPolicy {
- NONE = 0;
- MUTUAL_TLS = 1;
- INHERIT = 1000;
-}
-
-message ProxyConfig {
- string config_path = 1;
- string binary_path = 2;
-
- google.protobuf.Duration drain_duration = 4;
-
- reserved "parent_shutdown_duration";
- reserved 5;
-
- string discovery_address = 6;
-
- reserved "connect_timeout";
- reserved 9;
-
- AuthenticationPolicy control_plane_auth_policy = 13;
- string custom_config_file = 14;
-
- string proxy_bootstrap_template_path = 17;
-
- map<string, string> proxy_metadata = 24;
-
- int32 status_port = 26;
-
- // ProxyImage removed - not needed for proxyless mesh
- // dubbo.networking.v1alpha3.ProxyImage image = 35;
-}
\ No newline at end of file
diff --git a/api/mesh/v1alpha1/proxy_json.gen.go b/api/mesh/v1alpha1/proxy_json.gen.go
deleted file mode 100644
index 4c5c6485..00000000
--- a/api/mesh/v1alpha1/proxy_json.gen.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
-package v1alpha1
-
-import (
- bytes "bytes"
- jsonpb "github.com/golang/protobuf/jsonpb"
-)
-
-// MarshalJSON is a custom marshaler for ProxyConfig
-func (this *ProxyConfig) MarshalJSON() ([]byte, error) {
- str, err := ProxyMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for ProxyConfig
-func (this *ProxyConfig) UnmarshalJSON(b []byte) error {
- return ProxyUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-var (
- ProxyMarshaler = &jsonpb.Marshaler{}
- ProxyUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
-)
diff --git a/api/meta/v1alpha1/status.pb.go b/api/meta/v1alpha1/status.pb.go
deleted file mode 100644
index 047ec446..00000000
--- a/api/meta/v1alpha1/status.pb.go
+++ /dev/null
@@ -1,221 +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.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v6.33.0
-// source: status.proto
-
-package v1alpha1
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type DubboStatus struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // +optional
- // +patchMergeKey=type
- // +patchStrategy=merge
- Conditions []*DubboCondition `protobuf:"bytes,1,rep,name=conditions,proto3" json:"conditions,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DubboStatus) Reset() {
- *x = DubboStatus{}
- mi := &file_status_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DubboStatus) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DubboStatus) ProtoMessage() {}
-
-func (x *DubboStatus) ProtoReflect() protoreflect.Message {
- mi := &file_status_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use DubboStatus.ProtoReflect.Descriptor instead.
-func (*DubboStatus) Descriptor() ([]byte, []int) {
- return file_status_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *DubboStatus) GetConditions() []*DubboCondition {
- if x != nil {
- return x.Conditions
- }
- return nil
-}
-
-type DubboCondition struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
- Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
- // +optional
- Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
- // +optional
- // +protoc-gen-crd:validation:XIntOrString
- ObservedGeneration int64 `protobuf:"varint,4,opt,name=observed_generation,json=observedGeneration,proto3" json:"observed_generation,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DubboCondition) Reset() {
- *x = DubboCondition{}
- mi := &file_status_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DubboCondition) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DubboCondition) ProtoMessage() {}
-
-func (x *DubboCondition) ProtoReflect() protoreflect.Message {
- mi := &file_status_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use DubboCondition.ProtoReflect.Descriptor instead.
-func (*DubboCondition) Descriptor() ([]byte, []int) {
- return file_status_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *DubboCondition) GetType() string {
- if x != nil {
- return x.Type
- }
- return ""
-}
-
-func (x *DubboCondition) GetStatus() string {
- if x != nil {
- return x.Status
- }
- return ""
-}
-
-func (x *DubboCondition) GetReason() string {
- if x != nil {
- return x.Reason
- }
- return ""
-}
-
-func (x *DubboCondition) GetObservedGeneration() int64 {
- if x != nil {
- return x.ObservedGeneration
- }
- return 0
-}
-
-var File_status_proto protoreflect.FileDescriptor
-
-const file_status_proto_rawDesc = "" +
- "\n" +
- "\fstatus.proto\x12\x13dubbo.meta.v1alpha1\"R\n" +
- "\vDubboStatus\x12C\n" +
- "\n" +
- "conditions\x18\x01 \x03(\v2#.dubbo.meta.v1alpha1.DubboConditionR\n" +
- "conditions\"\x85\x01\n" +
- "\x0eDubboCondition\x12\x12\n" +
- "\x04type\x18\x01 \x01(\tR\x04type\x12\x16\n" +
- "\x06status\x18\x02 \x01(\tR\x06status\x12\x16\n" +
- "\x06reason\x18\x03 \x01(\tR\x06reason\x12/\n" +
- "\x13observed_generation\x18\x04 \x01(\x03R\x12observedGenerationB\x14Z\x12/api/meta/v1alpha1b\x06proto3"
-
-var (
- file_status_proto_rawDescOnce sync.Once
- file_status_proto_rawDescData []byte
-)
-
-func file_status_proto_rawDescGZIP() []byte {
- file_status_proto_rawDescOnce.Do(func() {
- file_status_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_status_proto_rawDesc), len(file_status_proto_rawDesc)))
- })
- return file_status_proto_rawDescData
-}
-
-var file_status_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
-var file_status_proto_goTypes = []any{
- (*DubboStatus)(nil), // 0: dubbo.meta.v1alpha1.DubboStatus
- (*DubboCondition)(nil), // 1: dubbo.meta.v1alpha1.DubboCondition
-}
-var file_status_proto_depIdxs = []int32{
- 1, // 0: dubbo.meta.v1alpha1.DubboStatus.conditions:type_name -> dubbo.meta.v1alpha1.DubboCondition
- 1, // [1:1] is the sub-list for method output_type
- 1, // [1:1] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
-}
-
-func init() { file_status_proto_init() }
-func file_status_proto_init() {
- if File_status_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_status_proto_rawDesc), len(file_status_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_status_proto_goTypes,
- DependencyIndexes: file_status_proto_depIdxs,
- MessageInfos: file_status_proto_msgTypes,
- }.Build()
- File_status_proto = out.File
- file_status_proto_goTypes = nil
- file_status_proto_depIdxs = nil
-}
diff --git a/api/meta/v1alpha1/status.proto b/api/meta/v1alpha1/status.proto
deleted file mode 100644
index 5c1b164d..00000000
--- a/api/meta/v1alpha1/status.proto
+++ /dev/null
@@ -1,41 +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.
-
-syntax = "proto3";
-
-package dubbo.meta.v1alpha1;
-
-option go_package = "/api/meta/v1alpha1";
-
-message DubboStatus {
- // +optional
- // +patchMergeKey=type
- // +patchStrategy=merge
- repeated DubboCondition conditions = 1;
-}
-
-message DubboCondition {
- string type = 1;
-
- string status = 2;
-
- // +optional
- string reason = 3;
-
- // +optional
- // +protoc-gen-crd:validation:XIntOrString
- int64 observed_generation = 4;
-}
diff --git a/api/meta/v1alpha1/status_deepcopy.gen.go b/api/meta/v1alpha1/status_deepcopy.gen.go
deleted file mode 100644
index 8ee655e1..00000000
--- a/api/meta/v1alpha1/status_deepcopy.gen.go
+++ /dev/null
@@ -1,48 +0,0 @@
-// Code generated by protoc-gen-deepcopy. DO NOT EDIT.
-package v1alpha1
-
-import (
- proto "google.golang.org/protobuf/proto"
-)
-
-// DeepCopyInto supports using DubboStatus within kubernetes types, where deepcopy-gen is used.
-func (in *DubboStatus) DeepCopyInto(out *DubboStatus) {
- p := proto.Clone(in).(*DubboStatus)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DubboStatus. Required by controller-gen.
-func (in *DubboStatus) DeepCopy() *DubboStatus {
- if in == nil {
- return nil
- }
- out := new(DubboStatus)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new DubboStatus. Required by controller-gen.
-func (in *DubboStatus) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
-
-// DeepCopyInto supports using DubboCondition within kubernetes types, where deepcopy-gen is used.
-func (in *DubboCondition) DeepCopyInto(out *DubboCondition) {
- p := proto.Clone(in).(*DubboCondition)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DubboCondition. Required by controller-gen.
-func (in *DubboCondition) DeepCopy() *DubboCondition {
- if in == nil {
- return nil
- }
- out := new(DubboCondition)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new DubboCondition. Required by controller-gen.
-func (in *DubboCondition) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
diff --git a/api/meta/v1alpha1/status_json.gen.go b/api/meta/v1alpha1/status_json.gen.go
deleted file mode 100644
index 3c2e1260..00000000
--- a/api/meta/v1alpha1/status_json.gen.go
+++ /dev/null
@@ -1,34 +0,0 @@
-// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
-package v1alpha1
-
-import (
- bytes "bytes"
- jsonpb "github.com/golang/protobuf/jsonpb"
-)
-
-// MarshalJSON is a custom marshaler for DubboStatus
-func (this *DubboStatus) MarshalJSON() ([]byte, error) {
- str, err := StatusMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for DubboStatus
-func (this *DubboStatus) UnmarshalJSON(b []byte) error {
- return StatusUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for DubboCondition
-func (this *DubboCondition) MarshalJSON() ([]byte, error) {
- str, err := StatusMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for DubboCondition
-func (this *DubboCondition) UnmarshalJSON(b []byte) error {
- return StatusUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-var (
- StatusMarshaler = &jsonpb.Marshaler{}
- StatusUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
-)
diff --git a/api/networking/v1alpha3/destination_rule.pb.go b/api/networking/v1alpha3/destination_rule.pb.go
deleted file mode 100644
index ffb639f3..00000000
--- a/api/networking/v1alpha3/destination_rule.pb.go
+++ /dev/null
@@ -1,424 +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.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v6.33.0
-// source: networking/v1alpha3/destination_rule.proto
-
-// $schema: dubbo.networking.v1alpha3.DestinationRule
-// $title: Destination Rule
-
-package v1alpha3
-
-import (
- _ "google.golang.org/genproto/googleapis/api/annotations"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- _ "google.golang.org/protobuf/types/known/durationpb"
- _ "google.golang.org/protobuf/types/known/wrapperspb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type ClientTLSSettings_TLSmode int32
-
-const (
- ClientTLSSettings_DISABLE ClientTLSSettings_TLSmode = 0
- // TODO Not yet implemented
- ClientTLSSettings_MUTUAL ClientTLSSettings_TLSmode = 1
- ClientTLSSettings_DUBBO_MUTUAL ClientTLSSettings_TLSmode = 2
-)
-
-// Enum value maps for ClientTLSSettings_TLSmode.
-var (
- ClientTLSSettings_TLSmode_name = map[int32]string{
- 0: "DISABLE",
- 1: "MUTUAL",
- 2: "DUBBO_MUTUAL",
- }
- ClientTLSSettings_TLSmode_value = map[string]int32{
- "DISABLE": 0,
- "MUTUAL": 1,
- "DUBBO_MUTUAL": 2,
- }
-)
-
-func (x ClientTLSSettings_TLSmode) Enum() *ClientTLSSettings_TLSmode {
- p := new(ClientTLSSettings_TLSmode)
- *p = x
- return p
-}
-
-func (x ClientTLSSettings_TLSmode) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (ClientTLSSettings_TLSmode) Descriptor() protoreflect.EnumDescriptor {
- return file_networking_v1alpha3_destination_rule_proto_enumTypes[0].Descriptor()
-}
-
-func (ClientTLSSettings_TLSmode) Type() protoreflect.EnumType {
- return &file_networking_v1alpha3_destination_rule_proto_enumTypes[0]
-}
-
-func (x ClientTLSSettings_TLSmode) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use ClientTLSSettings_TLSmode.Descriptor instead.
-func (ClientTLSSettings_TLSmode) EnumDescriptor() ([]byte, []int) {
- return file_networking_v1alpha3_destination_rule_proto_rawDescGZIP(), []int{3, 0}
-}
-
-// DestinationRule defines policies that apply to traffic intended for a service
-// after routing has occurred.
-//
-// <!-- crd generation tags
-// +cue-gen:DestinationRule:groupName:networking.dubbo.apache.org
-// +cue-gen:DestinationRule:versions:v1alpha3
-// +cue-gen:DestinationRule:annotations:helm.sh/resource-policy=keep
-// +cue-gen:DestinationRule:labels:app=dubbo,chart=dubbo,heritage=Tiller,release=dubbo
-// +cue-gen:DestinationRule:subresource:status
-// +cue-gen:DestinationRule:scope:Namespaced
-// +cue-gen:DestinationRule:resource:categories=dubbo,networking,shortNames=dr
-// +cue-gen:DestinationRule:printerColumn:name=Host,type=string,JSONPath=.spec.host,description="The name of a service from the service registry"
-// +cue-gen:DestinationRule:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp
-// representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations.
-// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
-// Populated by the system. Read-only. Null for lists. For more information, see [Kubernetes API Conventions](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata)"
-// +cue-gen:DestinationRule:preserveUnknownFields:false
-// -->
-//
-// <!-- go code generation tags
-// +kubetype-gen
-// +kubetype-gen:groupVersion=networking.dubbo.apache.org/v1alpha3
-// +genclient
-// +k8s:deepcopy-gen=true
-// -->
-type DestinationRule struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
- TrafficPolicy *TrafficPolicy `protobuf:"bytes,2,opt,name=traffic_policy,json=trafficPolicy,proto3" json:"traffic_policy,omitempty"`
- Subsets []*Subset `protobuf:"bytes,3,rep,name=subsets,proto3" json:"subsets,omitempty"`
- ExportTo []string `protobuf:"bytes,4,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DestinationRule) Reset() {
- *x = DestinationRule{}
- mi := &file_networking_v1alpha3_destination_rule_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DestinationRule) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DestinationRule) ProtoMessage() {}
-
-func (x *DestinationRule) ProtoReflect() protoreflect.Message {
- mi := &file_networking_v1alpha3_destination_rule_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use DestinationRule.ProtoReflect.Descriptor instead.
-func (*DestinationRule) Descriptor() ([]byte, []int) {
- return file_networking_v1alpha3_destination_rule_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *DestinationRule) GetHost() string {
- if x != nil {
- return x.Host
- }
- return ""
-}
-
-func (x *DestinationRule) GetTrafficPolicy() *TrafficPolicy {
- if x != nil {
- return x.TrafficPolicy
- }
- return nil
-}
-
-func (x *DestinationRule) GetSubsets() []*Subset {
- if x != nil {
- return x.Subsets
- }
- return nil
-}
-
-func (x *DestinationRule) GetExportTo() []string {
- if x != nil {
- return x.ExportTo
- }
- return nil
-}
-
-type TrafficPolicy struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Tls *ClientTLSSettings `protobuf:"bytes,4,opt,name=tls,proto3" json:"tls,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *TrafficPolicy) Reset() {
- *x = TrafficPolicy{}
- mi := &file_networking_v1alpha3_destination_rule_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *TrafficPolicy) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*TrafficPolicy) ProtoMessage() {}
-
-func (x *TrafficPolicy) ProtoReflect() protoreflect.Message {
- mi := &file_networking_v1alpha3_destination_rule_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use TrafficPolicy.ProtoReflect.Descriptor instead.
-func (*TrafficPolicy) Descriptor() ([]byte, []int) {
- return file_networking_v1alpha3_destination_rule_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *TrafficPolicy) GetTls() *ClientTLSSettings {
- if x != nil {
- return x.Tls
- }
- return nil
-}
-
-type Subset struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- TrafficPolicy *TrafficPolicy `protobuf:"bytes,3,opt,name=traffic_policy,json=trafficPolicy,proto3" json:"traffic_policy,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Subset) Reset() {
- *x = Subset{}
- mi := &file_networking_v1alpha3_destination_rule_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Subset) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Subset) ProtoMessage() {}
-
-func (x *Subset) ProtoReflect() protoreflect.Message {
- mi := &file_networking_v1alpha3_destination_rule_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Subset.ProtoReflect.Descriptor instead.
-func (*Subset) Descriptor() ([]byte, []int) {
- return file_networking_v1alpha3_destination_rule_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *Subset) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *Subset) GetLabels() map[string]string {
- if x != nil {
- return x.Labels
- }
- return nil
-}
-
-func (x *Subset) GetTrafficPolicy() *TrafficPolicy {
- if x != nil {
- return x.TrafficPolicy
- }
- return nil
-}
-
-type ClientTLSSettings struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Mode ClientTLSSettings_TLSmode `protobuf:"varint,1,opt,name=mode,proto3,enum=dubbo.networking.v1alpha3.ClientTLSSettings_TLSmode" json:"mode,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ClientTLSSettings) Reset() {
- *x = ClientTLSSettings{}
- mi := &file_networking_v1alpha3_destination_rule_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ClientTLSSettings) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ClientTLSSettings) ProtoMessage() {}
-
-func (x *ClientTLSSettings) ProtoReflect() protoreflect.Message {
- mi := &file_networking_v1alpha3_destination_rule_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ClientTLSSettings.ProtoReflect.Descriptor instead.
-func (*ClientTLSSettings) Descriptor() ([]byte, []int) {
- return file_networking_v1alpha3_destination_rule_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *ClientTLSSettings) GetMode() ClientTLSSettings_TLSmode {
- if x != nil {
- return x.Mode
- }
- return ClientTLSSettings_DISABLE
-}
-
-var File_networking_v1alpha3_destination_rule_proto protoreflect.FileDescriptor
-
-const file_networking_v1alpha3_destination_rule_proto_rawDesc = "" +
- "\n" +
- "*networking/v1alpha3/destination_rule.proto\x12\x19dubbo.networking.v1alpha3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a)networking/v1alpha3/virtual_service.proto\"\xd6\x01\n" +
- "\x0fDestinationRule\x12\x18\n" +
- "\x04host\x18\x01 \x01(\tB\x04\xe2A\x01\x02R\x04host\x12O\n" +
- "\x0etraffic_policy\x18\x02 \x01(\v2(.dubbo.networking.v1alpha3.TrafficPolicyR\rtrafficPolicy\x12;\n" +
- "\asubsets\x18\x03 \x03(\v2!.dubbo.networking.v1alpha3.SubsetR\asubsets\x12\x1b\n" +
- "\texport_to\x18\x04 \x03(\tR\bexportTo\"O\n" +
- "\rTrafficPolicy\x12>\n" +
- "\x03tls\x18\x04 \x01(\v2,.dubbo.networking.v1alpha3.ClientTLSSettingsR\x03tls\"\xf5\x01\n" +
- "\x06Subset\x12\x18\n" +
- "\x04name\x18\x01 \x01(\tB\x04\xe2A\x01\x02R\x04name\x12E\n" +
- "\x06labels\x18\x02 \x03(\v2-.dubbo.networking.v1alpha3.Subset.LabelsEntryR\x06labels\x12O\n" +
- "\x0etraffic_policy\x18\x03 \x01(\v2(.dubbo.networking.v1alpha3.TrafficPolicyR\rtrafficPolicy\x1a9\n" +
- "\vLabelsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x93\x01\n" +
- "\x11ClientTLSSettings\x12H\n" +
- "\x04mode\x18\x01 \x01(\x0e24.dubbo.networking.v1alpha3.ClientTLSSettings.TLSmodeR\x04mode\"4\n" +
- "\aTLSmode\x12\v\n" +
- "\aDISABLE\x10\x00\x12\n" +
- "\n" +
- "\x06MUTUAL\x10\x01\x12\x10\n" +
- "\fDUBBO_MUTUAL\x10\x02B\x1aZ\x18/api/networking/v1alpha3b\x06proto3"
-
-var (
- file_networking_v1alpha3_destination_rule_proto_rawDescOnce sync.Once
- file_networking_v1alpha3_destination_rule_proto_rawDescData []byte
-)
-
-func file_networking_v1alpha3_destination_rule_proto_rawDescGZIP() []byte {
- file_networking_v1alpha3_destination_rule_proto_rawDescOnce.Do(func() {
- file_networking_v1alpha3_destination_rule_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_networking_v1alpha3_destination_rule_proto_rawDesc), len(file_networking_v1alpha3_destination_rule_proto_rawDesc)))
- })
- return file_networking_v1alpha3_destination_rule_proto_rawDescData
-}
-
-var file_networking_v1alpha3_destination_rule_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_networking_v1alpha3_destination_rule_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
-var file_networking_v1alpha3_destination_rule_proto_goTypes = []any{
- (ClientTLSSettings_TLSmode)(0), // 0: dubbo.networking.v1alpha3.ClientTLSSettings.TLSmode
- (*DestinationRule)(nil), // 1: dubbo.networking.v1alpha3.DestinationRule
- (*TrafficPolicy)(nil), // 2: dubbo.networking.v1alpha3.TrafficPolicy
- (*Subset)(nil), // 3: dubbo.networking.v1alpha3.Subset
- (*ClientTLSSettings)(nil), // 4: dubbo.networking.v1alpha3.ClientTLSSettings
- nil, // 5: dubbo.networking.v1alpha3.Subset.LabelsEntry
-}
-var file_networking_v1alpha3_destination_rule_proto_depIdxs = []int32{
- 2, // 0: dubbo.networking.v1alpha3.DestinationRule.traffic_policy:type_name -> dubbo.networking.v1alpha3.TrafficPolicy
- 3, // 1: dubbo.networking.v1alpha3.DestinationRule.subsets:type_name -> dubbo.networking.v1alpha3.Subset
- 4, // 2: dubbo.networking.v1alpha3.TrafficPolicy.tls:type_name -> dubbo.networking.v1alpha3.ClientTLSSettings
- 5, // 3: dubbo.networking.v1alpha3.Subset.labels:type_name -> dubbo.networking.v1alpha3.Subset.LabelsEntry
- 2, // 4: dubbo.networking.v1alpha3.Subset.traffic_policy:type_name -> dubbo.networking.v1alpha3.TrafficPolicy
- 0, // 5: dubbo.networking.v1alpha3.ClientTLSSettings.mode:type_name -> dubbo.networking.v1alpha3.ClientTLSSettings.TLSmode
- 6, // [6:6] is the sub-list for method output_type
- 6, // [6:6] is the sub-list for method input_type
- 6, // [6:6] is the sub-list for extension type_name
- 6, // [6:6] is the sub-list for extension extendee
- 0, // [0:6] is the sub-list for field type_name
-}
-
-func init() { file_networking_v1alpha3_destination_rule_proto_init() }
-func file_networking_v1alpha3_destination_rule_proto_init() {
- if File_networking_v1alpha3_destination_rule_proto != nil {
- return
- }
- file_networking_v1alpha3_virtual_service_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_networking_v1alpha3_destination_rule_proto_rawDesc), len(file_networking_v1alpha3_destination_rule_proto_rawDesc)),
- NumEnums: 1,
- NumMessages: 5,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_networking_v1alpha3_destination_rule_proto_goTypes,
- DependencyIndexes: file_networking_v1alpha3_destination_rule_proto_depIdxs,
- EnumInfos: file_networking_v1alpha3_destination_rule_proto_enumTypes,
- MessageInfos: file_networking_v1alpha3_destination_rule_proto_msgTypes,
- }.Build()
- File_networking_v1alpha3_destination_rule_proto = out.File
- file_networking_v1alpha3_destination_rule_proto_goTypes = nil
- file_networking_v1alpha3_destination_rule_proto_depIdxs = nil
-}
diff --git a/api/networking/v1alpha3/destination_rule.proto b/api/networking/v1alpha3/destination_rule.proto
deleted file mode 100644
index 2222e89f..00000000
--- a/api/networking/v1alpha3/destination_rule.proto
+++ /dev/null
@@ -1,124 +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.
-
-syntax = "proto3";
-
-// $schema: dubbo.networking.v1alpha3.DestinationRule
-// $title: Destination Rule
-// $description: Configuration affecting load balancing, outlier detection, etc.
-
-package dubbo.networking.v1alpha3;
-
-import "google/api/field_behavior.proto";
-import "google/protobuf/duration.proto";
-import "google/protobuf/wrappers.proto";
-import "networking/v1alpha3/virtual_service.proto";
-
-option go_package = "/api/networking/v1alpha3";
-
-// DestinationRule defines policies that apply to traffic intended for a service
-// after routing has occurred.
-//
-// <!-- crd generation tags
-// +cue-gen:DestinationRule:groupName:networking.dubbo.apache.org
-// +cue-gen:DestinationRule:versions:v1alpha3
-// +cue-gen:DestinationRule:annotations:helm.sh/resource-policy=keep
-// +cue-gen:DestinationRule:labels:app=dubbo,chart=dubbo,heritage=Tiller,release=dubbo
-// +cue-gen:DestinationRule:subresource:status
-// +cue-gen:DestinationRule:scope:Namespaced
-// +cue-gen:DestinationRule:resource:categories=dubbo,networking,shortNames=dr
-// +cue-gen:DestinationRule:printerColumn:name=Host,type=string,JSONPath=.spec.host,description="The name of a service from the service registry"
-// +cue-gen:DestinationRule:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp
-// representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations.
-// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
-// Populated by the system. Read-only. Null for lists. For more information, see [Kubernetes API Conventions](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata)"
-// +cue-gen:DestinationRule:preserveUnknownFields:false
-// -->
-//
-// <!-- go code generation tags
-// +kubetype-gen
-// +kubetype-gen:groupVersion=networking.dubbo.apache.org/v1alpha3
-// +genclient
-// +k8s:deepcopy-gen=true
-// -->
-message DestinationRule {
- // Note that the host field applies to both HTTP and TCP services
- string host = 1 [(google.api.field_behavior) = REQUIRED];
- // Traffic policies to apply (load balancing policy, connection pool
- // sizes, outlier detection).
- TrafficPolicy traffic_policy = 2;
- // One or more named sets that represent individual versions of a
- // service. Traffic policies can be overridden at subset level.
- repeated Subset subsets = 3;
- // A list of namespaces to which this destination rule is exported.
- // The resolution of a destination rule to apply to a service occurs in the
- // context of a hierarchy of namespaces. Exporting a destination rule allows
- // it to be included in the resolution hierarchy for services in
- // other namespaces. This feature provides a mechanism for service owners
- // and mesh administrators to control the visibility of destination rules
- // across namespace boundaries.
- //
- // If no namespaces are specified then the destination rule is exported to all
- // namespaces by default.
- //
- // The value "." is reserved and defines an export to the same namespace that
- // the destination rule is declared in. Similarly, the value "*" is reserved and
- // defines an export to all namespaces.
- repeated string export_to = 4;
-}
-
-// Traffic policies to apply for a specific destination, across all
-// destination ports. See DestinationRule for examples.
-message TrafficPolicy {
- // TLS related settings for connections to the upstream service.
- ClientTLSSettings tls = 1;
-}
-
-message Subset {
- // Name of the subset. The service name and the subset name can
- // be used for traffic splitting in a route rule.
- string name = 1 [(google.api.field_behavior) = REQUIRED];
- // Labels apply a filter over the endpoints of a service in the
- // service registry. See route rules for examples of usage.
- map<string, string> labels = 2;
- // Traffic policies that apply to this subset. Subsets inherit the
- // traffic policies specified at the DestinationRule level. Settings
- // specified at the subset level will override the corresponding settings
- // specified at the DestinationRule level.
- TrafficPolicy traffic_policy = 3;
-}
-
-
-message ClientTLSSettings {
- // TLS connection mode
- enum TLSmode {
- // Do not setup a TLS connection to the upstream endpoint.
- DISABLE = 0;
- // Originate a TLS connection to the upstream endpoint.
- MUTUAL = 1;
- // Secure connections to the upstream using mutual TLS by presenting
- // client certificates for authentication.
- // Compared to Mutual mode, this mode uses certificates generated
- // automatically by Dubbo for mTLS authentication. When this mode is
- // used, all other fields in `ClientTLSSettings` should be empty.
- DUBBO_MUTUAL = 2;
- }
- // Indicates whether connections to this port should be secured
- // using TLS. The value of this field determines how TLS is enforced.
- TLSmode mode = 1;
-}
-
-
diff --git a/api/networking/v1alpha3/destination_rule_deepcopy.gen.go b/api/networking/v1alpha3/destination_rule_deepcopy.gen.go
deleted file mode 100644
index 28559d2b..00000000
--- a/api/networking/v1alpha3/destination_rule_deepcopy.gen.go
+++ /dev/null
@@ -1,90 +0,0 @@
-// Code generated by protoc-gen-deepcopy. DO NOT EDIT.
-package v1alpha3
-
-import (
- proto "google.golang.org/protobuf/proto"
-)
-
-// DeepCopyInto supports using DestinationRule within kubernetes types, where deepcopy-gen is used.
-func (in *DestinationRule) DeepCopyInto(out *DestinationRule) {
- p := proto.Clone(in).(*DestinationRule)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationRule. Required by controller-gen.
-func (in *DestinationRule) DeepCopy() *DestinationRule {
- if in == nil {
- return nil
- }
- out := new(DestinationRule)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new DestinationRule. Required by controller-gen.
-func (in *DestinationRule) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
-
-// DeepCopyInto supports using TrafficPolicy within kubernetes types, where deepcopy-gen is used.
-func (in *TrafficPolicy) DeepCopyInto(out *TrafficPolicy) {
- p := proto.Clone(in).(*TrafficPolicy)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy. Required by controller-gen.
-func (in *TrafficPolicy) DeepCopy() *TrafficPolicy {
- if in == nil {
- return nil
- }
- out := new(TrafficPolicy)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy. Required by controller-gen.
-func (in *TrafficPolicy) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
-
-// DeepCopyInto supports using Subset within kubernetes types, where deepcopy-gen is used.
-func (in *Subset) DeepCopyInto(out *Subset) {
- p := proto.Clone(in).(*Subset)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subset. Required by controller-gen.
-func (in *Subset) DeepCopy() *Subset {
- if in == nil {
- return nil
- }
- out := new(Subset)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Subset. Required by controller-gen.
-func (in *Subset) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
-
-// DeepCopyInto supports using ClientTLSSettings within kubernetes types, where deepcopy-gen is used.
-func (in *ClientTLSSettings) DeepCopyInto(out *ClientTLSSettings) {
- p := proto.Clone(in).(*ClientTLSSettings)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientTLSSettings. Required by controller-gen.
-func (in *ClientTLSSettings) DeepCopy() *ClientTLSSettings {
- if in == nil {
- return nil
- }
- out := new(ClientTLSSettings)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ClientTLSSettings. Required by controller-gen.
-func (in *ClientTLSSettings) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
diff --git a/api/networking/v1alpha3/destination_rule_json.gen.go b/api/networking/v1alpha3/destination_rule_json.gen.go
deleted file mode 100644
index 22a30376..00000000
--- a/api/networking/v1alpha3/destination_rule_json.gen.go
+++ /dev/null
@@ -1,56 +0,0 @@
-// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
-package v1alpha3
-
-import (
- bytes "bytes"
- jsonpb "github.com/golang/protobuf/jsonpb"
-)
-
-// MarshalJSON is a custom marshaler for DestinationRule
-func (this *DestinationRule) MarshalJSON() ([]byte, error) {
- str, err := DestinationRuleMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for DestinationRule
-func (this *DestinationRule) UnmarshalJSON(b []byte) error {
- return DestinationRuleUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for TrafficPolicy
-func (this *TrafficPolicy) MarshalJSON() ([]byte, error) {
- str, err := DestinationRuleMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for TrafficPolicy
-func (this *TrafficPolicy) UnmarshalJSON(b []byte) error {
- return DestinationRuleUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for Subset
-func (this *Subset) MarshalJSON() ([]byte, error) {
- str, err := DestinationRuleMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for Subset
-func (this *Subset) UnmarshalJSON(b []byte) error {
- return DestinationRuleUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for ClientTLSSettings
-func (this *ClientTLSSettings) MarshalJSON() ([]byte, error) {
- str, err := DestinationRuleMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for ClientTLSSettings
-func (this *ClientTLSSettings) UnmarshalJSON(b []byte) error {
- return DestinationRuleUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-var (
- DestinationRuleMarshaler = &jsonpb.Marshaler{}
- DestinationRuleUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
-)
diff --git a/api/networking/v1alpha3/virtual_service.pb.go b/api/networking/v1alpha3/virtual_service.pb.go
deleted file mode 100644
index d96b93e0..00000000
--- a/api/networking/v1alpha3/virtual_service.pb.go
+++ /dev/null
@@ -1,348 +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.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v6.33.0
-// source: networking/v1alpha3/virtual_service.proto
-
-package v1alpha3
-
-import (
- _ "google.golang.org/genproto/googleapis/api/annotations"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- _ "google.golang.org/protobuf/types/known/durationpb"
- _ "google.golang.org/protobuf/types/known/wrapperspb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-// VirtualService defines a set of traffic routing rules to apply when a host is
-// addressed. Each routing rule defines matching criteria for traffic of a specific
-// protocol. If the traffic is matched, then it is sent to a named destination service
-// (or subset/version of it) defined in the registry.
-//
-// <!-- crd generation tags
-// +cue-gen:VirtualService:groupName:networking.dubbo.apache.org
-// +cue-gen:VirtualService:versions:v1alpha3
-// +cue-gen:VirtualService:annotations:helm.sh/resource-policy=keep
-// +cue-gen:VirtualService:labels:app=dubbo,chart=dubbo,heritage=Tiller,release=dubbo
-// +cue-gen:VirtualService:subresource:status
-// +cue-gen:VirtualService:scope:Namespaced
-// +cue-gen:VirtualService:resource:categories=dubbo,networking,shortNames=vs
-// +cue-gen:VirtualService:printerColumn:name=Hosts,type=string,JSONPath=.spec.hosts,description="The destination hosts to which traffic is being sent"
-// +cue-gen:VirtualService:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp
-// representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations.
-// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
-// Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata"
-// +cue-gen:VirtualService:preserveUnknownFields:false
-// -->
-//
-// <!-- go code generation tags
-// +kubetype-gen
-// +kubetype-gen:groupVersion=networking.dubbo.apache.org/v1alpha3
-// +genclient
-// +k8s:deepcopy-gen=true
-// -->
-type VirtualService struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
- Http []*HTTPRoute `protobuf:"bytes,2,rep,name=http,proto3" json:"http,omitempty"`
- ExportTo []string `protobuf:"bytes,3,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *VirtualService) Reset() {
- *x = VirtualService{}
- mi := &file_networking_v1alpha3_virtual_service_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *VirtualService) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*VirtualService) ProtoMessage() {}
-
-func (x *VirtualService) ProtoReflect() protoreflect.Message {
- mi := &file_networking_v1alpha3_virtual_service_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use VirtualService.ProtoReflect.Descriptor instead.
-func (*VirtualService) Descriptor() ([]byte, []int) {
- return file_networking_v1alpha3_virtual_service_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *VirtualService) GetHosts() []string {
- if x != nil {
- return x.Hosts
- }
- return nil
-}
-
-func (x *VirtualService) GetHttp() []*HTTPRoute {
- if x != nil {
- return x.Http
- }
- return nil
-}
-
-func (x *VirtualService) GetExportTo() []string {
- if x != nil {
- return x.ExportTo
- }
- return nil
-}
-
-type Destination struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
- Subset string `protobuf:"bytes,2,opt,name=subset,proto3" json:"subset,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Destination) Reset() {
- *x = Destination{}
- mi := &file_networking_v1alpha3_virtual_service_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Destination) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Destination) ProtoMessage() {}
-
-func (x *Destination) ProtoReflect() protoreflect.Message {
- mi := &file_networking_v1alpha3_virtual_service_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Destination.ProtoReflect.Descriptor instead.
-func (*Destination) Descriptor() ([]byte, []int) {
- return file_networking_v1alpha3_virtual_service_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *Destination) GetHost() string {
- if x != nil {
- return x.Host
- }
- return ""
-}
-
-func (x *Destination) GetSubset() string {
- if x != nil {
- return x.Subset
- }
- return ""
-}
-
-type HTTPRoute struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Route []*HTTPRouteDestination `protobuf:"bytes,1,rep,name=route,proto3" json:"route,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *HTTPRoute) Reset() {
- *x = HTTPRoute{}
- mi := &file_networking_v1alpha3_virtual_service_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *HTTPRoute) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*HTTPRoute) ProtoMessage() {}
-
-func (x *HTTPRoute) ProtoReflect() protoreflect.Message {
- mi := &file_networking_v1alpha3_virtual_service_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use HTTPRoute.ProtoReflect.Descriptor instead.
-func (*HTTPRoute) Descriptor() ([]byte, []int) {
- return file_networking_v1alpha3_virtual_service_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *HTTPRoute) GetRoute() []*HTTPRouteDestination {
- if x != nil {
- return x.Route
- }
- return nil
-}
-
-type HTTPRouteDestination struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Destination *Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
- Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *HTTPRouteDestination) Reset() {
- *x = HTTPRouteDestination{}
- mi := &file_networking_v1alpha3_virtual_service_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *HTTPRouteDestination) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*HTTPRouteDestination) ProtoMessage() {}
-
-func (x *HTTPRouteDestination) ProtoReflect() protoreflect.Message {
- mi := &file_networking_v1alpha3_virtual_service_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use HTTPRouteDestination.ProtoReflect.Descriptor instead.
-func (*HTTPRouteDestination) Descriptor() ([]byte, []int) {
- return file_networking_v1alpha3_virtual_service_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *HTTPRouteDestination) GetDestination() *Destination {
- if x != nil {
- return x.Destination
- }
- return nil
-}
-
-func (x *HTTPRouteDestination) GetWeight() int32 {
- if x != nil {
- return x.Weight
- }
- return 0
-}
-
-var File_networking_v1alpha3_virtual_service_proto protoreflect.FileDescriptor
-
-const file_networking_v1alpha3_virtual_service_proto_rawDesc = "" +
- "\n" +
- ")networking/v1alpha3/virtual_service.proto\x12\x19dubbo.networking.v1alpha3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\"}\n" +
- "\x0eVirtualService\x12\x14\n" +
- "\x05hosts\x18\x01 \x03(\tR\x05hosts\x128\n" +
- "\x04http\x18\x02 \x03(\v2$.dubbo.networking.v1alpha3.HTTPRouteR\x04http\x12\x1b\n" +
- "\texport_to\x18\x03 \x03(\tR\bexportTo\"?\n" +
- "\vDestination\x12\x18\n" +
- "\x04host\x18\x01 \x01(\tB\x04\xe2A\x01\x02R\x04host\x12\x16\n" +
- "\x06subset\x18\x02 \x01(\tR\x06subset\"R\n" +
- "\tHTTPRoute\x12E\n" +
- "\x05route\x18\x01 \x03(\v2/.dubbo.networking.v1alpha3.HTTPRouteDestinationR\x05route\"~\n" +
- "\x14HTTPRouteDestination\x12N\n" +
- "\vdestination\x18\x01 \x01(\v2&.dubbo.networking.v1alpha3.DestinationB\x04\xe2A\x01\x02R\vdestination\x12\x16\n" +
- "\x06weight\x18\x02 \x01(\x05R\x06weightB\x1aZ\x18/api/networking/v1alpha3b\x06proto3"
-
-var (
- file_networking_v1alpha3_virtual_service_proto_rawDescOnce sync.Once
- file_networking_v1alpha3_virtual_service_proto_rawDescData []byte
-)
-
-func file_networking_v1alpha3_virtual_service_proto_rawDescGZIP() []byte {
- file_networking_v1alpha3_virtual_service_proto_rawDescOnce.Do(func() {
- file_networking_v1alpha3_virtual_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_networking_v1alpha3_virtual_service_proto_rawDesc), len(file_networking_v1alpha3_virtual_service_proto_rawDesc)))
- })
- return file_networking_v1alpha3_virtual_service_proto_rawDescData
-}
-
-var file_networking_v1alpha3_virtual_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
-var file_networking_v1alpha3_virtual_service_proto_goTypes = []any{
- (*VirtualService)(nil), // 0: dubbo.networking.v1alpha3.VirtualService
- (*Destination)(nil), // 1: dubbo.networking.v1alpha3.Destination
- (*HTTPRoute)(nil), // 2: dubbo.networking.v1alpha3.HTTPRoute
- (*HTTPRouteDestination)(nil), // 3: dubbo.networking.v1alpha3.HTTPRouteDestination
-}
-var file_networking_v1alpha3_virtual_service_proto_depIdxs = []int32{
- 2, // 0: dubbo.networking.v1alpha3.VirtualService.http:type_name -> dubbo.networking.v1alpha3.HTTPRoute
- 3, // 1: dubbo.networking.v1alpha3.HTTPRoute.route:type_name -> dubbo.networking.v1alpha3.HTTPRouteDestination
- 1, // 2: dubbo.networking.v1alpha3.HTTPRouteDestination.destination:type_name -> dubbo.networking.v1alpha3.Destination
- 3, // [3:3] is the sub-list for method output_type
- 3, // [3:3] is the sub-list for method input_type
- 3, // [3:3] is the sub-list for extension type_name
- 3, // [3:3] is the sub-list for extension extendee
- 0, // [0:3] is the sub-list for field type_name
-}
-
-func init() { file_networking_v1alpha3_virtual_service_proto_init() }
-func file_networking_v1alpha3_virtual_service_proto_init() {
- if File_networking_v1alpha3_virtual_service_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_networking_v1alpha3_virtual_service_proto_rawDesc), len(file_networking_v1alpha3_virtual_service_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 4,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_networking_v1alpha3_virtual_service_proto_goTypes,
- DependencyIndexes: file_networking_v1alpha3_virtual_service_proto_depIdxs,
- MessageInfos: file_networking_v1alpha3_virtual_service_proto_msgTypes,
- }.Build()
- File_networking_v1alpha3_virtual_service_proto = out.File
- file_networking_v1alpha3_virtual_service_proto_goTypes = nil
- file_networking_v1alpha3_virtual_service_proto_depIdxs = nil
-}
diff --git a/api/networking/v1alpha3/virtual_service.proto b/api/networking/v1alpha3/virtual_service.proto
deleted file mode 100644
index d50e10ae..00000000
--- a/api/networking/v1alpha3/virtual_service.proto
+++ /dev/null
@@ -1,106 +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.
-
-syntax = "proto3";
-
-// $schema: dubbo.networking.v1alpha3.VirtualService
-// $title: Virtual Service
-// $description: Configuration affecting label/content routing, sni routing, etc.
-
-package dubbo.networking.v1alpha3;
-
-import "google/api/field_behavior.proto";
-import "google/protobuf/duration.proto";
-import "google/protobuf/wrappers.proto";
-
-option go_package = "/api/networking/v1alpha3";
-
-// Configuration affecting traffic routing.
-//
-// <!-- crd generation tags
-// +cue-gen:VirtualService:groupName:networking.dubbo.apache.org
-// +cue-gen:VirtualService:versions:v1alpha3
-// +cue-gen:VirtualService:annotations:helm.sh/resource-policy=keep
-// +cue-gen:VirtualService:labels:app=dubbo,chart=dubbo,heritage=Tiller,release=dubbo
-// +cue-gen:VirtualService:subresource:status
-// +cue-gen:VirtualService:scope:Namespaced
-// +cue-gen:VirtualService:resource:categories=dubbo,networking,shortNames=vs
-// +cue-gen:VirtualService:printerColumn:name=Hosts,type=string,JSONPath=.spec.hosts,description="The destination hosts to which traffic is being sent"
-// +cue-gen:VirtualService:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp
-// representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations.
-// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
-// Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata"
-// +cue-gen:VirtualService:preserveUnknownFields:false
-// -->
-//
-// <!-- go code generation tags
-// +kubetype-gen
-// +kubetype-gen:groupVersion=networking.dubbo.apache.org/v1alpha3
-// +genclient
-// +k8s:deepcopy-gen=true
-// -->
-message VirtualService {
- // The hosts field applies to both HTTP and TCP services. Service inside
- // the mesh, i.e., those found in the service registry, must always be
- // referred to using their alphanumeric names.
- repeated string hosts = 1;
- // An ordered list of route rules for HTTP traffic.
- repeated HTTPRoute http = 2;
- // A list of namespaces to which this virtual service is exported. Exporting a
- // virtual service allows it to be used by sidecars and gateways defined in
- // other namespaces. This feature provides a mechanism for service owners
- // and mesh administrators to control the visibility of virtual services
- // across namespace boundaries.
- //
- // If no namespaces are specified then the virtual service is exported to all
- // namespaces by default.
- //
- // The value "." is reserved and defines an export to the same namespace that
- // the virtual service is declared in. Similarly the value "*" is reserved and
- // defines an export to all namespaces.
- repeated string export_to = 3;
-}
-
-message Destination {
- // The name of a service from the service registry.
- string host = 1 [(google.api.field_behavior) = REQUIRED];
- // The name of a subset within the service. Applicable only to services
- // within the mesh. The subset must be defined in a corresponding
- // DestinationRule.
- string subset = 2;
-}
-
-// Describes match conditions and actions for routing HTTP/1.1, HTTP2, and
-// gRPC traffic. See VirtualService for usage examples.
-message HTTPRoute {
- // A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
- // The forwarding target can be one of several versions of a service (see
- // glossary in beginning of document). Weights associated with the
- // service version determine the proportion of traffic it receives.
- repeated HTTPRouteDestination route = 1;
-}
-
-message HTTPRouteDestination {
- // Destination uniquely identifies the instances of a service
- // to which the request/connection should be forwarded to.
- Destination destination = 1 [(google.api.field_behavior) = REQUIRED];
- // Weight specifies the relative proportion of traffic to be forwarded to the destination. A destination will receive `weight/(sum of all weights)` requests.
- // If there is only one destination in a rule, it will receive all traffic.
- // Otherwise, if weight is `0`, the destination will not receive any traffic.
- int32 weight = 2;
-}
-
-
diff --git a/api/networking/v1alpha3/virtual_service_deepcopy.gen.go b/api/networking/v1alpha3/virtual_service_deepcopy.gen.go
deleted file mode 100644
index 242c333f..00000000
--- a/api/networking/v1alpha3/virtual_service_deepcopy.gen.go
+++ /dev/null
@@ -1,90 +0,0 @@
-// Code generated by protoc-gen-deepcopy. DO NOT EDIT.
-package v1alpha3
-
-import (
- proto "google.golang.org/protobuf/proto"
-)
-
-// DeepCopyInto supports using VirtualService within kubernetes types, where deepcopy-gen is used.
-func (in *VirtualService) DeepCopyInto(out *VirtualService) {
- p := proto.Clone(in).(*VirtualService)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualService. Required by controller-gen.
-func (in *VirtualService) DeepCopy() *VirtualService {
- if in == nil {
- return nil
- }
- out := new(VirtualService)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new VirtualService. Required by controller-gen.
-func (in *VirtualService) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
-
-// DeepCopyInto supports using Destination within kubernetes types, where deepcopy-gen is used.
-func (in *Destination) DeepCopyInto(out *Destination) {
- p := proto.Clone(in).(*Destination)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Destination. Required by controller-gen.
-func (in *Destination) DeepCopy() *Destination {
- if in == nil {
- return nil
- }
- out := new(Destination)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Destination. Required by controller-gen.
-func (in *Destination) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
-
-// DeepCopyInto supports using HTTPRoute within kubernetes types, where deepcopy-gen is used.
-func (in *HTTPRoute) DeepCopyInto(out *HTTPRoute) {
- p := proto.Clone(in).(*HTTPRoute)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRoute. Required by controller-gen.
-func (in *HTTPRoute) DeepCopy() *HTTPRoute {
- if in == nil {
- return nil
- }
- out := new(HTTPRoute)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRoute. Required by controller-gen.
-func (in *HTTPRoute) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
-
-// DeepCopyInto supports using HTTPRouteDestination within kubernetes types, where deepcopy-gen is used.
-func (in *HTTPRouteDestination) DeepCopyInto(out *HTTPRouteDestination) {
- p := proto.Clone(in).(*HTTPRouteDestination)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteDestination. Required by controller-gen.
-func (in *HTTPRouteDestination) DeepCopy() *HTTPRouteDestination {
- if in == nil {
- return nil
- }
- out := new(HTTPRouteDestination)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteDestination. Required by controller-gen.
-func (in *HTTPRouteDestination) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
diff --git a/api/networking/v1alpha3/virtual_service_json.gen.go b/api/networking/v1alpha3/virtual_service_json.gen.go
deleted file mode 100644
index 2a1138eb..00000000
--- a/api/networking/v1alpha3/virtual_service_json.gen.go
+++ /dev/null
@@ -1,56 +0,0 @@
-// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
-package v1alpha3
-
-import (
- bytes "bytes"
- jsonpb "github.com/golang/protobuf/jsonpb"
-)
-
-// MarshalJSON is a custom marshaler for VirtualService
-func (this *VirtualService) MarshalJSON() ([]byte, error) {
- str, err := VirtualServiceMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for VirtualService
-func (this *VirtualService) UnmarshalJSON(b []byte) error {
- return VirtualServiceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for Destination
-func (this *Destination) MarshalJSON() ([]byte, error) {
- str, err := VirtualServiceMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for Destination
-func (this *Destination) UnmarshalJSON(b []byte) error {
- return VirtualServiceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for HTTPRoute
-func (this *HTTPRoute) MarshalJSON() ([]byte, error) {
- str, err := VirtualServiceMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for HTTPRoute
-func (this *HTTPRoute) UnmarshalJSON(b []byte) error {
- return VirtualServiceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for HTTPRouteDestination
-func (this *HTTPRouteDestination) MarshalJSON() ([]byte, error) {
- str, err := VirtualServiceMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for HTTPRouteDestination
-func (this *HTTPRouteDestination) UnmarshalJSON(b []byte) error {
- return VirtualServiceUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-var (
- VirtualServiceMarshaler = &jsonpb.Marshaler{}
- VirtualServiceUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
-)
diff --git a/api/security/v1alpha3/ca.pb.go b/api/security/v1alpha3/ca.pb.go
deleted file mode 100644
index 6ee1706a..00000000
--- a/api/security/v1alpha3/ca.pb.go
+++ /dev/null
@@ -1,211 +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.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v6.33.0
-// source: security/v1alpha3/ca.proto
-
-package v1alpha3
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- structpb "google.golang.org/protobuf/types/known/structpb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type DubboCertificateRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Csr string `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
- ValidityDuration int64 `protobuf:"varint,2,opt,name=validity_duration,json=validityDuration,proto3" json:"validity_duration,omitempty"`
- Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DubboCertificateRequest) Reset() {
- *x = DubboCertificateRequest{}
- mi := &file_security_v1alpha3_ca_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DubboCertificateRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DubboCertificateRequest) ProtoMessage() {}
-
-func (x *DubboCertificateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_security_v1alpha3_ca_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use DubboCertificateRequest.ProtoReflect.Descriptor instead.
-func (*DubboCertificateRequest) Descriptor() ([]byte, []int) {
- return file_security_v1alpha3_ca_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *DubboCertificateRequest) GetCsr() string {
- if x != nil {
- return x.Csr
- }
- return ""
-}
-
-func (x *DubboCertificateRequest) GetValidityDuration() int64 {
- if x != nil {
- return x.ValidityDuration
- }
- return 0
-}
-
-func (x *DubboCertificateRequest) GetMetadata() *structpb.Struct {
- if x != nil {
- return x.Metadata
- }
- return nil
-}
-
-type DubboCertificateResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- CertChain []string `protobuf:"bytes,1,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DubboCertificateResponse) Reset() {
- *x = DubboCertificateResponse{}
- mi := &file_security_v1alpha3_ca_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DubboCertificateResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DubboCertificateResponse) ProtoMessage() {}
-
-func (x *DubboCertificateResponse) ProtoReflect() protoreflect.Message {
- mi := &file_security_v1alpha3_ca_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use DubboCertificateResponse.ProtoReflect.Descriptor instead.
-func (*DubboCertificateResponse) Descriptor() ([]byte, []int) {
- return file_security_v1alpha3_ca_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *DubboCertificateResponse) GetCertChain() []string {
- if x != nil {
- return x.CertChain
- }
- return nil
-}
-
-var File_security_v1alpha3_ca_proto protoreflect.FileDescriptor
-
-const file_security_v1alpha3_ca_proto_rawDesc = "" +
- "\n" +
- "\x1asecurity/v1alpha3/ca.proto\x12\rdubbo.v1.auth\x1a\x1cgoogle/protobuf/struct.proto\"\x8d\x01\n" +
- "\x17DubboCertificateRequest\x12\x10\n" +
- "\x03csr\x18\x01 \x01(\tR\x03csr\x12+\n" +
- "\x11validity_duration\x18\x02 \x01(\x03R\x10validityDuration\x123\n" +
- "\bmetadata\x18\x03 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"9\n" +
- "\x18DubboCertificateResponse\x12\x1d\n" +
- "\n" +
- "cert_chain\x18\x01 \x03(\tR\tcertChain2\x81\x01\n" +
- "\x17DubboCertificateService\x12f\n" +
- "\x11CreateCertificate\x12&.dubbo.v1.auth.DubboCertificateRequest\x1a'.dubbo.v1.auth.DubboCertificateResponse\"\x00B\x18Z\x16/api/security/v1alpha3b\x06proto3"
-
-var (
- file_security_v1alpha3_ca_proto_rawDescOnce sync.Once
- file_security_v1alpha3_ca_proto_rawDescData []byte
-)
-
-func file_security_v1alpha3_ca_proto_rawDescGZIP() []byte {
- file_security_v1alpha3_ca_proto_rawDescOnce.Do(func() {
- file_security_v1alpha3_ca_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_security_v1alpha3_ca_proto_rawDesc), len(file_security_v1alpha3_ca_proto_rawDesc)))
- })
- return file_security_v1alpha3_ca_proto_rawDescData
-}
-
-var file_security_v1alpha3_ca_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
-var file_security_v1alpha3_ca_proto_goTypes = []any{
- (*DubboCertificateRequest)(nil), // 0: dubbo.v1.auth.DubboCertificateRequest
- (*DubboCertificateResponse)(nil), // 1: dubbo.v1.auth.DubboCertificateResponse
- (*structpb.Struct)(nil), // 2: google.protobuf.Struct
-}
-var file_security_v1alpha3_ca_proto_depIdxs = []int32{
- 2, // 0: dubbo.v1.auth.DubboCertificateRequest.metadata:type_name -> google.protobuf.Struct
- 0, // 1: dubbo.v1.auth.DubboCertificateService.CreateCertificate:input_type -> dubbo.v1.auth.DubboCertificateRequest
- 1, // 2: dubbo.v1.auth.DubboCertificateService.CreateCertificate:output_type -> dubbo.v1.auth.DubboCertificateResponse
- 2, // [2:3] is the sub-list for method output_type
- 1, // [1:2] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
-}
-
-func init() { file_security_v1alpha3_ca_proto_init() }
-func file_security_v1alpha3_ca_proto_init() {
- if File_security_v1alpha3_ca_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_security_v1alpha3_ca_proto_rawDesc), len(file_security_v1alpha3_ca_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_security_v1alpha3_ca_proto_goTypes,
- DependencyIndexes: file_security_v1alpha3_ca_proto_depIdxs,
- MessageInfos: file_security_v1alpha3_ca_proto_msgTypes,
- }.Build()
- File_security_v1alpha3_ca_proto = out.File
- file_security_v1alpha3_ca_proto_goTypes = nil
- file_security_v1alpha3_ca_proto_depIdxs = nil
-}
diff --git a/api/security/v1alpha3/ca.proto b/api/security/v1alpha3/ca.proto
deleted file mode 100644
index ee368798..00000000
--- a/api/security/v1alpha3/ca.proto
+++ /dev/null
@@ -1,37 +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.
-
-syntax = "proto3";
-
-package dubbo.v1.auth;
-
-import "google/protobuf/struct.proto";
-
-option go_package = "/api/security/v1alpha3";
-
-message DubboCertificateRequest {
- string csr = 1;
- int64 validity_duration = 2;
- google.protobuf.Struct metadata = 3;
-}
-
-message DubboCertificateResponse {
- repeated string cert_chain = 1;
-}
-
-service DubboCertificateService {
- rpc CreateCertificate(DubboCertificateRequest) returns (DubboCertificateResponse) {}
-}
\ No newline at end of file
diff --git a/api/security/v1alpha3/ca_deepcopy.gen.go b/api/security/v1alpha3/ca_deepcopy.gen.go
deleted file mode 100644
index d4518dce..00000000
--- a/api/security/v1alpha3/ca_deepcopy.gen.go
+++ /dev/null
@@ -1,48 +0,0 @@
-// Code generated by protoc-gen-deepcopy. DO NOT EDIT.
-package v1alpha3
-
-import (
- proto "google.golang.org/protobuf/proto"
-)
-
-// DeepCopyInto supports using DubboCertificateRequest within kubernetes types, where deepcopy-gen is used.
-func (in *DubboCertificateRequest) DeepCopyInto(out *DubboCertificateRequest) {
- p := proto.Clone(in).(*DubboCertificateRequest)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DubboCertificateRequest. Required by controller-gen.
-func (in *DubboCertificateRequest) DeepCopy() *DubboCertificateRequest {
- if in == nil {
- return nil
- }
- out := new(DubboCertificateRequest)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new DubboCertificateRequest. Required by controller-gen.
-func (in *DubboCertificateRequest) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
-
-// DeepCopyInto supports using DubboCertificateResponse within kubernetes types, where deepcopy-gen is used.
-func (in *DubboCertificateResponse) DeepCopyInto(out *DubboCertificateResponse) {
- p := proto.Clone(in).(*DubboCertificateResponse)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DubboCertificateResponse. Required by controller-gen.
-func (in *DubboCertificateResponse) DeepCopy() *DubboCertificateResponse {
- if in == nil {
- return nil
- }
- out := new(DubboCertificateResponse)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new DubboCertificateResponse. Required by controller-gen.
-func (in *DubboCertificateResponse) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
diff --git a/api/security/v1alpha3/ca_grpc.pb.go b/api/security/v1alpha3/ca_grpc.pb.go
deleted file mode 100644
index 88dec256..00000000
--- a/api/security/v1alpha3/ca_grpc.pb.go
+++ /dev/null
@@ -1,138 +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.
-
-// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
-// versions:
-// - protoc-gen-go-grpc v1.5.1
-// - protoc v6.33.0
-// source: security/v1alpha3/ca.proto
-
-package v1alpha3
-
-import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
-)
-
-// This is a compile-time assertion to ensure that this generated file
-// is compatible with the grpc package it is being compiled against.
-// Requires gRPC-Go v1.64.0 or later.
-const _ = grpc.SupportPackageIsVersion9
-
-const (
- DubboCertificateService_CreateCertificate_FullMethodName = "/dubbo.v1.auth.DubboCertificateService/CreateCertificate"
-)
-
-// DubboCertificateServiceClient is the client API for DubboCertificateService service.
-//
-// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
-type DubboCertificateServiceClient interface {
- CreateCertificate(ctx context.Context, in *DubboCertificateRequest, opts ...grpc.CallOption) (*DubboCertificateResponse, error)
-}
-
-type dubboCertificateServiceClient struct {
- cc grpc.ClientConnInterface
-}
-
-func NewDubboCertificateServiceClient(cc grpc.ClientConnInterface) DubboCertificateServiceClient {
- return &dubboCertificateServiceClient{cc}
-}
-
-func (c *dubboCertificateServiceClient) CreateCertificate(ctx context.Context, in *DubboCertificateRequest, opts ...grpc.CallOption) (*DubboCertificateResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(DubboCertificateResponse)
- err := c.cc.Invoke(ctx, DubboCertificateService_CreateCertificate_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-// DubboCertificateServiceServer is the server API for DubboCertificateService service.
-// All implementations must embed UnimplementedDubboCertificateServiceServer
-// for forward compatibility.
-type DubboCertificateServiceServer interface {
- CreateCertificate(context.Context, *DubboCertificateRequest) (*DubboCertificateResponse, error)
- mustEmbedUnimplementedDubboCertificateServiceServer()
-}
-
-// UnimplementedDubboCertificateServiceServer must be embedded to have
-// forward compatible implementations.
-//
-// NOTE: this should be embedded by value instead of pointer to avoid a nil
-// pointer dereference when methods are called.
-type UnimplementedDubboCertificateServiceServer struct{}
-
-func (UnimplementedDubboCertificateServiceServer) CreateCertificate(context.Context, *DubboCertificateRequest) (*DubboCertificateResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateCertificate not implemented")
-}
-func (UnimplementedDubboCertificateServiceServer) mustEmbedUnimplementedDubboCertificateServiceServer() {
-}
-func (UnimplementedDubboCertificateServiceServer) testEmbeddedByValue() {}
-
-// UnsafeDubboCertificateServiceServer may be embedded to opt out of forward compatibility for this service.
-// Use of this interface is not recommended, as added methods to DubboCertificateServiceServer will
-// result in compilation errors.
-type UnsafeDubboCertificateServiceServer interface {
- mustEmbedUnimplementedDubboCertificateServiceServer()
-}
-
-func RegisterDubboCertificateServiceServer(s grpc.ServiceRegistrar, srv DubboCertificateServiceServer) {
- // If the following call pancis, it indicates UnimplementedDubboCertificateServiceServer was
- // embedded by pointer and is nil. This will cause panics if an
- // unimplemented method is ever invoked, so we test this at initialization
- // time to prevent it from happening at runtime later due to I/O.
- if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
- t.testEmbeddedByValue()
- }
- s.RegisterService(&DubboCertificateService_ServiceDesc, srv)
-}
-
-func _DubboCertificateService_CreateCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DubboCertificateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DubboCertificateServiceServer).CreateCertificate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: DubboCertificateService_CreateCertificate_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DubboCertificateServiceServer).CreateCertificate(ctx, req.(*DubboCertificateRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-// DubboCertificateService_ServiceDesc is the grpc.ServiceDesc for DubboCertificateService service.
-// It's only intended for direct use with grpc.RegisterService,
-// and not to be introspected or modified (even as a copy)
-var DubboCertificateService_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "dubbo.v1.auth.DubboCertificateService",
- HandlerType: (*DubboCertificateServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "CreateCertificate",
- Handler: _DubboCertificateService_CreateCertificate_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "security/v1alpha3/ca.proto",
-}
diff --git a/api/security/v1alpha3/ca_json.gen.go b/api/security/v1alpha3/ca_json.gen.go
deleted file mode 100644
index e5f8f8af..00000000
--- a/api/security/v1alpha3/ca_json.gen.go
+++ /dev/null
@@ -1,34 +0,0 @@
-// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
-package v1alpha3
-
-import (
- bytes "bytes"
- jsonpb "github.com/golang/protobuf/jsonpb"
-)
-
-// MarshalJSON is a custom marshaler for DubboCertificateRequest
-func (this *DubboCertificateRequest) MarshalJSON() ([]byte, error) {
- str, err := CaMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for DubboCertificateRequest
-func (this *DubboCertificateRequest) UnmarshalJSON(b []byte) error {
- return CaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for DubboCertificateResponse
-func (this *DubboCertificateResponse) MarshalJSON() ([]byte, error) {
- str, err := CaMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for DubboCertificateResponse
-func (this *DubboCertificateResponse) UnmarshalJSON(b []byte) error {
- return CaUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-var (
- CaMarshaler = &jsonpb.Marshaler{}
- CaUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
-)
diff --git a/api/security/v1alpha3/peer_authentication.pb.go b/api/security/v1alpha3/peer_authentication.pb.go
deleted file mode 100644
index e6b1c763..00000000
--- a/api/security/v1alpha3/peer_authentication.pb.go
+++ /dev/null
@@ -1,309 +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.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v6.33.0
-// source: security/v1alpha3/peer_authentication.proto
-
-package v1alpha3
-
-import (
- v1alpha3 "github.com/apache/dubbo-kubernetes/api/type/v1alpha3"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type PeerAuthentication_MutualTLS_Mode int32
-
-const (
- // Inherit from parent, if has one. Otherwise treated as `PERMISSIVE`.
- PeerAuthentication_MutualTLS_UNSET PeerAuthentication_MutualTLS_Mode = 0
- // Connection is not tunneled.
- PeerAuthentication_MutualTLS_DISABLE PeerAuthentication_MutualTLS_Mode = 1
- // Connection can be either plaintext or mTLS tunnel.
- PeerAuthentication_MutualTLS_PERMISSIVE PeerAuthentication_MutualTLS_Mode = 2
- // Connection is an mTLS tunnel (TLS with client cert must be presented).
- PeerAuthentication_MutualTLS_STRICT PeerAuthentication_MutualTLS_Mode = 3
-)
-
-// Enum value maps for PeerAuthentication_MutualTLS_Mode.
-var (
- PeerAuthentication_MutualTLS_Mode_name = map[int32]string{
- 0: "UNSET",
- 1: "DISABLE",
- 2: "PERMISSIVE",
- 3: "STRICT",
- }
- PeerAuthentication_MutualTLS_Mode_value = map[string]int32{
- "UNSET": 0,
- "DISABLE": 1,
- "PERMISSIVE": 2,
- "STRICT": 3,
- }
-)
-
-func (x PeerAuthentication_MutualTLS_Mode) Enum() *PeerAuthentication_MutualTLS_Mode {
- p := new(PeerAuthentication_MutualTLS_Mode)
- *p = x
- return p
-}
-
-func (x PeerAuthentication_MutualTLS_Mode) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (PeerAuthentication_MutualTLS_Mode) Descriptor() protoreflect.EnumDescriptor {
- return file_security_v1alpha3_peer_authentication_proto_enumTypes[0].Descriptor()
-}
-
-func (PeerAuthentication_MutualTLS_Mode) Type() protoreflect.EnumType {
- return &file_security_v1alpha3_peer_authentication_proto_enumTypes[0]
-}
-
-func (x PeerAuthentication_MutualTLS_Mode) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use PeerAuthentication_MutualTLS_Mode.Descriptor instead.
-func (PeerAuthentication_MutualTLS_Mode) EnumDescriptor() ([]byte, []int) {
- return file_security_v1alpha3_peer_authentication_proto_rawDescGZIP(), []int{0, 0, 0}
-}
-
-// <!-- crd generation tags
-// +cue-gen:PeerAuthentication:groupName:security.dubbo.apache.org
-// +cue-gen:PeerAuthentication:versions:v1alpha3
-// +cue-gen:PeerAuthentication:storageVersion
-// +cue-gen:PeerAuthentication:annotations:helm.sh/resource-policy=keep
-// +cue-gen:PeerAuthentication:labels:app=dubbo,chart=dubbo,dubbo=security,heritage=Tiller,release=dubbo
-// +cue-gen:PeerAuthentication:subresource:status
-// +cue-gen:PeerAuthentication:scope:Namespaced
-// +cue-gen:PeerAuthentication:resource:categories=dubbo,security,shortNames=pa
-// +cue-gen:PeerAuthentication:preserveUnknownFields:false
-// +cue-gen:PeerAuthentication:printerColumn:name=Mode,type=string,JSONPath=.spec.mtls.mode,description="Defines the mTLS mode used for peer authentication."
-// +cue-gen:PeerAuthentication:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp
-// representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations.
-// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
-// Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata"
-// -->
-//
-// <!-- go code generation tags
-// +kubetype-gen
-// +kubetype-gen:groupVersion=security.dubbo.apache.org/v1alpha3
-// +genclient
-// +k8s:deepcopy-gen=true
-// -->
-// +kubebuilder:validation:XValidation:message="portLevelMtls requires selector",rule="has(self.portLevelMtls) ? self.index({}, selector, matchLabels).size() > 0 : true"
-type PeerAuthentication struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Selector *v1alpha3.WorkloadSelector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
- // Mutual TLS settings for workload. If not defined, inherit from parent.
- Mtls *PeerAuthentication_MutualTLS `protobuf:"bytes,2,opt,name=mtls,proto3" json:"mtls,omitempty"`
- // +kubebuilder:validation:XValidation:message="port must be between 1-65535",rule="self.all(key, 0 < int(key) && int(key) <= 65535)"
- // +kubebuilder:validation:MinProperties=1
- PortLevelMtls map[uint32]*PeerAuthentication_MutualTLS `protobuf:"bytes,3,rep,name=port_level_mtls,json=portLevelMtls,proto3" json:"port_level_mtls,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PeerAuthentication) Reset() {
- *x = PeerAuthentication{}
- mi := &file_security_v1alpha3_peer_authentication_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PeerAuthentication) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PeerAuthentication) ProtoMessage() {}
-
-func (x *PeerAuthentication) ProtoReflect() protoreflect.Message {
- mi := &file_security_v1alpha3_peer_authentication_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use PeerAuthentication.ProtoReflect.Descriptor instead.
-func (*PeerAuthentication) Descriptor() ([]byte, []int) {
- return file_security_v1alpha3_peer_authentication_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *PeerAuthentication) GetSelector() *v1alpha3.WorkloadSelector {
- if x != nil {
- return x.Selector
- }
- return nil
-}
-
-func (x *PeerAuthentication) GetMtls() *PeerAuthentication_MutualTLS {
- if x != nil {
- return x.Mtls
- }
- return nil
-}
-
-func (x *PeerAuthentication) GetPortLevelMtls() map[uint32]*PeerAuthentication_MutualTLS {
- if x != nil {
- return x.PortLevelMtls
- }
- return nil
-}
-
-// Mutual TLS settings.
-type PeerAuthentication_MutualTLS struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // Defines the mTLS mode used for peer authentication.
- Mode PeerAuthentication_MutualTLS_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=dubbo.security.v1alpha3.PeerAuthentication_MutualTLS_Mode" json:"mode,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PeerAuthentication_MutualTLS) Reset() {
- *x = PeerAuthentication_MutualTLS{}
- mi := &file_security_v1alpha3_peer_authentication_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PeerAuthentication_MutualTLS) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PeerAuthentication_MutualTLS) ProtoMessage() {}
-
-func (x *PeerAuthentication_MutualTLS) ProtoReflect() protoreflect.Message {
- mi := &file_security_v1alpha3_peer_authentication_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use PeerAuthentication_MutualTLS.ProtoReflect.Descriptor instead.
-func (*PeerAuthentication_MutualTLS) Descriptor() ([]byte, []int) {
- return file_security_v1alpha3_peer_authentication_proto_rawDescGZIP(), []int{0, 0}
-}
-
-func (x *PeerAuthentication_MutualTLS) GetMode() PeerAuthentication_MutualTLS_Mode {
- if x != nil {
- return x.Mode
- }
- return PeerAuthentication_MutualTLS_UNSET
-}
-
-var File_security_v1alpha3_peer_authentication_proto protoreflect.FileDescriptor
-
-const file_security_v1alpha3_peer_authentication_proto_rawDesc = "" +
- "\n" +
- "+security/v1alpha3/peer_authentication.proto\x12\x17dubbo.security.v1alpha3\x1a\x1ctype/v1alpha3/selector.proto\"\x9d\x04\n" +
- "\x12PeerAuthentication\x12A\n" +
- "\bselector\x18\x01 \x01(\v2%.dubbo.type.v1alpha3.WorkloadSelectorR\bselector\x12I\n" +
- "\x04mtls\x18\x02 \x01(\v25.dubbo.security.v1alpha3.PeerAuthentication.MutualTLSR\x04mtls\x12f\n" +
- "\x0fport_level_mtls\x18\x03 \x03(\v2>.dubbo.security.v1alpha3.PeerAuthentication.PortLevelMtlsEntryR\rportLevelMtls\x1a\x97\x01\n" +
- "\tMutualTLS\x12N\n" +
- "\x04mode\x18\x01 \x01(\x0e2:.dubbo.security.v1alpha3.PeerAuthentication.MutualTLS.ModeR\x04mode\":\n" +
- "\x04Mode\x12\t\n" +
- "\x05UNSET\x10\x00\x12\v\n" +
- "\aDISABLE\x10\x01\x12\x0e\n" +
- "\n" +
- "PERMISSIVE\x10\x02\x12\n" +
- "\n" +
- "\x06STRICT\x10\x03\x1aw\n" +
- "\x12PortLevelMtlsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\rR\x03key\x12K\n" +
- "\x05value\x18\x02 \x01(\v25.dubbo.security.v1alpha3.PeerAuthentication.MutualTLSR\x05value:\x028\x01B\x18Z\x16/api/security/v1alpha3b\x06proto3"
-
-var (
- file_security_v1alpha3_peer_authentication_proto_rawDescOnce sync.Once
- file_security_v1alpha3_peer_authentication_proto_rawDescData []byte
-)
-
-func file_security_v1alpha3_peer_authentication_proto_rawDescGZIP() []byte {
- file_security_v1alpha3_peer_authentication_proto_rawDescOnce.Do(func() {
- file_security_v1alpha3_peer_authentication_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_security_v1alpha3_peer_authentication_proto_rawDesc), len(file_security_v1alpha3_peer_authentication_proto_rawDesc)))
- })
- return file_security_v1alpha3_peer_authentication_proto_rawDescData
-}
-
-var file_security_v1alpha3_peer_authentication_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_security_v1alpha3_peer_authentication_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
-var file_security_v1alpha3_peer_authentication_proto_goTypes = []any{
- (PeerAuthentication_MutualTLS_Mode)(0), // 0: dubbo.security.v1alpha3.PeerAuthentication.MutualTLS.Mode
- (*PeerAuthentication)(nil), // 1: dubbo.security.v1alpha3.PeerAuthentication
- (*PeerAuthentication_MutualTLS)(nil), // 2: dubbo.security.v1alpha3.PeerAuthentication.MutualTLS
- nil, // 3: dubbo.security.v1alpha3.PeerAuthentication.PortLevelMtlsEntry
- (*v1alpha3.WorkloadSelector)(nil), // 4: dubbo.type.v1alpha3.WorkloadSelector
-}
-var file_security_v1alpha3_peer_authentication_proto_depIdxs = []int32{
- 4, // 0: dubbo.security.v1alpha3.PeerAuthentication.selector:type_name -> dubbo.type.v1alpha3.WorkloadSelector
- 2, // 1: dubbo.security.v1alpha3.PeerAuthentication.mtls:type_name -> dubbo.security.v1alpha3.PeerAuthentication.MutualTLS
- 3, // 2: dubbo.security.v1alpha3.PeerAuthentication.port_level_mtls:type_name -> dubbo.security.v1alpha3.PeerAuthentication.PortLevelMtlsEntry
- 0, // 3: dubbo.security.v1alpha3.PeerAuthentication.MutualTLS.mode:type_name -> dubbo.security.v1alpha3.PeerAuthentication.MutualTLS.Mode
- 2, // 4: dubbo.security.v1alpha3.PeerAuthentication.PortLevelMtlsEntry.value:type_name -> dubbo.security.v1alpha3.PeerAuthentication.MutualTLS
- 5, // [5:5] is the sub-list for method output_type
- 5, // [5:5] is the sub-list for method input_type
- 5, // [5:5] is the sub-list for extension type_name
- 5, // [5:5] is the sub-list for extension extendee
- 0, // [0:5] is the sub-list for field type_name
-}
-
-func init() { file_security_v1alpha3_peer_authentication_proto_init() }
-func file_security_v1alpha3_peer_authentication_proto_init() {
- if File_security_v1alpha3_peer_authentication_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_security_v1alpha3_peer_authentication_proto_rawDesc), len(file_security_v1alpha3_peer_authentication_proto_rawDesc)),
- NumEnums: 1,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_security_v1alpha3_peer_authentication_proto_goTypes,
- DependencyIndexes: file_security_v1alpha3_peer_authentication_proto_depIdxs,
- EnumInfos: file_security_v1alpha3_peer_authentication_proto_enumTypes,
- MessageInfos: file_security_v1alpha3_peer_authentication_proto_msgTypes,
- }.Build()
- File_security_v1alpha3_peer_authentication_proto = out.File
- file_security_v1alpha3_peer_authentication_proto_goTypes = nil
- file_security_v1alpha3_peer_authentication_proto_depIdxs = nil
-}
diff --git a/api/security/v1alpha3/peer_authentication.proto b/api/security/v1alpha3/peer_authentication.proto
deleted file mode 100644
index fc99d3f4..00000000
--- a/api/security/v1alpha3/peer_authentication.proto
+++ /dev/null
@@ -1,85 +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.
-
-syntax = "proto3";
-
-// $schema: dubbo.security.v1alpha3.PeerAuthentication
-// $title: PeerAuthentication
-// $description: Peer authentication configuration for workloads.
-
-package dubbo.security.v1alpha3;
-
-import "type/v1alpha3/selector.proto";
-
-option go_package = "/api/security/v1alpha3";
-
-// PeerAuthentication defines mutual TLS (mTLS) requirements for incoming connections.
-//
-// <!-- crd generation tags
-// +cue-gen:PeerAuthentication:groupName:security.dubbo.apache.org
-// +cue-gen:PeerAuthentication:versions:v1alpha3
-// +cue-gen:PeerAuthentication:storageVersion
-// +cue-gen:PeerAuthentication:annotations:helm.sh/resource-policy=keep
-// +cue-gen:PeerAuthentication:labels:app=dubbo,chart=dubbo,dubbo=security,heritage=Tiller,release=dubbo
-// +cue-gen:PeerAuthentication:subresource:status
-// +cue-gen:PeerAuthentication:scope:Namespaced
-// +cue-gen:PeerAuthentication:resource:categories=dubbo,security,shortNames=pa
-// +cue-gen:PeerAuthentication:preserveUnknownFields:false
-// +cue-gen:PeerAuthentication:printerColumn:name=Mode,type=string,JSONPath=.spec.mtls.mode,description="Defines the mTLS mode used for peer authentication."
-// +cue-gen:PeerAuthentication:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp
-// representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations.
-// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
-// Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata"
-// -->
-//
-// <!-- go code generation tags
-// +kubetype-gen
-// +kubetype-gen:groupVersion=security.dubbo.apache.org/v1alpha3
-// +genclient
-// +k8s:deepcopy-gen=true
-// -->
-// +kubebuilder:validation:XValidation:message="portLevelMtls requires selector",rule="has(self.portLevelMtls) ? self.index({}, selector, matchLabels).size() > 0 : true"
-message PeerAuthentication {
- // The selector determines the workloads to apply the PeerAuthentication on. The selector will match with workloads in the
- // same namespace as the policy. If the policy is in the root namespace, the selector will additionally match with workloads in all namespace.
- //
- // If not set, the policy will be applied to all workloads in the same namespace as the policy. If it is in the root namespace, it would be applied
- // to all workloads in the mesh.
- dubbo.type.v1alpha3.WorkloadSelector selector = 1;
- // Mutual TLS settings.
- message MutualTLS {
- enum Mode {
- // Inherit from parent, if has one. Otherwise treated as `PERMISSIVE`.
- UNSET = 0;
- // Connection is not tunneled.
- DISABLE = 1;
- // Connection can be either plaintext or mTLS tunnel.
- PERMISSIVE = 2;
- // Connection is an mTLS tunnel (TLS with client cert must be presented).
- STRICT = 3;
- }
- // Defines the mTLS mode used for peer authentication.
- Mode mode = 1;
- }
- // Mutual TLS settings for workload. If not defined, inherit from parent.
- MutualTLS mtls = 2;
- // Port specific mutual TLS settings. These only apply when a workload selector
- // is specified. The port refers to the port of the workload, not the port of the
- // Kubernetes service.
- // +kubebuilder:validation:XValidation:message="port must be between 1-65535",rule="self.all(key, 0 < int(key) && int(key) <= 65535)"
- // +kubebuilder:validation:MinProperties=1
- map<uint32, MutualTLS> port_level_mtls = 3;
-}
diff --git a/api/security/v1alpha3/peer_authentication_deepcopy.gen.go b/api/security/v1alpha3/peer_authentication_deepcopy.gen.go
deleted file mode 100644
index c785e25d..00000000
--- a/api/security/v1alpha3/peer_authentication_deepcopy.gen.go
+++ /dev/null
@@ -1,48 +0,0 @@
-// Code generated by protoc-gen-deepcopy. DO NOT EDIT.
-package v1alpha3
-
-import (
- proto "google.golang.org/protobuf/proto"
-)
-
-// DeepCopyInto supports using PeerAuthentication within kubernetes types, where deepcopy-gen is used.
-func (in *PeerAuthentication) DeepCopyInto(out *PeerAuthentication) {
- p := proto.Clone(in).(*PeerAuthentication)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerAuthentication. Required by controller-gen.
-func (in *PeerAuthentication) DeepCopy() *PeerAuthentication {
- if in == nil {
- return nil
- }
- out := new(PeerAuthentication)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new PeerAuthentication. Required by controller-gen.
-func (in *PeerAuthentication) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
-
-// DeepCopyInto supports using PeerAuthentication_MutualTLS within kubernetes types, where deepcopy-gen is used.
-func (in *PeerAuthentication_MutualTLS) DeepCopyInto(out *PeerAuthentication_MutualTLS) {
- p := proto.Clone(in).(*PeerAuthentication_MutualTLS)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerAuthentication_MutualTLS. Required by controller-gen.
-func (in *PeerAuthentication_MutualTLS) DeepCopy() *PeerAuthentication_MutualTLS {
- if in == nil {
- return nil
- }
- out := new(PeerAuthentication_MutualTLS)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new PeerAuthentication_MutualTLS. Required by controller-gen.
-func (in *PeerAuthentication_MutualTLS) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
diff --git a/api/security/v1alpha3/peer_authentication_json.gen.go b/api/security/v1alpha3/peer_authentication_json.gen.go
deleted file mode 100644
index bd92b6ac..00000000
--- a/api/security/v1alpha3/peer_authentication_json.gen.go
+++ /dev/null
@@ -1,34 +0,0 @@
-// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
-package v1alpha3
-
-import (
- bytes "bytes"
- jsonpb "github.com/golang/protobuf/jsonpb"
-)
-
-// MarshalJSON is a custom marshaler for PeerAuthentication
-func (this *PeerAuthentication) MarshalJSON() ([]byte, error) {
- str, err := PeerAuthenticationMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for PeerAuthentication
-func (this *PeerAuthentication) UnmarshalJSON(b []byte) error {
- return PeerAuthenticationUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-// MarshalJSON is a custom marshaler for PeerAuthentication_MutualTLS
-func (this *PeerAuthentication_MutualTLS) MarshalJSON() ([]byte, error) {
- str, err := PeerAuthenticationMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for PeerAuthentication_MutualTLS
-func (this *PeerAuthentication_MutualTLS) UnmarshalJSON(b []byte) error {
- return PeerAuthenticationUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-var (
- PeerAuthenticationMarshaler = &jsonpb.Marshaler{}
- PeerAuthenticationUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
-)
diff --git a/api/type/v1alpha3/selector.pb.go b/api/type/v1alpha3/selector.pb.go
deleted file mode 100644
index abd4779c..00000000
--- a/api/type/v1alpha3/selector.pb.go
+++ /dev/null
@@ -1,149 +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.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v6.33.0
-// source: type/v1alpha3/selector.proto
-
-package v1alpha3
-
-import (
- _ "google.golang.org/genproto/googleapis/api/annotations"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type WorkloadSelector struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // +kubebuilder:validation:XValidation:message="wildcard not allowed in label key match",rule="self.all(key, !key.contains('*'))"
- // +kubebuilder:validation:XValidation:message="key must not be empty",rule="self.all(key, key.size() != 0)"
- // +protoc-gen-crd:map-value-validation:XValidation:message="wildcard not allowed in label value match",rule="!self.contains('*')"
- // +protoc-gen-crd:map-value-validation:MaxLength=63
- // +kubebuilder:validation:MaxProperties=4096
- MatchLabels map[string]string `protobuf:"bytes,1,rep,name=match_labels,json=matchLabels,proto3" json:"match_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *WorkloadSelector) Reset() {
- *x = WorkloadSelector{}
- mi := &file_type_v1alpha3_selector_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *WorkloadSelector) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*WorkloadSelector) ProtoMessage() {}
-
-func (x *WorkloadSelector) ProtoReflect() protoreflect.Message {
- mi := &file_type_v1alpha3_selector_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use WorkloadSelector.ProtoReflect.Descriptor instead.
-func (*WorkloadSelector) Descriptor() ([]byte, []int) {
- return file_type_v1alpha3_selector_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *WorkloadSelector) GetMatchLabels() map[string]string {
- if x != nil {
- return x.MatchLabels
- }
- return nil
-}
-
-var File_type_v1alpha3_selector_proto protoreflect.FileDescriptor
-
-const file_type_v1alpha3_selector_proto_rawDesc = "" +
- "\n" +
- "\x1ctype/v1alpha3/selector.proto\x12\x13dubbo.type.v1alpha3\x1a\x1fgoogle/api/field_behavior.proto\"\xad\x01\n" +
- "\x10WorkloadSelector\x12Y\n" +
- "\fmatch_labels\x18\x01 \x03(\v26.dubbo.type.v1alpha3.WorkloadSelector.MatchLabelsEntryR\vmatchLabels\x1a>\n" +
- "\x10MatchLabelsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x14Z\x12/api/type/v1alpha3b\x06proto3"
-
-var (
- file_type_v1alpha3_selector_proto_rawDescOnce sync.Once
- file_type_v1alpha3_selector_proto_rawDescData []byte
-)
-
-func file_type_v1alpha3_selector_proto_rawDescGZIP() []byte {
- file_type_v1alpha3_selector_proto_rawDescOnce.Do(func() {
- file_type_v1alpha3_selector_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_type_v1alpha3_selector_proto_rawDesc), len(file_type_v1alpha3_selector_proto_rawDesc)))
- })
- return file_type_v1alpha3_selector_proto_rawDescData
-}
-
-var file_type_v1alpha3_selector_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
-var file_type_v1alpha3_selector_proto_goTypes = []any{
- (*WorkloadSelector)(nil), // 0: dubbo.type.v1alpha3.WorkloadSelector
- nil, // 1: dubbo.type.v1alpha3.WorkloadSelector.MatchLabelsEntry
-}
-var file_type_v1alpha3_selector_proto_depIdxs = []int32{
- 1, // 0: dubbo.type.v1alpha3.WorkloadSelector.match_labels:type_name -> dubbo.type.v1alpha3.WorkloadSelector.MatchLabelsEntry
- 1, // [1:1] is the sub-list for method output_type
- 1, // [1:1] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
-}
-
-func init() { file_type_v1alpha3_selector_proto_init() }
-func file_type_v1alpha3_selector_proto_init() {
- if File_type_v1alpha3_selector_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_type_v1alpha3_selector_proto_rawDesc), len(file_type_v1alpha3_selector_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_type_v1alpha3_selector_proto_goTypes,
- DependencyIndexes: file_type_v1alpha3_selector_proto_depIdxs,
- MessageInfos: file_type_v1alpha3_selector_proto_msgTypes,
- }.Build()
- File_type_v1alpha3_selector_proto = out.File
- file_type_v1alpha3_selector_proto_goTypes = nil
- file_type_v1alpha3_selector_proto_depIdxs = nil
-}
diff --git a/api/type/v1alpha3/selector.proto b/api/type/v1alpha3/selector.proto
deleted file mode 100644
index 1d613a20..00000000
--- a/api/type/v1alpha3/selector.proto
+++ /dev/null
@@ -1,32 +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.
-
-syntax = "proto3";
-
-package dubbo.type.v1alpha3;
-
-import "google/api/field_behavior.proto";
-
-option go_package = "/api/type/v1alpha3";
-
-message WorkloadSelector {
- // +kubebuilder:validation:XValidation:message="wildcard not allowed in label key match",rule="self.all(key, !key.contains('*'))"
- // +kubebuilder:validation:XValidation:message="key must not be empty",rule="self.all(key, key.size() != 0)"
- // +protoc-gen-crd:map-value-validation:XValidation:message="wildcard not allowed in label value match",rule="!self.contains('*')"
- // +protoc-gen-crd:map-value-validation:MaxLength=63
- // +kubebuilder:validation:MaxProperties=4096
- map<string, string> match_labels = 1;
-}
\ No newline at end of file
diff --git a/api/type/v1alpha3/selector_deepcopy.gen.go b/api/type/v1alpha3/selector_deepcopy.gen.go
deleted file mode 100644
index 4d635b19..00000000
--- a/api/type/v1alpha3/selector_deepcopy.gen.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// Code generated by protoc-gen-deepcopy. DO NOT EDIT.
-package v1alpha3
-
-import (
- proto "google.golang.org/protobuf/proto"
-)
-
-// DeepCopyInto supports using WorkloadSelector within kubernetes types, where deepcopy-gen is used.
-func (in *WorkloadSelector) DeepCopyInto(out *WorkloadSelector) {
- p := proto.Clone(in).(*WorkloadSelector)
- *out = *p
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSelector. Required by controller-gen.
-func (in *WorkloadSelector) DeepCopy() *WorkloadSelector {
- if in == nil {
- return nil
- }
- out := new(WorkloadSelector)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSelector. Required by controller-gen.
-func (in *WorkloadSelector) DeepCopyInterface() interface{} {
- return in.DeepCopy()
-}
diff --git a/api/type/v1alpha3/selector_json.gen.go b/api/type/v1alpha3/selector_json.gen.go
deleted file mode 100644
index 095f3d85..00000000
--- a/api/type/v1alpha3/selector_json.gen.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// Code generated by protoc-gen-jsonshim. DO NOT EDIT.
-package v1alpha3
-
-import (
- bytes "bytes"
- jsonpb "github.com/golang/protobuf/jsonpb"
-)
-
-// MarshalJSON is a custom marshaler for WorkloadSelector
-func (this *WorkloadSelector) MarshalJSON() ([]byte, error) {
- str, err := SelectorMarshaler.MarshalToString(this)
- return []byte(str), err
-}
-
-// UnmarshalJSON is a custom unmarshaler for WorkloadSelector
-func (this *WorkloadSelector) UnmarshalJSON(b []byte) error {
- return SelectorUnmarshaler.Unmarshal(bytes.NewReader(b), this)
-}
-
-var (
- SelectorMarshaler = &jsonpb.Marshaler{}
- SelectorUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
-)
diff --git a/client-go/pkg/apis/networking/v1alpha3/types.gen.go b/client-go/pkg/apis/networking/v1alpha3/types.gen.go
index 173f57cb..c1bf6817 100644
--- a/client-go/pkg/apis/networking/v1alpha3/types.gen.go
+++ b/client-go/pkg/apis/networking/v1alpha3/types.gen.go
@@ -19,8 +19,8 @@
package v1alpha3
import (
- v1alpha1 "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1"
- networkingv1alpha3 "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
+ v1alpha1 "github.com/kdubbo/api/meta/v1alpha1"
+ networkingv1alpha3 "github.com/kdubbo/api/networking/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/client-go/pkg/apis/security/v1alpha3/types.gen.go b/client-go/pkg/apis/security/v1alpha3/types.gen.go
index a188d876..b60aaab3 100644
--- a/client-go/pkg/apis/security/v1alpha3/types.gen.go
+++ b/client-go/pkg/apis/security/v1alpha3/types.gen.go
@@ -19,8 +19,8 @@
package v1alpha3
import (
- v1alpha1 "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1"
- securityv1alpha3 "github.com/apache/dubbo-kubernetes/api/security/v1alpha3"
+ v1alpha1 "github.com/kdubbo/api/meta/v1alpha1"
+ securityv1alpha3 "github.com/kdubbo/api/security/v1alpha3"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/client-go/pkg/applyconfiguration/networking/v1alpha3/destinationrule.go b/client-go/pkg/applyconfiguration/networking/v1alpha3/destinationrule.go
index b935b8b6..e9dd804d 100644
--- a/client-go/pkg/applyconfiguration/networking/v1alpha3/destinationrule.go
+++ b/client-go/pkg/applyconfiguration/networking/v1alpha3/destinationrule.go
@@ -19,8 +19,8 @@
package v1alpha3
import (
- v1alpha1 "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1"
- v1alpha3 "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
+ v1alpha1 "github.com/kdubbo/api/meta/v1alpha1"
+ v1alpha3 "github.com/kdubbo/api/networking/v1alpha3"
v1 "github.com/apache/dubbo-kubernetes/client-go/pkg/applyconfiguration/meta/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
diff --git a/client-go/pkg/applyconfiguration/networking/v1alpha3/virtualservice.go b/client-go/pkg/applyconfiguration/networking/v1alpha3/virtualservice.go
index 0ddf1dc0..806d33b5 100644
--- a/client-go/pkg/applyconfiguration/networking/v1alpha3/virtualservice.go
+++ b/client-go/pkg/applyconfiguration/networking/v1alpha3/virtualservice.go
@@ -19,8 +19,8 @@
package v1alpha3
import (
- v1alpha1 "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1"
- v1alpha3 "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
+ v1alpha1 "github.com/kdubbo/api/meta/v1alpha1"
+ v1alpha3 "github.com/kdubbo/api/networking/v1alpha3"
v1 "github.com/apache/dubbo-kubernetes/client-go/pkg/applyconfiguration/meta/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
diff --git a/client-go/pkg/applyconfiguration/security/v1alpha3/peerauthentication.go b/client-go/pkg/applyconfiguration/security/v1alpha3/peerauthentication.go
index b96f0e23..6f374b41 100644
--- a/client-go/pkg/applyconfiguration/security/v1alpha3/peerauthentication.go
+++ b/client-go/pkg/applyconfiguration/security/v1alpha3/peerauthentication.go
@@ -19,8 +19,8 @@
package v1alpha3
import (
- v1alpha1 "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1"
- v1alpha3 "github.com/apache/dubbo-kubernetes/api/security/v1alpha3"
+ v1alpha1 "github.com/kdubbo/api/meta/v1alpha1"
+ v1alpha3 "github.com/kdubbo/api/security/v1alpha3"
v1 "github.com/apache/dubbo-kubernetes/client-go/pkg/applyconfiguration/meta/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
diff --git a/dubbod/discovery/cmd/dubbo-agent/options/agent.go b/dubbod/discovery/cmd/dubbo-agent/options/agent.go
index 91db3cc8..8a4bc1d4 100644
--- a/dubbod/discovery/cmd/dubbo-agent/options/agent.go
+++ b/dubbod/discovery/cmd/dubbo-agent/options/agent.go
@@ -21,7 +21,7 @@ import (
"path/filepath"
"strings"
- serviceRouteIndex "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ serviceRouteIndex "github.com/kdubbo/api/mesh/v1alpha1"
dubboagent "github.com/apache/dubbo-kubernetes/pkg/dubboagent"
)
diff --git a/dubbod/discovery/cmd/dubbo-agent/options/security.go b/dubbod/discovery/cmd/dubbo-agent/options/security.go
index 514b7b02..0a264e7d 100644
--- a/dubbod/discovery/cmd/dubbo-agent/options/security.go
+++ b/dubbod/discovery/cmd/dubbo-agent/options/security.go
@@ -21,7 +21,7 @@ import (
"os"
"strings"
- serviceRouteIndex "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ serviceRouteIndex "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/features"
"github.com/apache/dubbo-kubernetes/dubbod/security/pkg/credentialfetcher"
"github.com/apache/dubbo-kubernetes/dubbod/security/pkg/nodeagent/cafile"
diff --git a/dubbod/discovery/pkg/bootstrap/server.go b/dubbod/discovery/pkg/bootstrap/server.go
index 4b326f07..47ffb149 100644
--- a/dubbod/discovery/pkg/bootstrap/server.go
+++ b/dubbod/discovery/pkg/bootstrap/server.go
@@ -30,7 +30,7 @@ import (
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/status"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/features"
dubbogrpc "github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/grpc"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/keycertbundle"
diff --git a/dubbod/discovery/pkg/config/kube/crdclient/types.gen.go b/dubbod/discovery/pkg/config/kube/crdclient/types.gen.go
index 3805b77b..f0a39dbd 100755
--- a/dubbod/discovery/pkg/config/kube/crdclient/types.gen.go
+++ b/dubbod/discovery/pkg/config/kube/crdclient/types.gen.go
@@ -14,9 +14,9 @@ import (
"github.com/apache/dubbo-kubernetes/pkg/config/schema/gvk"
"github.com/apache/dubbo-kubernetes/pkg/kube"
- githubcomapachedubbokubernetesapimetav1alpha1 "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1"
- githubcomapachedubbokubernetesapinetworkingv1alpha3 "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
- githubcomapachedubbokubernetesapisecurityv1alpha3 "github.com/apache/dubbo-kubernetes/api/security/v1alpha3"
+ githubcomapachedubbokubernetesapimetav1alpha1 "github.com/kdubbo/api/meta/v1alpha1"
+ githubcomapachedubbokubernetesapinetworkingv1alpha3 "github.com/kdubbo/api/networking/v1alpha3"
+ githubcomapachedubbokubernetesapisecurityv1alpha3 "github.com/kdubbo/api/security/v1alpha3"
apigithubcomapachedubbokubernetesapinetworkingv1alpha3 "github.com/apache/dubbo-kubernetes/client-go/pkg/apis/networking/v1alpha3"
apigithubcomapachedubbokubernetesapisecurityv1alpha3 "github.com/apache/dubbo-kubernetes/client-go/pkg/apis/security/v1alpha3"
k8sioapiadmissionregistrationv1 "k8s.io/api/admissionregistration/v1"
diff --git a/dubbod/discovery/pkg/model/authentication.go b/dubbod/discovery/pkg/model/authentication.go
index f6abfa4d..cfb12a1e 100644
--- a/dubbod/discovery/pkg/model/authentication.go
+++ b/dubbod/discovery/pkg/model/authentication.go
@@ -19,12 +19,12 @@ package model
import (
"crypto/md5"
"fmt"
- "github.com/apache/dubbo-kubernetes/api/security/v1alpha3"
+ "github.com/kdubbo/api/security/v1alpha3"
"github.com/apache/dubbo-kubernetes/pkg/config/schema/gvk"
"strings"
"time"
- typev1alpha3 "github.com/apache/dubbo-kubernetes/api/type/v1alpha3"
+ typev1alpha3 "github.com/kdubbo/api/type/v1alpha3"
"github.com/apache/dubbo-kubernetes/pkg/config"
)
diff --git a/dubbod/discovery/pkg/model/context.go b/dubbod/discovery/pkg/model/context.go
index 2b580845..3e6999a1 100644
--- a/dubbod/discovery/pkg/model/context.go
+++ b/dubbod/discovery/pkg/model/context.go
@@ -28,7 +28,7 @@ import (
networkutil "github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/util/network"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/features"
"github.com/apache/dubbo-kubernetes/pkg/config/constants"
"github.com/apache/dubbo-kubernetes/pkg/config/host"
diff --git a/dubbod/discovery/pkg/model/destinationrule.go b/dubbod/discovery/pkg/model/destinationrule.go
index a1acd46b..a153106c 100644
--- a/dubbod/discovery/pkg/model/destinationrule.go
+++ b/dubbod/discovery/pkg/model/destinationrule.go
@@ -17,7 +17,7 @@
package model
import (
- networking "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
+ networking "github.com/kdubbo/api/networking/v1alpha3"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/features"
"github.com/apache/dubbo-kubernetes/pkg/config"
"github.com/apache/dubbo-kubernetes/pkg/config/host"
diff --git a/dubbod/discovery/pkg/model/push_context.go b/dubbod/discovery/pkg/model/push_context.go
index 7ecca3c0..6522fd03 100644
--- a/dubbod/discovery/pkg/model/push_context.go
+++ b/dubbod/discovery/pkg/model/push_context.go
@@ -24,12 +24,12 @@ import (
"sync"
"time"
- networking "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
+ networking "github.com/kdubbo/api/networking/v1alpha3"
"github.com/apache/dubbo-kubernetes/pkg/config/labels"
"github.com/apache/dubbo-kubernetes/pkg/config/schema/gvk"
sigsk8siogatewayapiapisv1 "sigs.k8s.io/gateway-api/apis/v1"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/serviceregistry/provider"
"github.com/apache/dubbo-kubernetes/pkg/cluster"
"github.com/apache/dubbo-kubernetes/pkg/config"
diff --git a/dubbod/discovery/pkg/model/virtualservice.go b/dubbod/discovery/pkg/model/virtualservice.go
index bcab95fc..1e52a19b 100644
--- a/dubbod/discovery/pkg/model/virtualservice.go
+++ b/dubbod/discovery/pkg/model/virtualservice.go
@@ -17,7 +17,7 @@
package model
import (
- networking "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
+ networking "github.com/kdubbo/api/networking/v1alpha3"
"github.com/apache/dubbo-kubernetes/pkg/config"
)
diff --git a/dubbod/discovery/pkg/networking/core/configgen.go b/dubbod/discovery/pkg/networking/core/configgen.go
index e25561fc..a6823107 100644
--- a/dubbod/discovery/pkg/networking/core/configgen.go
+++ b/dubbod/discovery/pkg/networking/core/configgen.go
@@ -17,7 +17,7 @@
package core
import (
- serviceRouteIndex "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ serviceRouteIndex "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/model"
)
diff --git a/dubbod/discovery/pkg/networking/grpcgen/cds.go b/dubbod/discovery/pkg/networking/grpcgen/cds.go
index 07b8cf38..ab5909a8 100644
--- a/dubbod/discovery/pkg/networking/grpcgen/cds.go
+++ b/dubbod/discovery/pkg/networking/grpcgen/cds.go
@@ -23,7 +23,7 @@ import (
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/util/protoconv"
discovery "github.com/kdubbo/xds-api/service/discovery/v1"
- networking "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
+ networking "github.com/kdubbo/api/networking/v1alpha3"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/model"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/networking/util"
"github.com/apache/dubbo-kubernetes/pkg/config/host"
diff --git a/dubbod/discovery/pkg/networking/grpcgen/rds.go b/dubbod/discovery/pkg/networking/grpcgen/rds.go
index ce7aface..16309321 100644
--- a/dubbod/discovery/pkg/networking/grpcgen/rds.go
+++ b/dubbod/discovery/pkg/networking/grpcgen/rds.go
@@ -24,7 +24,7 @@ import (
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/util/protoconv"
discovery "github.com/kdubbo/xds-api/service/discovery/v1"
- networking "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
+ networking "github.com/kdubbo/api/networking/v1alpha3"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/model"
"github.com/apache/dubbo-kubernetes/pkg/config"
"github.com/apache/dubbo-kubernetes/pkg/config/host"
diff --git a/dubbod/discovery/pkg/serviceregistry/kube/conversion.go b/dubbod/discovery/pkg/serviceregistry/kube/conversion.go
index 3b6f3b3b..69d2ee80 100644
--- a/dubbod/discovery/pkg/serviceregistry/kube/conversion.go
+++ b/dubbod/discovery/pkg/serviceregistry/kube/conversion.go
@@ -17,7 +17,7 @@
package kube
import (
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/model"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/serviceregistry/provider"
"github.com/apache/dubbo-kubernetes/pkg/cluster"
diff --git a/dubbod/security/pkg/nodeagent/caclient/providers/aegis/client.go b/dubbod/security/pkg/nodeagent/caclient/providers/aegis/client.go
index 9331678a..fb429bc2 100644
--- a/dubbod/security/pkg/nodeagent/caclient/providers/aegis/client.go
+++ b/dubbod/security/pkg/nodeagent/caclient/providers/aegis/client.go
@@ -20,7 +20,7 @@ import (
"context"
"errors"
"fmt"
- pb "github.com/apache/dubbo-kubernetes/api/security/v1alpha3"
+ pb "github.com/kdubbo/api/security/v1alpha3"
"github.com/apache/dubbo-kubernetes/pkg/log"
diff --git a/dubbod/security/pkg/pki/ra/common.go b/dubbod/security/pkg/pki/ra/common.go
index 414daeef..51e4c974 100644
--- a/dubbod/security/pkg/pki/ra/common.go
+++ b/dubbod/security/pkg/pki/ra/common.go
@@ -21,7 +21,7 @@ import (
"crypto/x509"
"encoding/asn1"
"fmt"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/security/pkg/pki/ca"
raerror "github.com/apache/dubbo-kubernetes/dubbod/security/pkg/pki/error"
"github.com/apache/dubbo-kubernetes/dubbod/security/pkg/pki/util"
diff --git a/dubbod/security/pkg/server/ca/server.go b/dubbod/security/pkg/server/ca/server.go
index 1f8fffba..7e374ffb 100644
--- a/dubbod/security/pkg/server/ca/server.go
+++ b/dubbod/security/pkg/server/ca/server.go
@@ -21,7 +21,7 @@ import (
"github.com/apache/dubbo-kubernetes/pkg/log"
"time"
- pb "github.com/apache/dubbo-kubernetes/api/security/v1alpha3"
+ pb "github.com/kdubbo/api/security/v1alpha3"
"github.com/apache/dubbo-kubernetes/dubbod/security/pkg/pki/ca"
caerror "github.com/apache/dubbo-kubernetes/dubbod/security/pkg/pki/error"
"github.com/apache/dubbo-kubernetes/dubbod/security/pkg/pki/util"
diff --git a/go.mod b/go.mod
index 5b13bd61..d0176bf5 100644
--- a/go.mod
+++ b/go.mod
@@ -56,6 +56,7 @@ require (
github.com/hashicorp/golang-lru/v2 v2.0.5
github.com/heroku/color v0.0.6
github.com/howardjohn/celpp v0.1.0
+ github.com/kdubbo/api v0.0.0-20260322192101-bf9af0bbaf5e
github.com/kdubbo/xds-api v0.0.0-20260320064637-6053c9f4bc27
github.com/moby/term v0.5.2
github.com/ory/viper v1.7.5
diff --git a/go.sum b/go.sum
index 74021b04..5d3aa4de 100644
--- a/go.sum
+++ b/go.sum
@@ -358,6 +358,8 @@ github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHm
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
+github.com/kdubbo/api v0.0.0-20260322192101-bf9af0bbaf5e h1:mAYnaUnTLOUCNMiZmoUz6f48e6zgBknHZXM9tBD3a+g=
+github.com/kdubbo/api v0.0.0-20260322192101-bf9af0bbaf5e/go.mod h1:8BtJiIovg7QCPsCxXcw3gDf922VcvYq5ihOSvj49Rq8=
github.com/kdubbo/xds-api v0.0.0-20260320064637-6053c9f4bc27 h1:k/TocMoUpZjxy9Iv9j8XGjobs3hI06Hz0u6azpOY9CE=
github.com/kdubbo/xds-api v0.0.0-20260320064637-6053c9f4bc27/go.mod h1:o2HDUgL1ntaDbWomZ4cD2tt8jBamuG2qRtjXOa1zZ0Q=
github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4=
diff --git a/pkg/adsc/adsc.go b/pkg/adsc/adsc.go
index 0f513c77..b224430b 100644
--- a/pkg/adsc/adsc.go
+++ b/pkg/adsc/adsc.go
@@ -27,7 +27,7 @@ import (
"sync"
"time"
- "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/model"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/networking/util"
v1 "github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/xds/v1"
diff --git a/pkg/bootstrap/config.go b/pkg/bootstrap/config.go
index b81a2ff7..924d20a9 100644
--- a/pkg/bootstrap/config.go
+++ b/pkg/bootstrap/config.go
@@ -24,7 +24,7 @@ import (
"strconv"
"strings"
- meshAPI "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshAPI "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/pkg/config/constants"
"github.com/apache/dubbo-kubernetes/pkg/model"
"github.com/apache/dubbo-kubernetes/pkg/security"
diff --git a/pkg/config/mesh/mesh.go b/pkg/config/mesh/mesh.go
index 4f413618..8fae9f50 100644
--- a/pkg/config/mesh/mesh.go
+++ b/pkg/config/mesh/mesh.go
@@ -21,7 +21,7 @@ import (
"os"
"time"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/pkg/config/constants"
"github.com/apache/dubbo-kubernetes/pkg/util/protomarshal"
"github.com/apache/dubbo-kubernetes/pkg/util/sets"
diff --git a/pkg/config/mesh/meshwatcher/mesh.go b/pkg/config/mesh/meshwatcher/mesh.go
index b2549af9..4cd5cd97 100644
--- a/pkg/config/mesh/meshwatcher/mesh.go
+++ b/pkg/config/mesh/meshwatcher/mesh.go
@@ -17,7 +17,7 @@
package meshwatcher
import (
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/pkg/config/mesh"
"github.com/apache/dubbo-kubernetes/pkg/kube/krt"
"github.com/apache/dubbo-kubernetes/pkg/util/protomarshal"
diff --git a/pkg/config/mesh/watchers.go b/pkg/config/mesh/watchers.go
index 732804a2..c6ee5e63 100644
--- a/pkg/config/mesh/watchers.go
+++ b/pkg/config/mesh/watchers.go
@@ -17,7 +17,7 @@
package mesh
import (
- "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ "github.com/kdubbo/api/mesh/v1alpha1"
)
// Holder of a mesh configuration.
diff --git a/pkg/config/schema/collections/collections.gen.go b/pkg/config/schema/collections/collections.gen.go
index 51c729d4..6d66cecf 100755
--- a/pkg/config/schema/collections/collections.gen.go
+++ b/pkg/config/schema/collections/collections.gen.go
@@ -8,10 +8,10 @@ package collections
import (
"reflect"
- githubcomapachedubbokubernetesapimeshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
- githubcomapachedubbokubernetesapimetav1alpha1 "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1"
- githubcomapachedubbokubernetesapinetworkingv1alpha3 "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
- githubcomapachedubbokubernetesapisecurityv1alpha3 "github.com/apache/dubbo-kubernetes/api/security/v1alpha3"
+ githubcomapachedubbokubernetesapimeshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
+ githubcomapachedubbokubernetesapimetav1alpha1 "github.com/kdubbo/api/meta/v1alpha1"
+ githubcomapachedubbokubernetesapinetworkingv1alpha3 "github.com/kdubbo/api/networking/v1alpha3"
+ githubcomapachedubbokubernetesapisecurityv1alpha3 "github.com/kdubbo/api/security/v1alpha3"
"github.com/apache/dubbo-kubernetes/pkg/config/schema/collection"
"github.com/apache/dubbo-kubernetes/pkg/config/schema/resource"
"github.com/apache/dubbo-kubernetes/pkg/config/validation"
@@ -95,7 +95,7 @@ var (
Version: "v1alpha3",
Proto: "dubbo.networking.v1alpha3.DestinationRule", StatusProto: "dubbo.meta.v1alpha1.DubboStatus",
ReflectType: reflect.TypeOf(&githubcomapachedubbokubernetesapinetworkingv1alpha3.DestinationRule{}).Elem(), StatusType: reflect.TypeOf(&githubcomapachedubbokubernetesapimetav1alpha1.DubboStatus{}).Elem(),
- ProtoPackage: "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3", StatusPackage: "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1",
+ ProtoPackage: "github.com/kdubbo/api/networking/v1alpha3", StatusPackage: "github.com/kdubbo/api/meta/v1alpha1",
ClusterScoped: false,
Synthetic: false,
Builtin: false,
@@ -224,7 +224,7 @@ var (
Version: "v1alpha1",
Proto: "dubbo.mesh.v1alpha1.MeshGlobalConfig",
ReflectType: reflect.TypeOf(&githubcomapachedubbokubernetesapimeshv1alpha1.MeshGlobalConfig{}).Elem(),
- ProtoPackage: "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1",
+ ProtoPackage: "github.com/kdubbo/api/mesh/v1alpha1",
ClusterScoped: false,
Synthetic: true,
Builtin: false,
@@ -284,7 +284,7 @@ var (
Version: "v1alpha3",
Proto: "dubbo.security.v1alpha3.PeerAuthentication", StatusProto: "dubbo.meta.v1alpha1.DubboStatus",
ReflectType: reflect.TypeOf(&githubcomapachedubbokubernetesapisecurityv1alpha3.PeerAuthentication{}).Elem(), StatusType: reflect.TypeOf(&githubcomapachedubbokubernetesapimetav1alpha1.DubboStatus{}).Elem(),
- ProtoPackage: "github.com/apache/dubbo-kubernetes/api/security/v1alpha3", StatusPackage: "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1",
+ ProtoPackage: "github.com/kdubbo/api/security/v1alpha3", StatusPackage: "github.com/kdubbo/api/meta/v1alpha1",
ClusterScoped: false,
Synthetic: false,
Builtin: false,
@@ -404,7 +404,7 @@ var (
Version: "v1alpha3",
Proto: "dubbo.networking.v1alpha3.VirtualService", StatusProto: "dubbo.meta.v1alpha1.DubboStatus",
ReflectType: reflect.TypeOf(&githubcomapachedubbokubernetesapinetworkingv1alpha3.VirtualService{}).Elem(), StatusType: reflect.TypeOf(&githubcomapachedubbokubernetesapimetav1alpha1.DubboStatus{}).Elem(),
- ProtoPackage: "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3", StatusPackage: "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1",
+ ProtoPackage: "github.com/kdubbo/api/networking/v1alpha3", StatusPackage: "github.com/kdubbo/api/meta/v1alpha1",
ClusterScoped: false,
Synthetic: false,
Builtin: false,
diff --git a/pkg/config/schema/kubetypes/resources.gen.go b/pkg/config/schema/kubetypes/resources.gen.go
index be27f14e..f174615c 100755
--- a/pkg/config/schema/kubetypes/resources.gen.go
+++ b/pkg/config/schema/kubetypes/resources.gen.go
@@ -3,9 +3,9 @@
package kubetypes
import (
- githubcomapachedubbokubernetesapimeshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
- githubcomapachedubbokubernetesapinetworkingv1alpha3 "github.com/apache/dubbo-kubernetes/api/networking/v1alpha3"
- githubcomapachedubbokubernetesapisecurityv1alpha3 "github.com/apache/dubbo-kubernetes/api/security/v1alpha3"
+ githubcomapachedubbokubernetesapimeshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
+ githubcomapachedubbokubernetesapinetworkingv1alpha3 "github.com/kdubbo/api/networking/v1alpha3"
+ githubcomapachedubbokubernetesapisecurityv1alpha3 "github.com/kdubbo/api/security/v1alpha3"
apigithubcomapachedubbokubernetesapinetworkingv1alpha3 "github.com/apache/dubbo-kubernetes/client-go/pkg/apis/networking/v1alpha3"
apigithubcomapachedubbokubernetesapisecurityv1alpha3 "github.com/apache/dubbo-kubernetes/client-go/pkg/apis/security/v1alpha3"
"github.com/apache/dubbo-kubernetes/pkg/config"
diff --git a/pkg/dubboagent/agent.go b/pkg/dubboagent/agent.go
index e17845f2..b4d87d64 100644
--- a/pkg/dubboagent/agent.go
+++ b/pkg/dubboagent/agent.go
@@ -34,7 +34,7 @@ import (
"github.com/apache/dubbo-kubernetes/dubbod/discovery/cmd/dubbo-agent/config"
"github.com/apache/dubbo-kubernetes/pkg/model"
- mesh "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ mesh "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/security/pkg/nodeagent/cache"
"github.com/apache/dubbo-kubernetes/pkg/backoff"
"github.com/apache/dubbo-kubernetes/pkg/bootstrap"
diff --git a/pkg/dubboagent/config/config.go b/pkg/dubboagent/config/config.go
index 32a9ea30..255a0d43 100644
--- a/pkg/dubboagent/config/config.go
+++ b/pkg/dubboagent/config/config.go
@@ -20,7 +20,7 @@ import (
"fmt"
"os"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/pkg/bootstrap"
"github.com/apache/dubbo-kubernetes/pkg/config/mesh"
"github.com/apache/dubbo-kubernetes/pkg/log"
diff --git a/pkg/dubboagent/xds_proxy.go b/pkg/dubboagent/xds_proxy.go
index c58127f2..ffc1d385 100644
--- a/pkg/dubboagent/xds_proxy.go
+++ b/pkg/dubboagent/xds_proxy.go
@@ -28,7 +28,7 @@ import (
"github.com/apache/dubbo-kubernetes/pkg/log"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
dubbogrpc "github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/grpc"
"github.com/apache/dubbo-kubernetes/dubbod/security/pkg/nodeagent/caclient"
"github.com/apache/dubbo-kubernetes/pkg/channels"
diff --git a/pkg/kube/inject/inject.go b/pkg/kube/inject/inject.go
index 11f58384..d6fede3a 100644
--- a/pkg/kube/inject/inject.go
+++ b/pkg/kube/inject/inject.go
@@ -25,8 +25,8 @@ import (
"strings"
"text/template"
- "github.com/apache/dubbo-kubernetes/api/annotation"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ "github.com/kdubbo/api/annotation"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
common_features "github.com/apache/dubbo-kubernetes/pkg/features"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/pkg/kube/inject/webhook.go b/pkg/kube/inject/webhook.go
index 853c61a3..ba4dce75 100644
--- a/pkg/kube/inject/webhook.go
+++ b/pkg/kube/inject/webhook.go
@@ -30,7 +30,7 @@ import (
"text/template"
"time"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/model"
opconfig "github.com/apache/dubbo-kubernetes/operator/pkg/apis"
"github.com/apache/dubbo-kubernetes/pkg/kube"
diff --git a/pkg/kube/namespace/filter.go b/pkg/kube/namespace/filter.go
index 46edad64..3eceb654 100644
--- a/pkg/kube/namespace/filter.go
+++ b/pkg/kube/namespace/filter.go
@@ -27,7 +27,7 @@ import (
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/selection"
- meshapi "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshapi "github.com/kdubbo/api/mesh/v1alpha1"
"github.com/apache/dubbo-kubernetes/pkg/config/mesh"
"github.com/apache/dubbo-kubernetes/pkg/kube"
"github.com/apache/dubbo-kubernetes/pkg/kube/controllers"
diff --git a/pkg/model/proxy.go b/pkg/model/proxy.go
index d0998fb9..6c98cc06 100644
--- a/pkg/model/proxy.go
+++ b/pkg/model/proxy.go
@@ -23,7 +23,7 @@ import (
core "github.com/kdubbo/xds-api/core/v1"
"strconv"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
networkutil "github.com/apache/dubbo-kubernetes/dubbod/discovery/pkg/util/network"
"github.com/apache/dubbo-kubernetes/pkg/util/protomarshal"
)
diff --git a/pkg/spiffe/spiffe.go b/pkg/spiffe/spiffe.go
index 7f4d337e..e59d31f8 100644
--- a/pkg/spiffe/spiffe.go
+++ b/pkg/spiffe/spiffe.go
@@ -31,7 +31,7 @@ import (
jose "github.com/go-jose/go-jose/v4"
- meshv1alpha1 "github.com/apache/dubbo-kubernetes/api/mesh/v1alpha1"
+ meshv1alpha1 "github.com/kdubbo/api/mesh/v1alpha1"
dubbolog "github.com/apache/dubbo-kubernetes/pkg/log"
)
diff --git a/tools/cmd/kubetype-gen/generators/types.go b/tools/cmd/kubetype-gen/generators/types.go
index 921aa15d..0c714fed 100644
--- a/tools/cmd/kubetype-gen/generators/types.go
+++ b/tools/cmd/kubetype-gen/generators/types.go
@@ -64,7 +64,7 @@ func statusOverrideFromComments(commentLines []string) (string, string, bool) {
statusOverridSplit := strings.Split(statusOverrideLine, ":")
if len(statusOverridSplit) == 2 {
overrideName := statusOverridSplit[1]
- return strings.TrimSpace(overrideName), "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1", true
+ return strings.TrimSpace(overrideName), "github.com/kdubbo/api/meta/v1alpha1", true
} else if len(statusOverridSplit) == 3 {
overrideName := statusOverridSplit[1]
overridePackage := statusOverridSplit[2]
@@ -83,7 +83,7 @@ func (g *typesGenerator) GenerateType(c *generator.Context, t *types.Type, w io.
"TypeMeta": c.Universe.Type(types.Name{Name: "TypeMeta", Package: "k8s.io/apimachinery/pkg/apis/meta/v1"}),
"ObjectMeta": c.Universe.Type(types.Name{Name: "ObjectMeta", Package: "k8s.io/apimachinery/pkg/apis/meta/v1"}),
"ListMeta": c.Universe.Type(types.Name{Name: "ListMeta", Package: "k8s.io/apimachinery/pkg/apis/meta/v1"}),
- "DubboStatus": c.Universe.Type(types.Name{Name: "DubboStatus", Package: "github.com/apache/dubbo-kubernetes/api/meta/v1alpha1"}),
+ "DubboStatus": c.Universe.Type(types.Name{Name: "DubboStatus", Package: "github.com/kdubbo/api/meta/v1alpha1"}),
}
for _, kubeType := range kubeTypes {
localM := m