e52269063042fe29c205075026c45dd99529c33c
[oom/platform/cert-service.git] / certServiceK8sExternalProvider / deploy / _certificate_example_.yaml
1 # ============LICENSE_START=======================================================
2 # oom-certservice-k8s-external-provider
3 # ================================================================================
4 # Copyright (c) 2019 Smallstep Labs, Inc.
5 # Modifications copyright (C) 2020 Nokia. All rights reserved.
6 # ================================================================================
7 # This source code was copied from the following git repository:
8 # https://github.com/smallstep/step-issuer
9 # The source code was modified for usage in the ONAP project.
10 # ================================================================================
11 # Licensed under the Apache License, Version 2.0 (the "License");
12 # you may not use this file except in compliance with the License.
13 # You may obtain a copy of the License at
14 #
15 #      http://www.apache.org/licenses/LICENSE-2.0
16 #
17 # Unless required by applicable law or agreed to in writing, software
18 # distributed under the License is distributed on an "AS IS" BASIS,
19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 # See the License for the specific language governing permissions and
21 # limitations under the License.
22 # ============LICENSE_END=========================================================
23 #
24
25 apiVersion: cert-manager.io/v1
26 kind: Certificate
27 metadata:
28   name: _sample_cert_name_
29   namespace: onap
30 spec:
31   # The secret name to store the signed certificate
32   secretName: _sample_secret_name_
33   # Common Name
34   commonName: certissuer.onap.org
35   subject:
36     organizations:
37       - Linux-Foundation
38     countries:
39       - US
40     localities:
41       - San-Francisco
42     provinces:
43       - California
44     organizationalUnits:
45       - ONAP
46   # SANs
47   dnsNames:
48     - localhost
49     - certissuer.onap.org
50   ipAddresses:
51     - "127.0.0.1"
52   uris:
53     - onap://cluster.local/
54   emailAddresses:
55     - onap@onap.org
56   # The reference to the CMPv2 issuer
57   issuerRef:
58     group: certmanager.onap.org
59     kind: CMPv2Issuer
60     name: cmpv2-issuer