Skip to content

Commit

Permalink
Adds proto for the GatewayClass based on the GAMMA Kubernetes Sig (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
missylbytes authored Nov 14, 2023
1 parent c7307ca commit 9ca62aa
Show file tree
Hide file tree
Showing 6 changed files with 469 additions and 0 deletions.
28 changes: 28 additions & 0 deletions proto-public/pbmesh/v2beta1/gateway_class.pb.binary.go

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

304 changes: 304 additions & 0 deletions proto-public/pbmesh/v2beta1/gateway_class.pb.go

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

49 changes: 49 additions & 0 deletions proto-public/pbmesh/v2beta1/gateway_class.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

syntax = "proto3";

package hashicorp.consul.mesh.v2beta1;

import "pbresource/annotations.proto";

// NOTE: this should align to the GAMMA/gateway-api version, or at least be
// easily translatable.
//
// https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1.GatewayClass
//
// This is a Resource type.
message GatewayClass {
option (hashicorp.consul.resource.spec) = {scope: SCOPE_CLUSTER};

// ControllerName is the name of the Kubernetes controller that manages Gateways of this class
string controller_name = 1;

// ParametersRef refers to a resource responsible for configuring
// the behavior of the GatewayClass.
ParametersReference parameters_ref = 2;

// Description of GatewayClass
string description = 3;
}

// NOTE: this should align to the GAMMA/gateway-api version, or at least be
// easily translatable.
//
// ParametersReference specifies a resource that contains Kubernetes controller-specific configuration
// for a resource
// https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1.ParametersReference
//
message ParametersReference {
// The Kubernetes Group that the referred object belongs to
string group = 1;

// The Kubernetes Kind that the referred object is
string kind = 2;

// The name of the referred object
string name = 3;

// The kubernetes namespace that the referred object is in
string namespace = 4;
}
Loading

0 comments on commit 9ca62aa

Please sign in to comment.