Skip to content

Commit 8846c13

Browse files
committed
split service authentication to diffrent structs
Signed-off-by: idohu <[email protected]>
1 parent fb88f4b commit 8846c13

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

servicehandler/servicediscovery.go

+12-8
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,18 @@ func (sl currentServiceList) contains(name string, namespace string) bool {
5353
type ServiceAuthentication struct {
5454
kind string
5555
apiVersion string
56-
metadata struct {
57-
name string
58-
namespace string
59-
}
60-
spec struct {
61-
clusterIP string
62-
ports []Port
63-
}
56+
metadata Metadata
57+
spec Spec
58+
}
59+
60+
type Metadata struct {
61+
name string
62+
namespace string
63+
}
64+
65+
type Spec struct {
66+
clusterIP string
67+
ports []Port
6468
}
6569

6670
type Port struct {

0 commit comments

Comments
 (0)