Skip to content

Commit 02ae5f3

Browse files
Make some fields optional in smtp (#1209)
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
1 parent d17044a commit 02ae5f3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

apis/installer/v1alpha1/ace_options_types.go

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -373,13 +373,18 @@ type AceOptionsCacheSettings struct {
373373
}
374374

375375
type AceOptionsSMTPSettings struct {
376-
Enabled bool `json:"enabled"`
377-
Host string `json:"host"`
378-
TlsEnabled bool `json:"tlsEnabled"`
379-
From string `json:"from"`
380-
Username string `json:"username"`
381-
Password string `json:"password"`
376+
Enabled bool `json:"enabled"`
377+
Host string `json:"host"`
378+
// +optional
379+
TlsEnabled bool `json:"tlsEnabled,omitempty"`
380+
// +optional
381+
From string `json:"from,omitempty"`
382+
// +optional
383+
Username string `json:"username,omitempty"`
384+
// +optional
385+
Password string `json:"password,omitempty"`
382386
// SubjectPrefix string `json:"subjectPrefix"`
387+
// +optional
383388
SendAsPlainText bool `json:"sendAsPlainText"`
384389
}
385390

schema/ace-options/values.openapiv3_schema.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,12 +2455,7 @@ properties:
24552455
type: string
24562456
required:
24572457
- enabled
2458-
- from
24592458
- host
2460-
- password
2461-
- sendAsPlainText
2462-
- tlsEnabled
2463-
- username
24642459
type: object
24652460
required:
24662461
- cache

0 commit comments

Comments
 (0)