Skip to content

Commit 8462bc7

Browse files
committed
remove validation for TLSCA.
Signed-off-by: Ayato Tokubi <[email protected]>
1 parent b38cac9 commit 8462bc7

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

pkg/config/config.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,6 @@ func (c *APIConfig) Validate(onExecution bool) error {
10351035
if c.StreamTLSKey == "" {
10361036
return errors.New("stream TLS key path is empty")
10371037
}
1038-
if c.StreamTLSCA == "" {
1039-
return errors.New("stream TLS CA path is empty")
1040-
}
10411038
}
10421039

10431040
if onExecution {

pkg/config/config_test.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -232,21 +232,6 @@ var _ = t.Describe("Config", func() {
232232
// Then
233233
Expect(err).To(HaveOccurred())
234234
})
235-
236-
It("should fail if stream server TLS enabled and CA is empty", func() {
237-
// Given
238-
sut = runtimeValidConfig()
239-
sut.StreamEnableTLS = true
240-
sut.StreamTLSCert = "cert"
241-
sut.StreamTLSKey = "key"
242-
sut.StreamTLSCA = ""
243-
244-
// When
245-
err := sut.APIConfig.Validate(false)
246-
247-
// Then
248-
Expect(err).To(HaveOccurred())
249-
})
250235
})
251236

252237
t.Describe("ValidateRuntimeConfig", func() {

0 commit comments

Comments
 (0)