diff options
Diffstat (limited to 'certServiceK8sExternalProvider/main.go')
-rw-r--r-- | certServiceK8sExternalProvider/main.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/certServiceK8sExternalProvider/main.go b/certServiceK8sExternalProvider/main.go new file mode 100644 index 00000000..77ede105 --- /dev/null +++ b/certServiceK8sExternalProvider/main.go @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/levigross/grequests" + "log" + certservice_provisioner "onap.org/oom-certservice/k8s-external-provider/src/certservice-provisioner" +) + +func main() { + fmt.Println(" *** Hello World Golang App ***") + fmt.Println() + + resp, err := grequests.Get("http://jenkins.onap.org/", nil) + + if err != nil { + log.Fatalln("Unable to make request: ", err) + } + + fmt.Println("Checking if jenkins.onap.org is reachable:", resp.StatusCode) + + fmt.Println("Signing certificate...") + certservice_provisioner.SignCertificate() +} |