Code refactoring for bpa operator
[icn.git] / cmd / bpa-operator / vendor / k8s.io / api / admissionregistration / v1alpha1 / 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.admissionregistration.v1alpha1;
23
24 import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
25 import "k8s.io/apimachinery/pkg/runtime/generated.proto";
26 import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
27
28 // Package-wide variables from generator "generated".
29 option go_package = "v1alpha1";
30
31 // Initializer describes the name and the failure policy of an initializer, and
32 // what resources it applies to.
33 message Initializer {
34   // Name is the identifier of the initializer. It will be added to the
35   // object that needs to be initialized.
36   // Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where
37   // "alwayspullimages" is the name of the webhook, and kubernetes.io is the name
38   // of the organization.
39   // Required
40   optional string name = 1;
41
42   // Rules describes what resources/subresources the initializer cares about.
43   // The initializer cares about an operation if it matches _any_ Rule.
44   // Rule.Resources must not include subresources.
45   repeated Rule rules = 2;
46 }
47
48 // InitializerConfiguration describes the configuration of initializers.
49 message InitializerConfiguration {
50   // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
51   // +optional
52   optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
53
54   // Initializers is a list of resources and their default initializers
55   // Order-sensitive.
56   // When merging multiple InitializerConfigurations, we sort the initializers
57   // from different InitializerConfigurations by the name of the
58   // InitializerConfigurations; the order of the initializers from the same
59   // InitializerConfiguration is preserved.
60   // +patchMergeKey=name
61   // +patchStrategy=merge
62   // +optional
63   repeated Initializer initializers = 2;
64 }
65
66 // InitializerConfigurationList is a list of InitializerConfiguration.
67 message InitializerConfigurationList {
68   // Standard list metadata.
69   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
70   // +optional
71   optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
72
73   // List of InitializerConfiguration.
74   repeated InitializerConfiguration items = 2;
75 }
76
77 // Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended
78 // to make sure that all the tuple expansions are valid.
79 message Rule {
80   // APIGroups is the API groups the resources belong to. '*' is all groups.
81   // If '*' is present, the length of the slice must be one.
82   // Required.
83   repeated string apiGroups = 1;
84
85   // APIVersions is the API versions the resources belong to. '*' is all versions.
86   // If '*' is present, the length of the slice must be one.
87   // Required.
88   repeated string apiVersions = 2;
89
90   // Resources is a list of resources this rule applies to.
91   //
92   // For example:
93   // 'pods' means pods.
94   // 'pods/log' means the log subresource of pods.
95   // '*' means all resources, but not subresources.
96   // 'pods/*' means all subresources of pods.
97   // '*/scale' means all scale subresources.
98   // '*/*' means all resources and their subresources.
99   //
100   // If wildcard is present, the validation rule will ensure resources do not
101   // overlap with each other.
102   //
103   // Depending on the enclosing object, subresources might not be allowed.
104   // Required.
105   repeated string resources = 3;
106 }
107