generated.proto 3.6 KB

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