blob: 4f0e400e791d248297396bf1a36dfb59b84a80b0 [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.admissionregistration.v1alpha1;
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 = "v1alpha1";
31
32// Initializer describes the name and the failure policy of an initializer, and
33// what resources it applies to.
34message 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.
50message 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.
68message 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.
80message 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