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