| 1 |
/* |
| 2 |
Copyright The Kubernetes Authors. |
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
you may not use this file except in compliance with the License. |
| 6 |
You may obtain a copy of the License at |
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software |
| 11 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
See the License for the specific language governing permissions and |
| 14 |
limitations under the License. |
| 15 |
*/ |
| 16 |
|
| 17 |
|
| 18 |
// This file was autogenerated by go-to-protobuf. Do not edit it manually! |
| 19 |
|
| 20 |
syntax = "proto2"; |
| 21 |
|
| 22 |
package k8s.io.apiserver.pkg.apis.example2.v1; |
| 23 |
|
| 24 |
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; |
| 25 |
import "k8s.io/apimachinery/pkg/runtime/generated.proto"; |
| 26 |
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; |
| 27 |
|
| 28 |
// Package-wide variables from generator "generated". |
| 29 |
option go_package = "k8s.io/apiserver/pkg/apis/example2/v1"; |
| 30 |
|
| 31 |
// ReplicaSet ensures that a specified number of pod replicas are running at any given time. |
| 32 |
message ReplicaSet { |
| 33 |
// If the Labels of a ReplicaSet are empty, they are defaulted to |
| 34 |
// be the same as the Pod(s) that the ReplicaSet manages. |
| 35 |
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata |
| 36 |
// +optional |
| 37 |
optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 38 |
|
| 39 |
// Spec defines the specification of the desired behavior of the ReplicaSet. |
| 40 |
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
| 41 |
// +optional |
| 42 |
optional ReplicaSetSpec spec = 2; |
| 43 |
|
| 44 |
// Status is the most recently observed status of the ReplicaSet. |
| 45 |
// This data may be out of date by some window of time. |
| 46 |
// Populated by the system. |
| 47 |
// Read-only. |
| 48 |
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
| 49 |
// +optional |
| 50 |
optional ReplicaSetStatus status = 3; |
| 51 |
} |
| 52 |
|
| 53 |
// ReplicaSetSpec is the specification of a ReplicaSet. |
| 54 |
message ReplicaSetSpec { |
| 55 |
// Replicas is the number of desired replicas. |
| 56 |
// This is a pointer to distinguish between explicit zero and unspecified. |
| 57 |
// Defaults to 1. |
| 58 |
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller |
| 59 |
// +optional |
| 60 |
optional int32 replicas = 1; |
| 61 |
} |
| 62 |
|
| 63 |
// ReplicaSetStatus represents the current status of a ReplicaSet. |
| 64 |
message ReplicaSetStatus { |
| 65 |
// Replicas is the most recently oberved number of replicas. |
| 66 |
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller |
| 67 |
optional int32 replicas = 1; |
| 68 |
} |
| 69 |
|