Skip to content

Commit

Permalink
api: add oneof to support a future named resource
Browse files Browse the repository at this point in the history
Signed-off-by: Sanjay Pujare <sanjaypujare@users.noreply.github.com>
  • Loading branch information
sanjaypujare committed May 19, 2020
1 parent d09a366 commit 71b3508
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion api/envoy/extensions/transport_sockets/tls/v3/tls.proto
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ message CommonTlsContext {
// to maintain a single certificate-provider instance. The sharing can happen, for
// example, among multiple clusters or between the tls_certificate and validation_context
// certificate providers of a cluster.
config.core.v3.TypedExtensionConfig typed_config = 2;
oneof config {
// This config could be supplied inline or it could be a named xDS resource (in future).
config.core.v3.TypedExtensionConfig typed_config = 2;
}
}

message CombinedCertificateValidationContext {
Expand Down
5 changes: 4 additions & 1 deletion api/envoy/extensions/transport_sockets/tls/v4alpha/tls.proto
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ message CommonTlsContext {
// to maintain a single certificate-provider instance. The sharing can happen, for
// example, among multiple clusters or between the tls_certificate and validation_context
// certificate providers of a cluster.
config.core.v4alpha.TypedExtensionConfig typed_config = 2;
oneof config {
// This config could be supplied inline or it could be a named xDS resource (in future).
config.core.v4alpha.TypedExtensionConfig typed_config = 2;
}
}

message CombinedCertificateValidationContext {
Expand Down

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

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

0 comments on commit 71b3508

Please sign in to comment.