generated.proto 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. }