blob: 1d79767ed456252b51666e4b93a977d8dfafa80b [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17
18// This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20syntax = 'proto2';
21
22package k8s.io.api.certificates.v1beta1;
23
24import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
25import "k8s.io/apimachinery/pkg/runtime/generated.proto";
26import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
27import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
28
29// Package-wide variables from generator "generated".
30option go_package = "v1beta1";
31
32// Describes a certificate signing request
33message CertificateSigningRequest {
34 // +optional
35 optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
36
37 // The certificate request itself and any additional information.
38 // +optional
39 optional CertificateSigningRequestSpec spec = 2;
40
41 // Derived information about the request.
42 // +optional
43 optional CertificateSigningRequestStatus status = 3;
44}
45
46message CertificateSigningRequestCondition {
47 // request approval state, currently Approved or Denied.
48 optional string type = 1;
49
50 // brief reason for the request state
51 // +optional
52 optional string reason = 2;
53
54 // human readable message with details about the request state
55 // +optional
56 optional string message = 3;
57
58 // timestamp for the last update to this condition
59 // +optional
60 optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 4;
61}
62
63message CertificateSigningRequestList {
64 // +optional
65 optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
66
67 repeated CertificateSigningRequest items = 2;
68}
69
70// This information is immutable after the request is created. Only the Request
71// and Usages fields can be set on creation, other fields are derived by
72// Kubernetes and cannot be modified by users.
73message CertificateSigningRequestSpec {
74 // Base64-encoded PKCS#10 CSR data
75 optional bytes request = 1;
76
77 // allowedUsages specifies a set of usage contexts the key will be
78 // valid for.
79 // See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3
80 // https://tools.ietf.org/html/rfc5280#section-4.2.1.12
81 repeated string usages = 5;
82
83 // Information about the requesting user.
84 // See user.Info interface for details.
85 // +optional
86 optional string username = 2;
87
88 // UID information about the requesting user.
89 // See user.Info interface for details.
90 // +optional
91 optional string uid = 3;
92
93 // Group information about the requesting user.
94 // See user.Info interface for details.
95 // +optional
96 repeated string groups = 4;
97
98 // Extra information about the requesting user.
99 // See user.Info interface for details.
100 // +optional
101 map<string, ExtraValue> extra = 6;
102}
103
104message CertificateSigningRequestStatus {
105 // Conditions applied to the request, such as approval or denial.
106 // +optional
107 repeated CertificateSigningRequestCondition conditions = 1;
108
109 // If request was approved, the controller will place the issued certificate here.
110 // +optional
111 optional bytes certificate = 2;
112}
113
114// ExtraValue masks the value so protobuf can generate
115// +protobuf.nullable=true
116// +protobuf.options.(gogoproto.goproto_stringer)=false
117message ExtraValue {
118 // items, if empty, will result in an empty slice
119
120 repeated string items = 1;
121}
122