...

Text file src/github.com/openshift/api/cloudnetwork/v1/generated.proto

Documentation: github.com/openshift/api/cloudnetwork/v1

     1
     2// This file was autogenerated by go-to-protobuf. Do not edit it manually!
     3
     4syntax = "proto2";
     5
     6package github.com.openshift.api.cloudnetwork.v1;
     7
     8import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
     9import "k8s.io/apimachinery/pkg/runtime/generated.proto";
    10import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
    11
    12// Package-wide variables from generator "generated".
    13option go_package = "github.com/openshift/api/cloudnetwork/v1";
    14
    15// CloudPrivateIPConfig performs an assignment of a private IP address to the
    16// primary NIC associated with cloud VMs. This is done by specifying the IP and
    17// Kubernetes node which the IP should be assigned to. This CRD is intended to
    18// be used by the network plugin which manages the cluster network. The spec
    19// side represents the desired state requested by the network plugin, and the
    20// status side represents the current state that this CRD's controller has
    21// executed. No users will have permission to modify it, and if a cluster-admin
    22// decides to edit it for some reason, their changes will be overwritten the
    23// next time the network plugin reconciles the object. Note: the CR's name
    24// must specify the requested private IP address (can be IPv4 or IPv6).
    25//
    26// Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
    27// +genclient
    28// +genclient:nonNamespaced
    29// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    30// +k8s:openapi-gen=true
    31// +kubebuilder:object:root=true
    32// +kubebuilder:subresource:status
    33// +kubebuilder:resource:path=cloudprivateipconfigs,scope=Cluster
    34// +openshift:compatibility-gen:level=1
    35message CloudPrivateIPConfig {
    36  // metadata is the standard object's metadata.
    37  // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
    38  optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    39
    40  // spec is the definition of the desired private IP request.
    41  // +kubebuilder:validation:Required
    42  // +required
    43  optional CloudPrivateIPConfigSpec spec = 2;
    44
    45  // status is the observed status of the desired private IP request. Read-only.
    46  // +kubebuilder:validation:Optional
    47  // +optional
    48  optional CloudPrivateIPConfigStatus status = 3;
    49}
    50
    51// Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
    52// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    53// +resource:path=cloudprivateipconfig
    54// CloudPrivateIPConfigList is the list of CloudPrivateIPConfigList.
    55// +openshift:compatibility-gen:level=1
    56message CloudPrivateIPConfigList {
    57  // metadata is the standard list's metadata.
    58  // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
    59  optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
    60
    61  // List of CloudPrivateIPConfig.
    62  repeated CloudPrivateIPConfig items = 2;
    63}
    64
    65// CloudPrivateIPConfigSpec consists of a node name which the private IP should be assigned to.
    66// +k8s:openapi-gen=true
    67message CloudPrivateIPConfigSpec {
    68  // node is the node name, as specified by the Kubernetes field: node.metadata.name
    69  // +kubebuilder:validation:Optional
    70  // +optional
    71  optional string node = 1;
    72}
    73
    74// CloudPrivateIPConfigStatus specifies the node assignment together with its assignment condition.
    75// +k8s:openapi-gen=true
    76message CloudPrivateIPConfigStatus {
    77  // node is the node name, as specified by the Kubernetes field: node.metadata.name
    78  // +kubebuilder:validation:Optional
    79  // +optional
    80  optional string node = 1;
    81
    82  // condition is the assignment condition of the private IP and its status
    83  // +kubebuilder:validation:Required
    84  // +required
    85  repeated k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2;
    86}
    87

View as plain text