File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ type stateBuilder struct {
17
17
18
18
selectTags []string
19
19
intermediate * state.KongState
20
- certIDs map [string ]bool
21
20
22
21
err error
23
22
}
@@ -45,7 +44,6 @@ func (b *stateBuilder) build() (*utils.KongRawState, error) {
45
44
if err != nil {
46
45
return nil , err
47
46
}
48
- b .certIDs = map [string ]bool {}
49
47
50
48
// build
51
49
b .certificates ()
@@ -105,8 +103,6 @@ func (b *stateBuilder) certificates() {
105
103
b .err = err
106
104
return
107
105
}
108
-
109
- b .certIDs [* c .ID ] = true
110
106
}
111
107
}
112
108
@@ -430,14 +426,6 @@ func (b *stateBuilder) services() {
430
426
utils .MustMergeTags (& s .Service , b .selectTags )
431
427
b .defaulter .MustSet (& s .Service )
432
428
433
- if s .ClientCertificate != nil && ! utils .Empty (s .ClientCertificate .ID ) {
434
- if _ , ok := b .certIDs [* s .ClientCertificate .ID ]; ! ok {
435
- b .err = errors .Errorf ("client certificate not found: %v" ,
436
- * s .ClientCertificate .ID )
437
- return
438
- }
439
- }
440
-
441
429
b .rawState .Services = append (b .rawState .Services , & s .Service )
442
430
err := b .intermediate .Services .Add (state.Service {Service : s .Service })
443
431
if err != nil {
You can’t perform that action at this time.
0 commit comments