Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
feat: add placeholder for enabling upstream mTLS
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Yang <reaver@flomesh.io>
  • Loading branch information
reaver-flomesh committed Jul 7, 2023
1 parent 9f3abe3 commit 21657b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/gateway/route/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type Listener struct {

type TLS struct {
TLSModeType gwv1beta1.TLSModeType `json:"TLSModeType"`
MTLS bool `json:"mTLS"`
MTLS bool `json:"mTLS,omitempty"`
Certificates []Certificate `json:"Certificates,omitempty"`
}

Expand Down Expand Up @@ -169,12 +169,14 @@ type ServiceConfig struct {
Filters []Filter `json:"Filters,omitempty" hash:"set"`
ConnectionSettings *ConnectionSettings `json:"ConnectionSettings,omitempty"`
RetryPolicy *RetryPolicy `json:"RetryPolicy,omitempty"`
MTLS bool `json:"mTLS,omitempty"`
UpstreamCert *UpstreamCert `json:"UpstreamCert,omitempty"`
}

type Endpoint struct {
Weight int `json:"Weight"`
Tags map[string]string `json:"Tags,omitempty"`
MTLS bool `json:"mTLS,omitempty"`
UpstreamCert *UpstreamCert `json:"UpstreamCert,omitempty"`
}

Expand Down

0 comments on commit 21657b4

Please sign in to comment.