generated.proto 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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.networking.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 = "k8s.io/api/networking/v1alpha1";
  22. // ClusterCIDR represents a single configuration for per-Node Pod CIDR
  23. // allocations when the MultiCIDRRangeAllocator is enabled (see the config for
  24. // kube-controller-manager). A cluster may have any number of ClusterCIDR
  25. // resources, all of which will be considered when allocating a CIDR for a
  26. // Node. A ClusterCIDR is eligible to be used for a given Node when the node
  27. // selector matches the node in question and has free CIDRs to allocate. In
  28. // case of multiple matching ClusterCIDR resources, the allocator will attempt
  29. // to break ties using internal heuristics, but any ClusterCIDR whose node
  30. // selector matches the Node may be used.
  31. message ClusterCIDR {
  32. // Standard object's 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.ObjectMeta metadata = 1;
  36. // spec is the desired state of the ClusterCIDR.
  37. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  38. // +optional
  39. optional ClusterCIDRSpec spec = 2;
  40. }
  41. // ClusterCIDRList contains a list of ClusterCIDR.
  42. message ClusterCIDRList {
  43. // Standard object's metadata.
  44. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  45. // +optional
  46. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  47. // items is the list of ClusterCIDRs.
  48. repeated ClusterCIDR items = 2;
  49. }
  50. // ClusterCIDRSpec defines the desired state of ClusterCIDR.
  51. message ClusterCIDRSpec {
  52. // nodeSelector defines which nodes the config is applicable to.
  53. // An empty or nil nodeSelector selects all nodes.
  54. // This field is immutable.
  55. // +optional
  56. optional k8s.io.api.core.v1.NodeSelector nodeSelector = 1;
  57. // perNodeHostBits defines the number of host bits to be configured per node.
  58. // A subnet mask determines how much of the address is used for network bits
  59. // and host bits. For example an IPv4 address of 192.168.0.0/24, splits the
  60. // address into 24 bits for the network portion and 8 bits for the host portion.
  61. // To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6).
  62. // Minimum value is 4 (16 IPs).
  63. // This field is immutable.
  64. // +required
  65. optional int32 perNodeHostBits = 2;
  66. // ipv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8").
  67. // At least one of ipv4 and ipv6 must be specified.
  68. // This field is immutable.
  69. // +optional
  70. optional string ipv4 = 3;
  71. // ipv6 defines an IPv6 IP block in CIDR notation(e.g. "2001:db8::/64").
  72. // At least one of ipv4 and ipv6 must be specified.
  73. // This field is immutable.
  74. // +optional
  75. optional string ipv6 = 4;
  76. }
  77. // IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs
  78. // that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses.
  79. // An IP address can be represented in different formats, to guarantee the uniqueness of the IP,
  80. // the name of the object is the IP address in canonical format, four decimal digits separated
  81. // by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6.
  82. // Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1
  83. // Invalid: 10.01.2.3 or 2001:db8:0:0:0::1
  84. message IPAddress {
  85. // Standard object's metadata.
  86. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  87. // +optional
  88. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  89. // spec is the desired state of the IPAddress.
  90. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  91. // +optional
  92. optional IPAddressSpec spec = 2;
  93. }
  94. // IPAddressList contains a list of IPAddress.
  95. message IPAddressList {
  96. // Standard object's metadata.
  97. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  98. // +optional
  99. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  100. // items is the list of IPAddresses.
  101. repeated IPAddress items = 2;
  102. }
  103. // IPAddressSpec describe the attributes in an IP Address.
  104. message IPAddressSpec {
  105. // ParentRef references the resource that an IPAddress is attached to.
  106. // An IPAddress must reference a parent object.
  107. // +required
  108. optional ParentReference parentRef = 1;
  109. }
  110. // ParentReference describes a reference to a parent object.
  111. message ParentReference {
  112. // Group is the group of the object being referenced.
  113. // +optional
  114. optional string group = 1;
  115. // Resource is the resource of the object being referenced.
  116. // +required
  117. optional string resource = 2;
  118. // Namespace is the namespace of the object being referenced.
  119. // +optional
  120. optional string namespace = 3;
  121. // Name is the name of the object being referenced.
  122. // +required
  123. optional string name = 4;
  124. // UID is the uid of the object being referenced.
  125. // +optional
  126. optional string uid = 5;
  127. }