Skip to content

Commit

Permalink
[installer]: add test for customization of proxy service
Browse files Browse the repository at this point in the history
This was raised as a specific issue in #11106, but cannot recreate this
issue. Test added to ensure that no regression happens.
  • Loading branch information
Simon Emms committed Jul 11, 2022
1 parent 6acb5f3 commit e7bb931
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions install/installer/pkg/common/customize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"testing"

"github.com/gitpod-io/gitpod/installer/pkg/common"
"github.com/gitpod-io/gitpod/installer/pkg/components/proxy"
"github.com/gitpod-io/gitpod/installer/pkg/config/v1"
"github.com/gitpod-io/gitpod/installer/pkg/config/versions"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -177,6 +178,28 @@ func TestCustomizeAnnotation(t *testing.T) {
"key3": "",
},
},
{
Customization: []config.Customization{
{
TypeMeta: metav1.TypeMeta{
APIVersion: "v1",
Kind: "Service",
},
Metadata: metav1.ObjectMeta{
Name: "proxy",
Annotations: map[string]string{
"service.beta.kubernetes.io/aws-load-balancer-ip-address-type": "ipv4",
},
},
},
},
Name: "Test service #11106",
TypeMeta: common.TypeMetaService,
Component: proxy.Component,
Expect: map[string]string{
"service.beta.kubernetes.io/aws-load-balancer-ip-address-type": "ipv4",
},
},
}

for _, testCase := range testCases {
Expand Down

0 comments on commit e7bb931

Please sign in to comment.