Skip to content
This repository was archived by the owner on Aug 29, 2022. It is now read-only.

Commit 2a8b22a

Browse files
rajatjindaljohngmyers
authored andcommitted
include unqualified .svc domain
1 parent 90fcc68 commit 2a8b22a

File tree

9 files changed

+187
-25
lines changed

9 files changed

+187
-25
lines changed

Gopkg.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
[[constraint]]
1414
name = "github.com/proofpoint/kapprover"
15-
version = "0.8.0"
15+
version = "0.10.0"
1616

1717
[[constraint]]
1818
name = "k8s.io/api"

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var (
3636
additionalIps string
3737
additionalDnsNames string
3838
serviceNames string
39+
includeUnqualified bool
3940
)
4041

4142
func main() {
@@ -50,6 +51,7 @@ func main() {
5051
flag.StringVar(&additionalIps, "ips", "", "additional IP addresses that resolve to this Pod; comma separated")
5152
flag.StringVar(&additionalDnsNames, "dns-names", "", "additional dns names; comma separated")
5253
flag.StringVar(&serviceNames, "service-names", "", "additional service names that resolve to this Pod; comma separated")
54+
flag.BoolVar(&includeUnqualified, "include-unqualified", false, "include unqualified .svc domains in names from --query-k8s")
5355
flag.Parse()
5456

5557
if namespace == "" {
@@ -91,7 +93,7 @@ func main() {
9193
log.Fatalf("Could not query pod %q in namespace %q: %s", podName, namespace, err)
9294
}
9395

94-
dnsNames, ipAddresses, err = podnames.GetNamesForPod(client, *pod, clusterDomain)
96+
dnsNames, ipAddresses, err = podnames.GetNamesForPod(client, *pod, clusterDomain, includeUnqualified)
9597
if err != nil {
9698
log.Fatalf("Could not query names for pod %q in namespace %q: %s", podName, namespace, err)
9799
}

vendor/github.com/proofpoint/kapprover/.travis.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/proofpoint/kapprover/Dockerfile

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/proofpoint/kapprover/inspectors/altnamesforpod/altnamesforpod.go

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/proofpoint/kapprover/inspectors/altnamesforpod/altnamesforpod_test.go

Lines changed: 34 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/proofpoint/kapprover/podnames/podnames.go

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)