Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Charly Molter <[email protected]>
  • Loading branch information
lahabana committed Feb 20, 2025
1 parent 9baf196 commit 674093f
Show file tree
Hide file tree
Showing 99 changed files with 963 additions and 1,189 deletions.
243 changes: 83 additions & 160 deletions api/mesh/options.pb.go

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions api/mesh/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ message KumaResourceOptions {
// Whether to skip type registration for this resource.
bool skip_registration = 6;

KumaKdsOptions kds = 10;
// Some options for the webservice
KumaWsOptions ws = 7;

// A set of kds flag to set the behaviour of the resource with KDS.
string kds = 10;

// Whether scope is "Namespace"; Otherwise to "Cluster".
bool scope_namespace = 11;

Expand Down Expand Up @@ -72,13 +75,6 @@ message KumaWsOptions {
bool admin_only = 4;
}

message KumaKdsOptions {
// SendToGlobal whether this entity will be sent from zone cp to global cp
bool send_to_global = 1;
// SendToZone whether this entity will be sent from global cp to zone cp
bool send_to_zone = 2;
}

message KumaPolicyOptions {
// Whether to skip type registration for this resource.
bool skip_registration = 1;
Expand Down
19 changes: 10 additions & 9 deletions api/mesh/v1alpha1/circuit_breaker.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/mesh/v1alpha1/circuit_breaker.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ message CircuitBreaker {
option (kuma.mesh.resource).name = "CircuitBreakerResource";
option (kuma.mesh.resource).type = "CircuitBreaker";
option (kuma.mesh.resource).package = "mesh";
option (kuma.mesh.resource).kds.send_to_zone = true;
option (kuma.mesh.resource).kds = "model.FromGlobalToZone";
option (kuma.mesh.resource).ws.name = "circuit-breaker";
option (kuma.mesh.resource).allow_to_inspect = true;

Expand Down
89 changes: 45 additions & 44 deletions api/mesh/v1alpha1/dataplane.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/mesh/v1alpha1/dataplane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ message Dataplane {
option (kuma.mesh.resource).short_name = "dp";
option (kuma.mesh.resource).type = "Dataplane";
option (kuma.mesh.resource).package = "mesh";
option (kuma.mesh.resource).kds.send_to_global = true;
option (kuma.mesh.resource).kds = "model.FromZoneToGlobal";
option (kuma.mesh.resource).ws.name = "dataplane";
option (kuma.mesh.resource).scope_namespace = true;
option (kuma.mesh.resource).has_insights = true;
Expand Down
Loading

0 comments on commit 674093f

Please sign in to comment.