mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
start the apimachinery repo
This commit is contained in:
@@ -21,11 +21,11 @@ syntax = 'proto2';
|
||||
|
||||
package k8s.io.kubernetes.pkg.apis.policy.v1beta1;
|
||||
|
||||
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||
import "k8s.io/kubernetes/pkg/api/resource/generated.proto";
|
||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
||||
import "k8s.io/kubernetes/pkg/apis/meta/v1/generated.proto";
|
||||
import "k8s.io/kubernetes/pkg/runtime/generated.proto";
|
||||
import "k8s.io/kubernetes/pkg/runtime/schema/generated.proto";
|
||||
import "k8s.io/kubernetes/pkg/util/intstr/generated.proto";
|
||||
|
||||
// Package-wide variables from generator "generated".
|
||||
@@ -35,6 +35,8 @@ option go_package = "v1beta1";
|
||||
// This is a subresource of Pod. A request to cause such an eviction is
|
||||
// created by POSTing to .../pods/<pod name>/evictions.
|
||||
message Eviction {
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 3;
|
||||
|
||||
// ObjectMeta describes the pod that is being evicted.
|
||||
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
|
||||
|
||||
@@ -44,6 +46,8 @@ message Eviction {
|
||||
|
||||
// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
|
||||
message PodDisruptionBudget {
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 4;
|
||||
|
||||
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// Specification of the desired behavior of the PodDisruptionBudget.
|
||||
@@ -55,7 +59,9 @@ message PodDisruptionBudget {
|
||||
|
||||
// PodDisruptionBudgetList is a collection of PodDisruptionBudgets.
|
||||
message PodDisruptionBudgetList {
|
||||
optional k8s.io.kubernetes.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 3;
|
||||
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||
|
||||
repeated PodDisruptionBudget items = 2;
|
||||
}
|
||||
@@ -70,7 +76,7 @@ message PodDisruptionBudgetSpec {
|
||||
|
||||
// Label query over pods whose evictions are managed by the disruption
|
||||
// budget.
|
||||
optional k8s.io.kubernetes.pkg.apis.meta.v1.LabelSelector selector = 2;
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
|
||||
}
|
||||
|
||||
// PodDisruptionBudgetStatus represents information about the status of a
|
||||
@@ -92,7 +98,7 @@ message PodDisruptionBudgetStatus {
|
||||
// the list automatically by PodDisruptionBudget controller after some time.
|
||||
// If everything goes smooth this map should be empty for the most of the time.
|
||||
// Large number of entries in the map may indicate problems with pod deletions.
|
||||
map<string, k8s.io.kubernetes.pkg.apis.meta.v1.Time> disruptedPods = 2;
|
||||
map<string, k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2;
|
||||
|
||||
// Number of pod disruptions that are currently allowed.
|
||||
optional int32 disruptionsAllowed = 3;
|
||||
|
||||
Reference in New Issue
Block a user