blob: 887d2fa1b2962d0951ed9334897b3991e13a8ba5 [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.settings.v1alpha1;
23
24import "k8s.io/api/core/v1/generated.proto";
25import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
26import "k8s.io/apimachinery/pkg/runtime/generated.proto";
27import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
28import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
29
30// Package-wide variables from generator "generated".
31option go_package = "v1alpha1";
32
33// PodPreset is a policy resource that defines additional runtime
34// requirements for a Pod.
35message PodPreset {
36 // +optional
37 optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
38
39 // +optional
40 optional PodPresetSpec spec = 2;
41}
42
43// PodPresetList is a list of PodPreset objects.
44message PodPresetList {
45 // Standard list metadata.
46 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
47 // +optional
48 optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
49
50 // Items is a list of schema objects.
51 repeated PodPreset items = 2;
52}
53
54// PodPresetSpec is a description of a pod preset.
55message PodPresetSpec {
56 // Selector is a label query over a set of resources, in this case pods.
57 // Required.
58 optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1;
59
60 // Env defines the collection of EnvVar to inject into containers.
61 // +optional
62 repeated k8s.io.api.core.v1.EnvVar env = 2;
63
64 // EnvFrom defines the collection of EnvFromSource to inject into containers.
65 // +optional
66 repeated k8s.io.api.core.v1.EnvFromSource envFrom = 3;
67
68 // Volumes defines the collection of Volume to inject into the pod.
69 // +optional
70 repeated k8s.io.api.core.v1.Volume volumes = 4;
71
72 // VolumeMounts defines the collection of VolumeMount to inject into containers.
73 // +optional
74 repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 5;
75}
76