diff options
author | 2020-10-14 13:54:17 +0200 | |
---|---|---|
committer | 2020-10-14 14:04:43 +0200 | |
commit | 720466562b0ea1e67ff36f44e0d95645837316d4 (patch) | |
tree | 94f2a255b596dee88ab1b08e4d589edeb585afa0 /certServiceK8sExternalProvider/src/certservice-provisioner | |
parent | 9e42e7b6b524034035e94221098d1374f34c5165 (diff) |
[OOM-K8S-CERT-EXTERNAL-PROVIDER] Mock implementaion enhanced
Libs upgraded.
Use v1 version of the resources.
Issue-ID: OOM-2559
Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com>
Change-Id: I009ff3ca8c3e84863dcf5cea290c8968280ca8ec
Diffstat (limited to 'certServiceK8sExternalProvider/src/certservice-provisioner')
-rw-r--r-- | certServiceK8sExternalProvider/src/certservice-provisioner/certservice-provisioner.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/certServiceK8sExternalProvider/src/certservice-provisioner/certservice-provisioner.go b/certServiceK8sExternalProvider/src/certservice-provisioner/certservice-provisioner.go index b20e0395..262e708b 100644 --- a/certServiceK8sExternalProvider/src/certservice-provisioner/certservice-provisioner.go +++ b/certServiceK8sExternalProvider/src/certservice-provisioner/certservice-provisioner.go @@ -32,7 +32,7 @@ import ( "encoding/base64" "encoding/pem" "fmt" - certmanager "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha2" + certmanager "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1" "k8s.io/apimachinery/pkg/types" "onap.org/oom-certservice/k8s-external-provider/src/api" ctrl "sigs.k8s.io/controller-runtime" @@ -80,7 +80,7 @@ func (ca *CertServiceCA) Sign(ctx context.Context, certificateRequest *certmanag key, _ := base64.RawStdEncoding.DecodeString(string(ca.key)) log.Info("CA: ", "name", ca.name, "url", ca.url, "key", key) - crPEM := certificateRequest.Spec.CSRPEM + crPEM := certificateRequest.Spec.Request csrBase64 := crPEM log.Info("Csr PEM: ", "bytes", csrBase64) |