Skip to content

Commit

Permalink
BUG/MINOR: Prevents improper overriding of DefaultServer when proce…
Browse files Browse the repository at this point in the history
…ssing the `proto` annotation
  • Loading branch information
fabianonunes authored and oktalz committed May 3, 2024
1 parent 2da6465 commit 0413af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/annotations/service/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (a *Proto) GetName() string {
func (a *Proto) Process(k store.K8s, annotations ...map[string]string) error {
input := common.GetValue(a.GetName(), annotations...)
if input == "h2" {
if a.backend.DefaultServer != nil {
if a.backend.DefaultServer == nil {
a.backend.DefaultServer = &models.DefaultServer{}
}
a.backend.DefaultServer.Proto = "h2"
Expand Down

0 comments on commit 0413af8

Please sign in to comment.