generated.proto 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // This file was autogenerated by go-to-protobuf. Do not edit it manually!
  14. syntax = 'proto2';
  15. package k8s.io.api.settings.v1alpha1;
  16. import "k8s.io/api/core/v1/generated.proto";
  17. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  18. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  19. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  20. // Package-wide variables from generator "generated".
  21. option go_package = "v1alpha1";
  22. // PodPreset is a policy resource that defines additional runtime
  23. // requirements for a Pod.
  24. message PodPreset {
  25. // +optional
  26. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  27. // +optional
  28. optional PodPresetSpec spec = 2;
  29. }
  30. // PodPresetList is a list of PodPreset objects.
  31. message PodPresetList {
  32. // Standard list metadata.
  33. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  34. // +optional
  35. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  36. // Items is a list of schema objects.
  37. repeated PodPreset items = 2;
  38. }
  39. // PodPresetSpec is a description of a pod preset.
  40. message PodPresetSpec {
  41. // Selector is a label query over a set of resources, in this case pods.
  42. // Required.
  43. optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1;
  44. // Env defines the collection of EnvVar to inject into containers.
  45. // +optional
  46. repeated k8s.io.api.core.v1.EnvVar env = 2;
  47. // EnvFrom defines the collection of EnvFromSource to inject into containers.
  48. // +optional
  49. repeated k8s.io.api.core.v1.EnvFromSource envFrom = 3;
  50. // Volumes defines the collection of Volume to inject into the pod.
  51. // +optional
  52. repeated k8s.io.api.core.v1.Volume volumes = 4;
  53. // VolumeMounts defines the collection of VolumeMount to inject into containers.
  54. // +optional
  55. repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 5;
  56. }