Skip to content

Commit

Permalink
fix mode type
Browse files Browse the repository at this point in the history
  • Loading branch information
songrgg committed Mar 20, 2019
1 parent ba1e9e1 commit e49cd40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/networking.istio.io/v1alpha3/destinationrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type TrafficPolicy_PortTrafficPolicy struct {
type TLSSettings struct {
// REQUIRED: Indicates whether connections to this port should be secured
// using TLS. The value of this field determines how TLS is enforced.
Mode int32 `protobuf:"varint,1,opt,name=mode,proto3,enum=istio.networking.v1alpha3.TLSSettings_TLSmode" json:"mode,omitempty"`
Mode string `protobuf:"varint,1,opt,name=mode,proto3,enum=istio.networking.v1alpha3.TLSSettings_TLSmode" json:"mode,omitempty"`
// REQUIRED if mode is `MUTUAL`. The path to the file holding the
// client-side TLS certificate to use.
// Should be empty if mode is `ISTIO_MUTUAL`.
Expand Down
2 changes: 1 addition & 1 deletion apis/networking.istio.io/v1alpha3/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type Server_TLSOptions struct {
// Optional: Indicates whether connections to this port should be
// secured using TLS. The value of this field determines how TLS is
// enforced.
Mode int32 `protobuf:"varint,2,opt,name=mode,proto3,enum=istio.networking.v1alpha3.Server_TLSOptions_TLSmode" json:"mode,omitempty"`
Mode string `protobuf:"varint,2,opt,name=mode,proto3,enum=istio.networking.v1alpha3.Server_TLSOptions_TLSmode" json:"mode,omitempty"`
// REQUIRED if mode is `SIMPLE` or `MUTUAL`. The path to the file
// holding the server-side TLS certificate to use.
ServerCertificate string `protobuf:"bytes,3,opt,name=server_certificate,json=serverCertificate,proto3" json:"server_certificate,omitempty"`
Expand Down

0 comments on commit e49cd40

Please sign in to comment.