Remove BPA from Makefile
[icn.git] / cmd / bpa-operator / vendor / k8s.io / api / admission / v1beta1 / generated.proto
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17
18 // This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20 syntax = 'proto2';
21
22 package k8s.io.api.admission.v1beta1;
23
24 import "k8s.io/api/authentication/v1/generated.proto";
25 import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
26 import "k8s.io/apimachinery/pkg/runtime/generated.proto";
27 import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
28
29 // Package-wide variables from generator "generated".
30 option go_package = "v1beta1";
31
32 // AdmissionRequest describes the admission.Attributes for the admission request.
33 message AdmissionRequest {
34   // UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are
35   // otherwise identical (parallel requests, requests when earlier requests did not modify etc)
36   // The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
37   // It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
38   optional string uid = 1;
39
40   // Kind is the type of object being manipulated.  For example: Pod
41   optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2;
42
43   // Resource is the name of the resource being requested.  This is not the kind.  For example: pods
44   optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3;
45
46   // SubResource is the name of the subresource being requested.  This is a different resource, scoped to the parent
47   // resource, but it may have a different kind. For instance, /pods has the resource "pods" and the kind "Pod", while
48   // /pods/foo/status has the resource "pods", the sub resource "status", and the kind "Pod" (because status operates on
49   // pods). The binding resource for a pod though may be /pods/foo/binding, which has resource "pods", subresource
50   // "binding", and kind "Binding".
51   // +optional
52   optional string subResource = 4;
53
54   // Name is the name of the object as presented in the request.  On a CREATE operation, the client may omit name and
55   // rely on the server to generate the name.  If that is the case, this method will return the empty string.
56   // +optional
57   optional string name = 5;
58
59   // Namespace is the namespace associated with the request (if any).
60   // +optional
61   optional string namespace = 6;
62
63   // Operation is the operation being performed
64   optional string operation = 7;
65
66   // UserInfo is information about the requesting user
67   optional k8s.io.api.authentication.v1.UserInfo userInfo = 8;
68
69   // Object is the object from the incoming request prior to default values being applied
70   // +optional
71   optional k8s.io.apimachinery.pkg.runtime.RawExtension object = 9;
72
73   // OldObject is the existing object. Only populated for UPDATE requests.
74   // +optional
75   optional k8s.io.apimachinery.pkg.runtime.RawExtension oldObject = 10;
76
77   // DryRun indicates that modifications will definitely not be persisted for this request.
78   // Defaults to false.
79   // +optional
80   optional bool dryRun = 11;
81 }
82
83 // AdmissionResponse describes an admission response.
84 message AdmissionResponse {
85   // UID is an identifier for the individual request/response.
86   // This should be copied over from the corresponding AdmissionRequest.
87   optional string uid = 1;
88
89   // Allowed indicates whether or not the admission request was permitted.
90   optional bool allowed = 2;
91
92   // Result contains extra details into why an admission request was denied.
93   // This field IS NOT consulted in any way if "Allowed" is "true".
94   // +optional
95   optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3;
96
97   // The patch body. Currently we only support "JSONPatch" which implements RFC 6902.
98   // +optional
99   optional bytes patch = 4;
100
101   // The type of Patch. Currently we only allow "JSONPatch".
102   // +optional
103   optional string patchType = 5;
104
105   // AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
106   // MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
107   // admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by
108   // the admission webhook to add additional context to the audit log for this request.
109   // +optional
110   map<string, string> auditAnnotations = 6;
111 }
112
113 // AdmissionReview describes an admission review request/response.
114 message AdmissionReview {
115   // Request describes the attributes for the admission request.
116   // +optional
117   optional AdmissionRequest request = 1;
118
119   // Response describes the attributes for the admission response.
120   // +optional
121   optional AdmissionResponse response = 2;
122 }
123