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