...

Text file src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1/generated.proto

Documentation: k8s.io/kube-aggregator/pkg/apis/apiregistration/v1

     1/*
     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.kube_aggregator.pkg.apis.apiregistration.v1;
    23
    24import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
    25import "k8s.io/apimachinery/pkg/runtime/generated.proto";
    26import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
    27
    28// Package-wide variables from generator "generated".
    29option go_package = "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1";
    30
    31// APIService represents a server for a particular GroupVersion.
    32// Name must be "version.group".
    33message APIService {
    34  // Standard object's metadata.
    35  // 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 contains information for locating and communicating with a server
    40  optional APIServiceSpec spec = 2;
    41
    42  // Status contains derived information about an API server
    43  optional APIServiceStatus status = 3;
    44}
    45
    46// APIServiceCondition describes the state of an APIService at a particular point
    47message APIServiceCondition {
    48  // Type is the type of the condition.
    49  optional string type = 1;
    50
    51  // Status is the status of the condition.
    52  // Can be True, False, Unknown.
    53  optional string status = 2;
    54
    55  // Last time the condition transitioned from one status to another.
    56  // +optional
    57  optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3;
    58
    59  // Unique, one-word, CamelCase reason for the condition's last transition.
    60  // +optional
    61  optional string reason = 4;
    62
    63  // Human-readable message indicating details about last transition.
    64  // +optional
    65  optional string message = 5;
    66}
    67
    68// APIServiceList is a list of APIService objects.
    69message APIServiceList {
    70  // Standard list metadata
    71  // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
    72  // +optional
    73  optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
    74
    75  // Items is the list of APIService
    76  repeated APIService items = 2;
    77}
    78
    79// APIServiceSpec contains information for locating and communicating with a server.
    80// Only https is supported, though you are able to disable certificate verification.
    81message APIServiceSpec {
    82  // Service is a reference to the service for this API server.  It must communicate
    83  // on port 443.
    84  // If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
    85  // The call will simply delegate to the normal handler chain to be fulfilled.
    86  // +optional
    87  optional ServiceReference service = 1;
    88
    89  // Group is the API group name this server hosts
    90  optional string group = 2;
    91
    92  // Version is the API version this server hosts.  For example, "v1"
    93  optional string version = 3;
    94
    95  // InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server.
    96  // This is strongly discouraged.  You should use the CABundle instead.
    97  optional bool insecureSkipTLSVerify = 4;
    98
    99  // CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate.
   100  // If unspecified, system trust roots on the apiserver are used.
   101  // +listType=atomic
   102  // +optional
   103  optional bytes caBundle = 5;
   104
   105  // GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones.
   106  // Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority.
   107  // The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10).
   108  // The secondary sort is based on the alphabetical comparison of the name of the object.  (v1.bar before v1.foo)
   109  // We'd recommend something like: *.k8s.io (except extensions) at 18000 and
   110  // PaaSes (OpenShift, Deis) are recommended to be in the 2000s
   111  optional int32 groupPriorityMinimum = 7;
   112
   113  // VersionPriority controls the ordering of this API version inside of its group.  Must be greater than zero.
   114  // The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10).
   115  // Since it's inside of a group, the number can be small, probably in the 10s.
   116  // In case of equal version priorities, the version string will be used to compute the order inside a group.
   117  // If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
   118  // lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
   119  // then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
   120  // by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major
   121  // version, then minor version. An example sorted list of versions:
   122  // v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
   123  optional int32 versionPriority = 8;
   124}
   125
   126// APIServiceStatus contains derived information about an API server
   127message APIServiceStatus {
   128  // Current service state of apiService.
   129  // +optional
   130  // +patchMergeKey=type
   131  // +patchStrategy=merge
   132  // +listType=map
   133  // +listMapKey=type
   134  repeated APIServiceCondition conditions = 1;
   135}
   136
   137// ServiceReference holds a reference to Service.legacy.k8s.io
   138message ServiceReference {
   139  // Namespace is the namespace of the service
   140  optional string namespace = 1;
   141
   142  // Name is the name of the service
   143  optional string name = 2;
   144
   145  // If specified, the port on the service that hosting webhook.
   146  // Default to 443 for backward compatibility.
   147  // `port` should be a valid port number (1-65535, inclusive).
   148  // +optional
   149  optional int32 port = 3;
   150}
   151

View as plain text