[OOM-K8S-CERT-EXTERNAL-PROVIDER] Mock implementaion enhanced
[oom/platform/cert-service.git] / certServiceK8sExternalProvider / deploy / crd.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: apiextensions.k8s.io/v1
26 kind: CustomResourceDefinition
27 metadata:
28   name: certserviceissuers.certmanager.onap.org
29 spec:
30   group: certmanager.onap.org
31   names:
32     kind: CertServiceIssuer
33     listKind: CertServiceIssuerList
34     plural: certserviceissuers
35     singular: certserviceissuer
36   scope: Namespaced
37   versions:
38     - name: v1
39       served: true
40       storage: true
41       schema:
42         openAPIV3Schema:
43           description: CertServiceIssuer is the Schema for the certserviceissuers API
44           properties:
45             apiVersion:
46               description: 'APIVersion defines the versioned schema of this representation
47                 of an object. Servers should convert recognized schemas to the latest
48                 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
49               type: string
50             kind:
51               description: 'Kind is a string value representing the REST resource this
52                 object represents. Servers may infer this from the endpoint the client
53                 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
54               type: string
55             metadata:
56               type: object
57             spec:
58               description: CertServiceIssuerSpec defines the desired state of CertServiceIssuer
59               properties:
60                 url:
61                   description: URL is the base URL for the certservice certificates instance.
62                   type: string
63                 keyRef:
64                   description: keyRef is a reference to a Secret containing the
65                     provisioner password used to decrypt the provisioner private key.
66                   properties:
67                     key:
68                       description: The key of the secret to select from. Must be a
69                         valid secret key.
70                       type: string
71                     name:
72                       description: The name of the secret in the pod's namespace to
73                         select from.
74                       type: string
75                   required:
76                     - name
77                     - key
78                   type: object
79               required:
80                 - url
81                 - keyRef
82               type: object
83             status:
84               description: CertServiceIssuerStatus defines the observed state of CertServiceIssuer
85               properties:
86                 conditions:
87                   items:
88                     description: CertServiceIssuerCondition contains condition information for
89                       the certservice issuer.
90                     properties:
91                       lastTransitionTime:
92                         description: LastTransitionTime is the timestamp corresponding
93                           to the last status change of this condition.
94                         format: date-time
95                         type: string
96                       message:
97                         description: Message is a human readable description of the details
98                           of the last transition, complementing reason.
99                         type: string
100                       reason:
101                         description: Reason is a brief machine readable explanation for
102                           the condition's last transition.
103                         type: string
104                       status:
105                         allOf:
106                           - enum:
107                               - "True"
108                               - "False"
109                               - Unknown
110                           - enum:
111                               - "True"
112                               - "False"
113                               - Unknown
114                         description: Status of the condition, one of ('True', 'False',
115                           'Unknown').
116                         type: string
117                       type:
118                         description: Type of the condition, currently ('Ready').
119                         enum:
120                           - Ready
121                         type: string
122                     required:
123                       - status
124                       - type
125                     type: object
126                   type: array
127               type: object
128           type: object