diff options
author | 2020-09-30 11:29:19 +0200 | |
---|---|---|
committer | 2020-09-30 13:02:59 +0200 | |
commit | 93fdf569416a631dfc9aa0f5e0173c70a70d931a (patch) | |
tree | c4c07c6561ad4dd1d0acc3becb629c5c6411d9e3 /certServiceK8sExternalProvider/main.go | |
parent | 8dd3ea1c8851249904cf6e6000f099246d3f0761 (diff) |
[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add project
This project is a GOlang implementation of an external provider for kubernetes cert-manager.
External provider will use OOM CertService as backend signing CA.
Issue-ID: OOM-2559
Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com>
Change-Id: Ide31ca64c29763c9d4e9bdf58d8f50ffddcaaf5d
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() +} |