Skip to content

Commit ddb111d

Browse files
fabianonunesoktalz
authored andcommitted
BUG/MINOR: Prevents improper overriding of DefaultServer when processing the proto annotation
1 parent 1b7a571 commit ddb111d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/annotations/service/proto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (a *Proto) GetName() string {
2525
func (a *Proto) Process(k store.K8s, annotations ...map[string]string) error {
2626
input := common.GetValue(a.GetName(), annotations...)
2727
if input == "h2" {
28-
if a.backend.DefaultServer != nil {
28+
if a.backend.DefaultServer == nil {
2929
a.backend.DefaultServer = &models.DefaultServer{}
3030
}
3131
a.backend.DefaultServer.Proto = "h2"

0 commit comments

Comments
 (0)