@@ -71,12 +71,12 @@ type SecretConvertor interface {
71
71
72
72
//ServiceConfigs are collection of configurations for services in a specific namespace
73
73
type ServiceConfigs struct {
74
- Version int `json:"version"`
75
- ClusterName string `json:"clusterName"`
76
- Namespace string `json:"namespace"`
77
- ClientID string `json:"clientId,omitempty"`
78
- Services []* ServiceConfig `json:"services"`
79
- Https [] * CertificatePinningHash `json:"https,omitempty"`
74
+ Version int `json:"version"`
75
+ ClusterName string `json:"clusterName"`
76
+ Namespace string `json:"namespace"`
77
+ ClientID string `json:"clientId,omitempty"`
78
+ Services []* ServiceConfig `json:"services"`
79
+ Https HttpsConfig `json:"https,omitempty"`
80
80
}
81
81
82
82
//ServiceConfig is the configuration for a specific service
@@ -88,6 +88,10 @@ type ServiceConfig struct {
88
88
Config map [string ]interface {} `json:"config"`
89
89
}
90
90
91
+ type HttpsConfig struct {
92
+ CertificatePinning []* CertificatePinningHash `json:"certificatePinning,omitempty"`
93
+ }
94
+
91
95
type CertificatePinningHash struct {
92
96
Host string `json:"host"`
93
97
CertificateHash string `json:"certificateHash"`
0 commit comments