Skip to content

Commit

Permalink
chore(*) generate the remaining mesh resources (#2311) (#2359)
Browse files Browse the repository at this point in the history
Generate the remaining mesh resource wrappers that were overlooked in
the previous pass.

Signed-off-by: James Peach <james.peach@konghq.com>
(cherry picked from commit 1fb3081)

Co-authored-by: James Peach <james.peach@konghq.com>
  • Loading branch information
mergify[bot] and jpeach authored Jul 13, 2021
1 parent 0f1e4ab commit 933d8c6
Show file tree
Hide file tree
Showing 10 changed files with 448 additions and 422 deletions.
13 changes: 7 additions & 6 deletions api/mesh/v1alpha1/dataplane.pb.go

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

1 change: 1 addition & 0 deletions api/mesh/v1alpha1/dataplane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ message Dataplane {

option (kuma.mesh.resource).name = "DataplaneResource";
option (kuma.mesh.resource).type = "Dataplane";
option (kuma.mesh.resource).package = "mesh";

// Networking describes inbound and outbound interfaces of a dataplane.
message Networking {
Expand Down
242 changes: 124 additions & 118 deletions api/mesh/v1alpha1/health_check.pb.go

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion api/mesh/v1alpha1/health_check.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package kuma.mesh.v1alpha1;

option go_package = "github.com/kumahq/kuma/api/mesh/v1alpha1";

import "mesh/options.proto";
import "mesh/v1alpha1/selector.proto";

import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "validate/validate.proto";
Expand All @@ -19,6 +19,11 @@ option (doc.config) = {

// HealthCheck defines configuration for health checking.
message HealthCheck {

option (kuma.mesh.resource).name = "HealthCheckResource";
option (kuma.mesh.resource).type = "HealthCheck";
option (kuma.mesh.resource).package = "mesh";

// List of selectors to match dataplanes that should be configured to do
// health checks.
repeated Selector sources = 1 [ (validate.rules).repeated .min_items = 1 ];
Expand Down
34 changes: 21 additions & 13 deletions api/mesh/v1alpha1/zone_ingress_insight.pb.go

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

7 changes: 7 additions & 0 deletions api/mesh/v1alpha1/zone_ingress_insight.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ package kuma.mesh.v1alpha1;

option go_package = "github.com/kumahq/kuma/api/mesh/v1alpha1";

import "mesh/options.proto";
import "mesh/v1alpha1/dataplane_insight.proto";

// ZoneIngressInsight defines the observed state of a Zone Ingress.
message ZoneIngressInsight {

option (kuma.mesh.resource).name = "ZoneIngressInsightResource";
option (kuma.mesh.resource).type = "ZoneIngressInsight";
option (kuma.mesh.resource).package = "mesh";
option (kuma.mesh.resource).global = true;
option (kuma.mesh.resource).skip_validation = true;

// List of ADS subscriptions created by a given Zone Kuma CP.
repeated DiscoverySubscription subscriptions = 1;
}
97 changes: 0 additions & 97 deletions pkg/core/resources/apis/mesh/dataplane.go

This file was deleted.

94 changes: 0 additions & 94 deletions pkg/core/resources/apis/mesh/health_check.go

This file was deleted.

Loading

0 comments on commit 933d8c6

Please sign in to comment.