aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceK8sExternalProvider/src/cmpv2api/cmpv2_issuer_crd_schema.go
diff options
context:
space:
mode:
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2020-10-16 11:08:09 +0200
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2020-10-20 13:21:33 +0200
commitf85be7d76bf73d59dd4d70ffd07f1e34dfd1a2ef (patch)
treedc877e4ed72e9eaf86c94659cd34332e147c3d8b /certServiceK8sExternalProvider/src/cmpv2api/cmpv2_issuer_crd_schema.go
parent311cb14d51f5f9b81c5761d815d5d7a5f9b63817 (diff)
[OOM-K8S-CERT-EXTERNAL-PROVIDER] Provide certs to CMPv2 Issuer
Format code Issue-ID: OOM-2559 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I88346b96657606b010aa8d7da0f8b86d1844f9d7
Diffstat (limited to 'certServiceK8sExternalProvider/src/cmpv2api/cmpv2_issuer_crd_schema.go')
-rw-r--r--certServiceK8sExternalProvider/src/cmpv2api/cmpv2_issuer_crd_schema.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/certServiceK8sExternalProvider/src/cmpv2api/cmpv2_issuer_crd_schema.go b/certServiceK8sExternalProvider/src/cmpv2api/cmpv2_issuer_crd_schema.go
index f2482657..f26dc876 100644
--- a/certServiceK8sExternalProvider/src/cmpv2api/cmpv2_issuer_crd_schema.go
+++ b/certServiceK8sExternalProvider/src/cmpv2api/cmpv2_issuer_crd_schema.go
@@ -37,10 +37,10 @@ func init() {
type CMPv2IssuerSpec struct {
// URL is the base URL for the CertService certificates instance.
URL string `json:"url"`
-
+ // CaName is the name of the external CA server
+ CaName string `json:"caName"`
// KeyRef is a reference to a Secret containing the provisioner
- // password used to decrypt the provisioner private key.
- KeyRef SecretKeySelector `json:"keyRef"`
+ CertSecretRef SecretKeySelector `json:"certSecretRef"`
}
// CMPv2IssuerStatus defines the observed state of CMPv2Issuer
@@ -72,9 +72,12 @@ type SecretKeySelector struct {
// The name of the secret in the pod's namespace to select from.
Name string `json:"name"`
- // The key of the secret to select from. Must be a valid secret key.
- // +optional
- Key string `json:"key,omitempty"`
+ // The key of the secret to select private key from. Must be a valid secret key.
+ KeyRef string `json:"keyRef,omitempty"`
+ // The key of the secret to select cert from. Must be a valid secret key.
+ CertRef string `json:"certRef,omitempty"`
+ // The key of the secret to select cacert from. Must be a valid secret key.
+ CacertRef string `json:"cacertRef,omitempty"`
}
// ConditionType represents a CMPv2Issuer condition type.