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

Commit

Permalink
include unqualified .svc domain
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatjindal authored and johngmyers committed Mar 18, 2020
1 parent 90fcc68 commit 2a8b22a
Show file tree
Hide file tree
Showing 9 changed files with 187 additions and 25 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

[[constraint]]
name = "github.com/proofpoint/kapprover"
version = "0.8.0"
version = "0.10.0"

[[constraint]]
name = "k8s.io/api"
Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var (
additionalIps string
additionalDnsNames string
serviceNames string
includeUnqualified bool
)

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

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

dnsNames, ipAddresses, err = podnames.GetNamesForPod(client, *pod, clusterDomain)
dnsNames, ipAddresses, err = podnames.GetNamesForPod(client, *pod, clusterDomain, includeUnqualified)
if err != nil {
log.Fatalf("Could not query names for pod %q in namespace %q: %s", podName, namespace, err)
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/proofpoint/kapprover/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/proofpoint/kapprover/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion vendor/github.com/proofpoint/kapprover/podnames/podnames.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2a8b22a

Please sign in to comment.