Skip to content

Commit

Permalink
add test for proxy
Browse files Browse the repository at this point in the history
Signed-off-by: hejianpeng <[email protected]>
  • Loading branch information
zirain committed Apr 11, 2023
1 parent 141f1a6 commit 0255bad
Show file tree
Hide file tree
Showing 15 changed files with 727 additions and 646 deletions.
134 changes: 0 additions & 134 deletions internal/infrastructure/kubernetes/deployment_test.go

This file was deleted.

8 changes: 8 additions & 0 deletions internal/infrastructure/kubernetes/proxy/resource_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ func (r *ResourceRender) Service() (*corev1.Service, error) {
serviceSpec.Selector = utils.GetSelector(labels).MatchLabels

svc := &corev1.Service{
TypeMeta: metav1.TypeMeta{
APIVersion: "v1",
Kind: "Service",
},
ObjectMeta: metav1.ObjectMeta{
Namespace: r.Namespace,
Name: utils.ExpectedResourceHashedName(r.infra.Proxy.Name),
Expand All @@ -128,6 +132,10 @@ func (r *ResourceRender) ConfigMap() (*corev1.ConfigMap, error) {
}

return &corev1.ConfigMap{
TypeMeta: metav1.TypeMeta{
Kind: "ConfigMap",
APIVersion: "v1",
},
ObjectMeta: metav1.ObjectMeta{
Namespace: r.Namespace,
Name: utils.ExpectedResourceHashedName(r.infra.Proxy.Name),
Expand Down
Loading

0 comments on commit 0255bad

Please sign in to comment.