Skip to content

Commit

Permalink
chore(*) generate system resource wrappers (#2282)
Browse files Browse the repository at this point in the history
Signed-off-by: James Peach <james.peach@konghq.com>
  • Loading branch information
jpeach authored Jul 6, 2021
1 parent 5097f5b commit d6d37cc
Show file tree
Hide file tree
Showing 18 changed files with 672 additions and 610 deletions.
19 changes: 13 additions & 6 deletions api/system/v1alpha1/config.pb.go

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

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

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

import "mesh/options.proto";

// Config is a entity that represents dynamic configuration that is stored in
// underlying storage. For now it's used only for internal mechanisms.
message Config {

option (kuma.mesh.resource).name = "ConfigResource";
option (kuma.mesh.resource).type = "Config";
option (kuma.mesh.resource).package = "system";
option (kuma.mesh.resource).global = true;
option (kuma.mesh.resource).skip_validation = true;

// configuration that is stored (ex. in JSON)
string config = 1;
}
20 changes: 13 additions & 7 deletions api/system/v1alpha1/secret.pb.go

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

9 changes: 8 additions & 1 deletion api/system/v1alpha1/secret.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ package kuma.system.v1alpha1;

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

import "mesh/options.proto";
import "google/protobuf/wrappers.proto";

// Secret defines encrypted value in Kuma
// Secret defines an encrypted value in Kuma.
message Secret {

option (kuma.mesh.resource).name = "SecretResource";
option (kuma.mesh.resource).type = "Secret";
option (kuma.mesh.resource).package = "system";
option (kuma.mesh.resource).skip_validation = true;

// Value of the secret
google.protobuf.BytesValue data = 1;
}
26 changes: 16 additions & 10 deletions api/system/v1alpha1/zone.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/system/v1alpha1/zone.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ package kuma.system.v1alpha1;

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

import "mesh/options.proto";
import "google/protobuf/wrappers.proto";

// Zone defines the Zone configuration used at the Global Control Plane
// within a distributed deployment
message Zone {

option (kuma.mesh.resource).name = "ZoneResource";
option (kuma.mesh.resource).type = "Zone";
option (kuma.mesh.resource).package = "system";
option (kuma.mesh.resource).global = true;

// enable allows to turn the zone on/off and exclude the whole zone from
// balancing traffic on it
google.protobuf.BoolValue enabled = 1;
Expand Down
Loading

0 comments on commit d6d37cc

Please sign in to comment.