Skip to content

Commit

Permalink
PB-9235: moved smtp certificate fileds under common.proto
Browse files Browse the repository at this point in the history
Signed-off-by: Kesavan Thiruvenkadasamy <[email protected]>
  • Loading branch information
px-kesavan committed Jan 7, 2025
1 parent bc2b46f commit 7ac5f5f
Show file tree
Hide file tree
Showing 6 changed files with 1,339 additions and 984 deletions.
1,690 changes: 793 additions & 897 deletions pkg/apis/v1/api.pb.go

Large diffs are not rendered by default.

17 changes: 2 additions & 15 deletions pkg/apis/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1580,21 +1580,8 @@ message EmailConfig {
];
// Allow custom certificate for SMTP server client creation
bool allow_custom_certificate = 9;
// Certificate file content
string cert_file = 10 [
(gogoproto.jsontag) = "certfile",
(gogoproto.moretags) = "secure:\"true\""
];
// Key file content
string key_file = 11 [
(gogoproto.jsontag) = "keyfile",
(gogoproto.moretags) = "secure:\"true\""
];
// CA certificate file content
string ca_cert_file = 12 [
(gogoproto.jsontag) = "cacertfile",
(gogoproto.moretags) = "secure:\"true\""
];
// TLS configuration for SMTP server client creation
TlsConfig tlsConfig = 10;
}

message ReceiverInfo {
Expand Down
31 changes: 20 additions & 11 deletions pkg/apis/v1/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4938,17 +4938,9 @@
"format": "boolean",
"title": "Allow custom certificate for SMTP server client creation"
},
"cert_file": {
"type": "string",
"title": "Certificate file content"
},
"key_file": {
"type": "string",
"title": "Key file content"
},
"ca_cert_file": {
"type": "string",
"title": "CA certificate file content"
"tlsConfig": {
"$ref": "#/definitions/TlsConfig",
"title": "TLS configuration for SMTP server client creation"
}
}
},
Expand Down Expand Up @@ -7014,6 +7006,23 @@
}
}
},
"TlsConfig": {
"type": "object",
"properties": {
"cert_file": {
"type": "string",
"title": "Certificate file content"
},
"key_file": {
"type": "string",
"title": "Key file content"
},
"ca_cert_file": {
"type": "string",
"title": "CA certificate file content"
}
}
},
"UnShareClusterRequest": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 7ac5f5f

Please sign in to comment.